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. Quick way to change android namespace prefix

If you find that the "android:" attribute prefix is cumbersome and
reduces the readability of your Android XML files, you might want to
try changing the prefix from android to _.  If you do it via the
Eclipse XML editor, it seems like you have to perform 2 find/replace
operations with regular expressions.  This is itself a cumbersome
task, so you can automate it:

1)  Download AutoHotKey, which lets you write a script to send keys
and mouse clicks to a program.  I believe that AutoKey does the same
for linux.

2)  Write a script to tell Eclipse to perform a find/replace, scope is
all, wrap search, regular expressions on, 1st find expression is
(xmlns:)android, 1st replace expression is \1_.  2nd find expression
is (\s)android: and 2nd replace expression is \1_:.  I also added in
format and save commands, so my AutoHotKey script is:

^!a::
Send ^f!f(xmlns:)android!e\1_!a!f(\s)android:!e\1_:!a{Escape}^+f^s


The result is a single-keystroke (Ctrl-Shift-a) to change a layout
file from:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:orientation="vertical"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent">
        <TextView
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:text="User name"
                android:textColor="#ffffff"
                android:textSize="20sp"
                android:layout_margin="5dp" />
        <EditText
                android:id="@+id/EditText01"
                android:layout_height="wrap_content"
                android:layout_margin="5dp"
                android:layout_width="fill_parent"></EditText>
</LinearLayout>


to


<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
        xmlns:_="http://schemas.android.com/apk/res/android"
        _:orientation="vertical"
        _:layout_width="fill_parent"
        _:layout_height="fill_parent">
        <TextView
                _:layout_width="fill_parent"
                _:layout_height="wrap_content"
                _:text="User name"
                _:textColor="#ffffff"
                _:textSize="20sp"
                _:layout_margin="5dp" />
        <EditText
        _:id="@+id/EditText01"
        _:layout_height="wrap_content"
        _:layout_margin="5dp"
        _:layout_width="fill_parent"></EditText>
</LinearLayout>

-- 

2. What algorithms does javax.crypto support?

I cannot find any documentation that specifies the algorithms that I can 
specify in getInstance for Cipher. Is there any around?

Specifically, I am looking for support for the RC4 cipher.
Thank you,
Jim Cortez

--

3. Dimana beli HTC Desire di Jakarta

4. Android Developers Needed - Bellevue, WA or Dallas, TX

5. Android Developers Needed - Bellevue, WA or Dallas, TX

6. gps accuracy

7. Font rendering