我已经实现了Button Onclick侦听器功能,现在我需要在Button Click上的设置内打开Google App权限。
Button buttonX = (Button)findViewById(R.id.buttonXName);
// Register the onClick listener with the implementation above
buttonX.setOnClickListener(new OnClickListener() {
public void onClick(View v)
{
**How to Open Below Permission (Check Image Below)**
}
});
答案 0 :(得分:0)
这不能直接完成。您可以通过意图打开“设置”页面,然后可以通过手动单击移至应用程序许可页面。为了打开“设置”页面,请将“意图”传递为:-
<th rowspan="2" colspan="2">