问题
Here is the snippet from documentation azure
ListenableFuture<MarkAllResult> result = mClient.invokeApi( "completeAll2", MarkAllResult.class );
Futures.addCallback(result, new FutureCallback<MarkAllResult>() {
@Override
public void onFailure(Throwable exc) {
createAndShowDialog((Exception) exc, "Error");
}
@Override
public void onSuccess(MarkAllResult result) {
createAndShowDialog(result.getCount() + " item(s) marked as complete.", "Completed Items");
refreshItemsFromTable();
}
});
}
This code can not be compiled,because there is no available Contructor for mClient.invokeApi(String,Class)
.
I am new to azure.Can you please point out what went wrong? Or is there a problem with Android Azure SDK(V1.1.5)?
回答1:
This bug is now fixed in Azure Mobile Android SDK V2.0.Got an official mail from Azure.
来源:https://stackoverflow.com/questions/26924955/mclient-invokeapi-wrong-constructor-in-azure-mobile-services-android-sdk-and-is