i have a trouble with Json array, and I really hope there is someone can help me.
Lets say I have a class with json data and iam sending "intent putextra" to another activity.
how i can change the value of null before i send it to another activity?
Before we go on, I know what you're thinking. I initialized my object. I believe that it was also initialized in the appropriate method (I tried onCreateView and onResume).
I have two problems.
I know this is a general question, but I don't know where to ask this. I was wondering what is a good design practice: to load data before creating an activity; or to create the activity, load the data and populate the UI.
In my opinion, fetching the data before isn't a good idea since you have to pass the information in a bundle to the next activity.
There can be many activities in application and the last launched activity stay on top of stack and on pressing back it finish the current activity.I have a sequence of Activity and here is the flow ..
if we have A,B,C(1),D,C(2)...
I have an Order Object that contains an ArrayList of MenuItem Objects.
Im getting a 'NullPointerException' when I try and load my intent to a class that handles my listview of the data from my database.
Lately writing some app I've been stopped by one problem.
In this app I have two activities: A and B. In activity A I am downloading list of objects from web each time when GPS coordinates change. To this activity there is connected bound service with GPS and Internet connection call.
Am trying to create and app with one activity but multiple fragment.
I've done my homework; I know all the ways to query an SQLite db from an Activity.
The problem is that all the examples ASSUME that i want to "load" data from the db onto the FIRST Activity screen.
But when my app's FIRST Activity is loaded I DON'T WANT TO GET ANY DATA FROM THE DB; i just want to:
(1) Check if the db file has already been created (if the setup routines have already run).
(2) I