The second alternative seems to have many benefits (portability,
longevity, etc).
In the future network connection will become much more reliable (like
the phone system).
Since you are talking about messaging, you may want to take a
look at the MDP (Messaging Design Pattern):

a) Java Pattern Oriented Framework, An application of the Messaging
Design Pattern
IBM Technical Library
http://www.ibm.com/developerworks/webservices/library/ws-designpattern/index.html

b) Messaging Design Pattern (MDP) and pattern implementation -
Published in the 17th conference on Pattern Languages of Programs
(PLoP 2010).
https://jt.dev.java.net/files/documents/5553/150311/designPatterns.pdf

c) Messaging Design Pattern and a distributed Component/Service Model
https://jt.dev.java.net/files/documents/5553/149793/MDPdistributedModel.pdf


By the way, the Jt software distribution already contains an Android
Demo
application that invokes web services over http (post). I have it
running
on my phone. It works fine. Per an earlier comments, multiple requests
should not be an issue.



On Nov 12, 11:12 am, Matt <[email protected]> wrote:
> Hi everyone,
>
> I have been playing around with the sdk for a little while now, and
> I'm becoming comfortable with java and the android platform (I've
> previously coded in php for many years now). I'm developing an app
> that has one essential requirement: intercept an incoming text message
> and send it off to an application on a remote server. I can achieve
> this one of two ways (I think):
>
> 1. send the intercepted msg as another sms to an email address that is
> piped to my application
>
> 2. send the intercepted msg via http post using android's built-in
> functionality
>
> #2 sounds much less kluge, but I am worried about android's ability to
> process many of these requests in a short time period. I need my app
> to be able to handle many of these intercepted messages every minute.
> Given this requirement, I'm unsure whether either of my solutions is
> solid. Does anyone have experience w/ using http post requests or have
> some sort of intuition as to whether either of these solutions will
> work?
>
> Thanks,
>
> Matt

-- 
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]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to