Hi,
I got it working with this:
public class Stub extends Activity
{
/** Called when the activity is first created. */
public void onCreate(Bundle savedInstanceState)
{
//super.onCreate(savedInstanceState);
Intent intent = new Intent("android.intent.action.MAIN");
intent.setClassName
("totalcross.android","totalcross.android.Loader");
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK |
Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT );
intent.putExtra("param1", "Barbara and Andre");
startActivity(intent);
System.exit(0);
}
}
Then the Loader class has:
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
Bundle b = getIntent().getExtras();
if (b != null)
{
String app = b.getString("param1");
Log.i("TotalCross", "param1: "+app);
}
HTH someone.
regards and thanks for the help
guich
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en