Search code examples
androidmobileibm-mobilefirst

Application not opening after long time


I am developing an worklight application. I generated android environment for the project... In the android app, I am able to see the main screen on background, but there is a busy icon which continues for long time, and i am unable to click on the main page anywhere when i am running the app on emulator. After some time, it says "Client init failed. Connection to the service is unavailable"

I am getting the following log warning

Skipped 37 frames! The application may be doing too much work on its main thread.

I have these errors in the log

SQLiteLog: (14) cannot open file at line 30176 of [00bb9c9ce4]

SQLiteLog: (14) os_unix.c:30176: (2) open(/CachedGeoposition.db) -

response [http://9.124.23.225:8080/apps/services/api/RQMLight/android/heartbeat] success:

I am getting the following message on the url :

/*-secure- {"WL-Authentication-Failure":{"wl_remoteDisableRealm":{"reason":"Login Failed"}}}*/

! Logs here

I am also getting the error

CordovaWebViewClient.onReceivedError: Error code=-6 Description=The connection to the server was unsuccessful. URL=file:///data/data/com.RQMLight/files/www/default/RQMLight.html

and

onMessage(onReceivedError,{"errorCode":-6,"url":"file:///data/data/com.RQMLight/files/www/default/RQMLight.html","description":"The connection to the server was unsuccessful."})


Solution

  • I solved this problem by adding the following line in the main java class which extends WLDroidGap. Write this inside onWLInitCompleted() method

    super.setIntegerProperty("loadUrlTimeoutValue", 60000);