Click here to Skip to main content
15,881,738 members
Home / Discussions / Android
   

Android

 
QuestionRe: Xamarin WebView please help. Pin
David Crow28-May-18 15:59
David Crow28-May-18 15:59 
QuestionAndroid code obfuscating Pin
AndroidVH21-May-18 23:14
AndroidVH21-May-18 23:14 
SuggestionRe: Android code obfuscating Pin
Jochen Arndt21-May-18 23:54
professionalJochen Arndt21-May-18 23:54 
GeneralRe: Android code obfuscating Pin
AndroidVH22-May-18 2:23
AndroidVH22-May-18 2:23 
GeneralRe: Android code obfuscating Pin
Jochen Arndt22-May-18 2:53
professionalJochen Arndt22-May-18 2:53 
GeneralRe: Android code obfuscating Pin
AndroidVH22-May-18 18:18
AndroidVH22-May-18 18:18 
AnswerRe: Android code obfuscating Pin
David Crow22-May-18 2:28
David Crow22-May-18 2:28 
Questionhow to append new elements in to an array list in android? Pin
rathilesh c20-May-18 0:10
rathilesh c20-May-18 0:10 
i have an array list
Java
lsCategory = new ArrayList<>();
lsCategory.add(new category("fffff","sssssss","ssssddd",R.drawable.thump));
lsCategory.add(new category("ddd","sssssss","ssssddd",R.drawable.thump));

i need to add more elements after my api call responce

Java
public void onResponse(JSONObject response) {
                       try {
                           JSONArray jsonArray = response.getJSONArray("employees");
                           for (int i = 0; i < jsonArray.length();i ++)
                           {
                               JSONObject employee = jsonArray.getJSONObject(i);
                               Integer id = employee.getInt("id");
                               String title = employee.getString("first_name");

                               Object item =  new category("tttt","dynamic","ssssddd",R.drawable.thump);  //adding in to exist list

                               lsCategory.add((category) item);
                           }
                       } catch (JSONException e) {
                           e.printStackTrace();
                       }
                   }


But the item inside the response code not adding in to array list ( lsCategory ) only getting 2 elements which add in top , any solution guys?
QuestionRe: how to append new elements in to an array list in android? Pin
Richard MacCutchan20-May-18 1:23
mveRichard MacCutchan20-May-18 1:23 
AnswerRe: how to append new elements in to an array list in android? Pin
rathilesh c20-May-18 2:04
rathilesh c20-May-18 2:04 
GeneralRe: how to append new elements in to an array list in android? Pin
Richard MacCutchan20-May-18 2:12
mveRichard MacCutchan20-May-18 2:12 
QuestionRe: how to append new elements in to an array list in android? Pin
David Crow21-May-18 7:47
David Crow21-May-18 7:47 
Questione-commerce application and php server Pin
AndroidVH18-May-18 18:14
AndroidVH18-May-18 18:14 
AnswerRe: e-commerce application and php server Pin
Richard MacCutchan18-May-18 21:00
mveRichard MacCutchan18-May-18 21:00 
GeneralRe: e-commerce application and php server Pin
AndroidVH18-May-18 22:43
AndroidVH18-May-18 22:43 
GeneralRe: e-commerce application and php server Pin
Richard MacCutchan18-May-18 22:48
mveRichard MacCutchan18-May-18 22:48 
GeneralRe: e-commerce application and php server Pin
AndroidVH18-May-18 23:32
AndroidVH18-May-18 23:32 
GeneralRe: e-commerce application and php server Pin
Richard MacCutchan18-May-18 23:37
mveRichard MacCutchan18-May-18 23:37 
GeneralRe: e-commerce application and php server Pin
AndroidVH19-May-18 2:30
AndroidVH19-May-18 2:30 
QuestionWhat are the vulnerabilities of utilizing file systems instead of SQLite? Pin
AndroidVH15-May-18 20:05
AndroidVH15-May-18 20:05 
SuggestionRe: What are the vulnerabilities of utilizing file systems instead of SQLite? Pin
Richard MacCutchan15-May-18 21:37
mveRichard MacCutchan15-May-18 21:37 
GeneralRe: What are the vulnerabilities of utilizing file systems instead of SQLite? Pin
AndroidVH15-May-18 23:39
AndroidVH15-May-18 23:39 
GeneralRe: What are the vulnerabilities of utilizing file systems instead of SQLite? Pin
Richard MacCutchan16-May-18 2:58
mveRichard MacCutchan16-May-18 2:58 
GeneralRe: What are the vulnerabilities of utilizing file systems instead of SQLite? Pin
AndroidVH16-May-18 19:40
AndroidVH16-May-18 19:40 
GeneralRe: What are the vulnerabilities of utilizing file systems instead of SQLite? Pin
Richard MacCutchan16-May-18 20:33
mveRichard MacCutchan16-May-18 20:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.