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 android:name="Test2"
<action android:name="android.intent.action.SEARCH_LONG_PRESS"/>
<category android:name="android.intent.category.DEFAULT"/>

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. Animation between 2 activities?

Hi there!

I program on an application where different views are arranged
horizontally, each view of screen size. The user should be able to
switch between these views using his finger. I first used the
ViewFlipper, which was great for simple layouts, but which is *way*
too slow if the layouts of the views are more complex, because all
Views are drawn.

A much better method would be to place one layout per activity and
switch between these activities using the slide in / slide out
Is something in this direction possible with Android right now? Any
recommendations or best practices?

Regards & great thanks in advance

Marc Reichelt   ||

2. Market screen shots

I realize this is sort of a Market question, but it's for developers,
not users, so, I dunno...

Anyway, I noticed that I could add screen shots for my paid app but
not for my fee app.  There was no "browse/upload" interface for the
free app although the console still mentioned the possibility of
adding two screen shots.

Has anyone else noticed this, an inability to add screen shots due to
the console page not showing the "browse/upload" buttons, and is it
correlated with paid vs. free apps or that a coincidence in my case?



3. R.drawable

4. ViewFlipper with clickable items

5. CheckedTextView.isChecked

6. Custom View donot Draw in ListView

7. Custom translucent theme