These forums have been archived and are now read-only.

The new forums are live and can be found at https://forums.eveonline.com/

EVE Technology Lab

 
  • Topic is locked indefinitely.
 

[HELP] Android Character App

First post
Author
Jankos Sabannfuhrer
Pandemic Horde Inc.
Pandemic Horde
#1 - 2015-11-24 17:16:27 UTC
Hello all,

I'm making a small, basic android app wherein you may input your api, and explore a handful of different sets of information regarding your character such as character sheet, assets, wallet journal, skill queue. All stuff that's been done many times before, to practice android development.

As far as I know to, say, request information for a characters skill queue you have to request the information using a pre-set string including it's API key + code. This then returns a long string which I need to parse and convert numerical data into skill names. Is this correct?

It would go:

Click character sheet -> app requests data using stored api -> parse different skills -> translate numerical data to skill names -> store skills into local SQLite DB -> present data to the user.

Is this correct?

I'd really appreciate any help I can get on this, it's my first time delving into APIs and android applications with a database.
Hel O'Ween
Men On A Mission
#2 - 2015-11-24 18:00:15 UTC
Jankos Sabannfuhrer wrote:

It would go:

Click character sheet -> app requests data using stored api -> parse different skills -> translate numerical data to skill names -> store skills into local SQLite DB -> present data to the user.

Is this correct?


Except the "store skills into local SQLite DB", which is quite specific (SQLite), this is correct.

You also wrote
Quote:

This then returns a long string


Well, the "long string" is a XML document. You parse it using the XPath query language. Documentation for the returned XML can be currently found at https://neweden-dev.com/Char/SkillQueue, but should hopefully soon be available at http://eveonline-third-party-documentation.readthedocs.org/en/latest/

EVEWalletAware - an offline wallet manager.

Jankos Sabannfuhrer
Pandemic Horde Inc.
Pandemic Horde
#3 - 2015-11-25 10:51:54 UTC
Great stuff thank you very much! Big smile

I've been doing some labs with JSON so now need to figure out how to do the GET requests, parse, save, present. May have a look to see if there are any open source EVE android apps on github that could give me the GETs.

If anyone know of any or have a sample GET that'd be dandy.

Again thank you very much for your reply.
Hel O'Ween
Men On A Mission
#4 - 2015-11-25 11:14:02 UTC
(Assuming you're referring to the HTTP verb "GET")

POST is the preferred method of transmitting requests to the XML API.

EVEWalletAware - an offline wallet manager.

CCP FoxFour
C C P
C C P Alliance
#5 - 2015-11-26 21:02:03 UTC
Hel O'Ween wrote:
(Assuming you're referring to the HTTP verb "GET")

POST is the preferred method of transmitting requests to the XML API.


Actually... we prefer GET.

@CCP_FoxFour // Technical Designer // Team Tech Co

Third-party developer? Check out the official developers site for dev blogs, resources, and more.