Emulator gray under Test Target - why?

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

Post Reply
WarrenW
Posts: 27
Joined: Tue Oct 02, 2012 4:26 pm

Emulator gray under Test Target - why?

Post by WarrenW » Thu Oct 04, 2012 7:09 pm

Hi everyone,

I have downloaded the trial 5.5.2 Windows version and read the trial will still allow you to test. I have installed the Android SDK 2.2. I have to launch the emulator for it to show in the Test Target menu which it does but it is grayed out. Below are a couple images for reference. Thanks! Warren

Well, I did have pictures but it seems my account does not let me post web pages which had the images for the Img tag on here. Does anyone know how I can post pictures or who to ask to do this?

Thanks!
Attachments
SDK2.jpg
SDK1.jpg

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

Re: Emulator gray under Test Target - why?

Post by jacque » Thu Oct 04, 2012 7:45 pm

In addition to the preferences setup, you need to set up the Android pane for your stack in standalone settings. Is that enabled?
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

WarrenW
Posts: 27
Joined: Tue Oct 02, 2012 4:26 pm

Re: Emulator gray under Test Target - why?

Post by WarrenW » Thu Oct 04, 2012 7:49 pm

Thanks! I read somewhere about the standalone settings. Where do I access that settings screen? It may be right in front of me!

Warren

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

Re: Emulator gray under Test Target - why?

Post by jacque » Thu Oct 04, 2012 8:17 pm

In the File menu. Go to the Android pane and checkmark it to turn it on, then fill out the other settings.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

WarrenW
Posts: 27
Joined: Tue Oct 02, 2012 4:26 pm

Re: Emulator gray under Test Target - why?

Post by WarrenW » Thu Oct 04, 2012 8:44 pm

Okay, I got it enabled. Then it built the app but the emulator screen came up black. It just did the Hello World app. So I read someone changed it to Android 2.3 and it worked fine. So I am installing version 2.3 right now and will try it. I'm just trying to see this work.

Thanks!

Warren

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

Re: Emulator gray under Test Target - why?

Post by jacque » Thu Oct 04, 2012 9:21 pm

RIght, 2.2 has a problem if any of the sensors are enabled in your virtual device. The team helped me solve that at the last conference. If you turn off all the sensors (accelerometer, stuff like that) in the 2.2 emulator it works. But mostly I just test in 2.3 or higher where it isn't a problem.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

WarrenW
Posts: 27
Joined: Tue Oct 02, 2012 4:26 pm

Re: Emulator gray under Test Target - why?

Post by WarrenW » Thu Oct 04, 2012 9:50 pm

I installed Android 2.3 and it is now working. So I'm trying new things out. Wow, the emulator takes forever to load it seems! But so far so good.

Warren

WarrenW
Posts: 27
Joined: Tue Oct 02, 2012 4:26 pm

Re: Emulator gray under Test Target - why?

Post by WarrenW » Thu Oct 04, 2012 9:53 pm

And the controls are so ugly compared to the development screen.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10043
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Emulator gray under Test Target - why?

Post by FourthWorld » Thu Oct 04, 2012 11:24 pm

Yeah, I spent a lot of time getting several emulators running, and all of them suck big time. Completely unusable for practical work.

Far simpler to just blow off emulation altogether and just drop your stacks into the device via Dropbox or whatever (I FTP them to one of my web sites).
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

WarrenW
Posts: 27
Joined: Tue Oct 02, 2012 4:26 pm

Re: Emulator gray under Test Target - why?

Post by WarrenW » Fri Oct 05, 2012 1:19 am

Thanks. I haven't gotten that far yet. I just downloaded the trial today and ran my first little Hello World demo to see it work. I'll look into using my Samsung Galaxy S2 to test it all on.

What i am wondering is say it displays fine on my phone. I would like to see how it will run on another phone with different resolution. Does it resize for other phones? Or goes it look either small or going off the screen? I hope someone says that it will auto-size for other phones.

Thanks,

Warren

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

Re: Emulator gray under Test Target - why?

Post by jacque » Fri Oct 05, 2012 6:21 pm

There is no automatic resizing, you have to script it. Basically you get the screenrect or the working screenrect (which gives you the pixel dimensions of the screen) and then repeat through all your controls and set each rect to a new size based on a ratio for that object. For example, if a field takes up a third of the screen in my base layout, then its ratio is 0.33.

It's tedious but do-able. The resizing should take place in a resizeStack handler, which the engine will trigger on launch on mobile devices.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

WarrenW
Posts: 27
Joined: Tue Oct 02, 2012 4:26 pm

Re: Emulator gray under Test Target - why?

Post by WarrenW » Fri Oct 05, 2012 7:01 pm

Thanks for the info on resizing. It would have been side if this was addressed in the app itself where you have a target size you develop for and then can click a preview size to see what it will look like with the app being resized automatically. That's how I have seen it in another mobile development app.

I'll play with this and see how it goes.

Thanks

Warren

WarrenW
Posts: 27
Joined: Tue Oct 02, 2012 4:26 pm

Re: Emulator gray under Test Target - why?

Post by WarrenW » Fri Oct 05, 2012 7:41 pm

FourthWorld, can you tell me how to test an app on my phone itself? I tried searching and cannot find it. I have an Android Samsung Galaxy S2.

Thanks,

Warren

FourthWorld wrote:Yeah, I spent a lot of time getting several emulators running, and all of them suck big time. Completely unusable for practical work.

Far simpler to just blow off emulation altogether and just drop your stacks into the device via Dropbox or whatever (I FTP them to one of my web sites).

Post Reply