package com.basgeekball.screenshotsnanny;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

import com.basgeekball.screenshotsnanny.demo.R;

public class ScreenshotsPrimeActivity extends AppCompatActivity {

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

@@ -32,24 +32,55 @@
 hotsnanny;%0A%0A
+import android.content.Intent;%0A
 import andro
@@ -187,259 +187,1661 @@
 nny.
-demo.R;%0A%0Apublic class ScreenshotsPrimeActivity extends AppCompatActivity %7B%0A%0A    @Override%0A    protected void onCreate(Bundle savedInstanceState) %7B%0A        super.onCreate(savedInstanceState);%0A        setContentView(R.layout.activity_screenshots_prime);
+core.ActivityCounter;%0Aimport com.basgeekball.screenshotsnanny.core.Callback;%0Aimport com.basgeekball.screenshotsnanny.demo.R;%0Aimport com.basgeekball.screenshotsnanny.demo.activities.MainActivity;%0Aimport com.basgeekball.screenshotsnanny.demo.activities.NetworkActivity;%0Aimport com.basgeekball.screenshotsnanny.demo.activities.SecondActivity;%0A%0Aimport static com.basgeekball.screenshotsnanny.core.ActivityLauncher.startActivityAndTakeScreenshot;%0A%0Apublic class ScreenshotsPrimeActivity extends AppCompatActivity %7B%0A%0A    @Override%0A    protected void onCreate(Bundle savedInstanceState) %7B%0A        super.onCreate(savedInstanceState);%0A        setContentView(R.layout.activity_screenshots_prime);%0A    %7D%0A%0A    @Override%0A    protected void onResume() %7B%0A        super.onResume();%0A%0A        startActivityAndTakeScreenshot(MainActivity.class, new Callback() %7B%0A            @Override%0A            public void execute() %7B%0A                startActivity(new Intent(ScreenshotsPrimeActivity.this, MainActivity.class));%0A            %7D%0A        %7D);%0A%0A        startActivityAndTakeScreenshot(SecondActivity.class, new Callback() %7B%0A            @Override%0A            public void execute() %7B%0A                startActivity(SecondActivity.createIntent(ScreenshotsPrimeActivity.this, %22London bridge is falling down%22));%0A            %7D%0A        %7D);%0A%0A        startActivityAndTakeScreenshot(NetworkActivity.class, new Callback() %7B%0A            @Override%0A            public void execute() %7B%0A                startActivity(new Intent(ScreenshotsPrimeActivity.this, NetworkActivity.class));%0A            %7D%0A        %7D);%0A%0A        if (!ActivityCounter.isAnyActivityRunning) %7B%0A            finish();%0A        %7D
 %0A   

Add real screenshots tasks