java - array list saved in pref, load each item only once -


i need store list of urls, in pref.

[www.url1.com, www.url2.com, www.url3.com, www.url4.com, ] 

i want know how can call list array, , load each item once. i.e. if item 1 been loaded, mark done. next time call list item 2.

there reason why ask is:

i need build video player playlist.

i build playlist array , store urls.

when player activity start load url1, when clip finish, load splash activity 5 seconds , call player activity again. (this time has load url 2).

in end, after urls have been played. need store analytic playlist.

the part don't know how handle playlist. , how load in order 1 url once.

any feed helpful, appreciate hep. thank.

iterate on list:

string[] urls = {"www.url1.com", "www.url2.com", "www.url3.com", "www.url4.com"};           for(string url : urls){             //do each url             //each url loaded once         } 

Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -