Cannot always launch DevicePolicyManager activity from another activity

by cpphool » Fri, 04 Mar 2011 21:25:36 GMT

Sponsored Links

I have some strange problem. When I try to launch DevicePolicyManager
activity from my main activity, it loads properly. However, when I
make a notification, call QuestionActivity (if user clicks the
notification), and then try to call DevicePolicyManager activity from
QuestionActivity, I get (logcat):

INFO/ActivityManager(104): Starting activity: Intent
{ (has extras) }
WARN/InputManagerService(104): Window already focused, ignoring focus
gain of:$Stub

And nothing appears. This is strange for me, cause I'm able to launch
different Android OS activity from QuestionActivity:

        //This works
        Intent intent = new Intent(Settings.ACTION_BLUETOOTH_SETTINGS);

But I cannot launch the DevicePolicyManager with:

        //This works from main activity, but not from QuestionActivity
        MyDeviceAdmin admin = new MyDeviceAdmin(this);
        Intent intent = new
                "Additional text explaining why this needs to be
        startActivityForResult(intent, 234234234);

I would be very grateful for any help, cause I'm completely stuck.


Other Threads

1. AnimationSet - Scaling and moving at the same time

It seems like whenever a <scale> is done as a part of an animset,
the starting or ending scale is computed incorrectly, as the
of the ending scale.  I think they're calculating the anti-transform
each element, and doing it badly, messing up compound animations.

Thanks for posting good YouTube examples of the phenomenon.
Now post those to the bug tracker!


2. On ExpandableListViews Again

Hi All,

So I have this issue with ExpandableListViews I don't quite
understand. I'm having the exact issue as this person almost a year
ago but I'm seeing the solution is not really clear:

3. CPU Clock History

4. disable hard Search button while contextmenu is on.

5. WebView - numeric keyboard from html

6. Android: Multiple POST on the same connection

7. ClassNotFoundException on Market developer console