Page 1 of 1

Android Testing: Emulator? Works! Physical device? No!

Posted: Sun Nov 23, 2014 7:48 pm
by JereMiami
After getting my program to deploy on the android emulator, I cannot figure out why I don't get my Galaxy S5 as an option to test (it's plugged in prior to opening LC). I have the sneaking suspicion that it is because I get this message when trying to install the USB driver: "Windows could not find driver software for your device." This is after I select the "usb_driver" folder downloaded from Google and trying to update the phone's driver.

I have already set the phone to "USB deugging," so it's not that.

Must my phone be rooted? Is this "USB driver" on my phone already? How else can I get this driver on my phone?
:shock: :shock: :shock:
Halp!

++++++ UPDATE +++++++++

I have gotten a bit further on deployment to the physical device. It now gets to "Installing app on target device"

I cannot figure out why it's stalling like this.

Re: Android Testing: Emulator? Works! Physical device? No

Posted: Mon Nov 24, 2014 4:36 am
by Simon
Hi JereMiami,
Have you tried emailing an apk to your device?
You can install apps from the email.


Simon

Re: Android Testing: Emulator? Works! Physical device? No

Posted: Mon Nov 24, 2014 8:43 am
by SparkOut
Make sure the simulator and adb.exe (if Windows) are not running (end process in task manager)before you plug the phone in. Fully restart Livecode and see if the phone consistently shows as a target.
Make sure any previously installed or partially installed versions are removed from the phone before trying to deploy the new test. Good luck

Re: Android Testing: Emulator? Works! Physical device? No

Posted: Tue Nov 25, 2014 5:42 pm
by anabolicMike
Oh...so what I should do is instead of using the emulator is purchase a phone! Thats what i shall do!

Re: Android Testing: Emulator? Works! Physical device? No

Posted: Tue Nov 25, 2014 8:18 pm
by SparkOut
You said you have tested it on the emulator successfully, but when you tried on a physical phone it failed? I have had problems with having both the emulator running and the phone connected at the same time. So you could try the phone having made sure the emulator (and adb.exe) are not running while you test the phone to check the emulator does not interfere.

Re: Android Testing: Emulator? Works! Physical device? No

Posted: Mon Dec 01, 2014 5:00 pm
by MaxV
Passage to install on a physical device:
  1. Create the standalone version for android of you software
  2. You obtained an APK file
  3. Copy the APK file inside the phone/tablet
  4. disconnect you phone from the PC
  5. open the APK on your phone using the phone file browser
  6. the phone intallator program will start automatically

Re: Android Testing: Emulator? Works! Physical device? No

Posted: Mon Dec 08, 2014 12:31 pm
by JereMiami
Well done. Got it to work! Thanks so much for your help everyone!!!

Re: Android Testing: Emulator? Works! Physical device? No

Posted: Tue Jan 06, 2015 7:11 am
by maxs
I downloaded the android-sdk-macosx files, but the Android SDK button in preferences did not accept it. Did I download the wrong files?


Do I need to set up an account in the Google Play and Amazon Kindle store if I have a paid app? Where do I go?

Re: Android Testing: Emulator? Works! Physical device? No

Posted: Tue Jan 06, 2015 8:12 pm
by jacque
maxs wrote:I downloaded the android-sdk-macosx files, but the Android SDK button in preferences did not accept it. Did I download the wrong files?
Be sure to choose the base folder. I've put my SDK into a folder named "Developer" so my path looks like this:
/Developer/android-sdk-macosx
Do I need to set up an account in the Google Play and Amazon Kindle store if I have a paid app? Where do I go?
If you want to distribute through either online store then you'll need an account for each one. You don't need accounts just to test your app locally. If you will distribute your app privately, then you don't need an account anywhere but most people don't trust privately-distributed apps because of the malware threat.

The Amazon developer portal is here: https://developer.amazon.com/home.html
The Google Play portal is here: https://play.google.com/apps/publish/

Re: Android Testing: Emulator? Works! Physical device? No

Posted: Wed Jan 07, 2015 12:08 am
by maxs
Not working. I believe this folder does not have SDK files. Android studio does not work on the mac. It says I need to install SDK tools.

Mac/Linux: Open a terminal and navigate to the tools/ directory in the Android SDK, then execute android sdk.

What does this mean? I opened a terminal and I didn't know what to do. Max

Re: Android Testing: Emulator? Works! Physical device? No

Posted: Wed Jan 07, 2015 11:55 am
by MaxV
Read here: https://spring.io/guides/gs/android/
You can create virtual devices also graphically launching Android SDK and go to Tools -> Manage AVDs
Image