Should I mention two activity tags for two classes in Manifest file?

90 Views Asked by At

I am having two classes in my android project so, should I mention two activity tags in my app manifest file or will it work without including the activity tag.

Although, my app is working fine but I think this creates error - Unfortunately, your app has stopped working.

2

There are 2 best solutions below

0
V-rund Puro-hit On BEST ANSWER

it depends Which kind of classes you have.. if your class is extending Activityor ActionBarActivity or AppCompatActivity or the class wich extends any of these, than you must define it in manifests.xml file. otherwise if your class extends nothing or just extends view, then no need to define it in manifests.xml file.

0
starkshang On

Yes,every Activity you used must be declared in manifests.xml,or when jump the activity,app will crash.