Created file is not visible in the gallery, but is visible in a sdcard folder



I've added a video file in /mnt/sdcard/DCIM/somefolder
But it is not visible in the gallery.
Could anyone help me please to understand what is wrong?


File dir = new File(Environment.getExternalStoragePublicDirectory(
Environment.DIRECTORY_DCIM), "/somefolder");
if (!dir.exists()) {
dir.mkdirs();
}
mrec.setOutputFile(dir.getPath() + "/video" + ".mp4");

Related to : Created file is not visible in the gallery, but is visible in a sdcard folder
.3gp file is not visible on windows folder
Programming Languages

I created an audio recorder for android and save it as a .3gp file. However whenever I try to look at windows explorer mode and the actual drive it is nowhere to be found.


My location:


private static String mFileName = Environment.getExternalStorageDirectory().getAbsolutePath() + "/audiorecordtest.3gp";

Recording method


private MediaRecorder mRecorder = null;
private MediaPlayer mPlayer = null;
public void startRecording() {
mRecorder = new MediaRecorder();
mRecorder.setAudioSource(MediaRecorder.AudioSource.MIC);
mRecorder.setOutputFormat(Media
Android - file.exists() returns true for /mnt/sdcard folder, even though SDCard is unmounted? - Emulator
Programming Languages

I unmounted the SD card by renaming the SDCard file (sdcard.img - located in .Android folder) for the emulator.


But my application's f.exists() still returns true for the root folder of the sd card - /mnt/sdcard (even though it technically shouldn't be there).


How can this be possible?


Edit: it returns false for files located under /mnt/sdcard/something. But it returns true for the root folder /mnt/sdcard - that's what's confusing me.


Created file is not visible in the gallery, but is visible in a sdcard folder
Programming Languages

I've added a video file in /mnt/sdcard/DCIM/somefolder
But it is not visible in the gallery.
Could anyone help me please to understand what is wrong?


File dir = new File(Environment.getExternalStoragePublicDirectory(
Environment.DIRECTORY_DCIM), "/somefolder");
if (!dir.exists()) {
dir.mkdirs();
}
mrec.setOutputFile(dir.getPath() + "/video" + ".mp4");

Created folder is not visible in the file explorer..
Programming Languages

I have a problem with creating a folder and a file on the sdcard.


Here's the code:


File folder = new File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS).toString() + "/folder");
boolean success;
if (!folder.exists()) {
success = folder.mkdirs();
}
File obdt = new File(folder, "file.txt");
try {
success = obdt.createNewFile();
} catch (IOException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}

With this code I expect to create the folder

Custom Camera/Gallery app not showing sdcard/folder accurately
Programming Languages

I have built a custom camera app that saves pictures to a specific folder on my sdcard and has its own gallery view for viewing the photos in that folder "/sdcard/myApp/images"


I have been testing it on two different tablets, Galaxy Tab-1 10 inch and Galaxy Tab-2 10 inch. The camera works on both tablets just fine, taking pictures and saving them to the app created folder. But the gallery View on the Tab1, doesn't show all the photos in that folder. The tab-2 always shows all the photos currently in the folder but the tab-1 often only shows the images in that folder from the last time the tablet was rebooted.


So on the Tab-1 if i have no photo

Image not visible in gallery
Programming Languages

Hi,
I am pulling my hair out why the images are not visible on this page
http://www.zahnarzt-oberland.de/Gmunden/Inhalte/test.htm
It is based on this CSS gallery:
http://www.cssplay.co.uk/menu/slide_show.html
thank you in advance
Raggi


Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2017 © bighow.org All Rights Reserved .