RAPI storage card detection - Windows Mobile Software Development

I've been bouncing this around for a couple of weeks now and I can't seem to find a way of doing it.
I'm writing a desktop application that needs to be able to tell what storage space is available, the problem is as we know, some devices have internal space, some have SD cards, some have none.
I know I can test for the existance of the "Storage Card" and "Internal Storage" folders, but what I also need to know is how to find out how much space is free on them.
I need to be able to do this via RAPI, either from reading a registry entry, or getting some file system info.
At present I'm using OpenNETCF.Desktop.Communication, but if anyone has any better ideas I'd love to hear them.
Cheers
Shawty

Related

External SD card issues?

I picked up a Black Friday A100, and spent the day playing with it, when I discovered that the micro-SD card I installed wasn't being read properly by the tablet. I had pulled it from my Nook Color, and while the A100 seemed to mount the card just fine, it couldn't see any of the contents. After reading a thread where someone else had a similar problem and solved it by replacing the tablet, I exchanged it at Wally World only to discover that this one has the same problem. I've tried multiple SD cards with no luck, and also noticed that the tablet doesn't give me the option of formatting the card.
Anyone else have this same problem? If so, do you have any suggestions for a solution?
Thanks in advance!
i also picked one up yesterday and popped in the SD card from my Nook Color, but I had no issues reading it.
Picked one up myself and had the same problem but found that the microSD is at /mnt/external_sd and not the usual /sdcard. They either have an internal sdcard for the tablet's memory or they have mapped onboard memory to the normal sdcard location.
Enjoy the tablet!
Sent from my HTC Glacier using XDA App
After a bit of research, it seems that the problem isn't with the tablet... it's with my expectations. Apparently, with Honeycomb, Android dropped the ability to move apps to the external SD card. The 8GB internal card is where the apps are installed, and the external_sd is only for media like movies, books, pictures and music. It seems like a strange step backward from Froyo, but it makes sense if a lot of the problems with performance and FCs had to do with apps running off of potentially crappy SD cards.
So... the stuffs still there, but it's just buried under root mnt/external_sd. For things like Titanium back-up, you just need to move the folder to the internal sdcard for the program to see it.
I hope this makes sense.
If you do need to free up some of internal storage (if you have a bunch of games with 200+ mb resource packs) you can install a root-access app called "GL to HD" that lets you move the game files to SD.

[Q] Is there a way to get rid of "internal" SD on Galaxy E4GT?

