Skip to content

Calling estimote service from remote service #55

@SchmearK

Description

@SchmearK

Hi,

I try to run the estimote service code out of a custom remote service and got
stuck in the following exception:

E/Parcel﹕ Class not found when unmarshalling: com.estimote.sdk.service.ScanPeriodData
java.lang.ClassNotFoundException: com.estimote.sdk.service.ScanPeriodData
at java.lang.Class.classForName(Native Method)
at java.lang.Class.forName(Class.java:204)
at android.os.Parcel.readParcelableCreator(Parcel.java:2124)
at android.os.Parcel.readParcelable(Parcel.java:2088)
at android.os.Message.readFromParcel(Message.java:511)
at android.os.Message.access$000(Message.java:32)
at android.os.Message$1.createFromParcel(Message.java:468)
at android.os.Message$1.createFromParcel(Message.java:465)
at android.os.IMessenger$Stub.onTransact(IMessenger.java:51)
at android.os.Binder.execTransact(Binder.java:388)
at dalvik.system.NativeStart.run(Native Method)

After some research i found out, that there is a problem with the Android ClassLoader which is responsible for handling Parcelables but isn`t aware of custom Parcelables, that have been send via messages (like i suggest it is done in the estimote SDK between BeaconManger and BeaconService).

Apparently this can be solved by explicitly setting the classloader to the message data.

Think this problem is a not neccessary restriction in the usage of the estimote sdk.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions