Click here to Skip to main content
14,638,532 members
Home » Discussions » Android
   

Android

 
QuestionRe: Xamarin WebView please help. Pin
David Crow28-May-18 15:59
MemberDavid Crow28-May-18 15:59 
QuestionAndroid code obfuscating Pin
AndroidVH21-May-18 23:14
MemberAndroidVH21-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
MemberAndroidVH22-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
MemberAndroidVH22-May-18 18:18 
AnswerRe: Android code obfuscating Pin
David Crow22-May-18 2:28
MemberDavid Crow22-May-18 2:28 
Questionhow to append new elements in to an array list in android? Pin
rathilesh c20-May-18 0:10
Memberrathilesh c20-May-18 0:10 
i have an array list
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

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
Memberrathilesh 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 
GeneralMessage Closed Pin
11-Jun-18 12:28
MemberLucifer rick11-Jun-18 12:28 
GeneralMessage Closed Pin
11-Jun-18 12:31
MemberLucifer rick11-Jun-18 12:31 
QuestionRe: how to append new elements in to an array list in android? Pin
David Crow21-May-18 7:47
MemberDavid Crow21-May-18 7:47 
Questione-commerce application and php server Pin
AndroidVH18-May-18 18:14
MemberAndroidVH18-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
MemberAndroidVH18-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
MemberAndroidVH18-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
MemberAndroidVH19-May-18 2:30 
QuestionWhat are the vulnerabilities of utilizing file systems instead of SQLite? Pin
AndroidVH15-May-18 20:05
MemberAndroidVH15-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
MemberAndroidVH15-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 

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.