the-mac / TheBoardLibrary

The most advanced mobile board game platform made in android that is available under the GPL, and it includes multiplayer, tutoring/guide facilities (to teach someone how to play your game), board editor function (to learn more about the games you play), and much more...
http://on.fb.me/1MIc51o
GNU Lesser General Public License v2.1
1 stars 5 forks source link

Fatal exception occurs when moving a piece on the emulator. #1

Closed kylebechtel closed 9 years ago

kylebechtel commented 9 years ago

image

Here's a picture of the stacktrace after it happened.

kylebechtel commented 9 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)

cdm2012 commented 9 years ago

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"/>
kylebechtel commented 9 years ago

Thanks Chris. That worked for me.