Farzad
Farzad

Reputation: 2090

Android getExternalStorageDirectory() behavior on all devices

Do the following method on all mobile devices and all versions of Android tablet is working properly?

Upvotes: 0

Views: 598

Answers (1)

CommonsWare
CommonsWare

Reputation: 1006624

It is possible that errors on some phones and versions?

Sure. It is fairly unlikely, particularly for devices that legitimately have the Play Store and other Google proprietary apps. Devices with those apps have to pass through compatibility testing, and that testing will include testing external storage.

String path always is return Correctly and always exists on all phones?

Your path will exist on approximately zero phones, as few devices will ship with a myfolder/ directory off the root of external storage. The external storage path (Environment.getExternalStorageDirectory()) should exist.

Upvotes: 1

Related Questions