Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: parseint32 on Oct 13th, 2012  |  syntax: Java  |  size: 0.58 KB  |  views: 25  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Log.i("DEBUG", "The real id is: " + remoteViews.toString());
  2.                   Thread thread = new Thread()
  3.                     {
  4.                       @Override
  5.                       public void run() {
  6.                           try {
  7.  
  8.                             // CALL YOUR FUNCTION FROM HERE
  9.                             HttpRequest r = new HttpRequest("http://www.hwlogos.com/test.json");
  10.                             Log.i("DEBUG", "Id is: " + remoteViews.toString());
  11.                             remoteViews.setTextViewText(R.id.ip, r.GetContent());
  12.                            
  13.                           } catch (Exception e) {
  14.                               e.printStackTrace();
  15.                           }
  16.                       }
  17.                     };
  18.  
  19.                 thread.start();
clone this paste RAW Paste Data