I guess this could be the somewhat right directory, I asked this on stackoverflow with no luck. Basically I code (or I intend to if I can get it work) a program to where it will move my files off of my usb drive (via otg cable) to internal memory on my nexus 7. IT will work if I specify a file from the flash drive, but how ever I would like to have it to where it will just grab all of the files off, and move them. I am using the fileinputstream/fileoutputstream to byte array. How can I go about to where it will just grab all the files without having to specifically target a file name?
Related
is there a way to change or specify a certain directory when transferring files through irda to my phone? only thing i get is a notification if i want to download the file to my phone and just sends it to my documents on my device. was trying to see i could get those files to go directly to sd card.
Okay so I used a .EXE file I found on a site and my phone shows the android application but when I click it, it doesn't load how do I load android..?
To launch Android, run "HaRET" using the phone's File Explorer app.
It might not be strictly necessary, but you'll probably have better luck if you put all the files needed to boot Android (HaRET, the .img file, etc) in the root directory of your uSD card. I discovered the hard way that if you unzip the files and copy them to a subdirectory (say, "//Storage Card/AndroidXXX"), then proceed to launch HaRET from that subdirectory, itseems to ignore one or more of the files in that directory and will use the files in "//Storage Card" instead.
I use Es File Explorer, and have used other apps to delete files off the nexus 7 storage. However when I plug it to the PC and open the internal storage, I see the files are still there. The files HAVE BEEN deleted though, as when I click on the file, it says file corrupt, and doesn't take up space anymore.
For example I put a movie file into my tablet. I watched it, and deleted it after I'm done. I plug it on my pc and I see the folder and file still there.
how can I fix this?
It can be a pain because I use my nexus 7 to read my school documents.. sometimes I rename the file, and the whole thing is corrupt, as in I can't open it when I plug it in my PC anymore, because the names doesn't match. Or If I don't remember correctly which files I've deleted, and re-delete it when I use my PC, soon it will be fill with a lot of useless files when I open the internal storage on my PC.
Any help? I don't remember this being a problem before, I was able to edit/delete files, and it would show up as is on my pc.
Also, when I open a folder with pictures on my PC, some files do show the thumbnail, while other files just show the default pic file.
Basically my nexus 7 feels very 'corrupt' and slow when I browse the files on my PC. Anyone else have the same problems?
You could use ADB instead
What you need:
PC
WP with tech preview installed. (preferably slow build as it is more stable)
Steps:
-On your PC create a shortcut to Your C: drive and you will then find the shortcut on your desktop.
-Plug in your phone and move the shortcut from the desktop to the root of your phone
-Unplug your phone and open file explorer from your app list.
-Tap my device and click on the C: drive shortcut and it should take you to the C; drive of your phne where you will have access to all files including the ability to change folder names to gain more permission to files inside..
im an enthusiast not a dev so anyone with more info correct me if im wrong on anything. Thanks
Edit: know what your doing this is dangerous
BakedOnSomeSour said:
What you need:
PC
WP with tech preview installed. (preferably slow build as it is more stable)
Steps:
-On your PC create a shortcut to Your C: drive and you will then find the shortcut on your desktop.
-Plug in your phone and move the shortcut from the desktop to the root of your phone
-Unplug your phone and open file explorer from your app list.
-Tap my device and click on the C: drive shortcut and it should take you to the C; drive of your phne where you will have access to all files including the ability to change folder names to gain more permission to files inside..
im an enthusiast not a dev so anyone with more info correct me if im wrong on anything. Thanks
Edit: know what your doing this is dangerous
Click to expand...
Click to collapse
It's a known trick for us but it can't provide Full FS it's not bad but can't copy / paste files anywhere.
I tried to copy resource hacker files of @djamol in the windows directory but it didn't work .
I forgot to test it with hanging the name of folder and now i am using 8.1 on my phone .
hope you test it and return me the result .
Hey is their anyway so that I can use on-screen navigation bar instead of my hardware buttons
Hey all -
Have a question.
I want to call the Camera intent, but have the camera save to a custom file.
I've read this: https://developer.android.com/training/data-storage/files#WriteExternalStorage
And the only two options it gives is 'Save to a public directory" (like \Pictures, \Ringtones, etc), or "Save to a Provate Directory".
The latter sounds like it's what I want to do - but mentioned 'getExternalFilesDir()' function retrieves my application's custom data directory (which is (1)removed when the app is uninstalled, and (2)difficult to find when the phone is plugged into a computer - to copy the saved files from.)
What I'd REALLY wanna do is save my files to a root directory in the external storage. (Like, "/<sdcard mount path>/PicLogger/<file>").
Anyone know of a guide, or examples that show how to save images through the camera into a custom directory like this?
Thanks!
-Mike
You can save the file wherever you want, given that you have permission to write to SD card, by passing the file URI as MediaStore.EXTRA_OUTPUT in the MediaStore.ACTION_IMAGE_CAPTURE intent. See Save the full-size photo.
That being said, you should prefer something like "DCIM/YourAppName" or "Pictures/YourAppName", which apps like Google PhotoScan etc have been doing.
Code:
new File(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM), "YourAppName")
Apps should not create their own directories directly under the SD card root directory, and if they want to make something visible to user, it should be under one of the standard directories, preferrably under a subdirectory named after your app.
Or if you want to support scoped storage since Q, you can check out this SO answer.