Bug 10983 - Creating a new "Android Application" creates a MainActivity.cs file but names the class Activity1
Summary: Creating a new "Android Application" creates a MainActivity.cs file but names...
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Android ()
Version: 3.0
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: ---
Assignee: Enzo Heredia
Depends on:
Reported: 2013-03-07 17:29 UTC by bryan costanich
Modified: 2015-07-14 06:55 UTC (History)
4 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description bryan costanich 2013-03-07 17:29:57 UTC
that's silly. the class should be called MainActivity.
Comment 1 Mikayla Hutchinson [MSFT] 2013-03-07 17:54:47 UTC
Xamarin Studio, Visual Studio, or both?
Comment 2 bryan costanich 2013-03-08 12:18:09 UTC
Xamarin Studio. Didn't check VS
Comment 3 Atsushi Eno 2013-05-22 16:57:31 UTC
Fixed in XS [master 3f0d6b0]

VS has consistent name, but it is Activity1.cs and "class Activity1". We would want to change that too.
Comment 4 Akhilesh kumar 2015-07-14 06:55:07 UTC
I have checked this issue with latest stable XVS 3.11.666 build and observe that now on creating android application file name and class name of that file both are "MainActivity".

Screencast: http://screencast.com/t/Xo3WVfbNj32

Hence closing this issue.

Please feel free to reopen it if you are still facing this issue.