Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android

Run APK file in eclipse

Hi there, im quite new in android, and still learning, but i need to check a apk file that was sent to me, can someone explain me how to run it?

4 Answers

An .apk file will run on your device or on an emulator. If you have an Android phone, transfer the file to it, or email it to the phone, and install it directly.

If you're sure that the content is safe, that's fine. Else, I don't think you can decompile the apk file back into code - not sure about that.

that's right Steve.. well Mauro Bonucci, if you are compiling and running a new application it will run automatically if you want to install any other application (Apk) in your emulator you don't need eclipse you just do the following simple steps:

1 - run your AVD emulator 2 - open your command line tool or your system console (cmd for windows) 3 - write adb install "name of your apk including the path without quotes"

P.S: if you want install it in sd card you write something like

adb install -s myapp.apk

Hello Beddakhe, thanks for the response, i already try that and gave me a error: "Install Parse FAiled no CErtificates"

The person that send me the apk told me this: "I made unsigned apk for test. In order to load apk, you need to allow apk file. check Setting/Security And Lock Screen/Allow unknown source"

Does it makes sense? How can i make this change in my emulator?

Aheh I can see.. yes it makes sens .. but sometimes doesn't work if you tried to allow unknown source and your apk still doesn't install, you have to read this article http://java.dzone.com/articles/android-solution-install-parse-1 I hope that will work for you .. good luck