Hey. I'm writing an app that receives incoming sms.
I have tried two different approaches.
1. One app that receives and displays the message in a custom dialog. The problem here is that my app holds the broadcast receiver so the builtin sms application doesn't get the sms until i close my dialog, and i can't get the message_id until the builtin sms application receives it. If i receive another sms before the previous sms dialog is closed, then the new sms is not showed because there is already one showing.
2. Two separate apps. One that receives the sms and then starts my sms dialog which is another app. This way my dialog and the builtin sms application receives the sms in about the same time. Here is the same problem. If i receive another sms before the previous sms dialog is closed, then the new sms is not showed because there is already one showing.
I would really like to use approach number 1. That is the best way.
But can i get information about open dialogs from the same app?
Can i send a request to the opened dialog from the new one trying to open, requesting for dialog re-layout to let the user know there has been received more messages?
I have tried two different approaches.
1. One app that receives and displays the message in a custom dialog. The problem here is that my app holds the broadcast receiver so the builtin sms application doesn't get the sms until i close my dialog, and i can't get the message_id until the builtin sms application receives it. If i receive another sms before the previous sms dialog is closed, then the new sms is not showed because there is already one showing.
2. Two separate apps. One that receives the sms and then starts my sms dialog which is another app. This way my dialog and the builtin sms application receives the sms in about the same time. Here is the same problem. If i receive another sms before the previous sms dialog is closed, then the new sms is not showed because there is already one showing.
I would really like to use approach number 1. That is the best way.
But can i get information about open dialogs from the same app?
Can i send a request to the opened dialog from the new one trying to open, requesting for dialog re-layout to let the user know there has been received more messages?