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. How to customize the sort order of contacts display

i am writing a custom contact Sync. i want to change the default sort of
contacts.

Does anyone know how to do this?

-- 

2. disable the screen time out even restart the android

hi, is there any method to disable the screen time out even restart
the android?

-- 

3. Huawei Aviator

4. Ganti firmware mesti root ulang gak buat spica?

5. what are the contents of the en.us/*.par files?

6. Samsung Galaxy S vs HTC Desire

7. Rejoice EVO Users, CM6 is coming your way