Ok i'm a bit of a noob so bare with me here... i have a 32GB SD card i'm using on my Galaxy E4GT but it only shows up as a folder in my "internal" SD so i cant really use it other then dead storage to make space.. i want the internal SD to be gone and just be phone memory so then my External SD card can be my other main memory .. so in a nutshell i guess i'm asking to be able to get rid of the "internal" SD and give its space to the actual phone and for the only other memory to be my External SD.. can this be done? and how?
I really don't understand what you're trying to ask, but I think you're confused about how external storage is being stored.
For starters, the internal SD can not be deleted. It's not even an option, it's like, taking the transmission out of a car. The car won't work. Your phone needs it's internal storage.
Your external storage is *mounted* (Google it) as /sdcard/external_sd/, meaning Android conveniently creates a "shorcut" folder to your external SD in your internal SD. Very similar to how when you plug in your phone to your WIndows computer, you see a new "Drive" in "My Computer".
Now that I re-read your message, I believe you're thinking your /external_sd/ folder is limited to the size of the internal SD (which is 16 GB). Like I explained, it's simply a shortcut for you. You're *not* limited to the size of the internal SD. In there is your 32GB external SD.
Hope I helped.
I think his problem is kind of what I was asking in my music thread. On the OG epic everything downloaded went straight to external sd storage. While I know it didn't have dual storage like this phone. This phone seems to not use the link to the external storage correct.
For example everytime I DL music from a playlist no matter what app it goes to the internal memory, not to the external memory. It seems that there needs to be a way to have the external memory link not sit inside a place in the internal memory so that downloads go there. Right now most of the time they sit in .../sdcard rather than find there way to .../sdcard/external_sd (or whatever it is).
I saw a link somewhere for a different device to swap internal and external but didn't get a chance to read it yet. that may solve the problem but i'm not sure. I wish it worked as easy as the OG epic so I could put my music playlists onto external and have them play/show up correctly.
Sent from my SPH-D710 using xda premium
StormGlove I
Hit the nail on the head.. Thats exactly what I'm talking about... The phone turns your External SD Card into dead storage space.. You can't run anything from inside it (Like Music or Games) and you can't make it your main SD Memory. What I want to know is how can I merge the "Internal SD" with the "Phone's Memory" to make them one.. So that the only two forms of memory on the phone are "Phone Memory" and "External SD Card".
Sent from my SPH-D710 using xda premium
you can't... it wouldn't make sense to want to be able to do that..
you could, through some hackery, switch the mount points and make external show as /sdcard and internal as /sdcard/external_sd for whatever reason.. but without repartitioning your phone... you aren't going to be able to do much more..
im still kind of lost on what is wrong with the internal sd?
btw music plays just fine from the external, and you can install games to and from the external.. i think you may have a misunderstanding of how it works..
EnVy MoNtOyA said:
StormGlove I
Hit the nail on the head.. Thats exactly what I'm talking about... The phone turns your External SD Card into dead storage space.. You can't run anything from inside it (Like Music or Games) and you can't make it your main SD Memory. What I want to know is how can I merge the "Internal SD" with the "Phone's Memory" to make them one.. So that the only two forms of memory on the phone are "Phone Memory" and "External SD Card".
Sent from my SPH-D710 using xda premium
Click to expand...
Click to collapse
What? I am able to play all my music stored on the /external_sd/music folder without issues. I am using poweramp though
I guess if you could modify the fstab file you might be able to have it in a way so it ignores the 'internal SD' and links it directly to the real SD card. Now if the phone will be able to work properly afterward is another issue but I don't see why not.
I understand music plays fine one moved there. I haven't tried poweramp yet. But for instance with double twist or Amazon mp3 when you sync playlists or any song it saves to internal memory without any option to sync to external. If you move the music to external the playlist won't work anymore. Yes the song will play but no playlist without remaking it.
I have no problems with using internal but it fills up pretty quick. As far as games I don't have any comment as I just leave those on internal memory. Thanks for the responses though. And maybe I'll try and use power amp to sync playlists.
Sent from my SPH-D710 using xda premium
stormglove said:
I understand music plays fine one moved there. I haven't tried poweramp yet. But for instance with double twist or Amazon mp3 when you sync playlists or any song it saves to internal memory without any option to sync to external. If you move the music to external the playlist won't work anymore. Yes the song will play but no playlist without remaking it.
I have no problems with using internal but it fills up pretty quick. As far as games I don't have any comment as I just leave those on internal memory. Thanks for the responses though. And maybe I'll try and use power amp to sync playlists.
Sent from my SPH-D710 using xda premium
Click to expand...
Click to collapse
Yeah, moving it after youve sync'd it most definately won't work, if it's saved to that location then you move it from that location, it's going to keep looking for it in the original location.
I've never used Amazon Mp3 or DoubleTwist, so I can't say maybe you guys are missing an option. Make sure you throroughly read and check all available settings in both programs.
All I know is that the externsl SD does not become dead storage, as I use mine everyday and play music, videos, view pictures, move/zip CWM backups, everything.
Maybe you can try uninstalling Amazon Mp3 /Doubletwist, reinstall, then before running it even once move it to your external SD. Then run it/set it up once it's in your external SD. Maybe that'll force it to save to your external SD.
I know its not dead space, haha. I wasn't completing about that, and I searched all over, its those apps. Google music is the same. There were numerous complaints on all there websites about not having a choice where to DL to, making the extremal in dual storage phones like ours, become useless when trying to get playlist off our computers onto them.
Sent from my SPH-D710 using xda premium
Ok as for music i use Google music and my offline music wont show when moved to External SD.. games is the same.. they just dont look for the External SD directory... im assuming that there is just one big hunk of memory in the phone and its partitioned into two parts (Phone Memory and Internal SD). If i can get rid of the partition that separates the two and just make it so that its all just phone memory without Internal SD.. the phone would be faster wouldn't it? and when i use my SD card it will just show up as SD card leaving only two sources to save or move things around to? again i could be way off and totaly wrong.. im only a noob at this point but im open to wisdom and learning as much as i can since im going to be a android user FOREVER
I am using "Media Monkey", and have no problems copying to the external SD. As a matter of fact, all of my music is sitting on the external. Its also (I think) the best music app available...
Sent from my SPH-D710 using xda premium
I guess my question is the 500mb of RAM just partitioned off the mass storage sd internal like the 2gb of memory for apps? Or is it 500mb chip in there seperate some where? Which im guessing it ia since it would have to run at a faster clock than the internal sd can
Sent from my SPH-D710 using xda premium
bluefire808 said:
I guess my question is the 500mb of RAM just partitioned off the mass storage sd internal like the 2gb of memory for apps? Or is it 500mb chip in there seperate some where? Which im guessing it ia since it would have to run at a faster clock than the internal sd can
Sent from my SPH-D710 using xda premium
Click to expand...
Click to collapse
Its my understanding that the memory used by the applications and RAM is shared on the same chipset that it's separate from the storage (internal SD) chipset. Checking the teardowns on http://www.ifixit.com/Teardown/Samsung-Epic-4G-Touch-Teardown/6481/2 shows that 16GB chip being separate but the one that holds the RAM and internal app storage is not described there.
Actually what the op is asking can work. It would need kernel changes tho and mappings of partitions changed. So that the primary partition (where the OS is installed) becomes say 1gb. Then the rest goes to internal storage (where all apps go.) Then nothings left for a "internal SD." Then the SD card can be used as the only storage.
Sent from my SPH-D710 using xda premium
Shoulon said:
Actually what the op is asking can work. It would need kernel changes tho and mappings of partitions changed. So that the primary partition (where the OS is installed) becomes say 1gb. Then the rest goes to internal storage (where all apps go.) Then nothings left for a "internal SD." Then the SD card can be used as the only storage.
Sent from my SPH-D710 using xda premium
Click to expand...
Click to collapse
OMG! YES! Finally someone who truly understands what im saying... you said it much better then i did for sure.. but yes thats exactly it.. i heard of someone doing work on this but i cant find the thread anymore.. it was called "*something* partition Mod" but it was for some other phone... if this could be done it would truly make my day and my phone would be perfect! im willing to help make it happen how ever i can ... unfortunately i dont know anything about coding or kernels but if there is another way i can help jus let me know.
I agree this phone does handle memory in a retarded way. Like for example when you move apps to sd it shows your available internal space but when you switch the app it goes to the actual sd card. So you'll notice that as you're switching them the amount available in internal is not decreasing but when you check your sd space you'll notice its memory decreased. However all my music is on the sd and I have no issue with it playing or creating playlists. Maybe you moved the files to sd and you had created the playlist while it was on internal so now it can't find it.. For the most part you can go into most apps setting and change between which memory you want to store internal or sd.
Sent from my SPH-D710 using XDA App
Yes I can create playlist and play them on the external. The problem is I have Some big playlists on my comp I want to put onto external without having to recreate them. So far I've been unsuccessful. I do need to try media play still though.
Sent from my SPH-D710 using xda premium

