Android - Export a program to an apk file

后端 未结 2 690
难免孤独
难免孤独 2021-01-03 03:36

Hi
Suppose I have written a litter program in Eclipse, how can I export it to an apk file so as to transfer to my HTC Desire for testing?

Thanks

相关标签:
2条回答
  • 2021-01-03 03:43

    Once you run it on your android emulator it will automatically converted to .apk

    0 讨论(0)
  • 2021-01-03 03:59

    Right click on your project and click Android Tools -> Export Signed Application Package or Export Unsigned Application Package.

    If you choose signed package then you need to create a keystore. If you choose unsigned package, then you need to enable "Unknown sources" option from your phone in Settings->Applications menu.

    Also you can use your phone as an emulator by connecting your phone to computer with USB.

    Additional reading: Signing your applications and How to enable USB debugging on your Android phone

    0 讨论(0)
提交回复
热议问题