Merve Gül
Merve Gül

Reputation: 1397

How can I debug between activities?

I am calling other activity with intent in main class

final Intent intent = new Intent(this, List.class);
intent.putExtra("email", email);
intent.putExtra("password", password);
**startActivity(intent);**

I am starting to debug on the line Intent line but I couldnt pass the other activity

The other is ;

public class List extends Activity 
{ 
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        **setContentView(R.layout.emaillist);**

        **final Bundle extras = getIntent().getExtras();**
        String email = extras.getString(MainActivity.email);
        String password = extras.getString(MainActivity.password);  
        listofmails(email , password );
    }


 public void epostaListeleme(String eposta, String sifre) 
    {
           ....
    }

How can I pass from MainActivity to ListActivity on debug?

Upvotes: 1

Views: 814

Answers (1)

its better to make breakpoint on other activity. why you want to debug intent action i didnt understand?

Upvotes: 2

Related Questions