Hi guys,
i have been working on getting data from the Blizzard server using HTTPUtils2 and JSON to decode the information. if i get the information with httputils2 i get the following error:
:sign0085:
Some history about this is in the following thread, but i thought i would start a new thread as this is HTTPUtils2 and JSON:
Capture web data - Forum Thread
the get information was working fine but has now stopped, and i had seen this error before but it went away ???? i dont know why.
I have updated the app to display the various information. I have included some text files with the file extension .json these are the returned data from the web (by copying the URL that is produced in the app and then pasting it into the web browser and copying the text into a text file.
if you look at the image (Select Character.png) you will see some buttons/spinners and a textinput.
to use the .json file you will need to copy them to your device, i did put them in the files directory but on my Nexus 7 they don't seem to copy across and i couldn't find them so i copied into the sdcard directory. just click on the 'Load File' button (labelled 1 in the picture) and select the file you want to load (in the character_info.jpg i had selected missymoomoo.json). this will now load the JSON data and collect the graphics from the blizzard server.
to try to load the JSON files from the web you can either click the 'Auto Populate' button this selects a character called 'sturinde' on the Aszune European server; or you can manually select the zone (US, EU, China, TW and KR - only EU is fully coded for at the moment), then select a realm and then finally type in the name of the character, thus all the items labelled as 2b in the picture should have text in. One this or the auto populate has been used then click the 'Get Character Data' button for the request to be sent - this is where i get the error.
The code is long winded and if i manage to get it working will look at streamlining it.
Any help is appreciated.
Regards
Stu
i have been working on getting data from the Blizzard server using HTTPUtils2 and JSON to decode the information. if i get the information with httputils2 i get the following error:
:sign0085:
:sign0085:An error has occurred in main_get_data(java line:603) org.json.JSONException: End of input at character 0 of Continue?
Some history about this is in the following thread, but i thought i would start a new thread as this is HTTPUtils2 and JSON:
Capture web data - Forum Thread
the get information was working fine but has now stopped, and i had seen this error before but it went away ???? i dont know why.
I have updated the app to display the various information. I have included some text files with the file extension .json these are the returned data from the web (by copying the URL that is produced in the app and then pasting it into the web browser and copying the text into a text file.
if you look at the image (Select Character.png) you will see some buttons/spinners and a textinput.
to use the .json file you will need to copy them to your device, i did put them in the files directory but on my Nexus 7 they don't seem to copy across and i couldn't find them so i copied into the sdcard directory. just click on the 'Load File' button (labelled 1 in the picture) and select the file you want to load (in the character_info.jpg i had selected missymoomoo.json). this will now load the JSON data and collect the graphics from the blizzard server.
to try to load the JSON files from the web you can either click the 'Auto Populate' button this selects a character called 'sturinde' on the Aszune European server; or you can manually select the zone (US, EU, China, TW and KR - only EU is fully coded for at the moment), then select a realm and then finally type in the name of the character, thus all the items labelled as 2b in the picture should have text in. One this or the auto populate has been used then click the 'Get Character Data' button for the request to be sent - this is where i get the error.
The code is long winded and if i manage to get it working will look at streamlining it.
Any help is appreciated.
Regards
Stu