mardi 12 juillet 2016

Azure: Java SDK: Queries: The good way to query data?

I have an Azure SQL server and an Android App connected to it.

I've been having a lot of problems with the queries. Sometimes it runs like a charm with some requests, but some others will never have any response and thus the app freezes...

I've been trying to do the queries in several forms:

  1. The basic way:

    mClient.getTable(User.class).execute().get();

  2. With a callback:

    mClient.getTable(User.class).execute( CALLBACK HERE );

  3. In a thread:

    Runnable r = new Runnable() { public void run() {...} }; Thread t = new Thread(r); t.start();

Is there any other ways ? Because I can't find out why does the queries work only one way at some places... Thanks for your help.

Aucun commentaire:

Enregistrer un commentaire