Following is my java code block i am not able to come out of while block, the same code run's perfect in other module. kindly help me
public void current_ER(View v){
        try{ 
                String[] parameters= {uid};
                Caller c=new Caller();
                c.url="current_ER.php";
                c.parameters=parameters;
                c.join(); c.start();
                String result=MainActivity.result;
                System.out.print("before while");
                while(result=="START") {
                    try {
                          Thread.sleep(10); 
                          System.out.print(result); 
                    }
                    catch(Exception ex) { 
                          ex.getLocalizedMessage();
                    System.out.print("in catch"); 
                    }
                }
                System.out.print("after while");    
                Toast.makeText(this, "ER Details->"+result , Toast.LENGTH_LONG).show();
                {                   
                    System.out.print("before start indent block");
                    /////////to next screen////
                    Intent Manage_Expense=new Intent(this,Manage_Expense.class);
                    Manage_Expense.putExtra("er_details", result);
                    //MainActivity.result="START";
                    Toast.makeText(this, "ER Details->"+result , Toast.LENGTH_LONG).show();
                    //startActivity(Manage_Expense);
                }
}catch(Exception e){
                System.out.println(e.getMessage());
}
    };
 
     
     
     
    