» Home » sdcard » Page 1
How can I check with phonegap whether a user has a SDcard or has not.? Also where is data being downloaded saved: on SDcard or system.?
Category : Web Design

How can I check with phonegap whether a user has a SDcard or has not.? Also where is data being downloaded saved: on SDcard or system.?

View Replies

Android - file.exists() returns true for /mnt/sdcard folder, even though SDCard is unmounted? - Emulator
Category : Programming Languages

I unmounted the SD card by renaming the SDCard file (sdcard.img - located in .Android folder) for the emulator.

But my application's f.exists() still returns true for the root folder of the sd card - /mnt/sdcard (even though it technically shouldn't be there).

How can this be possible?

Edit: it returns false for files located under /mnt/sdcard/something. But

View Replies

device admin's wipeData(0) does not format SDCard. How to wipe SDCard clean using device admin or other way programatically?
Category : Programming Languages

I want to remotely reset phone to default factory settings. I used DeviceAdmin's wipeData(). Does the job but doesnt clean the SDCard.

Any clue what am I doing wrong OR is it that wipeData() does not clean the SDCard data. If so, how can I do it programatically?

View Replies

is there a difference between /mnt/sdcard and /sdcard?
Category : Programming Languages

I'm trying to save a bitmap into the Pictures directory. Here's the code

File path = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES);
File file = new File(path, "test1.PNG");
try {
OutputStream out = new FileOutputStream(file);

View Replies

issue on sdcard in sdcard
Category : Programming Languages

i need to retrieve the images from sdcard,i used the following code.

String[] projection = {MediaStore.Images.Thumbnails._ID};
cursor = managedQuery( MediaStore.Images.Thumbnails.EXTERNAL_CONTENT_URI,
columnIndex = cursor.ge

View Replies

Get sdcard directory by adb
Category : Programming Languages

I am making an application, which pulls files(Saved by android app) from the device sdcard by adb.
The problem is that different devices, have various sdcard directories



Firstly I invented following solution:

run adb shell
Check if dir "sdcard" exists
If yes run sdcard/ ls and check if external_sd

View Replies

TAGS : sdcard directory

get all files from sdcard
Category : Programming Languages

I want get all paths files (and their sizes!!) from sdcard.

I change code:

List<File> dir = new ArrayList<File>();
List<File> files = new ArrayList<File>();
File root = new File (Environment.getExternalStorageDirectory().getAbsolutePath());
for (File f : dir) {

View Replies

TAGS : files from sdcard

Cant able to create DIR in sdcard
Category : Programming Languages

i have make code to make directory on click event of button. but i cant able to create directory. previously i can do it easily but now it have some trouble and i dont get success please help on this:-


button1.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
Username = username.getText().toStrin

View Replies

Security to SDCard
Category : Programming Languages

How to provide security in android sd card file. I am creating one application for E-book reading user can download it using that application and can read user can download it from web-service and after downloading it stores in SDCcard as .epub file

But i want to Provide it security that if one user download any book then other user cant copy from SDCard or

View Replies

TAGS : Security SDCard

SDcard only RO even after set permissions
Category : Programming Languages

I have added <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> to Manifest but I still get "SDcard mounted RO" when executing the below code. What am I doing wrong here?

if(!extState.equals(Environment.MEDIA_MOUNTED)) {
("SDcard not mounted"));
else if (

View Replies

2012 / 2017 Copyrights BigHow , All Rights Reserved .