开发者

How do I push a wallpaper to android?

开发者 https://www.devze.com 2023-01-30 03:14 出处:网络
I am in an operating systems course that centers around hacking up android phones开发者_JAVA技巧. I want to set my friend\'s wallpaper to something amusing but benign. Sadly, our test phones does not

I am in an operating systems course that centers around hacking up android phones开发者_JAVA技巧. I want to set my friend's wallpaper to something amusing but benign. Sadly, our test phones does not have wireless drivers on them. Any idea of how I can adb push something in?

Is there a wallpapers directory I can place things in, for instance?


You could place it on the phones external storage:

Environment.getExternalStorageDirectory()

or you could create your own directory on the external storage:

                File root = new File(Environment
                        .getExternalStorageDirectory()
                        + File.separator + "MyAppName" + File.separator);
                root.mkdirs();
0

精彩评论

暂无评论...
验证码 换一张
取 消