wake phone on receiving sms

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

wake phone on receiving sms

Postby grimx » Mon Feb 13, 2012 11:43 pm

How would i go about waking the phone upon receiving an SMS??
1: Wakelock
2:AlarmManager
3: ????

My application is just a Broadcast Receiver, listening for an incoming SMS.
I just need a way to wake the phone for a specified period of time. :?: :?:
grimx
Junior Developer
Junior Developer
 
Posts: 20
Joined: Sat Dec 05, 2009 12:47 am

Top

Re: wake phone on receiving sms

Postby Phyll » Tue Feb 14, 2012 4:40 am

Hi grimx,

Here's a pretty good example of how to send/receive sms texts:

http://pankajchunchun.wordpress.com/201 ... n-android/

I'm not sure if you need anything else really. I think if you follow this about starting an activity when you receive an sms, it will start it up. At least you'll be on the right track I think.

Hope this helps.

Phyll
Phyll
Master Developer
Master Developer
 
Posts: 648
Joined: Fri Oct 14, 2011 11:19 am

Re: wake phone on receiving sms

Postby grimx » Tue Feb 14, 2012 4:44 am

All I want to do is wake the phone when I receive a SMS.
thanx anyways.
grimx
Junior Developer
Junior Developer
 
Posts: 20
Joined: Sat Dec 05, 2009 12:47 am

Re: wake phone on receiving sms

Postby Phyll » Tue Feb 14, 2012 4:56 am

Hi grimx,

That's how you do it.

Phyll
Phyll
Master Developer
Master Developer
 
Posts: 648
Joined: Fri Oct 14, 2011 11:19 am

Re: wake phone on receiving sms

Postby grimx » Tue Feb 14, 2012 10:06 am

I had my Broadcast Receiver call an Activity
and soon as the Activity launches it calls finish().

thanx Phyll
grimx
Junior Developer
Junior Developer
 
Posts: 20
Joined: Sat Dec 05, 2009 12:47 am

Re: wake phone on receiving sms

Postby Phyll » Tue Feb 14, 2012 11:02 pm

Hi grimx,

That could work, I just assumed you wanted to do something with it too.

If you're happy I'm happy.

Phyll
Phyll
Master Developer
Master Developer
 
Posts: 648
Joined: Fri Oct 14, 2011 11:19 am

Top

Re: wake phone on receiving sms

Postby grimx » Tue Feb 14, 2012 11:35 pm

Phyll wrote:Hi grimx,

That could work, I just assumed you wanted to do something with it too.

If you're happy I'm happy.

Phyll


I'm just adding this functionality(Waking the screen upon receiving an SMS) because the stock Android SMS messager lacks it.
grimx
Junior Developer
Junior Developer
 
Posts: 20
Joined: Sat Dec 05, 2009 12:47 am

Re: wake phone on receiving sms

Postby hgft » Wed Feb 29, 2012 8:49 am

Coach Outlet Online Sale is with imperfections which consist of cuts, scars, and scratches will exist, the grain in its organically grown problem has between one of the most considerable dietary fibers strength, and getting a last end result between one of the most considerable durability. The grain also has organically grown breathability, resulting in increased comfort using the path from the wearer.

Louis Vuitton Outlet could possibly be one of the most well-known is not necessarily one of the most ideal for you! possibly the most current quarter round shoulder bag with fluorescent color provides you a shine in the moment, desire to possess the urge to it immediately; But possibly your pores and skin color could possibly be the earth beside the handbag could possibly be one of the most make you fondle admiringly joker choice.

Louis Vuitton Outlet supply reduce, the weakening from the role, tiny haystack in slender whole body once more and again. the right way to purchase Louis Vuitton bags That's between the powerful cohesion when Cunningham lancelet find yourself isolated point, allow wind and bad weather insulation, yr pursuing year, pile of grass system earlier short increased grass blanketed with it or bi erosion.

Jennifer Garner and Ben Affleck are the proud parents of a newborn son! The 39-year-old actress gave birth to the couple's third child in Santa Monica, Calif., a source tells Us Weekly. The family's newest addition joins older sisters Violet, 6, and Seraphina, 3. “I would have thought [Ben] wanted a boy]. At first … I really thought so,” Jen, who kept the baby's gender under wraps, told Jay Leno last month.
hgft
Experienced Developer
Experienced Developer
 
Posts: 66
Joined: Tue Feb 28, 2012 9:11 am

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Google [Bot], Google Feedfetcher and 21 guests