Emulator not displaying My App [SOLVED]

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

morrell
Posts: 84
Joined: Sat Dec 13, 2014 1:12 am

Emulator not displaying My App [SOLVED]

Post by morrell » Tue Dec 23, 2014 1:23 pm

Everything appears to be set up correctly but the emulator fails to display the app. I have no other programs running on my PC and have tested both 2.2 and 2.3.3 and both give the same result where the emulator changes to a black screen for about a second and then reverts back to its original display.

I'm running Windows 7 - 64 bit on a PC
livecode 7.0.0
Installed jdk-8u25-windows-x64
Copied this file https://dl.google.com/android/android-s ... indows.zip from http://forums.livecode.com/viewtopic.ph ... 9&start=15
Ran SDK Manager and installed 2.2 and 2.3.3
Set up SDK as this http://forums.livecode.com/download/fil ... &mode=view with the addition of 2.3.3
In Tools/Manage AVDs
Created 2.2 and 2.3.3 and not sure what device to select but used 3.7" WVGA (480x800 hdpi)
CPU/ABI defaults to ARM (armeabi)
Left everything else as offered but SD Card: size I entered 200
Emulation Options I ticked Snapshot
Launch Options left as default
Starting Android Emulator says 'warning opening audio failed'
The emulator screen then appears OK
Close down AVD and SDK (have tried closing and leaving open but makes no difference)
Open LC and select my test file
Select 'Development' - select 'Test Target' Android emulator 5554 - select 'Test'
Standalone Buider Progress takes quite some time to finish Installing app on target device
Then says 'Launching target device emulator' which results in a black screen for about a second and reverts back to the original display.

Kind regards,

Ruth
Last edited by morrell on Wed Jan 07, 2015 8:43 pm, edited 1 time in total.

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

Re: Emulator not displaying My App

Post by Simon » Tue Dec 23, 2014 6:16 pm

Hi Ruth,
I'd start with a simple "Hello World" app to make sure it isn't something in your code.
Just a single button on a card with
on mouseUp
answer "Hello Ruth"
end mouseUp
If that is running well then we can take a look at your code.

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

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7389
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Emulator not displaying My App

Post by jacque » Tue Dec 23, 2014 8:12 pm

I don't think it's the code, building a standalone doesn't deal with that. There are some known issues with a 2.2 virtual device that cause the black screen you saw. You want to make sure you are building for at least 2.3 or higher. Also, you'll have problems if you haven't downloaded the complete package for the emulator version you are targeting, so make sure all the pieces are there. (You can skip the sample files though, they aren't required.)

Create an AVD for 2.3 (or higher) and delete any 2.2 AVDs you may have. Launch the emulator first, before you launch LiveCode, and open your AVD. It needs to be set up and running, ready to receive the build. After it's running, launch LiveCode and open your stack.

Now try the test. The above ensures that the correct AVD is running; LiveCode will install into the currently open one. Also, as you mentioned in another thread, be sure you've pointed LiveCode's mobile prefs to the right place.

Edit: oops, it wasn't you who hadn't set up prefs. I think you must have done that already, since LC was launching the AVD for you (which is why it took so long to build; starting up a virtual device takes forever.)
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

morrell
Posts: 84
Joined: Sat Dec 13, 2014 1:12 am

Re: Emulator not displaying My App

Post by morrell » Tue Dec 23, 2014 8:58 pm

No joy with the 'Hello Ruth' Simon.
Jaque you wrote: if you haven't downloaded the complete package for the emulator version you are targeting, so make sure all the pieces are there. (You can skip the sample files though, they aren't required.)
I have nothing Emulator wise downloaded other than what was advised by Neil Roger, Livecode Support Team here http://forums.livecode.com/viewtopic.ph ... 9&start=15 which is 'android-sdkr22-windows' version which is the below image together with my preferences settings and nothing else. What else am I missing for the Emulator Jaque and where do I obtain it?

Kind regards,

Ruth
Attachments
preferences.jpg
SDK and Preferences

LCNeil
Livecode Staff Member
Livecode Staff Member
Posts: 1223
Joined: Wed Oct 03, 2012 4:07 pm

Re: Emulator not displaying My App

Post by LCNeil » Tue Dec 23, 2014 9:52 pm

Hi Ruth,

I see you are using LiveCode 7.0.0. Please update to 7.0.1 as there have been quite a few Android fixes in this version and this included support for the latests Android SDK. This means you can install the latest SDK and tools and not rely on AndroidnSDKr22

I would also recommend that you follow the following youtube tutorial which takes you through the Android set up step by step -

https://www.youtube.com/watch?v=83qrKr9bR3M

Keep us posted on how you get on.

Kind Regards,

Neil Roger
--
LiveCode Support Team ~ http://www.livecode.com
--

morrell
Posts: 84
Joined: Sat Dec 13, 2014 1:12 am

Re: Emulator not displaying My App

Post by morrell » Tue Dec 23, 2014 9:59 pm

Thank you Neil.

Can you please give me a link to the latest version because I'm unable to get it from your web site as you already have my email address.

Also do I uninstall the old one or just over install the with the new one?

Regards,

Ruth

LCNeil
Livecode Staff Member
Livecode Staff Member
Posts: 1223
Joined: Wed Oct 03, 2012 4:07 pm

Re: Emulator not displaying My App

Post by LCNeil » Tue Dec 23, 2014 10:07 pm

