打开系统设置从应用程序特定部分 [英] Opening specific part of system settings from app

查看:90
本文介绍了打开系统设置从应用程序特定部分的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有我的应用程序,它会打开系统设置存储部分,(这完美的作品)的快捷方式,但如果设置的应用程序已经在运行,并且是最后一个从左边说的显示设置,你不要指挥到存储的设置,但是显示设置,在pressing快捷。

I have a shortcut from my app which opens the storage part of system settings, (which works perfectly), but if the settings app is already running, and was last left from say the display settings, you don't get directed to the storage settings, but the display settings, when pressing the shortcut.

有没有办法强制打开存储设置,或者说接近(如果没有关闭)设置的应用程序,试图启动存储之前。

Is there a way to force opening storage settings, or say close (if not closed) the settings app, before trying to launch the storage.

我现在用的意图 android.settings.INTERNAL_STORAG​​E_SETTINGS 启动该活动。

I am using the intent android.settings.INTERNAL_STORAGE_SETTINGS to start the activity

非常感谢任何答复

祺雅Harteg

推荐答案

尝试设置下面的标记上你的意图:

try setting the following flag on your intent:

intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);

这篇关于打开系统设置从应用程序特定部分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