Sunday, July 7, 2013

activity android:name=”.ExampleActivity” or activity android:name=”ExampleActivity”

Should there be a dot in the activity name in the AndroidManifest file and, if so, why? The question had exercised my mind and this is a clear explanation. In short, prefixing with dot prefixes the activity name with package and application name. For itisconsulatants we have com.itisconsultants.myapp.ExampleActivity when we say .ExampleActivity.

Stackflow too has great explanation.

No comments:

Post a Comment