using an intent to react when an sms is sent?

by phlogi phlog » Sat, 27 Dec 2008 18:30:16 GMT

Sponsored Links
 Hi there

I'm planning to write some code that allows to send sms over a http service.

So basically I need to achieve that the current messaging application calls
function from my class of my appliction. Then I need to get the text and
establish a connection and so on. Furthermore I need to be able to exit my
if there is no internet connection - in such a case the sms should be sent
using the normal method.

For me developing on android is totally new. (I'm now at ex2 of the notepad
tutorial, and read the basic docs).

So how can I do what I would like to? Maybe someone can help me with the
basics: Lets say that a popUp is generated when an sms is sent. Will I use
Indent on the method of sendTextMessage ?

Thanks a lot for your help.

Cyrill Helg


Other Threads

1. G1 VS. iPhone

Just got my G1 over the mail. I have to admit that it is much better
than I expected. I even feel e{*filter*}d over having it because I think
that it has potential to make several developers quite comfortable,
economically speaking. Although not as much potential as the iPhone;
at least not at the present moment.

I've had an iPhone for almost a year and I'm quite familiar with it.
I've also done plenty of development on it and have even published two
apps in the iPhone AppStore.

With regards to Android, I've been an Android developer almost since
day one. I submitted three applications to the first Android challenge
(unfortunately did not win).

Now that you know my perspective here are some comparisons I want to
share with you.

1.Ease of development.
   I think it is easier to develop in the Android platform. The reason
for this is that it uses Java which has garbage collection. Also, you
can use Eclipse for your development.
   iPhone does have a very good software development kit but the big
problem is that it doesn't have garbage collection. If you{*filter*}up a
reference somewhere you could easily spend days or weeks trying to
figure out why is it that your app is crashing "randomly".

2. Potential for making money.
    I think that at this point iPhone has the biggest potential for
making money to a poor developer coding his days away. In the future
however, as more Android devices become available Android's potential
may increase. That is, if it doesn't die.

3. Look and Feel
   Since the first day I started using my iPhone it just felt right.
As if they had designed the iPhone specially for me. One big reason
why it has become so popular with consumers.
   With Android, on the other hand, my first impresion was that it
didn't "feel" right. Maybe because it has more than one button, maybe
because I have to pull the tab up to view the rest of the applications
but it just doesn't feel right. Anyway, maybe this feeling will
decrease as days go by.



2. UserSpace does not comeup with L2C enabling in Kernel

Hi All,

            We are on ARM9 platform where L2C enable is mandatory in kernel
to acheive right performance.

  What we observe is that we are not getting the rootfs up with L2C enabled
in kernel.

 how can userspace be dependent on the L2C in Kernel ?

 I appreciate if someone knows about this topic and can help us.



3. How to switch from Activity to ListActivity ?

4. MotionEvent & its historical values

5. android:manageSpaceActivity ?

6. Detecting when a map view has been scrolled...

7. Pattern screen locking