dfetter88
dfetter88

Reputation: 5391

How can I package my Android app into an .apk?

I need to email a coworker my android app as an .apk so that he can install & test it on his Samsung Galaxy Tab.

How can I do this?

Upvotes: 3

Views: 21175

Answers (3)

dave.c
dave.c

Reputation: 10918

You shouldn't distribute apk files that have not been signed. Here are the official instructions.

Upvotes: 1

gary
gary

Reputation: 4255

Follow this question's answers to obtain the .apk itself: How to build an APK file in Eclipse?. If you've built the project (i.e. with Eclipse) it exists in the project's bin directory.

If your friend needs a way to install the .apk, using the SDK tools then connect your phone via USB and run adb install appname.apk. Without SDK tools, your friend could use an app like Installer.

Upvotes: 1

trojanfoe
trojanfoe

Reputation: 122458

This can be done from the command line using something like:

$ cd project
$ android update project --path .
$ ant release

This requires:

  • The Android SDK installed and the tools sub-directory in the path.
  • Ant installed and in the path.

The result will be written into the bin sub-directory as 'project-release.apk'.

Upvotes: 1

Related Questions