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