You need to sign in to do that
Don't have an account?
Mobile app error
Hi,
When i run the app on emulator am able to login...but after that i am get a pop up which says "The application has stopped unexpectedly.Please try again"
Following is what the error in logcat:
12-10 18:58:48.404: E/Web Console(307): Unsafe JavaScript attempt to access frame with URL https://login.salesforce.com/?ec=302&startURL=%2Fsetup%2Fsecur%2FRemoteAccessAuthorizationPage.apexp%3Fsource%3Dl86Hcy6qEKtWNqzXVErZDlmcRQs0D_HBE55MLVuP3x8t5wXkyHYyrVx2Xb5JoWzyVOJrnTqMMaWy_SfpTOnh113QKOnwn4I.eL0FOFuolqr0GdSmPXhrQgGOVi0XAVAxOckWNgo_h8dvcA_FrOwtAlGCSW6xCX95K1MYf9yjBp_0fTmVWB5Rb6OBcJTe2lo8yzOuM1cLPievfxwevVH6OTP7_GvFtrTLksQwOBEUexAhQNTgBKyrldZMPMNEYjx_xV5OaPgOOw0LTQk2zezPx0a52bOH27wtYGl4Q1R00U1Oel_eex603VstSf6HGnHuVS0kRnblYOFxUsN_AogZJQCNbLqcmS5.YnxJvIrbL6mcSsQh7OYWU7Iy88yo5mo.cAQ_qjZj2iif3ejCeiVb_8mDvLp.OBg8xTwhpBs7zOW8g0Um_8nhSnSReX0p4EJOwFJmYORhd6A%253D%253D%26display%3Dtouch%26sdtd%3D1&display=touch&sdtd=1 from frame with URL https://www.salesforce.com/login-messages/messages.html?r=https%3A%2F%2Flogin.salesforce.com%2Fsetup%2Fsecur%2FRemoteAccessAuthorizationPage.apexp%3Fsource%3Dl86Hcy6qEKtWNqzXVErZDlmcRQs0D_HBE55MLVuP3x8t5wXkyHYyrVx2Xb5JoWzyVOJrnTqMMaWy_SfpTOnh113QKOnwn4I.eL0FOFuolqr0GdSmPXhrQgGOVi0XAVAxOckWNgo_h8dvcA_FrOwtAlGCSW6xCX95K1MYf9yjBp_0fTmVWB5Rb6OBcJTe2lo8yzOuM1cLPievfxwevVH6OTP7_GvFtrTLksQwOBEUexAhQNTgBKyrldZMPMNEYjx_xV5OaPgOOw0LTQk2zezPx0a52bOH27wtYGl4Q1R00U1Oel_eex603VstSf6HGnHuVS0kRnblYOFxUsN_AogZJQCNbLqcmS5.YnxJvIrbL6mcSsQh7OYWU7Iy88yo5mo.cAQ_qjZj2iif3ejCeiVb_8mDvLp.OBg8xTwhpBs7zOW8g0Um_8nhSnSReX0p4EJOwFJmYORhd6A%253D%253D%26display%3Dtouch%26sdtd%3D1&noroundedcorner. Domains, protocols and ports must match.
12-10 18:58:48.404: E/Web Console(307): at :1
12-10 18:59:35.104: E/AndroidRuntime(307): FATAL EXCEPTION: main
12-10 18:59:35.104: E/AndroidRuntime(307): java.lang.NoSuchMethodError: java.lang.String.isEmpty
12-10 18:59:35.104: E/AndroidRuntime(307): at com.salesforce.androidsdk.ui.OAuthWebviewHelper$BaseFinishAuthFlowTask.onPostExecute(OAuthWebviewHelper.java:378)
12-10 18:59:35.104: E/AndroidRuntime(307): at com.salesforce.androidsdk.ui.OAuthWebviewHelper$BaseFinishAuthFlowTask.onPostExecute(OAuthWebviewHelper.java:1)
12-10 18:59:35.104: E/AndroidRuntime(307): at android.os.AsyncTask.finish(AsyncTask.java:417)
12-10 18:59:35.104: E/AndroidRuntime(307): at android.os.AsyncTask.access$300(AsyncTask.java:127)
12-10 18:59:35.104: E/AndroidRuntime(307): at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:429)
12-10 18:59:35.104: E/AndroidRuntime(307): at android.os.Handler.dispatchMessage(Handler.java:99)
12-10 18:59:35.104: E/AndroidRuntime(307): at android.os.Looper.loop(Looper.java:123)
12-10 18:59:35.104: E/AndroidRuntime(307): at android.app.ActivityThread.main(ActivityThread.java:4627)
12-10 18:59:35.104: E/AndroidRuntime(307): at java.lang.reflect.Method.invokeNative(Native Method)
12-10 18:59:35.104: E/AndroidRuntime(307): at java.lang.reflect.Method.invoke(Method.java:521)
12-10 18:59:35.104: E/AndroidRuntime(307): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
12-10 18:59:35.104: E/AndroidRuntime(307): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
12-10 18:59:35.104: E/AndroidRuntime(307): at dalvik.system.NativeStart.main(Native Method)
Appreciate ur help guys.
Thanks,
Gaurav
I got the solution...In AndroidManifest.xml i had to add this line for users-sdk attribute (android:targetSdkVersion="19") and it worked for all the API versions.
Thanks you for response.
All Answers
Hello Gaurav,
Is this browser specific? Try to remove any add-ons installed in your browser and then this error should not occur.
Hi Gaurav,
When I read the error I see - RemoteAccessAuthorizationPage redirect which usually come in when you have SSO enabled in the ORG you are trying to login.
Could you please confirm?
I got the solution...In AndroidManifest.xml i had to add this line for users-sdk attribute (android:targetSdkVersion="19") and it worked for all the API versions.
Thanks you for response.
I have the same exception. is there any solution ?