Unable to instantiate service our-package.ADMMessageHandler Exception
Hi, We are implementing ADM push messaging for our existing App. I am unable to fix the following exception : Unable to instantiate service our-package.ADMMessageHandler : java.long.RuntimeException : Stub! Please help me to fix the above exception. Thanks
Hi Keshav, Basically, adm jar only provides the compilation support to your implementation codebase. This jar should not be packaged with your apk as the run time is already on the devices. So you should not export the library with the apk. In eclipse, in the Properties window, there is also an "Order and Export" tab for the Java Build Path for your project. Do NOT mark the ADM .jar file as exported in this tab. Marking the .jar file as an exported entry causes your APK to use the stub implementations of the ADM API from the .jar file, rather than the actual implementations of the ADM classes that are on the device itself. Refer this link for more information.