Wednesday, 8 May 2013

How to make global Class


public class AppConfig {

Context context;

public AppConfig(Context mxt) {

    context = mxt;
}

public static String filepath = null;
public static String imageupload = null;

public static Bitmap abjustbitmap = null;
}
other activity to use
AppConfig config;
Context context;
in oncreate method
    context = getApplicationContext();
    config = new AppConfig(context);