Where is my APK stored when i run program on a android device?

Madmenyo

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.

An SO User

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] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

How could I know if my Android device will support C instructions?

来自分类Dev

How do I run a global npm program when an ubuntu program has the same name?

来自分类Dev

Is the /dev directory the only place in Linux where device files can be stored?

来自分类Dev

Android Studio:Build APK与Run APK之间的大小差异

来自分类Dev

send notification to specific android device by my website

来自分类Dev

When I run msbuild, it makes a call to aspnet_compiler, but doesn't compile my site

来自分类Dev

"No, missing feature: WATCH" when I try to run my smartphone app with wear app?

来自分类Dev

my .exe program is not what I expected

来自分类Dev

How do I link boost to my program?

来自分类Dev

Android - Apk 内置 APK

来自分类Dev

How does the app run on sencha touch when deployed on device?

来自分类Dev

Where should I implement my class method?

来自分类Dev

导致此错误的原因:“ air / android / device / Runtime.apk上的SDK组件已过期”

来自分类Dev

Where is APK java file?

来自分类Dev

How do I get the nth derivative in my scheme program?

来自分类Dev

How Do I Compile/Run a java program from a Java Program (Input failure?)

来自分类Dev

“ calabash-android run apk”传递包含空格的环境变量

来自分类Dev

How to use .so file to create an .apk file in android application for my custom video codec

来自分类Dev

Where do I find my Facebook Audience ID?

来自分类Dev

离子构建apk android

来自分类Dev

Android APK扩充

来自分类Dev

与签署android APK混淆?

来自分类Dev

Android生成签名APK

来自分类Dev

如何混淆的Android APK

来自分类Dev

如何签署Android APK

来自分类Dev

从Android Studio生成APK

来自分类Dev

分享Android App APK

来自分类Dev

与签署android APK混淆?

来自分类Dev

Android错误安装APK

Related 相关文章

热门标签

归档