Windows Azure Mobil Services first connection in Android

Posted by egente on Stack Overflow See other posts from Stack Overflow or by egente
Published on 2014-08-19T10:18:37Z Indexed on 2014/08/19 10:19 UTC
Read the original article Hit count: 144

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();
           }}
        });

© Stack Overflow or respective owner

Related posts about android

Related posts about azure-mobile-services