How to convert from my android project to .apk file?

限于喜欢 提交于 2020-01-14 06:55:08

问题


I am beginner in android. I am successfully created one application. In that application name is Hello. It's successfully running in My Emulator. My questions are How to convert that application to .apk files. Because how to i run this application(Hello) to my android tablet. If it is possible please send information for how to convert taht application to .apk format. Otherwise if it is not possible send Reason. Please reply your answers and comments are valuable me. Thanks.


回答1:


Actually if you don't want to publish your app for now,and just want to get it working on your phone, then you just have to copy the yourApp.apk file from /workspace/yourProject/bin directory to your sdcard and then install it.




回答2:


Simply try below existing answers -

  1. Export Android .apk

  2. .Apk file From application

  3. exporting-a-signed-android-package


Steps to Export an .apk

  1. Right click your project -> Select Android tools -> Export Signed application package -> Next

  2. Choose create new keystore -> set the new location using browse -> and give new name for key also

  3. give the password & confirm the password also -> Next

  4. Give alias name -> give new or old password & confirm the password also -> fill validity -> and below make one column to fill -> Next

  5. set the .apk file's destination to existing location or new location -> Finish




回答3:


from eclipse

refer link

http://www.jetbrains.com/idea/webhelp/exporting-a-signed-android-package.html

http://developer.android.com/guide/publishing/app-signing.html

On the main menu, choose Tools | Android | Export Signed Android Package. The Export Signed Android Package Wizard starts.

from command line :

http://asantoso.wordpress.com/2009/09/15/how-to-build-android-application-package-apk-from-the-command-line-using-the-sdk-tools-continuously-integrated-using-cruisecontrol/

even it is also important to know about signing

http://developer.android.com/guide/publishing/app-signing.html




回答4:


Rightclick your project in Eclipse -> Export -> Android -> Export Android Application -> Next -> Create new keystore -> Enter infos -> Follow remaining steps




回答5:


Eclipse does that for you (if you are only looking ot test it on your device rather than actually create an .apk, which is what it sounds like you really want to do).

Simply plug in your device to your computer after you have installed the proper drivers for it and it should show up as a target if you go to Run -> Run Configurations, select your app and then click on the "Target" tab. Select the device and then you are set to run it on your device from Eclipse.



来源:https://stackoverflow.com/questions/11034419/how-to-convert-from-my-android-project-to-apk-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!