Question

I've been testing an android app that I've been developing on my phone. The problem is, it seems as if every time tweak it and re-install it onto my phone, it takes up memory. That is to say, if my app is 10mb, every time I re-install it, 10mb gets used up on my phone, so eventually my phone will run out of memory storage.

What I want to do is find the location where Eclipse stores the apk files so that I can see if there are multiple copies of my apk.

Was it helpful?

Solution

Go to your application floder. It must be in the workspace of eclipse. Inside application, there is bin folder. The apk is generated inside bin/ folder.

In the phone, pre installed apks are kept in system/app folder and installed applications are kept in data/app folder. Your phone should be rooted to access this folder.

But you can write small code to see what apks are present in this folder:

File apkDir = new File("/data/app");
String[] apkFiles = apkDir.list();

for (int i = 0 ; i < files.length ; i++ ) {
    Log.d(TAG, "File: "+files[i]);
}

Hope this helps

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top