gpt4 book ai didi

安卓kill进程

转载 作者:塔克拉玛干 更新时间:2023-11-02 07:53:12 25 4
gpt4 key购买 nike

<分区>

如何在一次单击中终止整个应用程序.. finish() 不起作用??它重定向到之前的 Activity ...请指导我。

          public void onClick(View arg0) {
// TODO Auto-generated method stub
WallpaperManager wp = WallpaperManager
.getInstance(getApplicationContext());

try {
Display d = ((WindowManager) getSystemService(Context.WINDOW_SERVICE))
.getDefaultDisplay();
int width = d.getWidth();
int height = d.getHeight();
wp.setBitmap(b1);
} catch (IOException e) {
Log.e("error", "Cannot set image as wallpaper", e);
}

finish();

}

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com