

/**
 * Created by Damindu on 13/01/2016.
 */
public class StarterClass extends Application {
    private static StarterClass mInstance;


    String SelectTitle;

    @Override
    public void onCreate() {
        super.onCreate();
        mInstance = this;


    }

    public static synchronized StarterClass getInstance() {
        return mInstance;
    }

    public void SetSelectTitle(String SelectTitle){this.SelectTitle = SelectTitle;}
    public String GetSelectTitle(){return this.SelectTitle;}


    //how to call
    // StarterClass.getInstance().ShowDialog(CheckinActivity.this,message);

    /*
    * <application
        android:name=".StarterClass"
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher" */
@@ -500,16 +500,205 @@
 Title;%7D%0A
+    %0A    public void Begin()%7B%0A%0A        Intent i = new Intent(getApplicationContext(), MyActivity.class);%0A        i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);%0A        startActivity(i);%0A%0A    %7D%0A
 %0A%0A    //
@@ -929,8 +929,9 @@
 cher%22 */
+%0A

Update Singleton.java