On Aug 14, 2012, at 4:44 PM, devbuzz <[email protected]> wrote:
> When I add a new Activity to an existing project I'm suddenly getting 
> ActivityNotFoundExceptions.

Does the new Activity have an [Activity] custom attribute?

> I've traced this to the AndroidManifest.xml not being updated with new 
> Activities when they are added.

Adding Activities to AndroidManifest.xml requires the [Activity] custom 
attribute.

> If I open the AndroidManifest.xml they seem to be added but are then deleted 
> when I deploy?

Which AndroidManifest.xml? There are two: the "Project" one at 
$(ProjectPath)\Properties\AndroidManifest.xml, and the "final" one at 
$(IntermediateOutputPath)\android\AndroidManifest.xml (e.g. 
obj\Debug\android\AndroidManifest.xml).

Properties\AndroidManifest.xml is the "source" file; the "final" version is 
what's used when building the .apk. Is your Activity within the final one? Does 
it have the correct class name?

 - Jon

_______________________________________________
Monodroid mailing list
[email protected]

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to