public class ReflashImageThread implements Runnable
{
Context context;
static boolean begin = true;
public static Uri uri;
public ReflashImageThread(Context context)
{
this.context = context;
}
public void run()
{
while (begin) {
reflashImagesDatabase(this.context);
begin = false;
}
}
public static void reflashImagesDatabase(Context context)
{
context.sendBroadcast(new Intent(Intent.ACTION_MEDIA_MOUNTED, Uri.parse("file://"
+ Environment.getExternalStorageDirectory())));
}
}