Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (498)
Games in Android Showcase (117)
games submitted by our members
Games in WIP (564)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Game Development / Networking & Multiplayer / Re: [Kryonet] NoClassDefFoundError with Kryonet on: 2013-05-26 15:57:34
Yes, I allready done. Do you have antoher idea?
2  Game Development / Networking & Multiplayer / [Kryonet] NoClassDefFoundError with Kryonet on: 2013-05-26 14:37:29
Hello Community,

I have a mixed problem with Kryonet and Android. I try to connect to a server with a Kryo Client in a Android Service. But if I try to create a simple Client , I get following Exception.

05-26 16:23:07.722: E/AndroidRuntime(24686): FATAL EXCEPTION: IntentService[SendSMSService]
05-26 16:23:07.722: E/AndroidRuntime(24686): java.lang.NoClassDefFoundError: com.esotericsoftware.kryonet.Client
05-26 16:23:07.722: E/AndroidRuntime(24686):    at cronos.dev.smsforward.smartphone.SendSMSService.onHandleIntent(SendSMSService.java:40)
05-26 16:23:07.722: E/AndroidRuntime(24686):    at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
05-26 16:23:07.722: E/AndroidRuntime(24686):    at android.os.Handler.dispatchMessage(Handler.java:99)
05-26 16:23:07.722: E/AndroidRuntime(24686):    at android.os.Looper.loop(Looper.java:137)
05-26 16:23:07.722: E/AndroidRuntime(24686):    at android.os.HandlerThread.run(HandlerThread.java:60)
05-26 16:23:08.783: E/ActivityThread(24686): Activity cronos.dev.smsforward.smartphone.SMSForwardSmartphone has leaked IntentReceiver cronos.dev.smsforward.smartphone.SmsReceiver@420ae3c0 that was originally registered here. Are you missing a call to unregisterReceiver()?
05-26 16:23:08.783: E/ActivityThread(24686): android.app.IntentReceiverLeaked: Activity cronos.dev.smsforward.smartphone.SMSForwardSmartphone has leaked IntentReceiver cronos.dev.smsforward.smartphone.SmsReceiver@420ae3c0 that was originally registered here. Are you missing a call to unregisterReceiver()?
05-26 16:23:08.783: E/ActivityThread(24686):    at android.app.LoadedApk$ReceiverDispatcher.<init>(LoadedApk.java:795)
05-26 16:23:08.783: E/ActivityThread(24686):    at android.app.LoadedApk.getReceiverDispatcher(LoadedApk.java:596)
05-26 16:23:08.783: E/ActivityThread(24686):    at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1316)
05-26 16:23:08.783: E/ActivityThread(24686):    at android.app.ContextImpl.registerReceiver(ContextImpl.java:1296)
05-26 16:23:08.783: E/ActivityThread(24686):    at android.app.ContextImpl.registerReceiver(ContextImpl.java:1290)
05-26 16:23:08.783: E/ActivityThread(24686):    at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:423)
05-26 16:23:08.783: E/ActivityThread(24686):    at cronos.dev.smsforward.smartphone.SMSForwardSmartphone.onClick(SMSForwardSmartphone.java:79)
05-26 16:23:08.783: E/ActivityThread(24686):    at android.view.View.performClick(View.java:4204)
05-26 16:23:08.783: E/ActivityThread(24686):    at android.view.View$PerformClick.run(View.java:17355)
05-26 16:23:08.783: E/ActivityThread(24686):    at android.os.Handler.handleCallback(Handler.java:725)
05-26 16:23:08.783: E/ActivityThread(24686):    at android.os.Handler.dispatchMessage(Handler.java:92)
05-26 16:23:08.783: E/ActivityThread(24686):    at android.os.Looper.loop(Looper.java:137)
05-26 16:23:08.783: E/ActivityThread(24686):    at android.app.ActivityThread.main(ActivityThread.java:5041)
05-26 16:23:08.783: E/ActivityThread(24686):    at java.lang.reflect.Method.invokeNative(Native Method)
05-26 16:23:08.783: E/ActivityThread(24686):    at java.lang.reflect.Method.invoke(Method.java:511)
05-26 16:23:08.783: E/ActivityThread(24686):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
05-26 16:23:08.783: E/ActivityThread(24686):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
05-26 16:23:08.783: E/ActivityThread(24686):    at dalvik.system.NativeStart.main(Native Method)

