using ident to react when an sms is sent

by Cyrill Helg » Sat, 27 Dec 2008 07:08:10 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 a 
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 app 
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 an 
Indent on the method of sendTextMessage ?

Thanks a lot for your help.

Cyrill Helg


--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Adding AudioEffects in GingerBread via OpenSLES

I have an IP which is an audio enhancement codec. OpenSL specifies
interfaces for certain effects such as bass boost, preset
reverberation, stereo widening etc. Through which interface of
Android(OpenSL) do i need to plugin my IP.

-- 

2. Activity touch event leading to EPIPE in ginger bread !!

In activity A i have one surface view.

After EPIPE in activity it is leading to IlegalArgumentException.


3-01 17:51:01.107 W/PowerManagerService(  127): Timer 0x7->0x3|0x3
03-01 17:51:01.107 I/PowerManagerService(  127): Ulight 7->3|0
03-01 17:51:01.107 D/LightsService(  127): BUTTON : 0
03-01 17:51:01.388 I/InputReader(  127): dispatchTouch::touch event's
action is 0
03-01 17:51:01.388 E/InputDispatcher(  127): channel '40977f60
com.android.test/com.android.test.B (server)' ~ Could not send
dispatch signal, status=-32
03-01 17:51:01.388 E/InputDispatcher(  127): channel '40977f60
com.android.test/com.android.test.B (server)' ~ Channel is
unrecoverably broken and will be disposed!
03-01 17:51:01.388 D/PowerManagerService(  127):
reactivateScreenLocksLocked mProxIgnoredBecauseScreenTurnedOff=false
03-01 17:51:01.388 I/PowerManagerService(  127): Ulight 3->7|0
03-01 17:51:01.392 D/LightsService(  127): BUTTON : 116
03-01 17:51:01.392 I/WindowManager(  127): WINDOW DIED Window{40977f60
com.android.test/com.android.test.B paused=false}
03-01 17:51:01.407 E/Surface (  422): surface (identity=33) is
invalid, err=-19 (No such device)
03-01 17:51:01.407 E/Surface (  422): queueBuffer (idx=0) failed (No
such device)
03-01 17:51:01.407 D/AndroidRuntime(  422): Shutting down VM
03-01 17:51:01.411 E/AndroidRuntime(  422): FATAL EXCEPTION: main
03-01 17:51:01.411 E/AndroidRuntime(  422):
java.lang.IllegalArgumentException
03-01 17:51:01.411 E/AndroidRuntime(  422):     at
android.view.Surface.unlockCanvasAndPost(Native Method)
03-01 17:51:01.411 E/AndroidRuntime(  422):     at
android.view.ViewRoot.draw(ViewRoot.java:1551)
03-01 17:51:01.411 E/AndroidRuntime(  422):     at
android.view.ViewRoot.performTraversals(ViewRoot.java:1263)
03-01 17:51:01.411 E/AndroidRuntime(  422):     at
android.view.ViewRoot.handleMessage(ViewRoot.java:1865)
03-01 17:51:01.411 E/AndroidRuntime(  422):     at
android.os.Handler.dispatchMessage(Handler.java:99)
03-01 17:51:01.411 E/AndroidRuntime(  422):     at
android.os.Looper.loop(Looper.java:123)
03-01 17:51:01.411 E/AndroidRuntime(  422):     at
android.app.ActivityThread.main(ActivityThread.java:3661)
03-01 17:51:01.411 E/AndroidRuntime(  422):     at
java.lang.reflect.Method.invokeNative(Native Method)
03-01 17:51:01.411 E/AndroidRuntime(  422):     at
java.lang.reflect.Method.invoke(Method.java:507)
03-01 17:51:01.411 E/AndroidRuntime(  422):     at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:842)
03-01 17:51:01.411 E/AndroidRuntime(  422):     at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
03-01 17:51:01.411 E/AndroidRuntime(  422):     at
dalvik.system.NativeStart.main(Native Method)
Force finishing activity com.android.test/com.android.test.B




-- 

3. Activating 3G data connections

4. [I'd android] wta market gtab

5. How to manage the memory when loading lots of bitmaps?

6. Install failure

7. Pop-message