Click here to Skip to main content
15,792,551 members
Home / Discussions / Android
   

Android

 
QuestionRe: Xamarin WebView please help. Pin
David Crow28-May-18 16:59
David Crow28-May-18 16:59 
QuestionAndroid code obfuscating Pin
AndroidVH22-May-18 0:14
AndroidVH22-May-18 0:14 
SuggestionRe: Android code obfuscating Pin
Jochen Arndt22-May-18 0:54
professionalJochen Arndt22-May-18 0:54 
GeneralRe: Android code obfuscating Pin
AndroidVH22-May-18 3:23
AndroidVH22-May-18 3:23 
GeneralRe: Android code obfuscating Pin
Jochen Arndt22-May-18 3:53
professionalJochen Arndt22-May-18 3:53 
GeneralRe: Android code obfuscating Pin
AndroidVH22-May-18 19:18
AndroidVH22-May-18 19:18 
AnswerRe: Android code obfuscating Pin
David Crow22-May-18 3:28
David Crow22-May-18 3:28 
Questionhow to append new elements in to an array list in android? Pin
rathilesh c20-May-18 1:10
rathilesh c20-May-18 1: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 2:23
mveRichard MacCutchan20-May-18 2:23 
AnswerRe: how to append new elements in to an array list in android? Pin
rathilesh c20-May-18 3:04
rathilesh c20-May-18 3:04 
GeneralRe: how to append new elements in to an array list in android? Pin
Richard MacCutchan20-May-18 3:12
mveRichard MacCutchan20-May-18 3:12 
QuestionRe: how to append new elements in to an array list in android? Pin
David Crow21-May-18 8:47
David Crow21-May-18 8:47 
Questione-commerce application and php server Pin
AndroidVH18-May-18 19:14
AndroidVH18-May-18 19:14 
AnswerRe: e-commerce application and php server Pin
Richard MacCutchan18-May-18 22:00
mveRichard MacCutchan18-May-18 22:00 
GeneralRe: e-commerce application and php server Pin
AndroidVH18-May-18 23:43
AndroidVH18-May-18 23:43 
GeneralRe: e-commerce application and php server Pin
Richard MacCutchan18-May-18 23:48
mveRichard MacCutchan18-May-18 23:48 
GeneralRe: e-commerce application and php server Pin
AndroidVH19-May-18 0:32
AndroidVH19-May-18 0:32 
GeneralRe: e-commerce application and php server Pin
Richard MacCutchan19-May-18 0:37
mveRichard MacCutchan19-May-18 0:37 
GeneralRe: e-commerce application and php server Pin
AndroidVH19-May-18 3:30
AndroidVH19-May-18 3:30 
QuestionWhat are the vulnerabilities of utilizing file systems instead of SQLite? Pin
AndroidVH15-May-18 21:05
AndroidVH15-May-18 21:05 
SuggestionRe: What are the vulnerabilities of utilizing file systems instead of SQLite? Pin
Richard MacCutchan15-May-18 22:37
mveRichard MacCutchan15-May-18 22:37 
GeneralRe: What are the vulnerabilities of utilizing file systems instead of SQLite? Pin
AndroidVH16-May-18 0:39
AndroidVH16-May-18 0:39 
GeneralRe: What are the vulnerabilities of utilizing file systems instead of SQLite? Pin
Richard MacCutchan16-May-18 3:58
mveRichard MacCutchan16-May-18 3:58 
GeneralRe: What are the vulnerabilities of utilizing file systems instead of SQLite? Pin
AndroidVH16-May-18 20:40
AndroidVH16-May-18 20:40 
GeneralRe: What are the vulnerabilities of utilizing file systems instead of SQLite? Pin
Richard MacCutchan16-May-18 21:33
mveRichard MacCutchan16-May-18 21: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.