Confused about Intents

Put your problem here if it does not fit any of the other categories.

Confused about Intents

Postby chefgon » Sun Nov 02, 2008 1:05 am

So I'm sending a textmessage using

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. smsManager.sendTextMessage("24273", null, "bal", pendingIntent, null);
Parsed in 0.035 seconds, using GeSHi 1.0.8.4


where pendingIntent is the intent to fire when the SMS message finishes sending. I would like that to simply fire a method in my program to update some text on the screen to say "Message Sent", but I can't figure out how to do that. Am I misunderstanding what an intent is? Everything I read about it seems so cryptic, and I can only find advice on how to load a map or something but I don't want to leave my application.

Is there a way to write an "intent handler" of sorts that can just detect when this action happens and fire some code?
chefgon
Junior Developer
Junior Developer
 
Posts: 17
Joined: Fri Oct 31, 2008 8:26 pm

Top

Postby Quetzalcoatl » Sun Nov 02, 2008 2:05 pm

Looks like quite a few people are having difficulty receiving notification on SMSs, hopefully this suggestion will be of some use:

:arrow: Google Groups link :larrow:

I've not looked at anything like this myself yet but it looks like it relies on the use of Content Observers.
Image
Quetzalcoatl
Senior Developer
Senior Developer
 
Posts: 129
Joined: Sat Oct 18, 2008 8:21 pm
Location: near Manchester, UK

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 18 guests