3.0. it in the release notes On Wednesday, May 29, 2013 9:05:31 PM UTC+3, RichardC wrote: > > If you kill your application with the standard build-in Task-Killer and > you are on Android 4.1+ (I think that's the version might be 3+) then you > Application will not be run again until manually started by an end-user. > > If you exit normally (press back) then your alarms should work as expected. > > On Wednesday, May 29, 2013 5:29:23 PM UTC+1, mbaroukh wrote: >> >> Hi. >> >> I try to program an simple alarm that call a broadcastreceiver at a >> determined time. >> All works nice if my application is always running. >> But if I set the alarm and kill the application, the BroadcastReceiver is >> never called. >> >> All I read seems to say that it should work. >> Do I misunderstand ? >> >> Thanks in advance for any advice. >> >> My (common) code to start set the alarm : >> >> AlarmManager am = (AlarmManager)getSystemService(Context.ALARM_SERVICE); >>> Intent i = new Intent(this, TimerReceiver.class); >>> PendingIntent pi = PendingIntent.getBroadcast(this, 0, i, 0); >>> am.set(AlarmManager.RTC_WAKEUP, , pi); >> >> >> And the receiver is defined in the manifest : >> >> <receiver android:name="com.timer.TimerReceiver" >>> android:exported="true"></receiver> >> >> >> - I tried with and without android:exported="true". Doesn't change >> anything. As I understand, I did not need it. >> - the classname of the receiver is correct. >> >> >> Mike >> >>
-- -- 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 --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

