Thank you for sharing the solution ;-)

On Fri, Jan 24, 2014 at 10:12 PM, dashman <[email protected]> wrote:

> Ok found the problem.
>
> In the manifest file - the receiver was defined as
>
>         <receiver android:name=".LockScreenActivity$MyAdmin"
>             android:label="@string/sample_device_admin"
>             android:description="@string/sample_device_admin_description"
>             android:permission="android.permission.BIND_DEVICE_ADMIN">
>             <meta-data android:name="android.app.device_admin"
> android:resource="@xml/device_admin_sample">
>             <intent-filter>
>                 <action
> android:name="android.app.action.DEVICE_ADMIN_ENABLED"/>
>             </intent-filter>
>              </meta-data>
>         </receiver>
>
> Note the meta-data element has intent-filter nested inside it.
>
> changed it to
>
>             <meta-data android:name="android.app.device_admin"
> android:resource="@xml/device_admin_sample"/>
>
> and now works as expected.
>
> serve me right for downloading code segments from the internet.
>
>
>
>
>  --
> 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.
>



-- 
Michael Banzon
http://michaelbanzon.com/

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

Reply via email to