If I remove every Kryonet code, the App runs perfect. Can somebody help me?


3  Game Development / Networking & Multiplayer / [KRYONET] Holding connection when chaning Activity on: 2013-05-01 20:21:19
Hello community,

i'm also coding on my Android multiplayer gamer. Now i try to code a startscreen where the player press a button and after press the button the client (so the Android device) connect with the server. After successful connecting the app should start a new activty with the gamefield. Now my question. How can i hold the connection to the server, in this new activty, also with the listener i add to the client?
4  Game Development / Networking & Multiplayer / Re: [KROYONET] Android 4.2 doesn't connect, 2.2 do on: 2013-04-28 14:48:20
Okay, i swap the client creation, addListener and client start in a background thread. But now when i start the client it connect with the server, the server sends a TCP frame and then the client disconnect. Do you have any idea?
5  Game Development / Networking & Multiplayer / Re: [KROYONET] Android 4.2 doesn't connect, 2.2 do on: 2013-04-27 15:21:03
Ohh okay thanks. Is it right that when i but the connection into a background Thread, i can switch between activitys and the connection also hold the line?
6  Game Development / Networking & Multiplayer / Re: [KROYONET] Android 4.2 doesn't connect, 2.2 do on: 2013-04-27 14:01:59
How can i share it?

I can show you the erro that i get with a 4.2.2 client:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
04-27 15:57:10.851: E/AndroidRuntime(11936): FATAL EXCEPTION: main
04-27 15:57:10.851: E/AndroidRuntime(11936): java.lang.RuntimeException: Unable to start activity ComponentInfo{conros.dev.spacerush/cronos.dev.spacerush.SpaceRushStart}: android.os.NetworkOnMainThreadException
04-27 15:57:10.851: E/AndroidRuntime(11936):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2180)
04-27 15:57:10.851: E/AndroidRuntime(11936):    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
04-27 15:57:10.851: E/AndroidRuntime(11936):    at android.app.ActivityThread.access$600(ActivityThread.java:141)
04-27 15:57:10.851: E/AndroidRuntime(11936):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
04-27 15:57:10.851: E/AndroidRuntime(11936):    at android.os.Handler.dispatchMessage(Handler.java:99)
04-27 15:57:10.851: E/AndroidRuntime(11936):    at android.os.Looper.loop(Looper.java:137)
04-27 15:57:10.851: E/AndroidRuntime(11936):    at android.app.ActivityThread.main(ActivityThread.java:5041)
04-27 15:57:10.851: E/AndroidRuntime(11936):    at java.lang.reflect.Method.invokeNative(Native Method)
04-27 15:57:10.851: E/AndroidRuntime(11936):    at java.lang.reflect.Method.invoke(Method.java:511)
04-27 15:57:10.851: E/AndroidRuntime(11936):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
04-27 15:57:10.851: E/AndroidRuntime(11936):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
04-27 15:57:10.851: E/AndroidRuntime(11936):    at dalvik.system.NativeStart.main(Native Method)
04-27 15:57:10.851: E/AndroidRuntime(11936): Caused by: android.os.NetworkOnMainThreadException
04-27 15:57:10.851: E/AndroidRuntime(11936):    at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1117)
04-27 15:57:10.851: E/AndroidRuntime(11936):    at libcore.io.BlockGuardOs.connect(BlockGuardOs.java:84)
04-27 15:57:10.851: E/AndroidRuntime(11936):    at libcore.io.IoBridge.connectErrno(IoBridge.java:144)
04-27 15:57:10.851: E/AndroidRuntime(11936):    at libcore.io.IoBridge.connect(IoBridge.java:112)
04-27 15:57:10.851: E/AndroidRuntime(11936):    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:192)
04-27 15:57:10.851: E/AndroidRuntime(11936):    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:459)
04-27 15:57:10.851: E/AndroidRuntime(11936):    at java.net.Socket.connect(Socket.java:842)
04-27 15:57:10.851: E/AndroidRuntime(11936):    at java.nio.SocketChannelImpl$SocketAdapter.connect(SocketChannelImpl.java:521)
04-27 15:57:10.851: E/AndroidRuntime(11936):    at com.esotericsoftware.kryonet.TcpConnection.connect(TcpConnection.java:77)
04-27 15:57:10.851: E/AndroidRuntime(11936):    at com.esotericsoftware.kryonet.Client.connect(Client.java:147)
04-27 15:57:10.851: E/AndroidRuntime(11936):    at com.esotericsoftware.kryonet.Client.connect(Client.java:108)
04-27 15:57:10.851: E/AndroidRuntime(11936):    at cronos.dev.spacerush.SpaceRushStart.onCreate(SpaceRushStart.java:87)
04-27 15:57:10.851: E/AndroidRuntime(11936):    at android.app.Activity.performCreate(Activity.java:5104)
04-27 15:57:10.851: E/AndroidRuntime(11936):    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)
04-27 15:57:10.851: E/AndroidRuntime(11936):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144)
04-27 15:57:10.851: E/AndroidRuntime(11936):    ... 11 more


