com.shephertz.app42.paas.sdk.android.App42Exception: java.lang.IllegalArgumentException: key.length == 0

0 votes

Hello team,

I am running a Background Serivce with a background thread continously that is  reporting data to DB.It is woking fine while application  is opened , but when i close the app...i m getting exception , Expected result is : the backgound thread should report data to server when app is closed.

But, It m getting following Exception only after closing the application :

BackgroundService: com.shephertz.app42.paas.sdk.android.App42Exception: java.lang.IllegalArgumentException: key.length == 0

asked Aug 25, 2016 in Android by imdeveloper12 (10 points)

1 Answer

0 votes

Hi Developer,

Greetings!!!!!!

Yes, You can run a Background Service to upload the data on App42 server. When Application is in running State its working because SDK is initialized. On Application closed it destroy the instances.

Please do initialize App42 SDK in your Background Service as well, So that you can upload data on App42 DataBase.

Let me know if it helps.

Thanks

Vishnu Garg

answered Aug 25, 2016 by Vishnu Garg (674 points)
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...