Hi Ruth,

You should be able to download the latest version from your store account or from our main downloads repository here-

http://downloads.livecode.com/livecode/

Any new version of LiveCode are installed along side any versions on LiveCode that are currently on your system. To avoid confusion between installed versions, I would recommend uninstalling 7.0.0 and only having 7.0.1 on your system.

Kind Regards,

Neil Roger
--
LiveCode Support Team ~ http://www.livecode.com
--

morrell
Posts: 84
Joined: Sat Dec 13, 2014 1:12 am

Re: Emulator not displaying My App

Post by morrell » Wed Dec 24, 2014 12:10 am

Thank you Neil but I get this error on trying to install the latest Community edition update:-

Regards,

Ruth
Attachments
error.jpg

LCNeil
Livecode Staff Member
Livecode Staff Member
Posts: 1223
Joined: Wed Oct 03, 2012 4:07 pm

Re: Emulator not displaying My App

Post by LCNeil » Wed Dec 24, 2014 12:20 am

Hi Ruth,

I just done a quick test download of the installer and it seems to run ok on my machine. This could suggest a corrupt download or similar.

I would recommend downloading the installer direct to your desktop and running it from there. If the error continues to occur, please try an alternative web browser for download.

The following youtube video should also give you some other suggestions if the error continues-

https://www.youtube.com/watch?v=WiOYueQqfDc

Kind Regards,

Neil Roger
--
LiveCode Support Team ~ http://www.livecode.com
--

morrell
Posts: 84
Joined: Sat Dec 13, 2014 1:12 am

Re: Emulator not displaying My App

Post by morrell » Wed Dec 24, 2014 1:01 am

No joy Neil as saved it to desktop with IE and Firefox and both gave same error. Perhaps you could zip it and save it on your server and give me a link in a PM.

I tried the commercial one and that installed OK but obviously it wants a confirmation of purchase.

Regards,

Ruth

LCNeil
Livecode Staff Member
Livecode Staff Member
Posts: 1223
Joined: Wed Oct 03, 2012 4:07 pm

Re: Emulator not displaying My App

Post by LCNeil » Wed Dec 24, 2014 10:03 am

Hi Ruth,

I just double checked the installer and it looks like there is an issue. In haste, I must have automatically downloaded the commercial installer as this is the one I use the most. When I download the community installer, I receive the "not a vaild win32 error"

What seems to be happening is that the installer has not been digitally signed correctly or similar. I've had a quick search for the issue in our bug database, and it looks like there is an entry there which was created on Monday.

http://quality.runrev.com/show_bug.cgi?id=14282

Myself and the team are on our annual Christmas break at the moment so a fix for the issue might not occur until the dev team return to work (first week of Jan). However, I will keep you updated via this post if a fix is available sooner.

A potential workaround for now, is to use LiveCode 7.0.1 RC4 which, although there are a handful of bug present, should tide you over until a fix is available. The bugs in question are-

14227 Saving stack in legacy format causes crash
14220 shell() function has a minimum 0.25 second overhead 14219 HKEY_CURRENT_USER returns emtpy
14203 uniencode / decode broken
14181 Server does not return from hostNameToAddress

Kind Regards,

Neil Roger
--
LiveCode Support Team ~ http://www.livecode.com
--

morrell
Posts: 84
Joined: Sat Dec 13, 2014 1:12 am

Re: Emulator not displaying My App

Post by morrell » Thu Dec 25, 2014 2:24 am

Thank you Neil and the 7.0.1 RC4 has installed OK.

If I use 2.3.3 then nothing has improved in that there is only a screen change lasting about one second and it then reverts back to the start screen and 4.1.2 does the same.

Regards and a Merry Christmas to everyone,

Ruth
Last edited by morrell on Mon Jan 05, 2015 5:51 pm, edited 1 time in total.

LCNeil
Livecode Staff Member
Livecode Staff Member
Posts: 1223
Joined: Wed Oct 03, 2012 4:07 pm

Re: Emulator not displaying My App

Post by LCNeil » Mon Jan 05, 2015 2:41 pm

Hi Ruth,

I hope you had a great christmas.

Just a heads up to let you know the 7.0.1 community installer has been re-uploaded and should work as expected.

Kind Regards,

Neil Roger
--
LiveCode Support Team ~ http://www.livecode.com
--

morrell
Posts: 84
Joined: Sat Dec 13, 2014 1:12 am

Re: Emulator not displaying My App

Post by morrell » Mon Jan 05, 2015 2:47 pm

Thank you very much Neil.

Christmas and New Year was not so good as I have gone down with a nasty virus. However, being able to work on my LC learning curve in bed, at least helped take my mind off it.

Regards,

Ruth

morrell
Posts: 84
Joined: Sat Dec 13, 2014 1:12 am

Re: Emulator not displaying My App

Post by morrell » Mon Jan 05, 2015 6:43 pm

Hello Neil.

The 7.0.1 installed OK.

If I use 2.3.3 there is only a screen change lasting about one second and it then reverts back to the start screen and also 4.1.2 does the same but with a few flickers.

Worst of all when I ran the emulater for my mobile (tried it twice) I received the error below:-

I have reinstalled the old version and the emulator to my mobile works fine.

Regards,

Ruth
Attachments
LC_701_error_.jpg
LC_701_error_.jpg (25.08 KiB) Viewed 10759 times

Post Reply