Get device Icon Name by date - Android android.graphics

Android examples for android.graphics:Bitmap Load Save

Description

Get device Icon Name by date

Demo Code

import android.annotation.SuppressLint;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Main{

    @SuppressLint("SimpleDateFormat")
    public static final String deviceIconName() {
        return new SimpleDateFormat("yyyyMMddhhmmss").format(new Date())
                + ".jpg";
    }/*from   w  ww .  ja  v a2  s  .c om*/

}

Related Tutorials