Closed kylebechtel closed 10 years ago
and heres the text from the logcat. 08-18 00:47:43.463: E/AndroidRuntime(305): FATAL EXCEPTION: main 08-18 00:47:43.463: E/AndroidRuntime(305): java.lang.IllegalArgumentException: Unknown URI content://us.the.mac.board.content.provider/content/move/update/* 08-18 00:47:43.463: E/AndroidRuntime(305): at android.content.ContentResolver.update(ContentResolver.java:703) 08-18 00:47:43.463: E/AndroidRuntime(305): at us.the.mac.knighted.KnightedBoard.moveToModelAPI(KnightedBoard.java:44) 08-18 00:47:43.463: E/AndroidRuntime(305): at us.the.mac.knighted.KnightedBoard.currentPieceMovement(KnightedBoard.java:30) 08-18 00:47:43.463: E/AndroidRuntime(305): at us.the.mac.board.Board.onClick(SourceFile:572) 08-18 00:47:43.463: E/AndroidRuntime(305): at android.view.View.performClick(View.java:2408) 08-18 00:47:43.463: E/AndroidRuntime(305): at android.view.View$PerformClick.run(View.java:8816) 08-18 00:47:43.463: E/AndroidRuntime(305): at android.os.Handler.handleCallback(Handler.java:587) 08-18 00:47:43.463: E/AndroidRuntime(305): at android.os.Handler.dispatchMessage(Handler.java:92) 08-18 00:47:43.463: E/AndroidRuntime(305): at android.os.Looper.loop(Looper.java:123) 08-18 00:47:43.463: E/AndroidRuntime(305): at android.app.ActivityThread.main(ActivityThread.java:4627) 08-18 00:47:43.463: E/AndroidRuntime(305): at java.lang.reflect.Method.invokeNative(Native Method) 08-18 00:47:43.463: E/AndroidRuntime(305): at java.lang.reflect.Method.invoke(Method.java:521) 08-18 00:47:43.463: E/AndroidRuntime(305): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868) 08-18 00:47:43.463: E/AndroidRuntime(305): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 08-18 00:47:43.463: E/AndroidRuntime(305): at dalvik.system.NativeStart.main(Native Method)
It seems that your application needs a provider (or database connection), so all you would do is add the following line to your AndroidManifest.xml file:
<provider android:name="us.the.mac.board.BoardContent" android:authorities="us.the.mac.board.content.provider"/>
Thanks Chris. That worked for me.
Here's a picture of the stacktrace after it happened.