Testing Location
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Testing Location
Hey, I'm making a location-based app. It's progressing comfortably, and I want to test it on something with actual sensors.
Unfortunately, the emulators do not (I believe) incorporate this feature, meaning I have to do it on a physical device.
However, LiveCode doesn't seem to be able to see my Nexus 5 when it's plugged in in dev mode. Does it have to be 4.0.3 like the emulator? If so, is there a way around this?
And if not, how is that resolved when actually putting apps out to the app store?
Unfortunately, the emulators do not (I believe) incorporate this feature, meaning I have to do it on a physical device.
However, LiveCode doesn't seem to be able to see my Nexus 5 when it's plugged in in dev mode. Does it have to be 4.0.3 like the emulator? If so, is there a way around this?
And if not, how is that resolved when actually putting apps out to the app store?
-
- Posts: 253
- Joined: Wed Aug 19, 2015 4:29 pm
Re: Testing Location
You can compile the app into an APK and "side load" it into your device. One way to do this is to upload your compiled APK to a cloud service like DropBox or Google drive and then install onto your device from there.
Re: Testing Location
I've tried that, and for some reason I get a "Cannot parse this package" error. No idea how to fix this - tried using file managers and all sorts, no luck.
-
- VIP Livecode Opensource Backer
- Posts: 858
- Joined: Wed Jun 24, 2009 1:17 pm
- Contact:
Re: Testing Location
Hi, it sounds like you need to check the settings on your device...
A while ago Panos wrote a really useful blog https://livecode.com/how-to-deploy-apps ... d-devices/ which included Android build error messages - check out error 5...
A while ago Panos wrote a really useful blog https://livecode.com/how-to-deploy-apps ... d-devices/ which included Android build error messages - check out error 5...
5. Parse error : There is a problem parsing the package
This error comes from the Android operating system (OS) when trying to install an app on the device and could be caused by different things. One cause is a corrupted .apk file – an Android Package Kit (APK) file is the file format used for installing software on the Android OS. If you are using LiveCode, however, the .apk cannot be corrupted and so something else must have gone wrong. The most likely cause, if you are using LiveCode, is that a setting on the device prevents the .apk file from being installed.
In order to solve this problem, make sure you have turned on “Allow installation of apps from Unknown Sources” on your device. You can do this by going to the device’s settings menu, selecting “Applications” OR “Security” (on the most recent Android versions) and checking the box of “Unknown Sources” to allow installation of apps from sources other than the Google Play store.
"...this is not the code you are looking for..."
Re: Testing Location
The most recent LC releases require 4.0.3 build tools now; it used to be 2.2. I'd keep both packages installed to be safe. If LC can't see your device then you may not have "USB debugging" turned on in the developer preferences on the phone. If you do have it turned on, and the phone is cabled to your computer, then quit LC and open a terminal window and type:A1Qicks wrote:However, LiveCode doesn't seem to be able to see my Nexus 5 when it's plugged in in dev mode. Does it have to be 4.0.3 like the emulator? If so, is there a way around this?
<path to adb> devices
If adb can't see the device then LiveCode won't see it either. If adb does see it, relaunch LC and see if it appears in the Test Target menu.
That said, I've found that the December Android security update has broken the ability to install a test app directly to the device, even when LC can see the device just fine. I've reported the problem but the team hasn't received the security update yet on any of their phones, so can't track the reason and fix it. I now have to build apps and transfer them manually to the phone, which isn't nearly as convenient.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
Re: Testing Location
Irritatingly, I've been through this on multiple forums looking for an answer, and I have that enabled, and I still get the parsing problem.dave.kilroy wrote: In order to solve this problem, make sure you have turned on “Allow installation of apps from Unknown Sources” on your device. You can do this by going to the device’s settings menu, selecting “Applications” OR “Security” (on the most recent Android versions) and checking the box of “Unknown Sources” to allow installation of apps from sources other than the Google Play store.
Re: Testing Location
It fixed! God knows why, all I did was download a different version of my app and it worked fine. Maybe my phone just needed a restart.
Re: Testing Location
It wasn't a restart.
If anyone else comes across this problem, it fixes if you ensure you have logo and splash, make the minimum Android requirement a 4.0, and sign for development only. No idea which of those fixed it.
If anyone else comes across this problem, it fixes if you ensure you have logo and splash, make the minimum Android requirement a 4.0, and sign for development only. No idea which of those fixed it.
Re: Testing Location
New issue though.
LiveCode's GPS detector/user doesn't like my Nexus 5's location sensor, it seems. Doesn't detect it, can't use it.
Nexus 5 is pretty much a market standard Android. What DOES the LiveCode location detector work with?
LiveCode's GPS detector/user doesn't like my Nexus 5's location sensor, it seems. Doesn't detect it, can't use it.
Nexus 5 is pretty much a market standard Android. What DOES the LiveCode location detector work with?
Re: Testing Location
Going to be trying http://forums.livecode.com/viewtopic.ph ... ble#p97310 as a fix when I'm back at my PC. I have high hopes.