In my application I have a splash activity. In that I download a json string and make a object array list and keep that in the static array. Also in that splash activity I use getActivty().finish() . That mean when from the next activity it can’t navigate to splash activity. I use that static array in several activities. Think if I don’t want to save that array in a db or text file what is the best practice to keep that arraylist?? I saw some place keep that arraylist in singleton class. How I do that ??
@NoughT Yes there is a way, Make a class which will extends Application class. There define two methods one for get and another for set the object arraylist. When you fetch the arraylist in your SplashActivity, you can get that Application reference with SplaceActivity context reference and call that set method and set the arraylist.
@TheLittleNaruto I mean that I want to parse a particular object property in this array but it's the third object in the array and is where the property I want is so when I use the name since they 're all the same it must think I'm trying use the first object so it doesn't work
@TheLittleNaruto Is there a way to do this using Volley? I have code already written I just need to tweak the JsonResponse to get that particular object property.
Hello All, Can you please check this ? http://stackoverflow.com/questions/34555101/android-custom-view-attribute-is-not-applied-if-applied-as-theme-style-from-ma
@TheLittleNaruto Yes it is actually but it is for test purpose only, my question is that if view is affecting if applying style through layout xml file why it is not affecting from Manifest as theme.
Actually I have one library which is using its own attributes, when I tried to apply those from Manifest as style it was not working so I tried to make one sample test to check this behaviour but it is not working in this simple case also.