Whhy no App2sdcard?

Is there no way to do this?
I honestly don't get the huge benefits of internal storage, I'm guessing its faster but serously how much does it matter that I pull my filesu p a few micro seconds if not seconds sooner than it does to have something portable and much more easily back up able?
The point of Apps2SD was when Android phones shipped with limited internal storage. Now that devices have around 16GB standard internal memory, it doesn't make any kind of sense to put apps on the external SD, especially since the nand chips are going to be faster than any MICROSD card you put in your phone.
The main reason it doesn't work with this device or any device that utilizes MTP over UMS is because instead of there being separate partitions for /data and /sdcard, they are basically all on one partition, you just have symlinks that all point to the same location.
MTP also allows you to connect your phone to your computer and access files on both your computer and phone at the same time without requiring you to unmount the internal storage.
So, in essence, what im trying to say is that the way things are progressing is only for the benefit of the average consumer. If you absolutely need to put your apps on the external SD card, you could always look into symlinks, but I haven't had any luck making them work consistently (but I haven't tried very hard).
Also, is there some particular reason you just absolutely dont want your apps on the internal memory?
Sent from my SGH-I747M using xda premium
d3athsd00r said:
The point of Apps2SD was when Android phones shipped with limited internal storage. Now that devices have around 16GB standard internal memory, it doesn't make any kind of sense to put apps on the external SD, especially since the nand chips are going to be faster than any MICROSD card you put in your phone.
The main reason it doesn't work with this device or any device that utilizes MTP over UMS is because instead of there being separate partitions for /data and /sdcard, they are basically all on one partition, you just have symlinks that all point to the same location.
MTP also allows you to connect your phone to your computer and access files on both your computer and phone at the same time without requiring you to unmount the internal storage.
So, in essence, what im trying to say is that the way things are progressing is only for the benefit of the average consumer. If you absolutely need to put your apps on the external SD card, you could always look into symlinks, but I haven't had any luck making them work consistently (but I haven't tried very hard).
Also, is there some particular reason you just absolutely dont want your apps on the internal memory?
Sent from my SGH-I747M using xda premium
Click to expand...
Click to collapse
1. MTP is def slower than default usb mass storage transfers
2. I have music on my external card, if I want to give my external sd to my sister for a long road trip, I can no longer do that (huge disadvantage)
3. mtp is kind of buggy, I mean I can't right click and accurately decipher the size of some folders
Those are the three disadvantages. Would you be able to resolve that? A lot of porgramsl ike spotify don't even give you the option to save files to sdcard...it is just default and internal now.
zetsui said:
1. MTP is def slower than default usb mass storage transfers
2. I have music on my external card, if I want to give my external sd to my sister for a long road trip, I can no longer do that (huge disadvantage)
3. mtp is kind of buggy, I mean I can't right click and accurately decipher the size of some folders
Those are the three disadvantages. Would you be able to resolve that? A lot of porgramsl ike spotify don't even give you the option to save files to sdcard...it is just default and internal now.
Click to expand...
Click to collapse
Bind mounts will resolve your problem.
Life is a prison, death and release.
zetsui said:
1. MTP is def slower than default usb mass storage transfers
2. I have music on my external card, if I want to give my external sd to my sister for a long road trip, I can no longer do that (huge disadvantage)
3. mtp is kind of buggy, I mean I can't right click and accurately decipher the size of some folders
Those are the three disadvantages. Would you be able to resolve that? A lot of porgramsl ike spotify don't even give you the option to save files to sdcard...it is just default and internal now.
Click to expand...
Click to collapse
1. Our device does not support UMS by default (there is a hack for the external), but that wasn't even the point of this.
2. Yes you can. Just take the external out and hand it to her. But if you were to put your apps on your external then when you would take the external out, all your apps would be gone...so, still not seeing the point here.
3. Again, MTP was not the point of this. It is the fact that there is no real need to put apps on the SD card and none of these 3 reason had anything to do with that.
Sent from my SGH-I747M using xda premium
---------- Post added at 07:51 AM ---------- Previous post was at 07:50 AM ----------
prata said:
Bind mounts will resolve your problem.
Life is a prison, death and release.
Click to expand...
Click to collapse
Forgot about those. Going to attempt that to solve my Google Music issue.
Sent from my SGH-I747M using xda premium

