I am developing the chat application.I want to show the pop up view when some one send message to user like this http://code.google.com/p/android-smspopup/.
there is also reference picture https://market.android.com/details?id=com.blntsoft.emailpopup
Any one any idea how it works?it will show in native application or in other app also.please provide me the link for reference.I am using the service for web services calls.so service will invoke the pop up view.
Thank you.
As my knowledge you can not open a dialog from Service.
But you have one option to open popup window from service for that
1) Make a Layout of popup window.
2) Create on activity and set layout as content view in this activity
3) In manifest you have to write this
4) From service you have to call this activity when you want to open popup.But keep it mind that from service you have to set flag of intent as
now you can able to open your activity as popup window.
EDIT
1) Layout main.xml
2) test2.java which will act as Popup
3) Manifest.xml file
4) Service MyService.java
this is the activity from which i am starting a service