Skip to main content

All Questions

Tagged with
0 votes
0 answers
260 views

How to parse a Arraylist nested Arraylist nested object from Json in Android studio [duplicate]

[ [ { "description": "", "product": "Apple", "quantity": "2" }, { ...
KaiWei Lee's user avatar
0 votes
1 answer
184 views

How to remove duplicate value from object arraylist and sort

I have one recyclerview where i am appending list with 1 loadmore data my requirement is to do not allow to add duplicate object data in main arraylist and sort array but it's not working. i done some ...
Chirag Patel's user avatar
1 vote
1 answer
41 views

Issue Implementing Parcelable and retriving custom object

I have been trying to implement Parcelable into my custom object in order to send and retrieve it between activities. However, the app crashes when setting the object's values but I do not understand ...
DevGoran's user avatar
0 votes
1 answer
35 views

ArrayList<object> inside ArrayList<anotherObject> inside a class, to send the data in RecyclerView

I have 3 class and 2 of them have ArrayList. Unfortunately, my object with the 2 ArrayList won't work. I use Java in Android Studio First class : Panel : public class Panel { public String ...
Xildrite's user avatar
-2 votes
3 answers
56 views

How to make this Adapter searchable?

This is the Adapter for my List view.. i want to add a Filter or search feature into it. please help me. But i have seen many codes but none has helped me implement it. and i have not seen a adapter ...
Gokul Rajendran's user avatar
0 votes
1 answer
63 views

how to order arraylist of objects by object variable string [duplicate]

obj contains name price date How do I order by date, name or price with ascending and descendeding functionalities? thank you for your time
rn0mandap's user avatar
  • 333
0 votes
2 answers
150 views

ArrayList of custom objects from Firestore added to Spinner

New to all this....I have created the following code: Custom Class Object public class Category { private String documentID; private int id; private String description; private boolean active; ...
Hoopyfrood344's user avatar
0 votes
1 answer
49 views

ListView data displayed in unusal format?

I am practicing this code from head First Android Development. Here , if i click on Drink from first list-view, it take me too 2nd list view where data is showing like com.hfad.starbuzz.Drink@22c6250 ...
Rahat's user avatar
  • 90
1 vote
1 answer
3k views

How to get ArrayList value from a Object ArrayList in java?

I have an ArrayList of Objects. I have added some objects and an ArrayList of Strings to this ArrayList. I can easily get the objects value from it. Now my question is how can I get the whole ...
Ravi's user avatar
  • 319
0 votes
2 answers
38 views

Pass object's info to another activity

I have a ListView that is populated with objects from an ArrayList. When one of the items on the ListView is clicked, a new activity "Contact Info" is opened and displays the details of that contact. ...
Pedro Pinheiro's user avatar
-3 votes
2 answers
135 views

How to send an ArrayList of objects to other activity? [duplicate]

I want to know how to do it to make a listview in second activity Person person = new Person(nome, idade, numero); this.list.add(person); int number= this.list.size(); this....
user10751746's user avatar
0 votes
2 answers
129 views

Use IndexOf within Getter/Setter (mulitdimensional) Arraylist

Framework: Through a onClicklistener on a Recyclerview I am adding Items to a Arraylist. At the end of the day I am using the following three lines to accomblish that: int typeImage = mContext....
mrmeaaan's user avatar
  • 738
0 votes
2 answers
381 views

Obtaining an array of json format question and put them into an array in android studio

The goal here is to retrieve JSON format data from an API, convert the data into an array in android studio. Then to display a random question into a text view and the question will not repeat itself. ...
Zack Cheang Weng Seong's user avatar
1 vote
3 answers
1k views

Converting ArrayList of enums to String

I have the following enums, which can fill an ArrayList: public enum RewardType { POINTS, MONEY, TOKENS, RANDOM; } and public enum OfferType { GIFT, DISCOUNT, LOTTERY; } To convert the ...
G. Rann's user avatar
  • 326
1 vote
0 answers
28 views

How to get the data of a matrix inside an object and visualize them in a RecyclerView?

I'm new to the issue of Android and that question arose, since I do not know how to get the data of an arrangement inside an object This is the data of my web service: {"data":{"categories":[{"id":1,...
Jhosep Bazan's user avatar

15 30 50 per page
1
2 3 4 5 6