Maybe someone can bring light into my dark.. first, i thought if I start an Intent by
Using java Syntax Highlighting
- Intent i = new Intent(thisContext, myClasstoStart.class);
- i.putExtra("test.hello", "hello!");
- startSubActivity(i, 123);
Parsed in 0.031 seconds, using GeSHi 1.0.8.4
that myClasstoStart will have the Bundle Data in his onCreate method
Using java Syntax Highlighting
- onCreate(Bundle bundle){
- }
Parsed in 0.029 seconds, using GeSHi 1.0.8.4
so, that i could get the data by
Using java Syntax Highlighting
- bundle.getString("test.hello");
Parsed in 0.033 seconds, using GeSHi 1.0.8.4
but this didnt work. i had to make this:
Using java Syntax Highlighting
- Bundle bundle2 = getIntent().getExtras();
- bundle2.getString("test.hello");
Parsed in 0.035 seconds, using GeSHi 1.0.8.4
why? who puts data to the onCreate Bundle if not my Intent?!
thx for any help..
alex





but this is what i was wondering for. my natural approach was that i can grab it through the onCreate(bundle) parameter the same as in java by main(String[] args)