I have a class2 which is involved by class1 when clicks are made. I have to pass some parameters/objects from class1 to class2. I only know the standard way which does not have an option of passing parameters.
// launch the full article
Intent i = new Intent(this, Class2.class);
startActivity(i);
You can use
Intent.putExtra
(Which uses aBundle
) to pass extra data.Then once you're inside your new
Activity
:This allows you to pass basic data to Activities. However, you may need a bit more work for passing arbitrary objects along.