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. Mirdak di kelapa gading bersama Les to the Jaw

Di cafe n co jl. Boulevard. 
Starting from 9.00pm
Monggo kalo ada yang mau join. 

Narasumber:
- Les to the Jaw
- Ren to the Ner
- Jak to the Til
- Mooks

Acara diakhiri dengan acara nanduk bareng *eh


@yopiesuryadi
hope for a better future 
http://bit.ly/9KHYOI

-- 
===============
"

2. Testimoni : Tio Ping鈩

short time nya brapa om?
*ngesot ke jiung*

2010/11/20 Muhammad Ridwan (Iwan Koster) <brother.i...@gmail.com>




-- 
--sent from si Greeny--

-- 
===============
"

3. WTCurhat: Stress nungguin XXJP2 buat SGS

4. Oot : Tweet from @LeeDroiD

5. How to know the home launcher app packagename through programming?

6. aplikasi GPS untuk android

7. How big is a 512x512 "icon"?