andbook!.pdf - Learning Android Get an anddev.org - Android-Shirt Back to index
anddev.org Header Logo
FAQ Search Top rated articles Browse Feeds anddev.org - Authors Contact Details Register Log in

Recognize/React on incoming SMS

Goto page Previous  1, 2, 3, 4, 5
 
       anddev.org - Android Development Community | Android Tutorials | Index -> Novice Tutorials
Author Message
plusminus
Site Admin
Site Admin


Joined: 14 Nov 2007
Posts: 2624
Location: College Park, MD

PostPosted: Fri Oct 03, 2008 8:10 pm    Post subject: Reply with quote

Snapper67 wrote:
Artur79 wrote:
After sending SMS via Emulator I had following return in LogCat so works but there are still some errors.


Need to remove the line
Java:
this.abortBroadcast();


This is a normal broadcast and can not be aborted.


Yes, since sdk ??? sms cannot be aborted.

Thanks for reminding.

Regards,
plusminus

_________________
Download my apps Idea
Please remember, that this board is give & take Smile

| Android Development Community / Tutorials
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Artur79
Junior Developer
Junior Developer


Joined: 26 Sep 2008
Posts: 23

PostPosted: Sun Oct 05, 2008 12:37 pm    Post subject: Reply with quote

now no errors, cheers Smile
there's another small issue, it doesnt matter what I'll enter in Toast last param, which is for display length. It always appears for about one second only.

Java:
Toast.makeText(context, sb.toString(), Toast.LENGTH_LONG).show();
Back to top
View user's profile Send private message
ninor
Moderator
Moderator


Joined: 14 Aug 2008
Posts: 179
Location: Barcelona, Spain

PostPosted: Mon Oct 06, 2008 9:01 am    Post subject: Reply with quote

I used that line in a new project, and it shows the toast for:
SHORT: displays the toast for 2 seconds.
LONG: 4 seconds

_________________
AndDev: Your Android Development Community / Tutorials | Here's my Basic ToolKit
Back to top
View user's profile Send private message
rmeph
Senior Developer
Senior Developer


Joined: 10 Dec 2007
Posts: 120
Location: India

PostPosted: Sat Oct 11, 2008 4:29 pm    Post subject: Reply with quote

plz tel me if incoming sms block in new sdk(1.0).
Back to top
View user's profile Send private message
diki
Freshman
Freshman


Joined: 23 Nov 2008
Posts: 2

PostPosted: Sun Nov 23, 2008 7:36 am    Post subject: Sending SMS between emulators (SDK 1.0) Reply with quote

Hi PlusMinus,

That was a nice tutorial for receiving SMS. As far as sending sms, when i try sending sms from one emulator instance to another (5554 to 5556), it doesn't work. Is there any restriction that both emulator instances must not be of the same project which has both SMS sender and receiver?

I also tried sending sms to a plain receiver in another project, but it dint help me..
The same code works when i send sms from eclipse DDMS view..

I think i am missing something very small..Can you pls help me?

Thanks in advance.
Back to top
View user's profile Send private message
faiz.india
Developer
Developer


Joined: 28 Jul 2008
Posts: 26
Location: Pune - India

PostPosted: Mon Nov 24, 2008 5:14 am    Post subject: Native SMS application Reply with quote

Hi All,
i have a query with respect to the native SMS application, i am able to send a sms using the native sms application but there is one more thing that i want to achieve in over here which is i want to make a log entry into my database if the sms send by the native SMS application succeeds. Can anyone give me a solution for the same.

I have used an intent to start the native SMS application which would return me a result but it send me the RESELT_CANCELLED result if even when the SMS sending succeeds or fails.


Thanks and Regards,
Faiz.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
       anddev.org - Android Development Community | Android Tutorials | Index -> Novice Tutorials All times are GMT + 1 Hour
Goto page Previous  1, 2, 3, 4, 5
Page 5 of 5

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


© 2007, Android Development Community
All rights reserved.
Powered by phpBB.