Friday 3 May 2013

Value pass Between Activity in Android

Pass Value:
          Intent i = new Intent(xyz.this, abc.class);
        i.putExtra("keynm", Value);
        i.putExtra("name", Value);
        startActivity(i);

Get Value:
          String str = getIntent().getStringExtra("keynm");
        Boolean val=getIntent().getBooleanExtra(name, defaultValue);
        int val=getIntent().getIntExtra(name, defaultValue);


I will be happy if you will provide your feedback or follow this blog. Any suggestion and help will be appreciated.
Thank you :)

No comments:

Post a Comment