I have an app which I want to have 3 wake-up alarms to schedule 3
features of the app.
They are all set the same way.....

m_intentName = "com.mypackage."+ FeatureName;
m_alarmIntent = new Intent(m_intentName);
m_alarmPendingIntent = PendingIntent.getBroadcast(this, 0,
m_alarmIntent, 0);

When I want to set the alarm I do this...
 m_alarmMgr.set(AlarmManager.RTC_WAKEUP, System.currentTimeMillis() +
nMinutes * 60 * 1000, m_alarmPendingIntent);

Then in my broadcast receiver...
public class FeatureReceiver extends BroadcastReceiver {
public void onReceive(Context context, Intent intent) {
                        if (intent.getAction().compareTo(m_intentName) == 0) {

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

Reply via email to