Muhammad Zeshan

 Android Era with Kotlin and Java

Important: Read dos and don'ts here: androidera.github.io . Ma...
May 22, 2015 17:40
???
May 22, 2015 17:40
any one here please help me with json parsing
May 22, 2015 17:39
hi
 

Java

Dedicated to the discussion of the Java programming language a...
May 8, 2015 17:52
just to know how to remove duplicate items from list
May 8, 2015 17:51
No I am android devloper beginner
May 8, 2015 17:50
ok
May 8, 2015 17:50
can you explain were I add this line
May 8, 2015 17:50
can you explain were I add this line
May 8, 2015 17:49
private List<Product> prepareProducerData(List<ServerBeerFeeds> data){
int s = 0;
List<Product> pem = new ArrayList<Product>();
for (ServerBeerFeeds b:data) {
if (b.products!=null&&b.products.size()>0) {
for (int i = 0; i < b.products.size(); i++) {
/*Set<String> subtitles = new HashSet<String>();
for (Iterator<Product> it = b.products.iterator(); it.hasNext();)
if (!subtitles.add(it.next().producer)){
it.remove();
}*/
pem.add(b.products.get(i));
}
}

}
return pem;
}
May 8, 2015 17:49
Here is my code
May 8, 2015 17:49
you see my code
May 8, 2015 17:49
yes exactly
May 8, 2015 17:46
what is oldListofStuff????????
May 8, 2015 17:44
Sorry for that I have no idea how to do it
May 8, 2015 17:44
and what is in place of oldListofStuff
May 8, 2015 17:44
@kylar Where I put this line List<Product> noDupes = new ArrayList<Product>(new HashSet<Product>(oldListOfStuff));
May 8, 2015 17:43
@kyla
May 8, 2015 17:19
But I want List<Product> with no duplication
May 8, 2015 17:15
Here is the List<Product> which returns with duplication
May 8, 2015 17:14
yes
May 8, 2015 17:13
I am stuck here around two days
May 8, 2015 17:13
I want to remove duplicate items in listview
May 8, 2015 17:13
private List<Product> prepareProducerData(List<ServerBeerFeeds> data){
int s = 0;
List<Product> pem = new ArrayList<Product>();
for (ServerBeerFeeds b:data) {
if (b.products!=null&&b.products.size()>0) {
for (int i = 0; i < b.products.size(); i++) {
/*Set<String> subtitles = new HashSet<String>();
for (Iterator<Product> it = b.products.iterator(); it.hasNext();)
if (!subtitles.add(it.next().producer)){
it.remove();
}*/
pem.add(b.products.get(i));
}
}

}
return pem;
}
May 8, 2015 17:13
Hers is my code
May 8, 2015 17:13
yes
May 8, 2015 17:12
Yes
May 8, 2015 17:12
can you sort this?
May 8, 2015 17:11
I want a little help regarding android listview duplication items
May 8, 2015 17:11
:)
May 8, 2015 17:10
?
May 8, 2015 17:10
anyone have experience of that
May 8, 2015 17:10
I need some help regarding duplication of listivew items?
May 8, 2015 17:10
Hi @everyone
 

[iOS][Android][ChaosOverFlow]

Join to become part of the community, not to simply ask questi...
Jan 11, 2015 10:15
Ok thanks
Jan 11, 2015 10:14
and same as wifi right but can you give me an example
Jan 11, 2015 10:13
Just when user select never option from popup images are not visible in list view that's it
Jan 11, 2015 10:12
Popup is implemented as well
Jan 11, 2015 10:12
Downloaded code I write
Jan 11, 2015 10:12
I think the option user select should store in user preferences but I am unable to sshow image loading or only wifi option
Jan 11, 2015 10:11
I have 1 year experience in Android
Jan 11, 2015 10:08
got it or not?
Jan 11, 2015 10:08
Now I have 3 option in popup like enable image loading ALways , Wifi only, Never
Jan 11, 2015 10:07
for example I have an app which is data is loading from server in listview with images
Jan 11, 2015 10:03
How to achieve function like image loading wifi only or alwasy and never option like here is screen shot
Jan 11, 2015 10:00
hi @DhavalGondaliya
Jan 11, 2015 09:59
There?
Jan 11, 2015 09:58
I need some help regarding android
Jan 11, 2015 09:58
@Shubhank
Jan 11, 2015 09:57
hi