Code example for Activity

Methods: overridePendingTransition

0
 */ 
public class MethodsCompat { 
	 
    @TargetApi(5) 
    public static void overridePendingTransition(Activity activity, int enter_anim, int exit_anim) {
       	activity.overridePendingTransition(enter_anim, exit_anim);
    } 
 
    @TargetApi(7) 
    public static Bitmap getThumbnail(ContentResolver cr, long origId, int kind, Options options) {
       	return MediaStore.Images.Thumbnails.getThumbnail(cr,origId,kind, options);
    } 
     
    @TargetApi(8) 
    public static File getExternalCacheDir(Context context) {
 
//	    // return context.getExternalCacheDir(); API level 8 
// 
//	    // e.g. "<sdcard>/Android/data/<package_name>/cache/" 
//	    final File extCacheDir = new File(Environment.getExternalStorageDirectory(), 
Connect your IDE to all the code out there  Get Codota for Java