How to see image and media files in SDCard from emulator

by Freepine » Fri, 06 Mar 2009 21:49:06 GMT

Sponsored Links
 Or use adb shell, then ls /sdcard :)

On Fri, Mar 6, 2009 at 9:40 PM, dillirao malipeddi


Other Threads

1. Extending TabHost - override focus handling

Hi All,

I have a tabhost with the tabwidget on the bottom (not hard to do,
just put the tabcontent above the tabs in the tab xml).  However, I
noticed the order of focus is off (since the tabhost is hardcoded to
be on the top).  I'd like to change 2 things in how the tabhost
handles focus order:

1. change the tabwidget's position in the focus order (to be on
bottom, not top)
2. allow left and right focus commands to change the tabs from
anywhere (not just when the tabwidget is focused)

For #2 above, see HTC's sense toolbars for an example (built into the
hero, such as the albums or people native apps).

I think I can achieve both of these by overriding tabhost's
dispatchKeyEvent (code at bottom), I would just change the current
implementation to handle KEYCODE_DPAD_DOWN instead of KEYCODE_DPAD_UP,
and then add in left and right detection as well.

How can I override JUST this method in the tabhost implementation?
I'm not a Java pro, so this could be relatively simple and I'm just
clueless how to do it :)

Thanks much!

    public boolean dispatchKeyEvent(KeyEvent event) {
        final boolean handled = super.dispatchKeyEvent(event);

        // unhandled key ups change focus to tab indicator for
embedded activities
        // when there is nothing that will take focus from default
focus searching
        if (!handled
                && (event.getAction() == KeyEvent.ACTION_DOWN)
                && (event.getKeyCode() == KeyEvent.KEYCODE_DPAD_UP)
                && (mCurrentView.isRootNamespace())
                && (mCurrentView.hasFocus())
                && (mCurrentView.findFocus().focusSearch
(View.FOCUS_UP) == null)) {
            return true;
        return handled;

2. Performance issue: Dalvik VM is >20x slower than most modern Java VMs

Fyi, there is no Dalvik or Android compiler; the Java code is just compiled
with the regular javac.


3. Multiple instances of included layout, namespacing question.

4. onTouchEvent limited to 36x / second?

5. how do I load the new compiled kernel on my android dev phone 2 (htc)?

6. Missing HashSet find

7. looking for accelerometer example code using non-deprecated apis