Implementing a DeviceLimiter

by Philip Sheard » Fri, 25 Feb 2011 12:58:18 GMT

Sponsored Links
 Has anyone actually managed to do this? The documentation counsels
against it, but it is also vague and inaccurate.

I have tried extending LicenseChecker, and implementing that way. I
can then override isDeviceAllowed, but the method in NullDeviceLimiter
still gets called. Looking at the code, the NullDeviceLimiter class
seems to be hard coded in.


Other Threads

1. Fwd: Alarm Manager

I have a similar problem..
I have to send a sms on alarm to a predefined number. first time it works
well... sends the sms on alarm but then if i set the alarm to send a
different sms,it sends the previous sms.

---------- Forwarded message ----------
From: Veroland <>
Date: Tue, Jun 30, 2009 at 3:53 PM
Subject: [android-beginners] Alarm Manager
To: Android Beginners <>


I have 2 problems,

I create a timer using AlarmManager and I set an Intent with certain
values in the putExtra methods and then create the pendingIntent with
this intent and call alamarmManager.set(RTC_Wakeup, time,

1.  The first time I do this everything works fine. The second time I
do this and use a intent with different data in the intent when the
alarm gets fired in my BroadcastReceiver class the data on the intent
is the data of the intent used in the first alarm and NOT the second

2. If I call the alarmManager.set 2 times with 2 differents intents
and settings only the last alarmManager.set seems to result in my
broadcast receiver getting called. Does anyone know how to create
multiple alarms?

Here is my code I use to create the alarms

Intent i = new Intent(getApplicationContext(), ReminderAlarm.class);
i.putExtra(ReminderDbAdapter.KEY_ROWID, extras.getLong
i.putExtra(ReminderDbAdapter.KEY_TITLE, extras.getString
i.putExtra(ReminderDbAdapter.KEY_BODY, extras.getString
Log.d("Sending", extras.getString(ReminderDbAdapter.KEY_TITLE));
PendingIntent pendingIntent = PendingIntent.getBroadcast(this, 0, i,

AlarmManager alarmManager = (AlarmManager) getSystemService
alarmManager.set(AlarmManager.RTC_WAKEUP, lcal, pendingIntent);



2. hey, what happened to my post about my eclipse install program


It was long! do i have to a) locate b) remember and c) type ALL of
that in again????


3. Next-gen USA Phones

4. Calling System.exit(0) causes Dalvik crash

5. It's the Apps, Stupid!

6. Issue with alarm clock

7. how to load a .so library in a apk?