Ejemplo n.º 1
0
 @Override
 protected String doInBackground(String... x) {
   String query = x[0];
   try {
     Log.d(debugtag, "profileBackground");
     String result = Mimicdatahelper.downloadFromServer(query);
     return result;
   } catch (Exception e) {
     return new String();
   }
 }
 @Override
 protected String doInBackground(String... q) {
   String query = q[0];
   try {
     Log.d(debugtag, "profileBackground");
     String result =
         Mimicdatahelper.downloadFromServer(
             "http://mimictheapp.herokuapp.com/searchposts/?search=" + query + "&format=json",
             user,
             password);
     return result;
   } catch (Exception e) {
     return new String();
   }
 }