Be a Supporter!

Xml Loading With Android?

  • 209 Views
  • 2 Replies
New Topic Respond to this Topic
Aprime
Aprime
  • Member since: Aug. 15, 2005
  • Offline.
Forum Stats
Member
Level 46
Game Developer
Xml Loading With Android? Mar. 17th, 2013 @ 10:15 AM Reply

I'm doing this University project, we're making Android apps in Flash.

We've decided to load images and text through XML.
The images would also be in an images folder.

Everything works fine when in Flash and as an SWF.

Of course the SWF would only work if those files imported, including the XML and Parser.as would be in the right locations.

When "rendering" the final app installation how does one make sure that the XML, Parser.as and images folder, complete with images, are sent to the phone too so that it works how it would when on the computer?

Is this even possible? Perhaps we're doing something which isn't possible.

Please let me know, thanks!


Fan me up | Twitter l My Website l YouTube (Please Subscribe)

BBS Signature
Mattster
Mattster
  • Member since: Nov. 21, 2007
  • Offline.
Forum Stats
Member
Level 20
Game Developer
Response to Xml Loading With Android? Mar. 17th, 2013 @ 11:02 AM Reply

Parser.as would be included automatically when the project is built since it is code, and doesn't get accessed directly at runtime. The xml/image files however should be added to the project's "Included Files", that way they will get compiled into the apk.

Make sure when loading you use a local path (./images/android.jpg) over a direct path (C:/Users/Desktop)

I haven't built an android app before, but it looks like it is treated just like an AIR app is, so that should work :)

Xml Loading With Android?

Aprime
Aprime
  • Member since: Aug. 15, 2005
  • Offline.
Forum Stats
Member
Level 46
Game Developer
Response to Xml Loading With Android? Mar. 17th, 2013 @ 11:28 AM Reply

At 3/17/13 11:02 AM, Mattster wrote: I haven't built an android app before, but it looks like it is treated just like an AIR app is, so that should work :)

Cheers buddy :)


Fan me up | Twitter l My Website l YouTube (Please Subscribe)

BBS Signature