Questions tagged [android-parser]
112 questions
0
votes
1 answer
Android update user have parse.com
I have user with score 5. after i want update with user with score 6. Can you help me.
ParseUser user = ParseUser.getCurrentUser();
if (user == null){
return;
}
if (userName.equals(user.getUsername())) {
…

Nhu Van
- 111
- 8
0
votes
2 answers
How to parse JSON with Retrofit
I have problem with parsing Json in Retrofit.
My URL: http://192.168.0.102:8000/api/get_services?keyword=someword
Someword here is the word which user writes in dialog window.
I need only
coords
address
company_name
Here I have null in coords. I…

Nurzhan Nogerbek
- 4,806
- 16
- 87
- 193
0
votes
2 answers
Parse double value and set in TextView
For parse data I use retrofit (gson) library. I have problems with parsing double value 'position'. The full JSON you can see here below. I parse String array 'words' great but with double value I have nothing in TextView. Can anyone say what…

Nurzhan Nogerbek
- 4,806
- 16
- 87
- 193
0
votes
2 answers
jsoup not working correctly inside asynctask with multiple if statements
I am making an app to fetch some html from url, using JSOUP. Parsing from single url works correctly but whenever I used more than one urls it doesn't work.
This is my code:
public class Test extends AsyncTask {
String…

shine_joseph
- 2,922
- 4
- 22
- 44
0
votes
1 answer
Android get Wrong result using Json Post data
in this simple code i'm sending username and password to server. if those are correct i must be get this result :
{"code":"1","credit":100000,"number":["500000072207"]}
but i get:
10-02 14:16:52.280 2299-2318/com.ms.app.ms E/Content﹕…
user4001049
0
votes
0 answers
Asp.Net services doesn't return response message when I request more than 4 times in android
I am making android application and I am parsing data from Asp.NET services and When I call service more than 4 times it doesn't return response, I didn't get data from it and after waiting about 10 minutes services working and I can get data from…

ridvan
- 123
- 1
- 9
0
votes
1 answer
DOMParser for android
Im leaning how to use DOm parser for android well I use the Servivce of example androidHive.com
"http://api.androidhive.info/pizza/?format=xml"
Im using URLCOnnection to connect to a server which it has a username and password to connect but it …

kura
- 45
- 1
- 6
0
votes
1 answer
String cannot be converted to JSON Object
When I am fetching data from local database, I am getting value in a Json object and its converting it into String and the result can be seen in local server.
But..when i am executing the same code on the live database, the data cannot be converted…

Ashutosh
- 125
- 1
- 11
0
votes
2 answers
can't return data from inner asynctask class to outer class
Hi friends I know there is a bunch of questions about this topic but I can not get any result from them. i am parsing xml data with my ClassIsInternalParser extends default handler. I use this class in my activity in an inner class PostAsync…

Engin
- 5
- 3
0
votes
2 answers
JSON Parser using asynctask with progress bar
JSON Parser using asynctask with progress bar. What is the right way to do this?
I applied and adapted what I read from tuts, but it returns null when returning data from the downloadTask
Here is my downloadTask task:
private class DownloadTask…

Lendl Leyba
- 2,287
- 3
- 34
- 49
0
votes
1 answer
Caused by: com.google.gson.TokenMgrError: Lexical error at line 1, column 1. Encountered: "<" (60), after : ""
In my android application I am facing a very strange error and cannot get into root of it. I making a network call and parsing the JSON response. But the application crashes and I receive the following error.
It occurs randomly and unable to…
0
votes
0 answers
How to get subscription expiry date in android?
I am trying to get subscription expiry date using purchase status API (https://www.googleapis.com/androidpublisher/v1.1/applications/packageName/subscriptions/subscriptionId/purchases/token) but getting below response.May I know what is the correct…
0
votes
1 answer
how to pass an integer value using number type Edittext?
Shows error while parsing.
I just want to pass the integer value obtained by user.
But it shows error while parsing.
So Moreover rectify the issue that how to accept the integer value from user and how do i pass it in Integer format.
Coding:
String…

Shubhankar
- 95
- 1
- 14
0
votes
1 answer
entity.getContentLength() returns -1
I got BufferedReader object is blank, When I debug my code i found that actually the HttpEntity object is also seems like empty.
Here is my part of code:
// Making HTTP request
try {
// defaultHttpClient
DefaultHttpClient…

Rohit
- 687
- 5
- 22
0
votes
3 answers
How do I use AsyncTask on a parser?
I have been reading this tutorial and came across the problem that it uses a very low api. I got the NetworkOnMainThreadException. I found this answer on stackoverflow which says I have to use AsyncTask.
I have tried using AsyncTask on an empty…

Shishi
- 601
- 2
- 8
- 27