Trouble with starting an activity with long press of search key

by 濂囪抗鐨勯緳 » Mon, 11 Oct 2010 05:41:45 GMT


Sponsored Links
 There are two activities in my app,they are declared like this :

<activity android:name="Test1">
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER"/>
</activity>

<activity android:name="Test2"
android:theme="@android:style/Theme.Dialog">
<action android:name="android.intent.action.SEARCH_LONG_PRESS"/>
<category android:name="android.intent.category.DEFAULT"/>
</activity>

the problem is:when I was in the activity Test1 and pressed the home
key,then I took a long press of search key,activity Test2 didn't
show,and activity Test1 was taken to the foreground,but I can see
activity Test1 was started in logcat.   I was really confused , anyone
can help me

--



Other Threads

1. Can two application's content providers share one authority?

Hi,

   Can i override already existing content provider
   by implementing another ContentProvider with same authorty?

   If that is the case.
   How can android system decides ContentProvider to handle data
requests?

   What is typical usae of MIME type?

   We maintain unique URI for each Data.
   Then why do we need MIME type again?

   Is not CONTENT_URI enough for all requests?

   If it is not the case.
   Can you give me some example, where MIME play it's unique role?
   Intent-filter are able provide information about URI as well as
MIME type.


   Thanks in advance.

-- 

2. Adding separators to a ListView

Hi all. I have created a ListView from a collection of objects, using
an ArrayAdaptor to set the items.

The objects used to populate the list have a NAME field, and are
sorted into alphabetical order, so ultimately the ListView is long
list of names.

I now want to make the list more user friendly. I'd like to add a
separator for each letter of the alphabet, saying "A", "B" etc. The
separator could be one of the list items (non-clickable) or just a
normal View.

I'm just not sure how I can manipulate the ListView to achieve this,
and would appreciate any help.

Thanks.

--

3. Using <Uses-Library> in android application

4. Android Contact Search

5. CLosed WTB: pulsa XL murmer

6. DONT FORGIVE - DONT FORGET - 26/11 - 2 Years But Nothing Different

7. PUBLISHED APPS MISSING FROM UPDATED CONSOLE