2017-03-16 8 views
0

String api = "notificationregistration?handle =" + libFile.getDeviceToken();Microsoft Azure APIを呼び出す際のエラー

mClient.invokeApi(api, null, "POST", null, new ApiJsonOperationCallback() 
{ 
    @Override 
    public void onCompleted(JsonElement jsonElement, Exception e, ServiceFilterResponse serviceFilterResponse) 
    { 
     if(e == null) 
     { 
      try 
      { 
       String registrationId = jsonElement.toString().replaceAll("\"",""); 

       if(AppConstants.DEBUG) Log.v(AppConstants.DEBUG_TAG, "NOTIFICATION REGISTRATION ID : "+registrationId); 
      } 
      catch (Exception e1) 
      { 
       e1.printStackTrace(); 
      } 
     } 
     else 
     { 
      e.printStackTrace(); 
     } 
    } 
}); 

エラー:コード内の任意の明白な問題がありました

Setting airplane_mode_on has moved from android.provider.Settings.System to android.provider.Settings.Global, returning read-only value.  
    at com.microsoft.windowsazure.mobileservices.http.MobileServiceConnection$1.onNext(MobileServiceConnection.java:128)  
    at com.microsoft.windowsazure.mobileservices.MobileServiceClient$15.handleRequest(MobileServiceClient.java:1499)  
    at com.microsoft.windowsazure.mobileservices.http.MobileServiceConnection.start(MobileServiceConnection.java:113)  
    at com.microsoft.windowsazure.mobileservices.http.RequestAsyncTask.doInBackground(RequestAsyncTask.java:78)  
    at com.microsoft.windowsazure.mobileservices.http.RequestAsyncTask.doInBackground(RequestAsyncTask.java:35)  
    at android.os.AsyncTask$2.call(AsyncTask.java:292)  
    at java.util.concurrent.FutureTask.run(FutureTask.java:237)  
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)  
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)  
    at java.lang.Thread.run(Thread.java:818) 
+0

これはlogcatのエラースタックの内容のようですが、問題を解決するには不明です。あなたが電話したAzure API、いくつかのキーコードと説明、あなたの質問など、コンテンツを改善するための詳細を投稿してください。 –

+0

@ PeterPan-MSFT更新された質問を確認してください –

答えて

0

。ちょうどエラー情報によると、それはAndroidデバイスで飛行機モードが有効になっているようです。それでしたか?確認してからもう一度お試しください。

または他のSOスレッドWhy I have "Setting airplane_mode_on has moved from android.provider.Settings.System [...]" into the logcat when my app has nothing to do with that?のように、サードパーティのライブラリで問題が発生することがあります。

関連する問題