Hi,
I have a receiver which sets an alarm for 4hours. The code snippet is
below.

Intent myIntent = new Intent(context,XYZService.class);
myIntent.setAction("com.android.LavaDeviceTracker.SEND_SMS_SERVICE");
pendingIntent = PendingIntent.getService(context, 0,myIntent, 0);
AlarmManager alarmManager = (AlarmManager)
context.getSystemService(Context.ALARM_SERVICE);
alarmManager.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, 4*60*1000,
                                                        pendingIntent);

The receiver sets the alarm and stops. Until the 4 hours I mean until
the alarm goes off, believe there is no action is going on. Still I
can see chunks of 4-8 bytes getting allocated to the PSS and “shared
dirty” in Native and Other. (Dalvik allocation seems unchanged)
continuously. After probably 5-10minutes the PSS value becomes almost
static for “Native” but “other” usage keeps multiplying.
Does the Alarm Manager perform any action during this period? Due to
which the memory allocation keeps increasing?
Also when I tried using AlarmManager.RTC instead of
AlarmManager.ELAPSED_REALTIME_WAKEUP, the frequency of memory
allocation was considerably less.
Any idea on this?

Thanks.

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