OGP
OGP

Reputation: 972

Starting activity not specified in AndroidManifest.xml?

Is it possible to build an appropriate Intent to start one of my activities without specifying it inside AndroidManifest.xml?

Thanks.

Upvotes: 4

Views: 3117

Answers (4)

Akbaritabar
Akbaritabar

Reputation: 1414

You can't do this! You can using fragments instead of activities and switch between fragments in a main activity

Upvotes: 1

AlexKorovyansky
AlexKorovyansky

Reputation: 4943

Short answer is no.

May be you can get some ideas from this topic.

Upvotes: 1

Chirag
Chirag

Reputation: 56925

No, If you have to call activity then you must have to declare in android manifest file . If you dont declare in it then you get errors . Your application get crashed...

Upvotes: 1

CommonsWare
CommonsWare

Reputation: 1006584

No, sorry. All components (activities, services, broadcast receivers, content providers) must be registered in the manifest.

Upvotes: 6

Related Questions