如何知道用户是否已获得GPS安卓的DENIED权限

时间:2016-11-06 17:27:37

标签: android

这是我的代码,如果我点击允许它工作正常,但是当用户点击DENY时我想要获得结果或登录被拒绝,它会要求我的许可 如果用户点击" DENY"许可我怎么能在那上面设置一些东西     这是我的代码:

{{1}}

1 个答案:

答案 0 :(得分:2)

首先实现一个像这样的onRequestPermissionResult:

MEMBER [Measures].[z] AS SUM([Measures].[Measure1]) * 15
    MEMBER [Measures].[y] AS SUM(existing [Set 2])
    MEMBER [Measures].[x] AS SUM(existing [Set 1])
MEMBER [Calculated Measure 1 pre1] AS [Measures].[z]
CELL CALCULATION ScopeEmulator 
  FOR '([Level].[Level].[Level].[SecondSet],[Calculated Measure 1 pre1])' 
  AS [Measures].[y] 
MEMBER [Calculated Measure 1] AS [Calculated Measure 1 pre1]
CELL CALCULATION ScopeEmulator 
  FOR '([Level].[Level].[Level].[FirstSet],[Calculated Measure 1])' 
  AS [Measures].[x]