create class vis static method in vich you transfer "link" yours activitis 
for example from MainActivity call :
DialogUtils.createSomeDialog(MainActivity.this); 
or from SecondActivity:
DialogUtils.createSomeDialog(SecondActivity.this);


    public class DialogUtils
{
    public static void createSomeDialog(final Context context){
        AlertDialog.Builder builder = new AlertDialog.Builder(context);
        builder.setMessage("test")
                .setCancelable(false)
                .setPositiveButton("go", new DialogInterface.OnClickListener() {
                    public void onClick(DialogInterface dialog, int id) {
                        Intent intent = new Intent(context,LocationDetails.class);
                        intent.putExtra("placeId",1);
                        context.startActivity(intent);

                    }
                })
                .setNegativeButton("cancel", new DialogInterface.OnClickListener() {
                    public void onClick(DialogInterface dialog, int id) {

                        dialog.cancel();
                    }
                });
        AlertDialog alert = builder.create();
        alert.show();
    }
}


Get current Activity with Android
What would be the best practice for printing text based work from Illustrator, such as a poster? This is aimed at the final print quality of my workk.

I am creating an advertisement which will be about A4 size to go into a newspaper. Would it be best to Create Outline all the text in the advert before I send the files off to be printed or will it not make much of a difference in terms of quality?
