[android-developers] Re: Multiple alarms - Intent aims at the same service but different values - Not possible?

2009-01-11 Thread Dianne Hackborn
The identity of an Intent is based on the action, data, type, and
categories; the extras are not considered.  If you want to have two
different PendingIntent objects, you'll need to have something different
about them in those basic fields.

On Sun, Jan 11, 2009 at 5:24 AM, code_android_festival_way 
festival.s...@googlemail.com wrote:


 Hello.

 At the moment I'm trying to register/set two alarms that open up a
 background service. Both alarms should open up the same service doing
 something depending on the extras that come with the intent. (the
 alarms have different startup and interval values)

 Why can't I do that. I get only one alarm registered. Do I really have
 to implement two services (which do nearly the same) for that to work?

 Regards.
 



-- 
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
-~--~~~~--~~--~--~---



[android-developers] Re: Multiple alarms - Intent aims at the same service but different values - Not possible?

2009-01-11 Thread 伊泽
hello
would you please tell the steps about the function call?
I once posted about the alarm register issue:
http://groups.google.com/group/android-developers/browse_thread/thread/304895040fa9f11/da4355589afa46a4?hl=enlnk=gstq=alarm#da4355589afa46a4

If you add alarm device in the routine,there maybe a problem.

Waiting for you feedback.

thanks
--wxc200

自由之精神,独立之人格

Zsa Zsa Gabor  - I'm a great housekeeper. I get divorced. I keep the
house.

On Sun, Jan 11, 2009 at 9:24 PM, code_android_festival_way 
festival.s...@googlemail.com wrote:


 Hello.

 At the moment I'm trying to register/set two alarms that open up a
 background service. Both alarms should open up the same service doing
 something depending on the extras that come with the intent. (the
 alarms have different startup and interval values)

 Why can't I do that. I get only one alarm registered. Do I really have
 to implement two services (which do nearly the same) for that to work?

 Regards.
 


--~--~-~--~~~---~--~~
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: Multiple alarms - Intent aims at the same service but different values - Not possible?

2009-01-11 Thread code_android_festival_way



On 12 Jan., 06:27, 伊泽 wxc...@gmail.com wrote:
 hello
 would you please tell the steps about the function call?
 I once posted about the alarm register 
 issue:http://groups.google.com/group/android-developers/browse_thread/threa...

 If you add alarm device in the routine,there maybe a problem.

 Waiting for you feedback.

 thanks
 --wxc200
 
 自由之精神,独立之人格
 
 Zsa Zsa Gabor  - I'm a great housekeeper. I get divorced. I keep the
 house.

 On Sun, Jan 11, 2009 at 9:24 PM, code_android_festival_way 

 festival.s...@googlemail.com wrote:

  Hello.

  At the moment I'm trying to register/set two alarms that open up a
  background service. Both alarms should open up the same service doing
  something depending on the extras that come with the intent. (the
  alarms have different startup and interval values)

  Why can't I do that. I get only one alarm registered. Do I really have
  to implement two services (which do nearly the same) for that to work?

  Regards.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---