[android-developers] Re: Killi Process with files on SD card

2010-10-06 Thread mkellner
On Aug 28, 3:06 pm, Ken Yang wrote: > I did it the same way... > > but it only works on 1.6、2.1 device.. > > it's doesn't work on 2.2 device, no matter on nexus one or 2.2 > emulator... My code was working fine, receiving ACTION_MEDIA_EJECT when the user unmounted the /sdcard. After update to

[android-developers] Re: Avoiding compression on large files

2010-09-29 Thread mkellner
> The issue has nothing to do with speed.  The issue is getting a large > file to be readable AT ALL.  When you open a compressed file larger > than 1M you get an exception:  Data exceeds UNCOMPRESS_DATA_MAX I called my 3MB .zip file a .jet file to get it to be added to the .apk uncompressed. I

[android-developers] Re: Long-press hard volume keys

2010-04-24 Thread mkellner
>            } else if (keyCode == KeyEvent.KEYCODE_VOLUME_UP) { >                    // they pressed the volume up key >                    return true; >            } else { >                    return super.onKeyDown(keyCode, event); >            } >     } > > On Apr 24, 10:31 pm, mkellner w

[android-developers] Long-press hard volume keys

2010-04-24 Thread mkellner
Hello, I'd like to prevent the volume toast from showing up when the user long-presses the hardware volume keys. Is this possible? I get the volume key events, but don't know how to disable the system dialog from appearing. Thanks, -mk -- You received this message because you are subscribed t

[android-developers] Re: Callback when SoftKeyboard goes away

2010-04-24 Thread mkellner
going fullscreen): > > http://code.google.com/p/android/issues/detail?id=5497 > > On Apr 24, 9:37 am, mkellner wrote: > > > > > > The layout that your views are in should get a call to onSizeChanged() > > > with the new sizes. > > > I agree. They should. But

[android-developers] Re: Callback when SoftKeyboard goes away

2010-04-24 Thread mkellner
in should get a call to onSizeChanged() > with the new sizes. > > I had exactly the same issue a few months ago.  My solution was to > place my View implementation in a ScrollView and override > ScrollView.onSizeChanged() to do stuff that I needed when the IME was > shown/hidden. &

[android-developers] Re: Callback when SoftKeyboard goes away

2010-04-22 Thread mkellner
/ > hidden. Take a look here: > > http://groups.google.com/group/android-developers/browse_thread/threa... > > On Apr 22, 3:40 am, mkellner wrote: > > > > > Hello, > > > I am trying to find a way to get a notification that the soft keyboard &

[android-developers] Callback when SoftKeyboard goes away

2010-04-22 Thread mkellner
Hello, I am trying to find a way to get a notification that the soft keyboard has been dismissed by the user pressing the "Back" key. showSoftInput() with a ResultReceiver will tell you if/when the keyboard appears, but not if it goes away. addTextChangedListener() doesn't get called because tex