package com.chanryma.fetchtopactivity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class ActivityB extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_b);
    }

    public void onButtonClick(View view) {
        Intent intent = new Intent(MyApplication.getInstance().getApplicationContext(), ActivityC.class);
        MyApplication.getInstance().getCurrentActivity().startActivity(intent);
    }
}

@@ -395,24 +395,26 @@
 iew view) %7B%0A
+//
         Inte
@@ -507,16 +507,18 @@
 class);%0A
+//
         
@@ -588,16 +588,117 @@
 intent);
+%0A%0A        Intent intent = new Intent(ActivityB.this, ActivityC.class);%0A        startActivity(intent);
 %0A    %7D%0A%7D

Change the way to start ActivityC