[How to pass data from one activity to another activity, what is the java code for this?][1]
            Asked
            
        
        
            Active
            
        
            Viewed 51 times
        
    0
            
            
        - 
                    This [answer](http://stackoverflow.com/a/13342157/3308320) should help with your problem. – Aidan Laing Sep 29 '16 at 17:53
1 Answers
0
            
            
        save result in string and then create a method with one parameter to make dialog, like this and in button's onclick call that method.
public void (String res) {
AlertDialog.Builder dialog = new AlertDialog.Builder(MainActivity.this);
dialog.setTitle("test");
dialog.setMessage(res);
dialog.show();
}
 
    
    
        Hesam Rasoulian
        
- 1,356
- 3
- 12
- 18
