简体   繁体   English

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

[英]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.

相关问题 运行我的程序时,Android Studio无法找到设备 - Android studio cannot find device when I run my program 当apk存储在云中时,我可以在设备中运行apk吗? - Can I run an apk in device while the apk is stored on cloud? 程序文件存储在Android上的什么位置? (不是.apk文件,而是实际安装的文件) - Where are the program files stored on Android? ( not the .apk files but the actual installed files) 我的Android矩形程序成功运行,但是当我在设备中运行时,我看到黑屏而不是红色矩形 - My rectangle program for android runs successfully, but when I run in my device I see a black screen and not red rectangle 在游戏中,如果我从小部件运行,则Android设备上的图像会消失,但是当我第一次安装apk时则不会 - In game Images disappear on Android device if i run from widget, but not when I install apk first time 当我尝试在Android Studio上运行我的Android程序时出现NullPointerException - NullPointerException when I try to run my Android Program on Android Studio 为什么当我在物理 Android 设备上安装我的应用程序 APK 时说应用程序未安装 - Why when I install my apps APK on Physical Android Device says App Not Installed 我的设备上的APK安装在哪里? - where is my apk installed on my device? Android-自定义APK文件存储在哪里? - Android - Where are custom APK files stored? 在我的设备上运行应用程序时,我的android设备终止了 - my android device terminated when run application on my device
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM