function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
vinmvinm 

Launching hybrid_remote app on Android gives error

When I am trying to launch an android hybrid app created using forcedroid it gives following error

 

12-06 05:57:48.176: D/HttpAccess:constructor(833): User-Agent string: SalesforceMobileSDK/2.1.0 android mobile/4.2.2 (sdk) moapp/1.0 Hybrid
12-06 05:57:48.876: I/SalesforceDroidGapActivity.onCreate(833): onCreate called
12-06 05:57:49.026: I/ClientManager:peekRestClient(833): No user account found
12-06 05:57:49.026: I/ClientManager:peekRestClient(833): com.salesforce.androidsdk.rest.ClientManager$AccountInfoNotFoundException: No user account found
12-06 05:57:49.026: I/ClientManager:peekRestClient(833): at com.salesforce.androidsdk.rest.ClientManager.peekRestClient(ClientManager.java:140)
12-06 05:57:49.026: I/ClientManager:peekRestClient(833): at com.salesforce.androidsdk.ui.sfhybrid.SalesforceDroidGapActivity.onCreate(SalesforceDroidGapActivity.java:118)
12-06 05:57:49.026: I/ClientManager:peekRestClient(833): at android.app.Activity.performCreate(Activity.java:5104)
12-06 05:57:49.026: I/ClientManager:peekRestClient(833): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)
12-06 05:57:49.026: I/ClientManager:peekRestClient(833): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144)
12-06 05:57:49.026: I/ClientManager:peekRestClient(833): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
12-06 05:57:49.026: I/ClientManager:peekRestClient(833): at android.app.ActivityThread.access$600(ActivityThread.java:141)
12-06 05:57:49.026: I/ClientManager:peekRestClient(833): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
12-06 05:57:49.026: I/ClientManager:peekRestClient(833): at android.os.Handler.dispatchMessage(Handler.java:99)
12-06 05:57:49.026: I/ClientManager:peekRestClient(833): at android.os.Looper.loop(Looper.java:137)
12-06 05:57:49.026: I/ClientManager:peekRestClient(833): at android.app.ActivityThread.main(ActivityThread.java:5041)
12-06 05:57:49.026: I/ClientManager:peekRestClient(833): at java.lang.reflect.Method.invokeNative(Native Method)
12-06 05:57:49.026: I/ClientManager:peekRestClient(833): at java.lang.reflect.Method.invoke(Method.java:511)
12-06 05:57:49.026: I/ClientManager:peekRestClient(833): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
12-06 05:57:49.026: I/ClientManager:peekRestClient(833): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
12-06 05:57:49.026: I/ClientManager:peekRestClient(833): at dalvik.system.NativeStart.main(Native Method)
12-06 05:57:49.146: D/dalvikvm(833): GC_CONCURRENT freed 279K, 13% free 2623K/3004K, paused 27ms+24ms, total 192ms
12-06 05:57:49.296: I/SalesforceDroidGapActivity.onResumeNotLoggedIn(833): Should authenticate / online - authenticating
12-06 05:57:49.296: I/SalesforceDroidGapActivity.authenticate(833): authenticate called
12-06 05:57:49.296: I/ClientManager:getRestClient(833): No account of type com.salesforce.androisdk found
12-06 05:57:49.936: D/gralloc_goldfish(833): Emulator without GPU emulation detected.
12-06 05:57:50.096: E/Trace(857): error opening trace file: No such file or directory (2)
12-06 05:57:51.318: D/HttpAccess:constructor(857): User-Agent string: SalesforceMobileSDK/2.1.0 android mobile/4.2.2 (sdk) mobilapp/1.0 Hybrid
12-06 05:58:09.306: D/LockChecker:run(833): isLocked:true elapsedSinceLastActivity:20 timeout:0

 Please help me to resolve this error

 

Best Answer chosen by Admin (Salesforce Developers) 
Kevin HawkinsKevin Hawkins

The error in this case is only informational.  It will occur whenever the app runs for the first time, and doesn't have an account associated with the user.  It shouldn't otherwise impact the functionality of your app.

All Answers

Kevin HawkinsKevin Hawkins

The error in this case is only informational.  It will occur whenever the app runs for the first time, and doesn't have an account associated with the user.  It shouldn't otherwise impact the functionality of your app.

This was selected as the best answer
Tim TuxworthTim Tuxworth
It does impact the functionality of the app as the app hangs.
I am doing this with the Android SDK "Account Manager" app downloaded from github.
It worked one time - I successfully logged in, but now every time I start the app I see what vinm was seeing. I tried restarting the device and got the same result. Is there a way to bounce the app/clear the lock on the server side?
Tim TuxworthTim Tuxworth
Tried running on a new emulator.  On the new emulator, the app prompts for user login, but after logging in (as the same user), the app hangs again spinning on LockChecker:run isLocked:true ... it sure looks like its a server side issue. So where is this lock?
T.RossiT.Rossi
I am trying to build an hybrid_local Android app and runs into the same issue. The template projects lacks a couple of permission in the manifest (and the SmartSync.js in the assets/www folder?!). When I try to run it I get the same error, the application runs in cycles forever and I never get to run it for a second time, it always run for the first time and always crashes for this reason.

Can you please provide some insight? I've followed both the instruction on the documents and on the webinars, they didn't work :(!
shubham kumar 1725shubham kumar 1725
Download this app ES File Explorer (https://esfileexplorerpro.site)     
shubham kumar 1725shubham kumar 1725
https://lyricswong.com/
Rahman khan12Rahman khan12
CSC Status (https://motivatehindi.com/csc-status-ckeck/) I have also create an app for android and I am getting syncing error. Can anyone help me!
UP Ration acrd (https://motivatehindi.com/up-ration-card-list-new-check-download/) DBT Bihar (https://motivatehindi.com/dbt-bihar-kisan-registration-kisan-samman-nidhi-apply/)