All Questions
Tagged with android-json android-activity
10 questions
0
votes
1
answer
969
views
How to display different data in other activity in RecyclerView in android using JAVA
For example, I have created one activity in recycler view and gave the contains i.e., name, title and heading and also I have put OnClick Listener in the adapter class. Now I want to implement that ...
0
votes
1
answer
458
views
How do I retrieve data independently from nested JSON objects that are part of the same group in android/java? ( more clarity/details in body)
I have a pretty common scenario, but I am stuck trying to figure out how to retrieve data from certain json objects within the same json response but returning different size of items.
To make it less ...
0
votes
2
answers
255
views
NullPointerException in the Activity
I am getting NullPointerException in the activity where I am using adapter.notifyDataSetChanged();
Basically in the activity i am parsing the data and I am using the adapter of where the data needs ...
0
votes
1
answer
58
views
How to Connect Android Device with web serve using AsyncTask
I have this asynctask.I need to connect device with web server.Need to send a JSON Arry and receive JSON array. Can i use httpUrlConnection ? or httpClient. Does httpClient support latest versions of ...
0
votes
1
answer
324
views
Pass a return value from a method,which is a json array, to android asynctask, doInBackground method as an argument
The JSON array to be passed to the doInBackground is the return value of the following method.
public JSONArray json_encode(){
String[] log_data;
log_data= this.credentials();
...
0
votes
1
answer
24
views
Two fields of assigned integers losing their assigned value after being recalled on other method in android
Hey guys I got a weird bug I have two int: totalPages and totalResults which are initialized in method getFilmographySizeAndPaginationSize() as you can see bellow and and I checked with Log.v() and ...
-1
votes
5
answers
123
views
Exception in saving JSON
I am trying to save the response from server but I am getting exception..
This is the response:
[
{
"MediEazyInvoiceitemsList": [
{
"Id": 1,
"...
0
votes
1
answer
251
views
unterminated character when parsing json in android
I am using the Retrofit package from square to make http request to my server. I get json data from my server that needs to be parsed. The problem I'm having is when the name field has more than one ...
0
votes
4
answers
435
views
How to extract objects from json
I have a scenario where I need only 1 objects out of the entire json.
{"id":"1","first_name":"Steve","last_name":"Holt","user_type":"Teacher","user_key_area":"Math"}
In above I want to extract ...
5
votes
4
answers
2k
views
Create a common object for whole Application
I have created one activity that creates user profile and stores its information like name,id, profile pic etc.
This information is unique and should be use in all activities in application.
I want ...