"Application non installée" message

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

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
sbouju
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 16
Joined: Sun Aug 05, 2012 10:02 am

"Application non installée" message

Post by sbouju » Mon Aug 20, 2012 11:08 am

I have just tried to code a very very simple application(*) for my Samsung Galaxy Note, not much more complicated than the working "Hello World!" one, and when trying to install it on the phone, I have this "Application non installée" message.

Any idea of what I have wrong done ?

(*) https[DOUBLEDOT][SLASH][SLASH]dl[DOT]dropbox[DOT]com[SLASH]u[SLASH]54229673[SLASH]AndroPointage[DOT]zip

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

Re: "Application non installée" message

Post by jacque » Mon Aug 20, 2012 6:18 pm

Android apps must be in ".apk" format. A zip file won't work. When you build a standalone for Android, LiveCode will create the apk file for you. Move that to your dropbox.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

sbouju
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 16
Joined: Sun Aug 05, 2012 10:02 am

Re: "Application non installée" message

Post by sbouju » Tue Aug 21, 2012 1:54 pm

jacque wrote: A zip file won't work.
Yes, I know, I have put this archive in my dropbox just in case somebody wanted to see... The .zip archive contains both the .apk file I have tried to install on my phone and the .livecode source file I have used to program this little test application.

RobertC
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 46
Joined: Sun Feb 04, 2007 3:43 pm

Re: "Application non installée" message

Post by RobertC » Wed Aug 22, 2012 7:57 pm

I have exactly the same problem on my Galaxy Note GN-T7000 (hereafter called "the device").
The app works fine as installed via the USB link.
Then on my mac I make an .apk stand-alone, connect the device via USB, use the Finder to transfer the .apk file onto the sd card inside the device.
I then disconnect the device, and then navigate to the .apk file using the device's "My Files".
When I click on the apk file I am asked if I want to install the app.
I confirm, the device says "Installing" and shows a green progress bar but after a short interval returns the message "app not installed".
I did verify the stand-alone settings:
settings.jpg
but cannot see anything wrong there.
Any hint appreciated.

Robert.
The Old Rant Robert.

JacobS
Posts: 58
Joined: Mon Aug 20, 2012 8:41 pm

Re: "Application non installée" message

Post by JacobS » Wed Aug 22, 2012 9:38 pm

Hey Robert,

In your Standalone Settings, you have it set to "Do Not Sign" for the Signing option box.The app won't be installed unless you sign it with a valid Signing Key.

There is a Livecode Lesson that shows you how to make a key if you don't know how.

Hope this helps.
Jacob

sbouju
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 16
Joined: Sun Aug 05, 2012 10:02 am

Re: "Application non installée" message

Post by sbouju » Wed Aug 22, 2012 10:07 pm

JacobS wrote: In your Standalone Settings, you have it set to "Do Not Sign" for the Signing option box...
That gave me a solution too: in my case, all is working fine now if I set it to "Sign for development only" (and not with "Sign with my key", which was set...)

RobertC
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 46
Joined: Sun Feb 04, 2007 3:43 pm

Re: "Application non installée" message

Post by RobertC » Thu Aug 23, 2012 10:01 am

Yes:

(1) using "sign for development only" does work,

(2) using "sign with my key" after using keytool is also fine. The keystore file (I am on OSX) is put at the top of your home directory (unless, I guess, you "cd" to some other location)

I know these are newbie questions and solutions, but they also prove that the sequence of steps to be followed is not so obvious.

My goal is to be able to write my own apps while remaining totally independent of Google and/or Apple. That seems impossible with Apple, and is probably going to be difficult with Google.
But thanks to JacobS, Jacque and others, I have now been able to install an apk without going through their store.
Apps from the store, including free ones, are very annoying: I just wrote a very simple Compass, because the ones I found on the store require all sorts of permissions that I am not willing to give (like access to my phone number). A compass needs absolutely NO permissions and any such app that does should by definition be suspect , whether it comes from the store or not!

For info, here is the code of Compass:


on openstack
  mobileStartTrackingSensor "heading"
  IndicateNorth
end openstack

command IndicateNorth
  put round( mobileSensorReading("heading",false), 0) into lHDG
  put lHDG into field "Heading"
  put (lHDG+90)*pi/180 into lRadians
  put 400 into x0; put 600 into y0; put 300 into NeedleLength
  put round( (NeedleLength*cos(lRadians)+x0),0 ) &comma& round( (y0-NeedleLength*sin(lRadians)),0 ) &CR& x0 &comma& y0 into lPoints
  set the points of graphic "Needle" to lPoints
  send IndicateNorth to this stack in 200 milliseconds
end IndicateNorth

(that is for a Galaxy Note GN-T7000 which has a 800x1280 screen, hence the valuese of x0 and y0.)

VERY basic, I agree, but I don't need more than that and the security of knowing none of my private info is going anywhere.
:)

Robert.
The Old Rant Robert.

Post Reply