Accessing sdcard filesystem through dev machine filesystem - possible?

by Marco Nelissen » Sun, 10 May 2009 06:57:59 GMT


Sponsored Links
 When the phone is plugged in to your computer, open the USB notification
(drag down the status bar, select "USB connected"), then choose "mount".





--~--~---------~--~----~------------~-------~--~----~



Accessing sdcard filesystem through dev machine filesystem - possible?

by Marco Nelissen » Sun, 10 May 2009 06:59:38 GMT


 I should add: while the sd card is mounted on your computer, it won't be
accessible to the phone, so it's probably not really going to be more any
more convenient than using adb push/pull.






--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Accessing sdcard filesystem through dev machine filesystem - possible?

by Raphael » Sun, 10 May 2009 14:20:52 GMT


 The original post is about an sdcard image, so I guess this is
emulator related. An emulator sdcard is a FAT32 filesystem so you
should be able to mount it using mount under linux if you have a fat32
support module. Under Windows or Mac there are probably ways to do
that too.

As Marco said you can't access the sdcard image or device from 2
different locations, e.g. emulator and host can't access it at the
same time, unless you want to corrupt it. There's no mount/umount UI
in the emulator so you'd have to quit it and restart it. adb push/pull
or ddms explorer might be a better choice.

R/






--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Adding contact working in emulator but not in real device

Hi
I implemented an application which will add contacts .
It is working in emulator perfectly. I have android 2.0.1 device
I am checking in that device but it is not adding contacts to contact list.
I have given necessary permissions like write contacts .

Any help
karteek

--

2. Update information in contacts

Hi,

I am trying to update information in Contacts database, phonenumber.

Analyzing following code:

        public ArrayList<Phone> getPhoneNumbers(String id) {
                ArrayList<Phone> phones = new ArrayList<Phone>();

                Cursor pCur = this.cr.query(
                                
ContactsContract.CommonDataKinds.Phone.CONTENT_URI,
                                null,
                                
ContactsContract.CommonDataKinds.Phone.CONTACT_ID +" = ?",
                                new String[]{id}, null);
                while (pCur.moveToNext()) {
                        phones.add(new Phone(
 
pCur.getString(pCur.getColumnIndex(ContactsContract.CommonDataKinds.Phone.NUMBER))
                                        ,
pCur.getString(pCur.getColumnIndex(ContactsContract.CommonDataKinds.Phone.TYPE))
                        ));

                }
                pCur.close();
                return(phones);
        }



I am trying to update info about record with id=1:

Doc says that I could use getContentResolver.update();

So I want to use it like

ContentResolver cr = getContentResolver();
final ContentValues values = new ContentValues();
values.put(ContactsContract.CommonDataKinds.Phone.NUMBER, "55555555");

cr.update(ContactsContract.Contacts.CONTENT_URI, values, where,
selectionArgs);

Will this work and how to configure where and selectionArgs properly
for doing this if it works?

--

3. Cara Memperbesar Internal Storage / Resize NAND Partitions

4. Can I get a web link to my newly published app

5. Htc sync

6. [WTA] [OOT] HELP!! rooting spica gagal terus..

7. [WTS] Case/Screen Guard/Dock Charger+Sync Samsung Galaxy S dan Galaxy Tab