2008/8/26 Cristina <[EMAIL PROTECTED]>

>
> Hi!
>
> We are designing an application for android phones. In our application
> there is a central server, and this server must send some application
> information to the phone.
> So, we thought to use SMS in order to communicate with our application
> in the phone.
> Our application will look for messages with a particular prefix and
> consume it. Other applications (including messagig applications)
> should not get the application SMS messages.
>
> In order to do that, we have implemeted a Sms BroadcastReceiver, that
> get all SMS messages, but only processed the ones with the application
> prefix. After processing them, we do an abortBroadcast(), in order to
> stop the broadcast of the message to the Messaging application or
> other applications receiving the same intent.
>
> However, SMS Inbox is receiving the message, and is showing the
> message in the notification application.
>
> 1.  Is there any way for an application to receive the SMS message,
> avoiding the rest of applications to receive it? Is abortBroadcast
> working for SMS broadcast intents? I understand that maybe the
> abortBroadcast is not working for SMS broadcast intents, because of
> security reasons (for example we could abort the broadcast of all SMS
> messages ). Is there another way for an application to to receive SMS
> messages in an "exclusive" way (the rest of applications do not
> receive it)?
>

I don't think you can alter the behavior of inbuilt apps, Messaging(SMS) is
an inbuilt app, so you cannot
do anything, it will receive SMS and show the notification.


> 2. Is there any other way to communicate information from a external
> server to the application in the phone?
>
> For example, In other projects with other phones we have  used
> transparent wappush to implement that communication..Does android
> support wappush protocol?
>
> We would not like to implement an always open connection in the phone
> application (where the phone acts like a server), because that implies
> that we must have a list with all the IPs of the phones in order to
> communicate with them..that complicates a lot the  implementation...
>

You can use the inbuilt apache http client library in Android to communicate
with your server app..
http://code.google.com/android/reference/org/apache/http/client/package-summary.html

>
> Any other idea?
>
>
>
>
>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to