When i just run my program through eclipse on my device it gets installed (since i can open it again from my apps browser). However i cannot find the .APK
anywhere. Is there a way to pre determine where my .APK
goes? Otherwise how can i find the folder of an app from the app browser (using galaxy s4
)?
I have tried searching for files using the ES file explorer app without results.
In your Eclipse, it will be under the /bin
folder.
In your device, your app will be in /data/app
folder.
Does Android keep the .apk files? if so where?
Try this code in your app:
public class Testing extends Activity {
private static final String TAG = "TEST";
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
File appsDir = new File("/data/app");
String[] files = appsDir.list();
for (int i = 0 ; i < files.length ; i++ ) {
Log.d(TAG, "File: "+files[i]);
}
}
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句