[Q] Gallery on stock ROM not reacting to manual FS changes - Nexus 4 Q&A, Help & Troubleshooting

Sometimes I move some of my pictures from one directory to another using ConnectBot's local command line or the ASTRO File Manager. The problem is, after this the new pictures are not visible in the stock Gallery app, and there are blank rectangles where the old ones used to be.
I tried cleaning Gallery's cache & data, manually deleting sdcard/Android/data/com.android.gallery3d and sdcard/DCIM/thumbnails, but none of this helped. The only thing that helps is rebooting my phone.
Is there another way to force Gallery to rescan my file system?

Related

How can you force gallery to re-index without a reboot?

If you load the gallery but subsequently move images from one folder to another using a file manager, there doesn't seem to be a way to update the gallery short of a reboot. I have tried closing it with a task killer buit that doesn't do it. Is there a way to do it with a script or something?
there is an app on the market called SDMount widget which does the job
R
You might be able to clear the Gallery cache through the Manage Applications screen in Settings.
3Shirts said:
If you load the gallery but subsequently move images from one folder to another using a file manager, there doesn't seem to be a way to update the gallery short of a reboot. I have tried closing it with a task killer buit that doesn't do it. Is there a way to do it with a script or something?
Click to expand...
Click to collapse
mount the SD as USB storage and then unmount it..?

Moving Photos

When I use a file manager to move photos from my dcim folder the thumbnails stay in my gallery. So I delete the .thumbnails folder and reboot. The spaces are still there, but the image placeholders are still there. This is a new problem with OTA 2.2. Anyone know of a fix?
I'm not sure what happened, but I was having trouble using my camera. It would close right after opening. I cleared my cache and uninstalled a few apps and rebooted and now my camera works and the files are out of my gallery. Weird, but at least it's fixed.

[Q] Gallery issues

I have a few questions re: the gallery that I'd love some help with.
1. Gallery doesn't update a folder if I move a picture using a file explorer (Astro or Root Explorer for example). If I reboot the phone then the picture shows up in the correct directory. I'm guessing that restarting the gallery app would do the same thing. Anyone else having this issue?
2. Is there a way to have the gallery only look to one location for pics? I hate how it always grabs every image on my SD Card. Especially if you have Bejeweled installed. It adds about 10 folders of images that I don't want to have to browse through. Is there another gallery app that would allow me to set this if the stock gallery doesn't work that way?
Thanks in advance for any help you can provide.
Also noticing that the Gallery just doesn't update frequently. I thought it did this every time you opened it, but I guess not. Is there a way to force programs to re-scan the SD card?
SDRescan in the market works perfectly... and if you want to keep the folder from being seen in the gallery, just add a blank text file to the folder and rename it .nomedia
Thanks odrecords. Both of those work perfectly.
stock gallery will grab images from any folder on your SD if you don't want your gallery to load em theres two ways when in gallery hit menu then show hide. this will do as it says and either load or not load certain folders. Other option is to place a period in front of the folder name u want hidden i.e. ".test". This will hide it from the Android system in general but not file explorers.

[Problem] No "sdcard", only "root" folder :(

Hello,
it's a little bit difficult to explain my problem. it started few days ago when my 7.7 didn't turn on.
Then i read about the trick to press the power button longer than 10 seconds and it really worked. First I was glad but then i found out, that my picture gallery and my mp3 player was empty!
First I thought that everything was deleted, but that wasn't true. The files are still there. In fact it seems that the system has changed the "/sdcard" area to "/root". So the apps can't find the files.
I uploaded a file where you can see what i mean. On my Smartphone is also a "/sdcard" instead of the "root".
My 7.7 is rooted, no other modifications have been made...
Who can help me to solve this problem without doing a reset to factory setting..
That's just how the stock file browser shows it, it's not actually mounted at /root.
If the gallery and music player are empty you could try giving it a little time for the media scanner to add your media. If it doesn't show up, then wipe the data of the media storage app and restart your tab. You may have to restart it again after it has built its database to get everything working properly.
i wiped the data, didn't work
what if the internal storage is really mounted as /root now? what can i do to change it?
because the empty gallery and mp3player aren't the only problems now. if i take a picture, i cannot use the preview to look at it. it says "no elements" then. so i think its a problem more deep in the system...
i really dont understand how this could happen, i just turned the tab on..
If you have ES File Explorer, it should show that same "root" folder as actually being the internal "sdcard" folder. I don't think it has anything to do with actually being rooted, it is just how the built in File Manager lists the folder.
Another option, perhaps Fix Permissions in Recovery may fix your issues.
can i find a tutorial to fix permission in recovery mode?

Weird issues with Camera and DCIM.

Hey guys. Ever since I returned to my Moto X Style and updated it to Nougat, I've wanted to go back to using the Google Camera. But it keeps giving me the error "Can't connect to camera" when I try to take a video with it. Stock Moto Camera works just fine for video recording, though.
The second issue is that I can't access the contents of DCIM on my PC. Only my Samsung SD card storage shows up, and when I navigate to the DCIM folder, all I see is this:
https://imgur.com/a/7mMl0
Some kind of weird encrypted(?) file? I don't have encryption enabled.
I can access the contents of DCIM just fine on my phone. The only way for me to transfer DCIM's contents to my PC is if I move them to another folder like Downloads and access them there.
I guess this is some weird permissions issue that Motorola forgot to resolve. Now, I've tried the following fix from this Reddit thread (https://www.reddit.com/r/AndroidQuestions/comments/451h0k/dcim_folder_shows_no_photos_on_computer/):
On your phone, using a file explorer (I used ES File Explorer, but any will do), create a new folder, e.g. DCIM2
Navigate to the DCIM folder, select all files and folders
Move everything to DCIM2
Delete the DCIM folder (or simply rename it to DCIM-old if you're paranoid, but no real need for this)
Rename DCIM2 to DCIM
Connect phone to PC via USB, enable MTP mode. Open Windows Explorer and navigate to the DCIM folder.
Bam! All photos and videos and folders are there! ...and appears to be a permanent fix!
Click to expand...
Click to collapse
And it doesn't work. I still see the same weird "Camera" file even after creating and renaming a new DCIM folder. So I have no clue what's going on.
Now, as for the Google Camera crashing on the video recording screen. I've tried everything. Tried moving it from external to internal storage. Tried resetting the app, tried wiping the cache partition, tried removing all Camera permissions save for the Google Camera app, etc. The Camera app versions I tried were the May 2016 arm and September 2016 arm64 ones (4.4+ and 7.0+), as well as earlier versions. Dunno what's going on.
If it's a hardware issue, then why is the Moto camera the only app able to record video flawlessly? Did Motorola do something to the phone with the most recent update? Because I was able to record video just fine using Google Camera.
Any input?
Thanks. I'm non-rooted, bootloader-locked on stock Moto 7.0.
Maybe I'm missing some packages/core apps that are causing Google Camera to malfunction? I don't know which ones, though.
EDIT: Tried Open Camera and it works just fine. I can take videos with it and everything saves to the SD card, and I can access Open Camera's recordings and pictures from my PC. Everything Open Camera takes is saved to the DCIM folder in the Open Camera folder. But I still can't access the photos and recordings I took with the Moto Camera app.

Categories

Resources