Questions tagged [android-parser]

112 questions
2
votes
3 answers

How to use WSDL2Code generated files?

I am working towards an android application. I need to use a web service. I have a .NET web service. I generated Java files from WSDL2Code converter, but I don't know how can I use service with these files, because there are no examples. I'm…
bCliks
  • 2,918
  • 7
  • 29
  • 52
2
votes
1 answer

Parsing json directly using input stream

I am doing a api call and in response i am getting json. So for that I want to parse it directly through input stream so that there would not be need of storing it in memory. For this I am trying to use JSONReader but that i am unable use for api's…
Vaibs
  • 1,128
  • 3
  • 16
  • 36
2
votes
1 answer

Robolectric: SAXParser in Android vs SAXParser in Java (robolectric) : difference in localname vs qname

I used to run my unit tests using Android Unit Test but switched to Java Unit Test using Robolectric. I noticed a difference in using the SaxParser DefaultHandler. Basically, the Android sax parser would populate "localName" but when run under…
SpecialEd
  • 473
  • 5
  • 17
1
vote
1 answer

how to parse local xml file in android using dom and saxparser?

how to parse local xml file in android using dom and sax?
Khan
  • 7,585
  • 3
  • 27
  • 44
1
vote
2 answers

Parsing large text file efficiency

Due to simplicity i have a text file with entries separated by ; and parses every line into an object. The problem is that the text file contains almost 10 000 rows. I also need to create keys for each object im parsing so i can filter the results…
Richard
  • 14,427
  • 9
  • 57
  • 85
1
vote
1 answer

To parse with the help of atom parsing

i have to parse this type of xml.. blah..blah...blah blah..blah...blah How can i parse it by atom parsing (root…
zaiff
  • 999
  • 2
  • 13
  • 29
1
vote
0 answers

Jsoup parse triple nested span

I am in stuck with creating cssQuery for Jsoup for parsing html. What I want to parse: ...
1
vote
3 answers

How do I receive live API data updates on Android?

I am working on receiving live API data updates on my android app. I am against polling as it drains battery and not in favor of anything that requires to check data updates manually every 5 mins or so. Is there an easier way to achieve this without…
user11455292
1
vote
1 answer

Parsing JSOUP table

I want to parse a table using jsoup. I have tried to get the flight data but without success! My code is: try { doc = Jsoup.connect("a.html").timeout(13 * 1000).get(); Element table = doc.select("table.arrive-depart-table tbody tr").first(); …
0x00
  • 129
  • 1
  • 13
1
vote
0 answers

Unable to parse image from Json to listview in android

I am trying to parse the images and text from url to list view. I succesfully parse names but unable to parse Images. I follow these links.... I am getting bit map value null in image loader class.. I copied the MemoryCache and File Cache classes…
yamuna
  • 41
  • 1
  • 9
1
vote
2 answers

Parse XML from assets file

I have an xml file in the assets folder that I need to parse. Here is the structure of the xml:
Darko Petkovski
  • 3,892
  • 13
  • 53
  • 117
1
vote
1 answer

Weird parsing issue when changing package name

I have a strange xml parsing issue when changing my app's main package name. After changing it everything goes wrong, I have figured out that the text parsed from web is like junk data. I have checked RSS feed from which I parse data but it works…
Basim Sherif
  • 5,384
  • 7
  • 48
  • 90
1
vote
1 answer

Listview doenst show all item from json

I'm filling a lazy loaded listview with items from a Json and it only shows the first item, without the image, not showing the rest of the items. I'm using AsyncTask to load my items to my listview. Can somebody PLEASE help me solve this…
1
vote
1 answer

Parsing xml android gives a null pointer exception

I am parsing the following XML: 1 Login Successfull 3 hassan
mdanishs
  • 1,996
  • 8
  • 24
  • 50
1
vote
2 answers

Android: Get data from server

I want to develop an application. In which user enter a URL at run time. The XML is placed on server. So how to hit or get the data of that XML, so that i can parse the data and use that. The parsing i know. But how to get data directly i dont…
Manoj Fegde
  • 4,786
  • 15
  • 50
  • 95