tags:

views:

621

answers:

2

Hello Guys,

I am newb To Android.I just to check out few applications in my Desktop and have downloaded some sample applications. However, they are in the format .apk. Please let me know the procedure to import this file into Eclipse which helps me to run the application.

Regards, Serenity.

A: 

If you wanna run the application you don't have to import it into Eclipse but instead you have to install it on your phone.

If you wanna see the source code of the apk file, you need a decompiler. There are some available in the Internet, however, all of them I have seen doesn't work 100% (e.g. they can extract the resources but not the *.java files, and so on)...

But you have to note that using decompilers could not be legal in some cases

Roflcoptr
+1  A: 

You cannot "import" them to Eclipse as they are binary files. But, you can test the applications using the Android Virtual Device:

http://developer.android.com/guide/developing/tools/avd.html

In order to use it you will have to install the Android SDK and configure a Virtual Device:

http://developer.android.com/sdk/index.html

Once you have installed and configured the virtual device, you just have to install you aplications using the adb tool:

adb install applicacion.apk

Cristian