[android-developers] Re: Cursors and accessing data

2009-06-01 Thread Jack Ha (T-Mobile USA)
You can do something like this: if (m_cursor.first()) { do { long id = m_cursor.getLong(0); String title = m_cursor.getString(1); } while (m_cursor.next()); } -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick

[android-developers] Re: get color from ImageView (x/y)?

2009-05-23 Thread Jack Ha (T-Mobile USA)
You can do something like this: public class MyImageView extends ImageView { . . . public boolean onTouchEvent(MotionEvent ev) { BitmapDrawable bd = (BitmapDrawable)getDrawable(); Bitmap bitmap = bd.getBitmap(); int

[android-developers] Re: whats wrong with my EditText to int

2009-05-22 Thread Jack Ha (T-Mobile USA)
Can you provide the logcat output that shows the stack trace? What value did you enter for the et2 field? -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do

[android-developers] Re: What's this problem?

2009-04-23 Thread Jack Ha (T-Mobile USA)
You may want to try adding the following line before "return bmp;" con.disconnect() -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily r

[android-developers] Re: What happened to the HOME button in cupcake

2009-04-12 Thread Jack Ha (T-Mobile USA)
You can try the following to make the Home button work in the emulator: 1. Edit "development/apps/SdkSetup/Android.mk" to include the "LOCAL_MODULE_TAGS := eng" line 2. Rebuild the system image with "mmm development/apps/SdkSetup snod" -- Jack Ha Open Source Development Center ・T・ ・ ・Mob