Deploy on Android with XML file

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Bernard
Posts: 351
Joined: Sat Apr 08, 2006 10:14 pm

Re: Deploy on Android with XML file

Post by Bernard » Fri Nov 23, 2012 12:12 am

<Clubs>

<Achilles1894 club="Achilles 1894" Adres="M.L. Kingweg 11" Plaats="Assen" Telefoonnummer="0592-315710">

</Clubs>

looks wrong. I don't bother with xml these days, but shouldn't it be like this:

<Clubs>

<Achilles1894 club="Achilles 1894" Adres="M.L. Kingweg 11" Plaats="Assen" Telefoonummer="0592-315710"></Achilles1894>

</Clubs>

eddje16
Posts: 21
Joined: Wed Nov 21, 2012 2:41 pm

Re: Deploy on Android with XML file

Post by eddje16 » Fri Nov 23, 2012 12:25 pm

Hi Bernard,

I think you are right. I changed the XML.

However when I emulate the app, it doesn't give me an error, but crashes when I push the button in the app.

The zip file is available on the previous page, may be someone can look at it again?

Thanks!

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Deploy on Android with XML file

Post by Mark » Fri Nov 23, 2012 12:30 pm

Hi,

When I tested your app on my Android tablet, I made sure that the XML was correct. I even added an XML header. It still crashed.

Kind regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

eddje16
Posts: 21
Joined: Wed Nov 21, 2012 2:41 pm

Re: Deploy on Android with XML file

Post by eddje16 » Fri Nov 23, 2012 12:55 pm

Hi Mark,

Thanks for checking, but it doesnt give me the solution! :(

I also added some screenshots from my standalone settings in the zip file. May be there is something wrong in there?

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Deploy on Android with XML file

Post by Mark » Fri Nov 23, 2012 3:06 pm

Klaus

I'm posting the original link, which doesn't open the Dropbox website.

http://dl.dropbox.com/s/mzgh30s9p91adhk/voetbalnavi.zip

The other guy... your zip file seems corrupt.

Kind regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

eddje16
Posts: 21
Joined: Wed Nov 21, 2012 2:41 pm

Re: Deploy on Android with XML file

Post by eddje16 » Fri Nov 23, 2012 4:52 pm

The other guy thinks you are right! ;)

Try this at the end: xxoxpcx7ixsvwv3 / naviapp.zip

Greets.

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Deploy on Android with XML file

Post by Mark » Fri Nov 23, 2012 6:00 pm

OK...

http://dl.dropbox.com/s/xxoxpcx7ixsvwv3/naviapp.zip

I'm trying and will report back when I know more.

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

eddje16
Posts: 21
Joined: Wed Nov 21, 2012 2:41 pm

Re: Deploy on Android with XML file

Post by eddje16 » Fri Nov 23, 2012 6:12 pm

What a helpfull community. I think I made the right choice to start with LiveCode. :)

eddje16
Posts: 21
Joined: Wed Nov 21, 2012 2:41 pm

Re: Deploy on Android with XML file

Post by eddje16 » Mon Nov 26, 2012 12:37 pm

Bump..

Bernard
Posts: 351
Joined: Sat Apr 08, 2006 10:14 pm

Re: Deploy on Android with XML file

Post by Bernard » Thu Nov 29, 2012 8:40 am

My understanding of this thread, is that others have reproduced your problem with the XML file causing a crash on your Android device.

It may be you need to contact Runrev support about this (it could be a bug if it is reproducible).

However, can I just check. Do you really need to be reading/writing XML? Or would some other format work to save/interact with your data? You do have other options. LiveCode is very good at processing structured textual data (using lines, commas, tabs, or even more obscure ASCII characters). You can also simply store data in a stack file. Or write it to a sqlite database on Android. Or you could store it as a JSON file, and use a JSON reader/writer provided by one of the other LiveCode users.

Bernard

eddje16
Posts: 21
Joined: Wed Nov 21, 2012 2:41 pm

Re: Deploy on Android with XML file

Post by eddje16 » Tue Dec 04, 2012 2:59 pm

Thanks for all the help.

I already made a workaround. I instead used a datagrid which works fine! :D

But still weird that the XML file someway didn't work.

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Deploy on Android with XML file

Post by Mark » Wed Dec 05, 2012 1:31 pm

Hi,

I've tried it one more time with the new stack. It still crashes.

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Post Reply