Hi all,

 

I am working on an IM application for android. Currently I have one main
activity showing a list of contacts and another activity (let's call it
ChatActivity) for handling conversation.

When the user starts a chat with a contact I open the chat activity with
the startActivity firing an Intent using ACTION_VIEW as action and
CATEGORY_DEFAULT as category with a sessionId as intent data expressed
as a content URI (in my own format content://userId#<IdValue>).

When a second user receives a chat message, a notification is shown in
the status bar. When it clicks on the notification the same intent
described before is fired to start the ChatActivity.

 

ChatActivity is registered in manifest using the following intent
filter:

 

<intent-filter>

                <action android:name="android.intent.action.VIEW" />

                <category android:name="android.intent.category.DEFAULT"
/>

                <data android:scheme="content"/>

</intent-filter>     

 

When the user clicks on the notification the right activity is started.
But when a new user launches a new message and a second notification is
added to statusbar and the user is not able to open his new chat
activity if the first one is already opened.

Basically, I'm not able to use the notifications on the statusbar to be
able to switch between different already opened conversation activities
(as using alt+tab on windows). It would be great if it was possible to
do so in some way.

 

What's wrong with my approach?

Have you got any suggestion?

 

Please help!

 

Thanks a lot and best regards,

 

Stefano 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to