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. How to input the multiple keyboard inputs

Hi

For {*filter*} we should require the 2 ,3 key are inputting parallel  but
i am observing  that only one key takes at a time on Android( froyo 0,

can we create  events so that multiple keys are going enable ..?

Please let me How to work with multiple keys at time ...?

Thanks a lot


-- 

2. Strange thing, using HorizontalScrollView

Hy,
I'm using a HorizontalScrollView to create a header menu on the top of
my app.
Here you can see multiple menu items which can be scrolled in a
horizontal way.
Is working, but there is a strange behaviour. After scrolling, you
have to
tab twice on an item you couldn't see before, to get the OnClick event
fired.
I created a test project to simply verify this. It can be found under

http://www.abs-net.de/dwnl/24/HorizontalScrollView.zip

Is this a known or wanted behaviour or is there a work arround
available?

Thanx for your ideas.
Volker

-- 

3. Android education program

4. code to invoke Android Music Player Application

5. UAC based on sip and SipDemo App not working

6. error on repo sync

7. Cannot See App in Emulator