Events not catched on real device using Activity.dispatch<EventType>

by Marco Nelissen » Mon, 13 Apr 2009 00:03:08 GMT


Sponsored Links
 Are you sure that settings[1], settings[2] and settings[3] are true on
the device?





--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. ListView with multiple layouts formats in it

I'm trying to create a ListView that has different layouts in it.
Basically headers which contain only one string, and then items under
the headers that have a string and a picture.  So something like


HEADER A
img1 : item A1text
img2 : item A2 text
img3 : item A3 text
HEADER B
img1 : item B1text
img2 : item B2 text

I've created a custom ArrayAdapter, but the constructor takes a
textViewResourceId which specifies what layout the items in the list
will use to display.  My problem is I have 2 formats.  One for the
header and one for the item.  So in the below example, OrderAdapter is
passed R.layout.header. (header is defined by header.xml).

this.m_adapter = new OrderAdapter(this, R.layout.header, m_orders);

I need OrderAdapter to handle R.layout.header AND R.layout.item
(item.xml defines a ImageView and a textView, header.xml only defines
TextView).

How is this done?

Thanks

-- 

2. SoftKeypad upon the Notification Bar

When we pull down the notification bar, we see the current
notifications. We've taken it a step further and we're able to get
audio, video and buttons in notification bar, when it is pulled down.


Now my issue is, I need the soft keypad to come up when I click on the
edit text field inside the notification bar. The qwerty keyboard
simply doesn't show up. I tried forcing it to show itself using the
following code inside the notification file.

InputMethodManager inputMethodManager = (InputMethodManager)
mContext.getSystemService(Context.INPUT_METHOD_SERVICE);
inputMethodManager.toggleSoftInput(InputMethodManager.SHOW_FORCED,InputMethodManager.HIDE_IMPLICIT_ONLY);


inside StatusBarService.java

Anyone who could enlighten me on this?

-- 

3. Announcement: DynaDroid - an open source micro-framework for Android

4. LK2.03 dan SamdroidMod

5. having trouble to use network speed emulation in android emulator

6. Get phone country/area code, anyone?

7. About G sensor driver