Wesley wrote: [...] > 1. Basically the error mean I did not declare activity in manifest > where generate this error when I start activity... What I intent to do > is to start activity without declare it at manifest... How can I hard > code those manifest info inside my code to start an activity?
I'm not sure you can. I believe you have to declare activities in the manifest for them to work at all. However, if you're going to start each one explicitly, you don't need to declare it with any parameters: <activity android:name="SpecialActivity"/> Intent intent = new Intent(); intent.setComponent(new ComponentName(this, SpecialActivity.class)); startActivity(intent); When declared like this, the *only* way you can start it is to create an intent and use setComponent(), so you don't have to worry about other people launching your activity when they're not supposed to. Does this match what you're trying to do? -- ┌─── dg@cowlark.com ───── http://www.cowlark.com ───── │ "I have always wished for my computer to be as easy to use as my │ telephone; my wish has come true because I can no longer figure out │ how to use my telephone." --- Bjarne Stroustrup
signature.asc
Description: OpenPGP digital signature

