Posts

Showing posts from May, 2018

Money Caculation

Image
->Simple Use And Easily Understand ->Use To Count Money Easily For Financial Purpose Very Good App. ->Generated For Counting Money In Indian Format When user have more money its very userful. Download From Here

How to Display Current Date in format in android ?

Current Date In Fix Format : - Date c = Calendar.getInstance().getTime(); SimpleDateFormat df = new SimpleDateFormat("dd-MMM-yyyy"); String formattedDate = df.format(c);

Icon Type For Map

Image

Type Of Map To Display

Image

Android Lifecycle

Image

How to get version name and version code in android code?

get version name : - String versionName = BuildConfig.VERSION_NAME; get version code : - int versionCode = BuildConfig.VERSION_CODE;

How to store image in device ?

public String saveImage(Bitmap myBitmap) { ByteArrayOutputStream bytes = new ByteArrayOutputStream(); myBitmap.compress(Bitmap.CompressFormat.JPEG, 90, bytes); File wallpaperDirectory = new File( Environment.getExternalStorageDirectory() + IMAGE_DIRECTORY); // have the object build the directory structure, if needed. if (!wallpaperDirectory.exists()) { wallpaperDirectory.mkdirs(); } try { File f = new File(wallpaperDirectory, Calendar.getInstance() .getTimeInMillis() + ".jpg"); f.createNewFile(); FileOutputStream fo = new FileOutputStream(f); fo.write(bytes.toByteArray()); MediaScannerConnection.scanFile(this, new String[]{f.getPath()}, new String[]{"image/jpeg"}, null); fo.close(); Log.d("TAG", "File Saved::--->" +