java.lang.RuntimeException: Unable to start activity ComponentInfo{com.keyStatus/com.keyStatus.keyStatus}: java.lang.SecurityException: No active admin owned by uid 10031 for poli

by amtandroid » Sat, 12 Feb 2011 06:07:14 GMT


Sponsored Links
 Sir please help me....

public class keyStatus extends Activity {
    /** Called when the activity is first created. */
        DevicePolicyManager dpm;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        dpm = (DevicePolicyManager)
getSystemService(Context.DEVICE_POLICY_SERVICE);
        dpm.lockNow();

    }
}



in AndroidManifest.xml


<uses-permission
android:name="android.permission.USES_POLICY_FORCE_LOCK"></uses-
permission>

-- 



Other Threads

1. Urgent requirement for Java Developer

Hello,


We have an urgent requirement for your consultant.

*
*

Job Title: *Java Developer*

Duration: 1+ Year

Location: Tampa, FL



*Requirements/Skills:*

*
*

Core:                Java, J2EE (JSP, servlets, struts), UNIX

Scripting:           Shell (bash, ksh) and Perl

Web:                 XML, Web services

OS:                   UNIX (Solaris and Linux)

Database(s):      SQL, Stored Proc, and Oracle

App Server:       Weblogic, Sun one

* *

*If your consultant interested in this position, please send his latest word
resume ASAP along with the contact details. I appreciate your help.  Looking
forward for your response. *





Thanks,



*Srinivas Gudipati
Inent Inc.*
Tel: 310-985-6031
Fax: 310-388-0405
Email: sriniva...@inentinc.com
www.inentinc.com

-- 

2. Need help for Google map API

*I need help to start map API for Android..???

I mean what shoud i do to work with MAP....???

thr r 2 kind of maps
1) GPS map
2) Google Maps via map API

I think 2nd option is better as GPS is really slow in India and i guess
costly too.

I read some things bout map API but it need registration using some sort of
KEY (I am not getting where i will get it). *
**
PLEASE HELP ME OUT....!!!



THANKS,

SAGAR BORSE
BE IT
GECA
Registered Linux User #500860

    ,        

-- 

3. Create Custom Address Book with Information downloaded from the web

4. Simultaneous Translations on Android

5. How to handle differences on camera usage on different phones?

6. Handling Telephony

7. Google Latitude & My Tracks