[android-developers] postDelayed vs. post

2011-08-31 Thread Dmitry Golubovsky
Hi, Q1: Is post(action) equivalent to postDelayed(action, 0)? Q2: If a view implements a never stopping cycle like this, depending on two time parameters, N and T: public void timerEvent() { final class Timer implements Runnable { public void

[android-developers] Re: postDelayed vs. post

2011-08-31 Thread Dmitry Golubovsky
Dianne, Thanks for your quick reply. On Aug 31, 12:28 pm, Dianne Hackborn hack...@android.com wrote: On Wed, Aug 31, 2011 at 9:16 AM, Dmitry Golubovsky golubov...@gmail.comwrote: Q1: Is post(action) equivalent to postDelayed(action, 0)? Yes. OK, may I suggest that this be reflected

[android-developers] Launch activity on a file with certain name pattern (file-manager independent)

2011-04-07 Thread Dmitry Golubovsky
Hi, Suppose I have a number files whose names satisfy certain pattern, located anywhere in the file system (SD card likely). I am looking for a file-manager independent way to launch a predefined target activity upon user tapping on those files icons provided that the activity has proper intent

[android-developers] Transparent InputConnection?

2011-03-30 Thread Dmitry Golubovsky
Hi, Is there an example of/tutorial on maximally transparent subclass of BaseInputConnection? Android 2.0 if that matters. All I need is to pass a key event to the target view on any alpha or digit or special character soft key pressed, bypassing any built-in text editing capabilities. This is

[android-developers] How to get an event for soft keyboard KEYCODE_DEL?

2011-03-02 Thread Dmitry Golubovsky
Hi, In my application, I bring the soft keyboard on from time to time, and it looks like events for the DEL key are not delivered. The method in question is at http://pastebin.com/zZaZWJ4t and the whole Java class is at

[android-developers] SDcard mount point in portable way?

2011-02-25 Thread Dmitry Golubovsky
Hi, In my program, I need to access the full contents of the sdcard for reading and writing. I have found that the sdcard is itself mounted at /system/media/sdcard (on Pandigital Novel 9 tablet, Android 2.0). Is there any library function that would return this path correctly for any other

[android-developers] Re: SDcard mount point in portable way?

2011-02-25 Thread Dmitry Golubovsky
Mark, Thank you for response. On Feb 25, 4:38 pm, Mark Murphy mmur...@commonsware.com wrote: On Fri, Feb 25, 2011 at 6:41 AM, Dmitry Golubovsky golubov...@gmail.com wrote: I have found that the sdcard is itself mounted at /system/media/sdcard (on Pandigital Novel 9 tablet, Android 2.0

[android-developers] emulator: ERROR: the user data image is used by another emulator. aborting

2010-04-14 Thread Dmitry Golubovsky
Hi, I am trying to start the emulator and get this message. No other emulator is running. I am working under Linux, home directory is mounted via sshfs. I saw reports of this message from Windows users when emulator images were located on networked drives/folders. Does the same problem apply to

[android-developers] emulator: ERROR: the user data image is used by another emulator. aborting (cont'd)

2010-04-14 Thread Dmitry Golubovsky
OK, finally strace gave me this: lstat64(/home/dima/.android/avd/AVD-1.avd/userdata- qemu.img.tmp-6p9Pnr, {st_mode=S_IFREG|0600, st_size=6, ...}) = 0 link(/home/dima/.android/avd/AVD-1.avd/userdata-qemu.img.tmp-6p9Pnr, /home/dima/.android/avd/AVD-1.avd/userdata-qemu.img.lock) = -1 ENOSYS

[android-developers] Re: emulator: ERROR: the user data image is used by another emulator. aborting (cont'd)

2010-04-14 Thread Dmitry Golubovsky
David, On Apr 14, 12:44 pm, David Turner di...@android.com wrote: It is possible, and quality patches are gladly accepted, to be sent at b.android.com The code you're looking for is at external/qemu/android/utils/filelock.c Thank you, For the record, I also have submitted Issue 7717. I