My 2.2 Client run without this erros. Pls Help
7  Game Development / Networking & Multiplayer / Re: [KROYONET] Android 4.2 doesn't connect, 2.2 do on: 2013-04-25 11:22:03
The supported Version ist 4.2.2, so the highst i can choose. Any other idea?
8  Game Development / Networking & Multiplayer / Re: [KROYONET] Android 4.2 doesn't connect, 2.2 do on: 2013-04-24 20:05:00
A VM with 4.2.2 also doesnt work, so i think the nexus is okay. All devices are in the same Network.
9  Game Development / Networking & Multiplayer / Re: [Kryonet] How to build a Mulitplayerserver? on: 2013-04-24 17:42:50
At the moment I have a wrote a Server that creating "GameSession". In this sessions i store the connections of the two players.
10  Game Development / Networking & Multiplayer / [KROYONET] Android 4.2 doesn't connect, 2.2 do on: 2013-04-24 17:06:57
Hello Community,

at the moment i'm writing a mulitplayer app for Android. For this i use Kroyonet. At least i wrote the server application (a simple Java programm running on my PC) and the Android app as the client part. When i try to connect my Nexus 4 (Android 4.2.2) with the server the application crash but if i run the app on a VM (Android 2.2) the  client connect to the server. Have someone an idea how to fix this problem?

Thanks
11  Game Development / Networking & Multiplayer / [Kryonet] How to build a Mulitplayerserver? on: 2013-04-13 12:56:14
Hello,

at the moment i try to build a mulitplayer server for a roundbased Multigame for two players. First i describe how the game should be work. First the client press a button and connect to the server. Now, is there a second client (anywhere in the internet) and press the button too, the server put him in one "session/thread" with the first player. Is there now two other player who want to play, the server starts a new "Thread". for this two players and so on.

But now i didn't know how to handel thies connection and if a play, for example, moves a stone the right play get this update from the server.

Can anybody tell me how it works or have some codesnippets?

For your information, i want to use kryonet.
12  Java Game APIs & Engines / Android / Re: Gamefield for androidgames on: 2013-04-09 18:59:17
We want every field in the grid with 64x64 or bigger and regardless of the screensize.
We want to place the little icons in the field but some smartphones are larger and the background height is bigger, so every field is for example 74x64.

Our question is now, how to programit that every icon fits within the frame.
13  Java Game APIs & Engines / Android / Gamefield for androidgames on: 2013-04-09 15:30:29
Hello Community,

we want to build a roundbased game with a gamefield like in the Image in this post. Can anyone tell us how to program a logic that can move gamestones on this field but for different Displaysizes.

Pages: [1]
 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Grunnt (21 views)
2014-09-23 14:38:19

radar3301 (14 views)
2014-09-21 23:33:17

BurntPizza (31 views)
2014-09-21 02:42:18

BurntPizza (22 views)
2014-09-21 01:30:30

moogie (20 views)
2014-09-21 00:26:15

UprightPath (29 views)
2014-09-20 20:14:06

BurntPizza (34 views)
2014-09-19 03:14:18

Dwinin (48 views)
2014-09-12 09:08:26

Norakomi (75 views)
2014-09-10 13:57:51

TehJavaDev (108 views)
2014-09-10 06:39:09
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!