在Android设备上运行程序时,APK存放在哪里?

编程入门 行业动态 更新时间:2024-10-28 20:31:20
本文介绍了在Android设备上运行程序时,APK存放在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

当我通过设备上的Eclipse运行我的程序时,它会被安装(因为我可以从我的应用程序浏览器中再次打开它).但是我在任何地方都找不到.APK.有没有一种方法可以预先确定我的.APK去向?否则,如何从应用程序浏览器中找到应用程序的文件夹(使用galaxy s4)?

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)?

我尝试使用ES文件浏览器应用搜索文件而没有结果.

I have tried searching for files using the ES file explorer app without results.

推荐答案

在您的Eclipse中,它将位于/bin文件夹下. 在您的设备中,您的应用程序将位于/data/app文件夹中.

In your Eclipse, it will be under the /bin folder. In your device, your app will be in /data/app folder.

Android是否保留.apk文件?如果可以的话,在哪里?

在您的应用中尝试以下代码:

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]); } }

更多推荐

在Android设备上运行程序时,APK存放在哪里?

本文发布于:2023-10-29 06:04:01,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1538912.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:放在   程序   设备   Android   APK

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!