HTC Desire :: Unable To Read / Write To 8GB SD Card
Apr 26, 2010
My new HTC desire is unable to read or write to my 8GB SD card which was previously inside my HTC HD touch.
Why is this? I've swapped the SD cards around - i.e. the 4 GB SD card which it came shipped with is now inside my HTC HD touch It doesnt have a problem reading or writingto the 4 GB SD card that it came shipped with. I would prefer not to have to format the card
View 1 Replies
Oct 23, 2012
I did a backup using Titanium Backup and Go Backup and after wiping my Motorola Defy, tried to restore apps, contacts etc. The problems I encountered were:
1) Go Backup can't recognize backup directory on SD card for some reason.
2) Can't move apps to SD. An error occurs: "Move Application: Failed to move application. There is not enough storage left." Needless to say, I have more than enough storage.
This is was I encountered by far, although I believe these are just a small part of the symptoms for a single problem.
Maybe its because there are no permissions, or moving apps is impossible because of an existing app files on the SD card.
What is the actual cause for this? Or is there a tool to fix the permissions on the Defy?
View 9 Replies
View Related
Jul 18, 2010
There are a lot of different classes that can be used in various ways to read/write to files in Android. For example, you can make use of java.nio.ByteBuffer, FileOutputStream and BufferedOutputStream. Are there any general guidelines for what to use to read/write quickly to the SD card? For example, BufferedOutputStream seems as if it should make things faster but I'm unsure the buffer size should be set for. Specifically, I want to read/write byte arrays that are ~1Mb in size as quickly as I can.
View 1 Replies
View Related
Nov 16, 2010
I need to directly read/write a file on sd card without cache. I can use "posix_fadvise" to achieve the purpose on Ubuntu I try NDK to make the function call, but it seems disabled on Android How can I do?
View 4 Replies
View Related
Mar 1, 2010
Is there a right associated with write/read access to the sd card that needs to be set in the manifest.xml file? I'm currently trying to write to the sd card using a standard FileOutputStream here:
FileOutputStream out = new FileOutputStream("/ sdcard/images/"+imageName);
bmp.compress(Bitmap.CompressFormat.JPEG, 90, out);
But it doesn't seem to be working. It just says the location isn't found, which can happen if there are no permissions to read/write to the location.
View 2 Replies
View Related
Apr 21, 2010
I seem to have a problem with facebook messages, I get the notification ok but if I try to read them, I'm just getting a blank screen, with a URL at the top.Any ideas?
View 2 Replies
View Related
Sep 13, 2010
For some reason when loading my SD Card it says "Mounted Read Only". I have been messing around with installing new ROM's and that which is probably what caused it?
View 6 Replies
View Related
Aug 4, 2010
Update my Desire to 2.2 yesterday now everytime i turn the phone on i get an error message saying: Mounted ReadOnly. The SD card has an unexpected problem. Tapping.....(cant read the rest of the message) Can anyone help with this. The only way i can access my photos or music is going via a file explorer.
View 49 Replies
View Related
Sep 23, 2010
I suddently run into this problem. My desire was feeling little slow today so i rebooted and now it says "The SD card has an unexpected problem" and wont mount it. it says SD card in read only mode. Tried rebooting again, took battery and sd card off but the problem stays. is the SD card damaged or what should i do? tried SD card on other computer and it worked fine. Seems like software issue orsumthin
View 1 Replies
View Related
Oct 18, 2010
Right. Originally had leedroid 2.2a but then flashed defrost 5.3 to see what it was like. Found it was not very stable so i decided to nandroid restore back to leedroid, now my memory card has changed to read only and I can't use it with my phone.
View 5 Replies
View Related
Dec 15, 2009
I'll open with, I googled this thing like crazy, searched anddev and a few other boards (including this one) and can't quite find what I'm looking for.
The predicament : all CSV examples are in reference to contacts, and the file read/write posts (the ones that I need) make the assumption that I am not a beginner and most don't even post any code leaving me nothing to learn on.
The hopeful solution : a link to a solid example of simply how to write to a CSV with my own custom fields and values, and how to read a CSV and load said values.
View 5 Replies
View Related
Oct 22, 2013
I want to write a program to read PDF files. Where should I start if I do need a special library?
View 1 Replies
View Related
Nov 8, 2013
I am writing application to read information from NFC tag after that edit the information and write again to NFC tag without touch second tag (only read and write in the first touch). The data after write into the tag that is displayed into mobile. The processing is such as (Read tag=>Get Information=>Edit information=>Write Tag again=>Read information to display)I found some solution in the internet such as android read back the tag infomation after write, without second touch of tag...But when I implement it.It did not work for writing.
[HIGH]import android.nfc.NfcAdapter;
import android.nfc.Tag;
import android.nfc.tech.Ndef;
import android.nfc.tech.NdefFormatable;
import android.os.Bundle;
[code]....
View 1 Replies
View Related
Oct 6, 2010
In my application, I use MediaPlayer to record audio to a file.Can I read the file at the same time?
View 2 Replies
View Related
Mar 13, 2010
how to read/write log data into a text file in android that file should be res folder.
View 5 Replies
View Related
Sep 23, 2009
I am new for android development. I am trying read and write contacts to android addressbook.
I tried following line of code for write name into android.
CODE:.............
But i am getting "The application has stopped unexpectedly. Please try again" message.
How can i access contacts of android ?
View 2 Replies
View Related
Jul 9, 2010
When i try that code...
when run program both can't write /read occure
I have set permission to access sdcard what is the problem?
View 1 Replies
View Related
Sep 14, 2010
How to read and write strings in text file in android which is kept in raw folder and also how to clear contents of that file in android?
I have done this way and my "temp.txt" file is in /raw folder. But i am not getting any output in file. Also I am not getting any error for this...
View 2 Replies
View Related
Mar 13, 2010
How to write/read log data into txt file in res folder.
View 4 Replies
View Related
Apr 29, 2010
I cannot read and write extended characters (French accented characters, for example) to a text file using the standard InputStreamReader methods shown in the Android API examples. When I read back the file using: the string read is truncated at the extended characters instead of at the end-of-line. The second half of the string then comes on the next line. I'm assuming that I need to persist my data as UTF-8 but I cannot find any examples of that, and I'm new to Java. Can anyone provide me with an example or a link to relevant documentation? Code...
View 3 Replies
View Related
Mar 25, 2014
how to pull and push registers to i2c devices? (Especially camera)
I'm using RootTools to get the list of the devices: "busybox find /sys/devices/i2c*/*/*/ -name name"
View 3 Replies
View Related
Aug 26, 2010
I'm having a nightmare and really need some help from someone a bit more savvy than me. I've been looking at various threads and cant make my arse from my elbow. I seriously have tried guys and not just being lazy. So, I've bought a new SD card and I want to use apps2sd+ which is built into the LeeDroid rom that I have managed to flash using ClockworkMod Recovery. The problem I have is making a partition on my card. I've downloaded Rom Manager but when it goes to do its stuff, it reboots with an exclamation mark and a droid. What/where am I doing or going wrong?
View 5 Replies
View Related
May 3, 2010
I have an application that can read and write txt files to the phones sdcard. By using this code for reading files:
@Override protected void onListItemClick(ListView l, View v, int position, long id) { super.onListItemClick(l, v, position, id); mFileNameOpen = files.get(position);
String st = null; mVector.clear();
notepad.mNewEmpty = false; try { File f = new File(Environment.getExternalStorageDirectory()+"/ notepad/"+mFileNameOpen); FileInputStream fileIS = new FileInputStream(f);
BufferedReader in = new BufferedReader(new InputStreamReader(fileIS));
do { st = in.readLine();
mVector.add(st);
}while(st!=null); in.close(); ...
} catch (FileNotFoundException e) { e.printStackTrace();
} catch (IOException e) e.printStackTrace();
and this to write them:
try { File root = Environment.getExternalStorageDirectory();
File fileCheck = new File(root, "/notepad/" + fileNameSave + saveExtension);
boolean exists = fileCheck.exists();
if (!exists) { if (root.canWrite()) { File textFile = new File(root, "/notepad/" + fileNameSave + saveExtension);
FileWriter textWriter = new FileWriter(textFile);
BufferedWriter out = new BufferedWriter(textWriter);
out.write(SAVEAS); out.close(); written = true;
} else { written = false; else { written = true; showMaybe = 1; showDialog(DIALOG_SAVE_EXISTS);
catch (IOException e) {Log.v(getString(R.string.app_name), e.getMessage());
This has been working fine on my Tattoo and all the emulators I've tried this on. But it does not seem to be working on moto droid. Is there something different to consider with moto droid? Or have I missed something in the manifest maybe?
View 11 Replies
View Related
Mar 25, 2009
I want to know how to get SMS Delivery Report setting which is stored in the /data/data/com.android.mms com.android.mms_preferences.xml. I wrote a application to read it with the following code:
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this); boolean requestDeliveryReport = prefs.getBoolean( "pref_key_sms_delivery_reports", true);
Seems it does not work, it always returns the default value which is "true". Does anybody know how to read/write the SMS Delivery Report setting.
View 2 Replies
View Related
Jan 4, 2010
I m using Android 1.5 my data directory does'nt have the read/write permissions
System.out.println("DAta can write??--->"+Environment.getDataDirectory().canWrite());
System.out.println("DAta can read??--->"+Environment.getDataDirectory().canRead());
So please suggest me how to provide permission for the data directory.
What m trying to do is to create a file and add some content to it iin the Data storage of the emulator like as below
private void writeToSDCard() {
try {
File lroot = Environment.getDataDirectory();
if (lroot.canWrite()){
File lfile = new File(lroot, "samplefile.txt");
FileWriter lfilewriter = new FileWriter(lfile);
BufferedWriter lout = new BufferedWriter(lfilewriter);
lout.write("XXXXXXXXXXXXXXXXXX");
lout.close();
}
} catch (IOException e) {
Log.e(m_cTAG, "Could not write file " + e.getMessage());
}
}
View 2 Replies
View Related
Feb 24, 2010
I am very new to android and i have wrote an application that reads the Cell ID information , now i want to create a text file and store the information inside , i have googled this issue but i couldn't find a solution that really worked.
View 2 Replies
View Related
Aug 23, 2010
I don't yet have my shiny new X10, but it should be with me in a few days. In anticipation of its arrival, I wonder whether it is possible to read and write Japanese on the phone? I'd like to add an English-Japanese dictionary, and hope that I'll be able to read the Japanese entries.
View 7 Replies
View Related
Nov 3, 2010
I am new to Android and relatively new to Java so please bear with me. I have an XML file stored in the res/xml that I am trying to write to. I know how to read it using XmlResourceParser, but I have not been able to find a way to write to that file locally. Could someone point me in the right direction please.
View 2 Replies
View Related
Dec 13, 2011
I've done this app Bookmarks Easy Import that import pc bookmarks (and folders too) in Android bookmarks but it required root because it read and write directly an Android database.
know if is possible read and write Android bookmarks from b4a or java application (via API?) in a non-rooted phone?
View 4 Replies
View Related
Mar 13, 2014
I am looking for an scanner engine to Read and Write QR code or barcode. On either a tablet or mobile phone.
View 1 Replies
View Related