[Q] "Storage full" with more than 3GB of empty space

Hello,
today, when trying to update my apps, I was told by Google Play that my phone's internal storage was completely full and it was thus impossible to install any updates.
Seeing as everything had worked perfectly fine a few days prior and I hadn't done anything exceptional that would merit multiple gigabytes of storage space to be used, I was completely baffled by this.
I opened ES Explorer and made it analyse my internal SD card, and it came up with two huge thumbnail files in my "Pictures" folder, each being around 2GB in size. I deleted them and thought my problem to be fixed. Nope. Still the exact same error message, even after rebooting. Another analysis of my storage came up with (and I'm sorry for not posting a picture, but it wouldn't let me due to spam-prevention measures) the following:
Near the bottom of the screen, it says in red "Used/Occupied: 10,18 GB", but the top-most window, listing all folders, shows that ES was only able to come up with around 6.3GB of data. Somehow, there are almost 4GB missing!
I wasn't sure if hidden files were being taken into consideration as well, so I skimmed through most hidden folders myself, trying to come across something, but according to my findings, everything should be working perfectly fine.
Has anybody had this problem before, and if so, how did you fix it?
Thanks in advance!
haiyyu said:
Hello,
today, when trying to update my apps, I was told by Google Play that my phone's internal storage was completely full and it was thus impossible to install any updates.
Seeing as everything had worked perfectly fine a few days prior and I hadn't done anything exceptional that would merit multiple gigabytes of storage space to be used, I was completely baffled by this.
I opened ES Explorer and made it analyse my internal SD card, and it came up with two huge thumbnail files in my "Pictures" folder, each being around 2GB in size. I deleted them and thought my problem to be fixed. Nope. Still the exact same error message, even after rebooting. Another analysis of my storage came up with (and I'm sorry for not posting a picture, but it wouldn't let me due to spam-prevention measures) the following:
Near the bottom of the screen, it says in red "Used/Occupied: 10,18 GB", but the top-most window, listing all folders, shows that ES was only able to come up with around 6.3GB of data. Somehow, there are almost 4GB missing!
I wasn't sure if hidden files were being taken into consideration as well, so I skimmed through most hidden folders myself, trying to come across something, but according to my findings, everything should be working perfectly fine.
Has anybody had this problem before, and if so, how did you fix it?
Thanks in advance!
Click to expand...
Click to collapse
I've had this problem happen to me once on a previous Android phone. I ended up performing a factory reset and it worked fine after that.

[Q] Spotify External Data Showing As Internal?

Hey guys,
I'm having this weird issue with my phone.
I specifically purchased a 32GB SD card to save a bunch of music from Spotify offline, and have a lot of room to do so.
Now, all of my offline data is in the appropriate folder on the External SD, and using Solid Explorer I can see that the folder size is correct and the files are there.
However, Android is interpreting the data as being stored Internally, and hence I am having loads of trouble with "insufficient storage space" and regularly unable to update apps/download new apps etc.
In the Link2SD app, the "external data" for Spotify is showing as being located at /data/media/0/Android/data/com.spotify.music, but a check in Solid Explorer shows this folder does not even exist, let alone stores all of my offline data?
The actual location of the offline data is /[externalsd]/Android/data/com.spotify.music.
Anyone have any clue why this is happening and what I can do to rectify it? It's truly, truly frustrating.
Also, I'm on lollipop (most recent Insertcoin build). The problem was also occurring in KK before I updated.
Cheers.
Hey,
I've got the same problem. Were you able to solve it?

Categories

Resources