Any luck solving this problem? I do have the same problem and doesn't have a clue. Any help is greatly appreciated.
On Jul 7, 12:55 am, Peli <[email protected]> wrote: > > <receiver android:name=".FmiDaemon" android:process=":remote" /> > > If you don't specify an explicit intent filter (like you did for > BOOT_COMPLETED), you should probably set android:exported="true" : > > <receiver android:name=".FmiDaemon" > android:exported="true" (android:process=":remote") /> > > so that the AlarmManager can find your Receiver. > > > I'd pay someone to help me if its allowed.. > > If it works, consider donating here:http://www.openintents.org/en/contribute > :-) > > Peliwww.openintents.org > > On Jul 4, 12:33 am, dapaintballer331 <[email protected]> > wrote: > > > I've been modifying things ALL DAY trying to get this to work, please > > help. > > > I have a broadcast receiver that recieves a "boot completed" signal. > > the onReceive method works!... well at least it sends output to the > > log. > > > THE PROBLEM is that that method is responsible for creating a > > AlarmService, to start call a different class every minute. That other > > class never has it's onReceive method called... > > > AndroidManifest snippet: > > <receiver android:name=".FmiBootup"> <!-------------THIS WORKS > > FINE-------------> > > <intent-filter> > > <action > > android:name="android.intent.action.BOOT_COMPLETED" / > > > </intent-filter> > > </receiver> > > <receiver android:name=".FmiDaemon" android:process=":remote" /> > > <!--------THIS DOESN'T------------> > > > ************************************************ > > //This is called when the phone boots > > FmiBootup.class > > public class FmiBootup extends BroadcastReceiver { > > > �...@override > > public void onReceive(Context context, Intent intent) { > > Log.e("fmi", "fmi bootup"); > > Intent newIntent = new Intent(context, FmiDaemon.class); > > PendingIntent pendingIntent = PendingIntent.getBroadcast > > (context, 0, newIntent, 0); > > AlarmManager alarmManager = (AlarmManager) > > context.getSystemService(Context.ALARM_SERVICE); > > alarmManager.setRepeating(AlarmManager.RTC_WAKEUP, > > System.currentTimeMillis() + (15 * 1000), 60 * 1000, pendingIntent); > > } > > > } > > > ********************************************* > > //This should be called every minute, starting 15 seconds after the > > above class spits into the log > > FmiDaemon.class > > public class FmiDaemon extends BroadcastReceiver > > { > > > @Override > > public void onReceive(Context context, Intent intent) { > > Log.e("fmi","fmi daemon run called"); > > > //////tonssssssssssss of irrelevant code. over 200 > > lines > > }} > > > ****************************************** > > > Anyone know why it isn't calling FmiDaemon? > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

