簡體   English   中英

在Android中訪問設備的“設置”

[英]Accessing the “Settings” of device in android

我想知道設備中“設置”的路徑。 由於有到達收件箱的路徑,因此“設置”是否有內容。

我認為這就是您所需要的(這只是使用“設置”更改設備亮度的示例)

android.provider.Settings.System.putInt(getContentResolver(),
android.provider.Settings.System.SCREEN_BRIGHTNESS,
     SysBackLightValue);

在這里看Settings.System

這是使用系統URI打開GPS設置的示例,

Intent callGPSSettingIntent = new Intent(
android.provider.Settings.ACTION_LOCATION_SOURCE_SETTINGS);
startActivity(callGPSSettingIntent);

要么

Intent intent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);
 startActivity(intent);

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM