You misinterpret the issue (read my posts again) Indeed, SD card is not equal to external storage. But it CAN be, if the manufacturer decides to return it when you call getExternalFilesDir or getExternalStorageState. This is exactly my problem: in case of HTC One V, the API considers the SD card as external storage (instead of using the internal for this purpose). Therefore, users who don't have an external SD card inserted into their HTC One V will not be able to install my application. Again, this is because HTC One V assigns the SD card to getExternalFilesDir.
2013. június 23., vasárnap 1:31:57 UTC+2 időpontban RichardC a következőt írta: > > External Storage != SD Card (read the docs) > > External Storage is the part of the Android file system mounted > "externally" when you attach the phone to a computer (via USB) and enable > file sharing. It does NOT need to be the SD Card. > > On Saturday, June 22, 2013 11:55:14 PM UTC+1, Tamás Kovács wrote: >> >> Of course I do. My problem is that if the user has no SD card put to the >> optional slot, my app will not install (it needs APK Expansion from Google >> Play). This is because getExternalStorageState() and getExternalFilesDir() >> will not return the internal storage unfortunately, even though my app >> could install there. They return the optional CD card slot on HTC One V. >> >> >> >> 2013. június 23., vasárnap 0:32:40 UTC+2 időpontban TreKing a következőt >> írta: >>> >>> >>> On Sat, Jun 22, 2013 at 5:25 PM, Tamás Kovács <falcon.f...@gmail.com>wrote: >>> >>>> And since SD card is not mandatory, it will not find it and my app >>>> needs it. >>>> >>> >>> So check that the external storage exists first. >>> >>> >>> ------------------------------------------------------------------------------------------------- >>> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago >>> transit tracking app for Android-powered devices >>> >> -- -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.