Windows Azure Mobil Services first connection in Android
- by egente
my application based windows azure mobil services. Application connecting time is well normally but when login to application first time azure mobile services connection is very slow like 10 second, after connection speed is normally. how can i solve this problem?
my codes;
private MobileServiceClient mClient;
private MobileServiceTable<products> mProductsTable;
mClient = new MobileServiceClient(
"https://example.azure-mobile.net/",
"aaaaaaaaaaaaaaaaaaaaaaaa",
this).withFilter(new ProgressFilter());;
mProductsTable = mClient.getTable(products.class);
mProductsTable.where()
.execute(new TableQueryCallback<products>() {
public void onCompleted(List<products> result,
int count,
Exception exception,
ServiceFilterResponse response) {
if (exception == null) {
} else{
Toast.makeText(Product.this, "Ops!!! Error.", 1000).show();
}}
});