Android :: Need Method For Phone Game Networking?
Oct 29, 2010
I need help finding the best method for networking in a multiplayer game. I want to connect to a phone and maintain the connection until the game is over, hosting the game on one of the phones. There are other threads, but none of them really explain how to connect or use the networking, only saying to use such-and-such library. Examples or links to good tutorials would be extremely helpful.
View 1 Replies
Jul 31, 2010
I try to browse localhost on my htc magic. I have connected my device with eclipse via usb. browsing http://10.0.2.2 I get a "Page not avialable. I remember, some days ago it worked but on the emulator I am able to browse localhost?
View 1 Replies
View Related
Feb 17, 2010
Is there any way to remove that social networking crap from the phone?
View 8 Replies
View Related
Dec 19, 2009
Is it possible to set up Android in ad-hoc peer-to-peer wifi mode? For example, I would like to have one phone broadcast a message, and have all peers in the network receive the broadcast, without having a server. I would like to use wifi since bluetooth range is more limited.
View 6 Replies
View Related
Sep 2, 2013
Been doing some android networking lately. Having some trouble actually sending the data back and forth.
Java -> Server (runs on the desktop): its job is to constantly listen on a port and connect clients. Once a client connects, it creates a new JFrame with a graphics class.(Basically a giant canvas) There is a separate thread that is always listening to the client.
Android -> Client: An android device is the client. Its job is to connect to the server, with a given IP/Port. Once the connection has been established, it changes (setView) the view to a canvas. On the canvas there is a box that moves based on touch input.
Objective: The box moves on the android screen, but it doesn't move in the JFrame window.
I think the information is not being relayed. I have tried dataOutputStream. But for some reason there is a major Lag in sending the information. (Not waiting for serverSocket) Basically i want a real time updates. As the box moves on the android device, it should also move on the JFrame.
View 1 Replies
View Related
Sep 7, 2010
I'm trying to override the onBackPressed() method of the ActivityGroup class:
public class MyClass extends ActivityGroup {
@Override
public void onBackPressed() {
// do something
return;
}
but I'm getting the error The method onBackPressed() of type MyClass must override a superclass method. I'm relatively new to Java, I've seen here that people do it and it works for them Why I'm getting this error? I'm writing an app for android 1.5, could the problem be here?
View 1 Replies
View Related
Nov 22, 2010
In Eclipse, when I mouse hover over a built-in method, it displays a method definition including stuff like what the method does, input objects, return objects etc. If I have a yellow line (warning) under the method I'm trying to use, I can't get the mouse-over to show the definition. If I try hitting F3, I get a "The Jar of this class file belongs to container "Android 1.6" How do I show the definition of the method I am using when there is a warning?
View 1 Replies
View Related
Aug 12, 2009
I've just started developing Android applications. I'm having a little problem with networking. If I run the following code I get an "unknown error" exception message: Code...
View 1 Replies
View Related
Dec 4, 2009
I've been scouring the web looking for information on setting up a peer-to-peer connection between Android handsets and so far have drawn a blank. The only thing I can definitively seem to work out is that it was made a whole lot more difficult when XMPP was removed from 1.0. Apart from that, I find a couple of threads on an OpenIntents board about porting an XMPP implementation to Android that were last posted nearly 2 years ago. Has anybody solved this problem effectively? What's the best way of doing it (from a games point of view)?
View 7 Replies
View Related
May 12, 2010
I am trying to use annotation - method.getAnnotation( ) or method.isAnnotationPresent( ) and it is not working. I am using eclipse emulator for 2.1 OS version with JDK 1.6. Following is information about what I did..................
View 4 Replies
View Related
Sep 22, 2009
According to the emulator docs, you should be able to enable/disable networking with the F8 key. I doesn't work for me and I'm trying to determine why.
I'm developing on OSX Leopard. I've also tried in a virtual Windows instance (Windows 2008 server running in Parallels). No luck in either case.
I've tried the obvious stuff like fn + F8, etc.
Should there be any sort of visual cue that networking has gone online or offline when F8 is pressed?
View 2 Replies
View Related
May 22, 2010
I have a square grid, for a turn based game ( grid is similar to the chess board ), but the moves in the games are different based on whether you have lapped your opponent pawn at least once or not.i.e if you have not lapped (beaten any of the opponents pawns) in the outer most grid as below.if you have lapped your opponent pawn once at least, then you get to reach home,this way.Any player having all his pawns reaching "home" first wins.The ones in yellow are safe-houses, i.e both the opponent pawn and the player's pawn get to stay in the same grid, this is not considered to be lapping ( the opponent ).The lapped pawn will return to its start point.Now the question is, what is the effective way to store the paths for the all the pawns.we will have 4 pawns for the player and 4 opponent pawns.Is there any pattern to store such static information, in a elegant way?
View 1 Replies
View Related
Nov 12, 2010
I have a puzzle game with a 7x7 grid of graphics, and a timer, its just about ready to go. But I am stuck on how to go about saving/continuing game. For example when someone exits I want them to be able to save and exit, then come back and click continue to pick up where they left off with all of the graphics in the right place, timer and score. I looked at onSaveInstanceState android examples, but not sure if this is what I need or how to implement it in my case.
View 8 Replies
View Related
Sep 30, 2010
I want to write game for Android and I need to use inside AI phone slope in some way ( in degree or any other measure). Can anybody tell me how to do that(link or code sample) ?
View 1 Replies
View Related
Aug 29, 2009
I've been working on a game for a while now that relies heavily on UDP connections. Its been running great, but since releasing in the market, we've been flooded by complaints from Hero users that it doesn't run what-so-ever. We haven't received this complaint from anyone other than Hero users (seems 100% isolated to the device), and I haven't been able to reproduce using an HTC ROM on my personal G1 (thought it might be related to the OS), but I'm starting to suspect it's a hardware issue...
Does anyone on the list have access to a Hero, and adb that I could ship an APK with a bit of extra logging to see exactly whats going wrong?
View 3 Replies
View Related
Aug 17, 2010
looking over the online guide for the emulator and after some googling i still have some questions on this - the guide focuses on emulator instances running on the same machine. However, I was trying to see how that maps for emulator running in a distributed fashion. If a node A (with IP address 129.10.52.x) in LAN A is running Emulator A (which will have the default IP address of 10.0.2.15:portA) wants to communicate with a emulator B (which will also have the default IP address of 10.0.2.15:portB) running on node B (with IP address 129.10.53.x) in LAN B how is the port forwarding setup in this case? The same way as if both emulator were running on the same machine? And why when I print the IP address of the emulator running on any of the nodes what's displayed is the loopback address 127.0.0.1 and NOT 10.0.2.15 which is the IP address that each emulator is assigned?
View 4 Replies
View Related
Sep 11, 2010
There is a protected method replace Text for autocomplete textview in Android.
I have no idea how to use it and need some examples.
Is it possible at all to use this method?
View 1 Replies
View Related
Jun 6, 2010
Is there a App that allows Networking with your Windows 7 computer? File sharing etc. Through your local network?
View 2 Replies
View Related
Aug 13, 2013
Well the script should be working, it is 'ettin.sh' now. To get VNC to work on separate device just change 'eth0' to 'wlan0' or whatever other interface you know how to configure, like usb maybe, in the 'init.sh' script that resides in ~/ on the images you can download from [URL]....
Also on the different roms your storage might be different so just change that to what suites your environment,
After my first launch and exiting the VNC on my laptop (Ubuntu) My phones home button and a few other functions stopped working, a reboot remounts the root and system partitions and it goes back to normal essentially, I haven't noticed any adverse affects after the reboot.
I want to connect to backtrack over usb from Ubuntu on my laptop instead of from my phone. Is there a good way of doing this?
The thing is, I didn't chroot, I mounted the image, copied the contents of '/etc/*' and '/sbin/*' to the '*/etc' '*/sbin' dirs of the mounted image. and then mounted it's (the image's) contents to Androids rootfs '/' then I set up a little script to set up the environment and execute '/bin/bash -i init.sh' and again reset PATH to include /system/*.
Then in the init.sh script I want to set up a way to 'vnc' through' usb to backt4acks desktop. How would I do this?
View 6 Replies
View Related
Jun 20, 2010
I'm at a loss trying to get Astro to communicate with my Windows XP home computer. I downloaded the SMB module for my MotoDroid, but am not really clear on how to configure my Windows Networking settings and what exactly needs to be entered in Astro's configuration settings. Is there a guide on how to do this on the web?.. if so, I haven't been able to find it.
View 24 Replies
View Related
Jan 28, 2010
I need to write an Android application that allows a user to connect to multiple social networking sites like MySpace, LinkedIn, FaceBook etc. and fetch friends list.
I know that most of these applications have Java libraries or functionalities exposed as REST based WebServices. But since there is a lot of variety and disparity in the ways that these libaries are written or service that can be consumed, is there any single, integrated service or middleware component that I can use to provide a unified interface in my mobile application?
View 2 Replies
View Related
May 12, 2010
Maybe my question might seem a bit weird, but I have an activity in which, in one case , I have to move to another activity before it finishes loading the screen. My condition is in the onCreate method, which means when I encounter it, i get a "startActivity called from outside an activity context" error and the app just crashes. But then, is there an easy way like a flag for the intent to make it work without having the activity context resolved?
View 1 Replies
View Related
May 6, 2010
I want to know how to do method tracing for Android applications. I mean, a sequence of calls on each object, not a stack trace.
It's very similar to this question (Call trace in java), but on different platforms (jvm-PC vs dvm-Android). I have no control over the start arguments of dalvik, thus I cannot specify a java agent (or am I wrong here?). Is there another way to do method tracing?
View 1 Replies
View Related
Jul 17, 2010
Does anyone have their facebook linked with their X?
I am trying to figure out all the ins and outs for the device but anyway if you do
have you noticed the contact id for certain people is not the right person?
For instance my ex-bf Chris contact id is another chris that i am friends with on facebook...
Another Matt's picture is the id of my other friend matt
I only see this with people in my contacts that have the same first name as a facebook friend people like Bridget are fine.
View 11 Replies
View Related
Jul 11, 2012
I try to find the x and y co-ordinates through gps, wifi, and networking but i have problem in running the problem, at output it shows FORCE TO CLOSE error, then i paste the log cat error, as below.
Code:
package com.location;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.location.Criteria;
[Code] .......
View 3 Replies
View Related
Aug 31, 2009
I want to store some images into the /data folder,is it possible? And how to do?
View 4 Replies
View Related
Nov 24, 2010
i have an app that haves a lot of activitys, all created with ONACTIVITYRESULT.which method is called when i press back key? i need to know it because i have to override/implement code on it
View 2 Replies
View Related
Nov 30, 2010
Is there a way to delete Social Networking Services messages in the History tab. When u delete the call history it gives a message that Social Networking Services messages cannot be deleted.
View 2 Replies
View Related
Mar 30, 2010
I keep getting errors that my login/password are bad when I try to do mobile networking with my laptop, I wanna use my phone as basically a modem for my laptop. Each time it tries to get on the internet it says my sprint login/password are bad. Hell I don't even know where to change them on the Hero.
View 3 Replies
View Related
Apr 12, 2010
I have an iPhone and am getting the Droid and was wondering if blender games can run on either of them. I have already made a game and want to be able to use it on my phone.
View 2 Replies
View Related