JavaScript is required to use Bungie.net

Group Avatar

BungieNetPlatform

"Updates, discussions, and documentation of the BungieNetPlatform API."

Request Join
originally posted in:BungieNetPlatform
4/15/2015 9:43:09 PM
1

Android-specific help request: Downloading the manifest

I have been trying to download the manifest into my Android app and I thought I had it working (I have tasks to download, unzip, and import the database, which all ACT like they work), but when I go to query the database it is always empty. Can I get someone's help who has managed to do this properly? If there is some example code out there that would be lovely, because all I have to contribute is several hours' worth of a way NOT to do it.

Posting in language:

 

Play nice. Take a minute to review our Code of Conduct before submitting your post. Cancel Edit Create Fireteam Post

  • Edited by Phrozen: 5/15/2015 12:47:54 PM
    I can give you some insight perhaps, as i just started working on this same problem this morning. Maybe you're missing a step somewhere (i haven't yet queried the database but i did check that it exists and is filled with data) 1. Connect http://www.bungie.net/platform/destiny/manifest/ 2. download the .content file that you are looking for (it'll be stored in data/data/<appname>/files/fileName) 3. unzip the .content file, but output to where your databases are (and the database you're going to call this one) using getDatabasePath(<databasehelper.class>.MY_DATABASE_NAME_FOR_MANIFEST) will put it into the data/data/<appname>/databases folder 4. open that database 5. profit? The .content file is a zip (1.6mb at least for enWorldContent) uncompressed its 13mb (i believe), i have a rooted phone im using so i can check the data in the dbs. but the unzipped file is a sqlite file which is a database (just by glancing at a made .db file and the .sqlite) there is no magical import ( spent an hour looking )

    Posting in language:

     

    Play nice. Take a minute to review our Code of Conduct before submitting your post. Cancel Edit Create Fireteam Post

You are not allowed to view this content.
;
preload icon
preload icon
preload icon