Search in sources :

Example 1 with QueryThreadsHandler

use of ingage.ingage20.handlers.QueryThreadsHandler in project iNGAGE by davis123123.

the class test2 method onCreate.

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.test2);
    queryThreadsHandler = new QueryThreadsHandler();
    //mySQLDbHelper = new MySQLDbHelper();
    try {
        mResult = queryThreadsHandler.execute().get();
    } catch (InterruptedException e) {
        e.printStackTrace();
    } catch (ExecutionException e) {
        e.printStackTrace();
    }
    setText();
}
Also used : QueryThreadsHandler(ingage.ingage20.handlers.QueryThreadsHandler) ExecutionException(java.util.concurrent.ExecutionException)

Example 2 with QueryThreadsHandler

use of ingage.ingage20.handlers.QueryThreadsHandler in project iNGAGE by davis123123.

the class FrontPageFragment method getThreadsJSON.

public void getThreadsJSON() {
    queryThreadsHandler = new QueryThreadsHandler();
    try {
        json_string = queryThreadsHandler.execute().get();
        Log.d("STATE", "query result : " + json_string);
    } catch (InterruptedException e) {
        e.printStackTrace();
    } catch (ExecutionException e) {
        e.printStackTrace();
    }
}
Also used : QueryThreadsHandler(ingage.ingage20.handlers.QueryThreadsHandler) ExecutionException(java.util.concurrent.ExecutionException)

Aggregations

QueryThreadsHandler (ingage.ingage20.handlers.QueryThreadsHandler)2 ExecutionException (java.util.concurrent.ExecutionException)2