3

I wrote some android application using Eclipse. I found apk file in the bin directory.

When i connect USB cable between the cell phone and the computer - the application is running. But when i disconnect the USB cable from the cell phone - and i trying to launch the application from the cell phone i get message

        "Waiting for debugger" 
        "Application ( process name .. ) is waiting for the debugger to attach" 

So, How can i create apk ( installation file ) for using with no debug ?

Yanshof
  • 9,659
  • 21
  • 95
  • 195

4 Answers4

6

If you like to release your app to the public, here you can find step by step info on how to do it.

Include how to create the apk file, from the link:

To create a signed and aligned .apk in Eclipse:

  1. Select the project in the Package Explorer and select File > Export.

  2. Open the Android folder, select Export Android Application, and click Next. The Export Android Application wizard now starts, which will guide you through the process of signing your application, including steps for selecting the private key with which to sign the .apk (or creating a new keystore and private key).

  3. Complete the Export Wizard and your application will be compiled, signed, aligned, and ready for distribution.

BrainCrash
  • 12,992
  • 3
  • 32
  • 38
5

Is there a Debug.waitForDebugger() somewhere in your code?

Here are some tricks... http://groups.google.com/group/android-developers/browse_thread/thread/bdf61367c8649f4a?pli=1

Seen some indication that there is a global debug flag in the phone that might have got stucked restarting the phone might help.

zingo
  • 249
  • 1
  • 5
2

File - Export - Android Application

Thommy
  • 5,070
  • 2
  • 28
  • 51
1

Android application package file (APK) is program binary used to distribute and install Android application onto the Android operating system. Here we'll see step by step procedure of creating .apk file ready to be installed in Android device.

Tools & Technologies used in this article : 1. JDK 1.6 2. Eclipse 3.7 3. Android SDK

There are two ways to export Aplication Package in Eclipse using Android Tools 1. Export Unsigned Application Package 2. Export Signed Application Package

  1. Export Unsigned Application Package Right click on the Android project (say 'AndroidHello') and from the context menu select Android Tools --> Export Unsigned Appliaction Package . Browse the location to save the apk and click Save button. Click Ok button in the following window to proceed.

  2. Export Signed Application Package Right click on the Android project (say 'AndroidHello') and from the context menu select Android Tools --> Export Signed Appliaction Package . Select the project to export and Click Next button.

jovial
  • 11
  • 1