Question: I am trying to start an android activity name 'TheGame' from the activity 'SelectionFragment' with a button who's ID is 'startGame'
The SelectionFragment file's public class is :

```
public class SelectionFragment extends Fragment {

```

This is the code that contains the Intent:

```
public void startTheGame (View view) {

    Intent intent = new Intent(this, TheGame.class);
    startActivity(intent);

}

```

And this is what my Manifest file looks like:

```
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.alexlamond.higherorlower"
android:versionCode="1"
android:versionName="1.0" >

<uses-permission android:name="android.permission.INTERNET" />

<application
    android:allowBackup="true"
    android:icon="@drawable/highlowlogo"
    android:label="@string/app_name"
    android:theme="@style/AppTheme" >
    <activity
        android:name="com.alexlamond.higherorlower.MainActivity"
        android:label="@string/app_name" >

        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>

    <meta-data
        android:name="com.facebook.sdk.ApplicationId"
        android:value="@string/app_id" />

    <activity android:name="com.facebook.LoginActivity" >
    </activity>
    <activity
        android:name="com.alexlamond.higherorlower.TheGame"
        android:label="@string/title_activity_the_game" >
    </activity>
</application>

```

My issue is that the Intent will not work, when I got to Eclipse's suggestion of how to fix it, it says:

The constructor Intent(SelectionFragment, Class) is undefined

Answer: 
The database connection string(s) can be set up centrally in 1 place, in the Global.asax.cs file, as part of the Application State, and then referenced from anywhere else in the project.

Step-1: Define the connection string(s) as static variables in Global.asax.cs:

```
namespace TestProject
{
    // Note: For instructions on enabling IIS6 or IIS7 classic mode, 
    // visit http://go.microsoft.com/?LinkId=9394801

    public class MvcApplication : System.Web.HttpApplication
    {
        public static string ConnectionString1;
        public static string ConnectionString2;

        protected void Application_Start()
        {
            #region Build application state for the app-specific items needed by us
            ConnectionString1 = "Server=yourserver;Database=yourdb;etc etc";
            ConnectionString2 = "Server=yourserver;Database=yourdb;etc etc";
            #endregion

            #region Code auto-generated and needed by system - do not change
            AreaRegistration.RegisterAllAreas();

            WebApiConfig.Register(GlobalConfiguration.Configuration);
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);
            AuthConfig.RegisterAuth();
            #endregion
        }
    }
}

```

Step-2: Use the strings from anywhere else in the project:

```
string cnxStr1 = TestProject.MvcApplication.ConnectionString1;
string cnxStr2 = TestProject.MvcApplication.ConnectionString2;

```

(Please note that by default, the strings would be accessible only from within the same project. You will need to add references to the project if you need to use the strings from any other project within the same solution.)
The answer above by Krishna is pretty good. For me I would personally prefer to have them as static string in a static class and use it where ever is needed.