[android-developers] Re: how to create the object of intentfilter

2009-02-13 Thread Miguel Paraz

On Jan 24, 1:50 am, Dianne Hackborn hack...@android.com wrote:
 There are lots of examples of using the AlarmManager in ApiDemos, including
 ones that use receiver.  I suggest looking there.

 Fwiw, using registerReceiver() with the alarm manager is generally pretty
 pointless, since the main use of the alarm manager is to ensure your app
 gets launched even if it isn't running, and if it isn't running your
 registerReceiver() no longer exists.

How about if the the BroadcastReceiver is an inner class? It can't be
used with receiver.
This is if I want to call an activity and do a refresh from an alarm.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: how to create the object of intentfilter

2009-01-23 Thread Dianne Hackborn
There are lots of examples of using the AlarmManager in ApiDemos, including
ones that use receiver.  I suggest looking there.

Fwiw, using registerReceiver() with the alarm manager is generally pretty
pointless, since the main use of the alarm manager is to ensure your app
gets launched even if it isn't running, and if it isn't running your
registerReceiver() no longer exists.

On Fri, Jan 23, 2009 at 6:31 AM, Honest honestsucc...@gmail.com wrote:


 I tried to use AlaramManager . First i used receiver in the manifest
 file but it is not working well.  now i want to use registerReceiver
 ().  But can some one please tell me how can i use it. It requires the
 paramiter IntentFilter and BroadcastReceiver.  Can some one please
 tell me how can i  create the object of IntentFilter. I am so much
 depressed. If i will not get the solution of this then i will have to
 do susite.
 



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---