todotxt / todo.txt-android

Official Todo.txt Android app for managing your todo.txt file stored in Dropbox.
http://todotxt.com
GNU General Public License v3.0
1.24k stars 406 forks source link

App crashes on dropbox login #447

Closed adilfulara closed 10 years ago

adilfulara commented 10 years ago

Steps

  1. Checkout code from github
  2. Import project in eclipse bundled inside adt
  3. Setup dropbox.xml file with key and secret.
  4. Run on AVD with API level 18

Actual Outcome

  1. Login Screen is displayed.
  2. User clicks "Connect to Dropbox"
  3. App crashes.
  4. Below is output on log console.
10-10 14:00:28.443: E/AndroidRuntime(978): java.lang.IllegalStateException: URI scheme in your app's manifest is not set up correctly. You should have a com.dropbox.client2.android.AuthActivity with the scheme: db-kp8v7vdpif3wm21
10-10 14:00:28.443: E/AndroidRuntime(978):  at com.dropbox.client2.android.AuthActivity.checkAppBeforeAuth(AuthActivity.java:175)
10-10 14:00:28.443: E/AndroidRuntime(978):  at com.dropbox.client2.android.AndroidAuthSession.startAuthentication(AndroidAuthSession.java:84)
10-10 14:00:28.443: E/AndroidRuntime(978):  at com.todotxt.todotxttouch.remote.DropboxRemoteClient.startLogin(DropboxRemoteClient.java:243)
10-10 14:00:28.443: E/AndroidRuntime(978):  at com.todotxt.todotxttouch.LoginScreen.startLogin(LoginScreen.java:133)
10-10 14:00:28.443: E/AndroidRuntime(978):  at com.todotxt.todotxttouch.LoginScreen$2.onClick(LoginScreen.java:75)
10-10 14:00:28.443: E/AndroidRuntime(978):  at android.view.View.performClick(View.java:4240)
10-10 14:00:28.443: E/AndroidRuntime(978):  at android.view.View$PerformClick.run(View.java:17721)
10-10 14:00:28.443: E/AndroidRuntime(978):  at android.os.Handler.handleCallback(Handler.java:730)
10-10 14:00:28.443: E/AndroidRuntime(978):  at android.os.Handler.dispatchMessage(Handler.java:92)
10-10 14:00:28.443: E/AndroidRuntime(978):  at android.os.Looper.loop(Looper.java:137)
10-10 14:00:28.443: E/AndroidRuntime(978):  at android.app.ActivityThread.main(ActivityThread.java:5103)
10-10 14:00:28.443: E/AndroidRuntime(978):  at java.lang.reflect.Method.invokeNative(Native Method)
10-10 14:00:28.443: E/AndroidRuntime(978):  at java.lang.reflect.Method.invoke(Method.java:525)
10-10 14:00:28.443: E/AndroidRuntime(978):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
10-10 14:00:28.443: E/AndroidRuntime(978):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
10-10 14:00:28.443: E/AndroidRuntime(978):  at dalvik.system.NativeStart.main(Native Method)
chuckbjones commented 10 years ago

Make sure the key you specified in dropbox.xml starts with 'db-'

adilfulara commented 10 years ago

@chuckbjones Thank you for the clarification. i do see the comment in the xml file provided as sample. i think it should be added in the wiki page also so that you don't get a noob like me filing issues.

Thank you. Adil

chuckbjones commented 10 years ago

It's already there, but is easy to miss. I'll attempt to refactor the text a bit.

adilfulara commented 10 years ago

@chuckbjones Ah i see it now... Time to see an eye doctor i guess. Sorry :disappointed: