locked
Unable to get the Android APK working RRS feed

  • Question

  • Hello,

    I was trying to follow the tutorial on Microsoft Doc "How to use a client SDK" https://docs.microsoft.com/en-us/azure/app-service-mobile/app-service-mobile-android-how-to-use-client-library

    But I can't seem to follow the instruction to query the data.

    I have created a class called Collection to store my data. 

    My code:

    // this code is ok

    MobileServiceTable<Collection> table = mClient.getTable("collection", Collection.class);
    try {

    // the program hangs and freezes here. Nothing returns

    List<Collection> results = table.execute().get();
    System.out.println("here");
    } catch (InterruptedException e) {
    e.printStackTrace();
    } catch (ExecutionException e) {
    e.printStackTrace();
    } catch (MobileServiceException e) {
    e.printStackTrace();
    }


    This is all i outputs

    04-16 14:31:44.099 22388-22388/? I/art: Late-enabling -Xcheck:jni
    04-16 14:31:44.412 22388-22388/andy.andy_collection W/System: ClassLoader referenced unknown path: /data/app/andy.andy_collection-1/lib/arm64
    04-16 14:31:44.437 22388-22388/andy.andy_collection I/art: Starting a blocking GC HeapTrim
    04-16 14:31:44.442 22388-22388/andy.andy_collection I/InstantRun: starting instant run server: is main process
    04-16 14:31:44.531 22388-22388/andy.andy_collection W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
    04-16 14:31:44.865 22388-22404/andy.andy_collection I/System.out: [socket][0] connection andy-collection.azurewebsites.net/52.165.135.234:443;LocalPort=-1(10000)
    04-16 14:31:44.959 22388-22404/andy.andy_collection I/System.out: [socket][/192.168.0.12:41638] connected
    04-16 14:31:45.025 22388-22404/andy.andy_collection E/NativeCrypto: ssl=0x77f9110800 cert_verify_callback x509_store_ctx=0x77f1ca8798 arg=0x0
        ssl=0x77f9110800 cert_verify_callback calling verifyCertificateChain authMethod=ECDHE_RSA
    04-16 14:31:45.094 22388-22404/andy.andy_collection I/System.out: gba_cipher_suite:TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
    04-16 14:33:20.199 22388-22399/andy.andy_collection I/art: Enter while loop.

    Am I missing anything here?


    FYI: I was able to query data using 

    //        try {
    // mClient.getTable(Collection.class).execute(new TableQueryCallback<Collection>() {
    // @Override
    // public void onCompleted(List<Collection> result, int count, Exception exception, ServiceFilterResponse response) {
    // }
    // });
    // } catch (MobileServiceException e) {
    // e.printStackTrace();
    // }


    Monday, April 16, 2018 7:00 PM

All replies

  • Ensure that you have latest Mobile App Server SDK for Android installed.

    Try to disable the instant run feature in the settings, if it is enable and see if it helps. To disable it, go to Android Studio --> File --> Setting --> Build, execution, deploy --> Instant run. Then disable Instant run.

    Tuesday, April 17, 2018 5:45 AM