[android-developers] Binder invocation to an incorrect interface

2011-12-01 Thread Siva Prasad
Hi,

I'm new to Android.
Could you please let us know the reasons for the below errors?

a. While getting the system Service.
Parcel  :  enforceInterface() expected 'android.os.IPowerManager'
but read ' '

b. Succesfully got the system service, while trying to call one of the
interface.
AndroidRuntime: java.lang.SecurityException: Binder invocation to an
incorrect interface

Thanks,
Siva


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Binder invocation to an incorrect interface

2011-12-01 Thread Mark Murphy
You should not be getting either of these from an Android SDK
application that is properly using PowerManager. If you are
experimenting with the source code, please visit
http://source.android.com for assistance.

On Thu, Dec 1, 2011 at 3:30 AM, Siva Prasad sivaprasad...@gmail.com wrote:
 Hi,

 I'm new to Android.
 Could you please let us know the reasons for the below errors?

 a. While getting the system Service.
 Parcel  :  enforceInterface() expected 'android.os.IPowerManager'
 but read ' '

 b. Succesfully got the system service, while trying to call one of the
 interface.
 AndroidRuntime: java.lang.SecurityException: Binder invocation to an
 incorrect interface

 Thanks,
 Siva


 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Binder Invocation to an Incorrect Interface

2011-03-30 Thread Jake Colman

ACRA just reported that my application crashed with the above error.  I
googled the error and nothing seemed relevant to my situation.

The crash occurred on the creation of a PendingIntent and it was
executing in an IntentService class.

This is the relevant section of code:

  Intent i = new Intent( this, ZmanimList.class );
  PendingIntent pi = PendingIntent.getActivity( this, 0, i, 0 );

What would cause getActivity() to fail with this error?  Is there any
other information I should provide to help figure this out?

Thanks.

-- 
Jake Colman -- Android Tinkerer

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Binder Invocation to an Incorrect Interface

2011-03-30 Thread Mark Murphy
Can you post the full stack trace? That's a rather odd error message,
and I'd like to see a bit more context.

On Wed, Mar 30, 2011 at 9:02 AM, Jake Colman col...@ppllc.com wrote:

 ACRA just reported that my application crashed with the above error.  I
 googled the error and nothing seemed relevant to my situation.

 The crash occurred on the creation of a PendingIntent and it was
 executing in an IntentService class.

 This is the relevant section of code:

  Intent i = new Intent( this, ZmanimList.class );
  PendingIntent pi = PendingIntent.getActivity( this, 0, i, 0 );

 What would cause getActivity() to fail with this error?  Is there any
 other information I should provide to help figure this out?

 Thanks.

 --
 Jake Colman -- Android Tinkerer

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to *Advanced* Android Development_ Version
1.9.2 Available!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en