title: how to call another activity from thread ?
body: <p>I tried the same questions in stackoverflow  but none of them are working.Someone please help me.
  this is my code</p>
  
  <pre><code> new Thread(new Runnable() {
                          public void run() {
  
                              try{
                                  CallSoap cs;
                                  cs=new CallSoap();
                                 // String resp=cs.Call();
                                 String resp= cs.Call();
                                  ActivateDecive.rslt=resp;
                              }catch(Exception ex)
                              {ActivateDecive.rslt=ex.toString();}  
  
  
                              if(ActivateDecive.rslt=="0"||ActivateDecive.rslt.equals("0"))
                               {
                                   //Toast.makeText(getBaseContext(), "Device is not in active state..Please contact admin",Toast.LENGTH_LONG).show();
                                  ActivationText.post(new Runnable() {
  
                                      @Override
                                      public void run() {
                                          // TODO Auto-generated method stub
                                          ActivationText.setText("Device is not in active state..Please contact admin");
                                      }
                                  });
  
                               }
                               else
                               {
                                   Handler handler = new Handler(Looper.getMainLooper());
                                   handler.postDelayed(new Runnable() {
  
                                          @Override
                                          public void run() {
                                              // TODO Auto-generated method stub
                                              ActivationText.setText("Device is Active");
                                              Intent i=new Intent(ActivateDecive.this,FormSelectionACT.class);
  
                                              startActivity(i);
                                          }
                                      }, 2000);
  
                               }
  
                          }
                      }).start();
  </code></pre>
  
  <p>Activity is not comming on top only the included layout is showing...</p>