[android-developers] Re: Build APK file from command line...

2009-09-30 Thread Babyboo
I have tried to write this command line to generate the unsigned apk : apkbuilder.bat %UNSIGNED_FILE_NAME% -u -z %RESOURCE_FOLDER%bin \resources.ap_ -f %RESOURCE_FOLDER%bin\classes.dex -rf %RESOURCE_FOLDER% but an Exception has occured with this message : [ java.util.zip.ZipException: duplicate

[android-developers] Re: Build APK file from command line...

2009-09-30 Thread Xavier Ducrohet
You don't want to do -rf RESOURCE_FOLDER, as it'll take any file (except .class) in there and just add it to the archive as is (which means you'll get all the non compiled resources in your zip archive). resources.ap_ already contains your compiled app resources, so that's all you need. Xav On

[android-developers] Re: Build APK file from command line...

2009-09-30 Thread Babyboo
yeah, I finally understand all the signing process with command line. Now all things are done. Thank for your help, Xavier. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Re: Build APK file from command line...

2009-09-29 Thread Babyboo
Ok Xavier, I want to send the file-unsigned.apk and file-signed.apk to you. But I don't know how to put it here or somewhere else that you can get it (I don't have any repository account). Can I send the apk files to you by email ??? On Sep 29, 12:01 pm, Xavier Ducrohet x...@android.com wrote:

[android-developers] Re: Build APK file from command line...

2009-09-29 Thread Xavier Ducrohet
just send me the unsigned one by email. On Tue, Sep 29, 2009 at 3:12 AM, Babyboo handsomebo...@gmail.com wrote: Ok Xavier, I want to send the file-unsigned.apk and file-signed.apk to you. But I don't know how to put it here or somewhere else that you can get it (I don't have any repository

[android-developers] Re: Build APK file from command line...

2009-09-29 Thread Babyboo
I have sent the file to you. Please check and help me to find out the problem in application signing process. I don't what exactly but I think when the application apk is signed, it's XML file in the package has change the header. So the installer can not parse the file for installing. Thank you.

[android-developers] Re: Build APK file from command line...

2009-09-29 Thread Babyboo
I have sent the file to you. Please check and help me to find out the problem in application signing process. I don't what exactly but I think when the application apk is signed, it's XML file in the package has change the header. So the installer can not parse the file for installing. Thank you.

[android-developers] Re: Build APK file from command line...

2009-09-28 Thread Xavier Ducrohet
Use the -u option to create an unsigned package and then call jarsigner to sign the generated apk. On Mon, Sep 28, 2009 at 6:52 PM, HandsomeboyIT handsomebo...@gmail.com wrote: Hi everyone, I want to build the .apk file from java binary file (.class) or .dex file. I have copied the bin+res

[android-developers] Re: Build APK file from command line...

2009-09-28 Thread HandsomeboyIT
Thanks Xavier, I use these command apkbuilder.bat %FILE_NAME% -u -rf ./project_folder then keytool -genkey -v -keystore path_to_my_keystore.keystore -alias my_alias -keyalg RSA -validity 1 then input some information... The result is like this : Generating 1,024 bit RSA key pair and

[android-developers] Re: Build APK file from command line...

2009-09-28 Thread HandsomeboyIT
And ... I don't know why I didn't find the zipalign tool in Andriod SDK's tools follder or Java-bin folder... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email

[android-developers] Re: Build APK file from command line...

2009-09-28 Thread Xavier Ducrohet
zipalign is only in the tools folder of SDK 1.6 I don't know why your apk doesn't work. can you give us the content of your apk? Xav On Mon, Sep 28, 2009 at 8:01 PM, HandsomeboyIT handsomebo...@gmail.com wrote: And ... I don't know why I didn't find the zipalign tool in Andriod SDK's tools