Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

add activities programmatically in android

Tags:

android

I would like to add multiple activities programmatically in android. Can i add these activities to manifest dynamicallly or is there any othersolution in android.

Please share your valuable suggestions.

like image 491
Remmyabhavan Avatar asked Mar 21 '11 06:03

Remmyabhavan


1 Answers

You cannot add new activities to your app dynamically or edit the manifest file as this would be a violation of the Android security model. One purpose of the manifest file is that the developer must define which activities are part of the application and what they are allowed to do.

If it would be possible to edit these information after the installation of the app on a device, you would be able to execute code the user might never have permitted.

like image 116
Flo Avatar answered Dec 20 '22 15:12

Flo