Run APK file in Eclipse

27,555

Solution 1

You ofcourse cannot open the .apk file in your eclipse IDE. You need to install it on emulator as like we install it on our devices.

Go to your Command Prompt, type

adb install Sudoku.apk and it will install it on your emulator. (Remember, load the adb to your path variables and change your directory location where you have already placed the Sudoku.apk)

Solution 2

You need to create an emulator using the Android Virtual Device Manager. Then when you run it as an android application it will launch the emulator.

http://developer.android.com/guide/developing/devices/index.html

Should cover what you need to know.

Share:
27,555
theTaken
Author by

theTaken

Updated on March 20, 2020

Comments

  • theTaken
    theTaken about 4 years

    I have install Eclipse, SDK and ADT in my machine.

    Can anyone assist me how can I run .apk sample files in Eclipse?

    Thanks.

  • theTaken
    theTaken about 12 years
    Thanks, I now able to see the app running in the Emulator. Can I open and see the source code of the Soduko.apk file? If so, how I can do that?
  • Hamza Waqas
    Hamza Waqas about 12 years
    I don't think that you can see the source code behind the compiled .apk.
  • theTaken
    theTaken about 12 years
    So there is no way I could see the source code behind the .apk file??
  • Hamza Waqas
    Hamza Waqas about 12 years
    No, I don't think so because this is the compiled form of our application.
  • theTaken
    theTaken about 12 years
    Ok Thanks a lot for your helped!!