Android deployment with SQLITE db

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

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
karamell
Posts: 5
Joined: Sat Jan 18, 2014 12:18 pm

Android deployment with SQLITE db

Post by karamell » Sat Jan 18, 2014 12:41 pm

Hello all,

I am trying to deploy the example trivial example (HelloWordl) and the SQLITE found on LC website on android emulator.
Thereafter the config I use :
Platform : Linux SMP X64 on elementary OS
LC Community 6.5
Java : Open JDK 7 Runtime
Android SDK : 22.3

Whenever SQLITE is selected in "standalone application setting", the process of testing the app brings up a black screen on the emulated device whatever the version of android is ( 2.2, 2.3, 2.3.3...)
Could someone help with this issue ?
Many thanks.

vedus
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 153
Joined: Tue Feb 26, 2013 9:23 am

Re: Android deployment with SQLITE db

Post by vedus » Sat Jan 18, 2014 12:48 pm

When i use 2.3 versions the emulator is no working right. (most blank screen's)
I use from version 3 and above in the emulator.
try different version above 3

karamell
Posts: 5
Joined: Sat Jan 18, 2014 12:18 pm

Re: Android deployment with SQLITE db

Post by karamell » Sat Jan 18, 2014 1:21 pm

Thank you for help.
I just tried :
EMulator running : Android 4.4.2 ARM
And Compiled LC example with Standaelone settings "Required Minimum android Version : 3.1"

I still get a blank screen ....

It seems to be really SQLITE embedding within APK generated by LC related...

vedus
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 153
Joined: Tue Feb 26, 2013 9:23 am

Re: Android deployment with SQLITE db

Post by vedus » Sat Jan 18, 2014 4:40 pm

i am using mac and just i test my app for ios i have make.
i use this settings bellow
i have include the file in the "copy files" .sqlite
i have sign as "sign for development only"
i have check the sqlite checkbox
and minimum android version deploy.2.3.3
and in the emulator
android 4.2.2 api lvl 17
ram 1024
internal storage 200
and is working ok..

karamell
Posts: 5
Joined: Sat Jan 18, 2014 12:18 pm

Re: Android deployment with SQLITE db

Post by karamell » Sat Jan 18, 2014 6:11 pm

I am running linux as development environment.
The file that I use is Sqlite_Example.livecode
I tried both on emulated device (AVD same as yours) and real device (Galaxy Tab 3 GT P5210)... and same config for compiling, I still get the same problem: Black screen.

Maybe a GURU might help ??
Thx

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Android deployment with SQLITE db

Post by Simon » Sun Jan 19, 2014 2:21 am

Hi karamell,
You didn't say that you included;
vedus wrote: i have include the file in the "copy files" .sqlite
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

karamell
Posts: 5
Joined: Sat Jan 18, 2014 12:18 pm

Re: Android deployment with SQLITE db

Post by karamell » Sun Jan 19, 2014 9:00 am

Sorry... where can I find this file ".sqlite" ?
is it the database itself? (i.e. revdatabase.sqlite ). If yes, then I did it... not working :-(

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Android deployment with SQLITE db

Post by Simon » Sun Jan 19, 2014 9:26 am

Hi karamell,
Sorry the sample creates one when you hit "connect to database".
Using the stock (unchanged) Sqlite_Example.livecode it's running fine here for me on mobile.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

karamell
Posts: 5
Joined: Sat Jan 18, 2014 12:18 pm

Re: Android deployment with SQLITE db

Post by karamell » Sun Jan 19, 2014 12:55 pm

Hi,
Somehow, It seems to be Linux related (maybe OpenJava?) as indeed it works under windows 7.

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Android deployment with SQLITE db

Post by Klaus » Sun Jan 19, 2014 2:17 pm

HI karamell,

can you eventually narrow down the problem?

1. Does the app start at all?
2. When exactly does the screen turn black?
When opening that app?
When trying to connect to the database?
When trying to get/write data from/to database?

Remember that the db file will end in -> specialfolderpath("engine")
when you use the "Copy files" tab in the standalone builder and you do
NOT have WRITE permissions in the ENGINE folder!


Best

Klaus

Post Reply