« first day (216 days earlier)      last day (4738 days later) » 
01:00 - 18:0018:00 - 19:00

6:01 PM
??
well i'm doing for project
school project
so it doesn't matter its out in the market already
 
euhm okay - well then do as he said --> play the first file in your list, onfinish you start the next file in your list and so on ...
 
but the thing is i wanted to play the video that is selected
then it goes on to play the "latest" on the list
 
ist that logical?
Say you have alist of videos: a,b,c,d in this order - a being the top of the list
then the user selects c - you play c and after that you want to play a ?
 
nope it should play d
or rather b, then c
sorry i missed
sorry confusion
 
jepp a lot of confusion :D
 
6:06 PM
let say the user click c
it should play only b then a
since a is the newest file
 
it's playing backwards :O ??
 
ok i wan ask you something
the top of the listview is array[??]
is it array[0]
?
 
depends on how u fill ur array but jepp usually array[0] is the first element in an array
 
which means the top of a listview is "a"
 
jepp thats what i wrote before :) --> a,b,c,d .... from top to bottom
 
6:13 PM
lol okok sorry for my timezone its rather late at night
kinna sleepy
sorry for the confusion
 
you should get some sleep then ;) otherwise you might be more damage on your app than good
 
so if i were to select c it should then play b then a
cannot.. deadline submission soon
mayb i solve this problem first
 
if you want what you just said then your player is playing up the list - not down the list which is odd and inverse oO
 
then i go get some sleep
 
okay given you're so sleepy here again - your list looks like this:
b
a
c
d
so the user clicks c and after c you want to play b and then a oO ?
 
6:17 PM
yes
but i do not know how
 
lol sorry but this makes no sense - unless you can give me a valid reason - why would a player ever play backward?
The how is easer --> find the element currently playing in your list and increment or decrement the index - depending on whether you want to play the video before or after that
if you dont know what the word "index" means check this: en.wikipedia.org/wiki/Index_(computer_science)
 
because it seems like my listview records recorded video file in such a way
 
where the newest file is placed on the top
of the list
and older file is placed at the bottom
for some reason
 
well i am sure your list view can be convinced to not do that kind of stuff - teach it to place newer files at the end - not at the top or read the whole array from back to beginning
 
6:24 PM
but this part will be a difficulty because the current listview code is the sample code given by my lecturer which insisted us student to follow
so to make his work easier
checking out coding
of our work
with "efficiency"
lol
@Ready4Android so to get back to the question how is my code going to handle c,b,a in an array
 
6:41 PM
@vivian: try to ask a specific question not - how to do xyz beside i gotta go now :)
 
final int selectedPosition = position;
int lastPosition = position - 1;
arrayPath = filePath.list();
is that what i can do to loop throught from c,b,a?
sorry if i'm writting non-logical code
 
01:00 - 18:0018:00 - 19:00

« first day (216 days earlier)      last day (4738 days later) »