Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4android > Basic4android Getting started & Tutorials
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Basic4android Getting started & Tutorials Android development starts here. Please do not post questions in this sub-forum.

Signing your application before uploading to Android market

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-05-2010, 07:54 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,689
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default Signing your application before uploading to Android market

The result of compiling your application is an APK file. This is a package file that contains the compiled source code and the assets files.
The APK file must be signed before installation. Signing the file means that it is not possible to later modify it without the private key that was used to sign the file.
Android devices will not install an unsigned APK file.

Basic4android uses a default "debug key" to sign applications. This key is fine during debugging. However Android market doesn't accept APK files signed with this key.
You need to create your own private key.
Fortunately it is pretty simple to create such key.
Choose Tools - Private Sign Key



This dialog allows you to create a new key, load an existing one or to use the debug key.
Keys are stored in a keystore file.
It is not possible to access such a file without its password.

Once you created a new keystore file, Basic4android will use this key for all your projects.
You should be very careful with this file. If this file gets lost you will not be able to update your applications in the market. You will need to publish updates as new applications.
It is impossible to recreate a lost keystore file.
Therefore it is recommended to backup this file.

In the IDE, when you reinstall an application and use a different key, you will see this message:


Pressing yes will uninstall the previous application and install the new one.
Reply With Quote
  #2 (permalink)  
Old 12-09-2010, 07:28 AM
GeoTrail's Avatar
Junior Member
 
Join Date: Apr 2007
Location: Bergen, Norway
Posts: 45
Default

I tried compiling a small app to test.
It worked great on the emulator, but when I ran it on my phone, it just displayed a black screen with the title I added.

And when I tried uploading it to the Market Place, I got errors like, missing icons and stuff. Can't remember them all now, I'm at work and can't install it here.
Reply With Quote
  #3 (permalink)  
Old 12-09-2010, 08:24 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,689
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

You will need to add some more information. It will be better to open a new thread for this here: Basic4android Updates and Questions - Basic4ppc / Basic4android - Android programming
Reply With Quote
  #4 (permalink)  
Old 12-09-2010, 08:28 AM
GeoTrail's Avatar
Junior Member
 
Join Date: Apr 2007
Location: Bergen, Norway
Posts: 45
Default

Yeah I figured that. But I'm not sure exactly what to fill in, or how to add the icon. The manifest isn't supposed to be uploaded?

Sorry about posting in the wrong place.
You just reminded me of the problem I had when I read your post here.
Reply With Quote
  #5 (permalink)  
Old 12-09-2010, 08:36 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,689
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

The manifest is included in the APK file. There is a field in the market upload form for uploading an image as an icon.
Reply With Quote
  #6 (permalink)  
Old 07-18-2011, 08:01 PM
Basic4ppc Veteran
 
Join Date: Feb 2011
Posts: 241
Default

Excuse me for asking a silly question but with a previous version of B4A I had to manually sign my apk files with my key if not using one generated by b4A.

I tried with the new version (1.6) loading my keystore in and this time get no warnings during compile, does this mean it has changed and can now use a non b4a generated key?

Dave
Reply With Quote
  #7 (permalink)  
Old 07-19-2011, 06:52 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,689
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Quote:
I tried with the new version (1.6) loading my keystore in and this time get no warnings during compile, does this mean it has changed and can now use a non b4a generated key?
No. Nothing has changed in v1.6 related to signing keys.
Reply With Quote
  #8 (permalink)  
Old 07-28-2011, 12:43 AM
Newbie
 
Join Date: Jul 2011
Posts: 2
Default What is this "file" in the sign dialog?

Please help: what is this file to be filled in the "private sign key" dialog? (first message) where can I find it?

Last edited by demasi : 07-28-2011 at 01:06 AM.
Reply With Quote
  #9 (permalink)  
Old 07-28-2011, 06:43 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,689
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

The key is saved in this file. You should choose the saving location.
Reply With Quote
  #10 (permalink)  
Old 08-15-2011, 01:34 AM
Newbie
 
Join Date: Aug 2011
Posts: 2
Default Problems creating new key.

Hi,
I'm truing to create a new keystore file but I keep getting this Invalid file message.

I put in my name, organization, country, and password, And when I hit ok i get this message saying Invalid file.
Should i chose a file in the file field, even though I want to create a new keystore file?

thanks!
rafael
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error when signing? susu Basic4android Updates and Questions 11 11-25-2011 03:11 AM
Android me1... linum Chit Chat 4 06-16-2010 07:12 PM
Market your Basic4ppc programs using a Slide Show. pdablue Share Your Creations 0 06-15-2009 11:30 AM
problem with uploading file to ftp on device! Byak@ Questions (Windows Mobile) 3 12-03-2008 02:46 PM
How to market Windows Mobile games stevefan Chit Chat 3 07-30-2008 03:40 PM


All times are GMT. The time now is 10:23 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0