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. HttpsURLConnection returns -1 code on second request

Hi all,
I think I'm experiencing the same as

2. Crashing under Android 2.2. APIs update soon?

It seems a little ahead of tomorrows Google event...  But I'm already
getting many complaints that my app fails completely under Android
2.2.  So that scares me a lot!!

Anyone know when the API might be released? Tomorrow perhaps? :)

-Moto

-- 

3. How to get an app included in the Android Market Showcase

4. how to draw a simple shape according to compass data

5. Spica udah diroot, pengen diinstal live wallpaper & wifi tethering

6. WTX: Desire <-> N1

7. OMX_GetHandle query