[英]Where is my APK stored when i run program on a android device?
When i just run my program through eclipse on my device it gets installed (since i can open it again from my apps browser). 当我仅通过Eclipse在设备上运行程序时,它便已安装(因为我可以从我的应用程序浏览器中再次打开它)。 However i cannot find the
.APK
anywhere. 但是我找不到任何地方的
.APK
。 Is there a way to pre determine where my .APK
goes? 有没有办法预先确定我的
.APK
去哪里? Otherwise how can i find the folder of an app from the app browser (using galaxy s4
)? 否则,如何从应用程序浏览器(使用
galaxy s4
)中找到应用程序的文件夹?
I have tried searching for files using the ES file explorer app without results. 我尝试使用ES文件资源管理器应用搜索文件而没有结果。
In your Eclipse, it will be under the /bin
folder. 在您的Eclipse中,它将位于
/bin
文件夹下。
In your device, your app will be in /data/app
folder. 在您的设备中,您的应用程序将位于
/data/app
文件夹中。
Does Android keep the .apk files? Android是否保留.apk文件? 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]);
}
}
它在项目路径的/bin/
目录中
它在您的bin文件夹bin / appname.apk中
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.