Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import java.io.File;

import android.content.Context;

import android.media.MediaScannerConnection;

public class Main {
    public static void scanFile(Context context, File file) {
        MediaScannerConnection.scanFile(context, new String[] { file.getAbsolutePath() },
                new String[] { "image/jpeg" }, null);
    }
}