Android :: Peer To Peer Communication Over Bluetooth
Sep 6, 2010
i want to build a simple bluetooth chat program that can do a 2 way chat with 2 mobile devices. i know that i can use gamekit to develop such application for iphone and ipod touch. But i want to know is, is it possible for other smart phones (running my application) to discover and communicate with ipones and other devices as well? in simple: i want my application to run on iphone,symbian and android and to be able to discover and communicate with each other over bluetooth.
View 1 Replies
Aug 4, 2010
Is there anyone using git in such a fashion? I would like to distribute some multimedia content from a server to some Android remote devices. I would like them sending back a log file with device usage statistics (provided by an android app I will write). The server could be anything but I would prefer a linux box. I thought that since git handle and sych only differences between files, It would be a nice tool for this purpose and I would have content revision history as a bonus. I need some piece of advice on how the repositories architecture could be organized: does It have to be a star topology or something different? The remote end of the sistem don't need any interactivity, in other words the remote git repository could pull and push whatever It needs to, autonomously and automatically.
UPDATE: I've found here on SO the author of git internals (I'm downloading It right now), Scott Chacon talking about the architecture I would like to implement.
UPDATE 2: OK I read the chapter about "Non-SCM uses of Git" and here is what the author says about a Peer to Peer CDN:.....
View 3 Replies
View Related
Sep 24, 2009
I am with a group of college students making a multiplayer game as a class project on the Android platform for the G1. Our primary goal is to allow multiple phones (or for the sake of initial testing, a phone and an emulator on a PC) to communicate with one another. Our game is turn based, and we've been looking into TCP/IP and VNC proxy servers to transfer data between the game clients on each phone, but none of them seem particularly simple to implement. We've been through many articles documenting how difficult peer-to-peer connections are on the Android platform. What would some viable network protocols to use for the sake of our project and how should we go about setting them up?
View 3 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
Aug 19, 2012
Is there a voice / messaging app that will work via a wifi connection WITHOUT the need for an Internet connection? For example, two people with phones connected to the same router over wifi, but NO ACCESS to the Internet. I'm assuming apps like Skype would require both devices to be able to communicate with the Skype server to initiate the call, but might allow peer-to-peer afterwards.
I am not interested in making calls or texts to people outside of the wifi network. Does such an app exist?
View 9 Replies
View Related
Aug 8, 2010
I have a Motorola Droid X with PDAnet (2.42 installed on my computer). I am able to browse the internet and play some online games just fine, but if I open my Ares P2P program (on my computer), I am unable to stay connected to my phone. PDAnet Desktop just disconnects without any error messages. Does PDAnet block this type of software, or do I have something misconfigured? Or should I just use a different P2P program?
View 1 Replies
View Related
Jul 11, 2012
I am writing a proxy in Android. I want to know, how one may detect if the server or client has closed its socket? I am using pre-NIO sockets. It should be noted that, the YouTube App will connect with my Proxy server (I have installed proxydroid) and then data will pass between YouTube App and Youtube Server through my proxy.
I have used read() method for reading. When I am reading (with read() ) as a client (from the server) if I get -1, does it mean that the server has closed the socket?
In the same way, If I am reading (with read()) from the client and get -1, does it mean that the client has closed the socket?What is the best way to detect if a remote peer has closed the socket or not?If I use methods like isInputShutdown() or isOutputShutdown() ?My main goal is read into a byte array until the remote peer has closed the socket?
View 1 Replies
View Related
Dec 17, 2012
I am new to android programming and I am trying to set a connection with the android as a host. I have included the following imports:
import android.content.Context;
import android.hardware.usb.UsbDevice;
import android.hardware.usb.UsbManager;
import android.hardware.usb.UsbInterface;
import android.hardware.usb.UsbEndpoint;
import android.hardware.usb.UsbDeviceConnection;
import android.content.Context;
My problem is when I use this code :m_usbManager = (UsbManager) getSystemService(Context.USB_SERVICE);The eclipse editor shows a message saying that getSystemService(String) is undefined for the type CPrinterCommands(The class that I am using). Quick fix gives as a solution to create a method called getSystemService, however I can't find why I would need to create a method, all the examples I found, none of them had a method getSystemService.
View 1 Replies
View Related
Dec 10, 2009
I wrote a TCP socket client, an android application. On my emulator, it can successfully connect to a TCP sever running in my PC. But, when I deployed the the apk into my real phone, HTC g4, it dosen't work. An exception was raised said "java.net.SocketException: Network unreachable". The situation is, my handset was connected to my PC via USB, and no other connections were available. How can my android application connect to a PC server in the case. I don't know if we can use socket over usb connection. If yes, then why my application doesn't work. If no, then how?
View 2 Replies
View Related
Mar 30, 2010
I have a design problem with my Android components.
My activity is starting a service which is doing the work in the background. What I want is that the service informs the activity about state changes. How can I do this?
Normally I would add an observer but the activity has no reference to the service. Then I was thinking to take AIDL but this is more for inter-process communication.
How is it possible that the service informs the activity about state changes? Both are running in the same process. What can you recommend?
View 9 Replies
View Related
Oct 18, 2010
I am a beginner in Android and i want to establish a serial port communication(UART RS232) library in Android Framework Layer. My applications want to use that libary to send messages to some serial port devices. here we wan to use android as a embedded device and not a mobile device. can you suggest me how to establish a seria communication and to add that library on android framework layer.
View 3 Replies
View Related
Sep 6, 2010
I have to develop a multiplayer game. The game will be supported between different platforms: 1) Two android clients. 2) Android client and a web application (something like facebook and android client for Texas- Holdem game).
I want to handle the communication between the platforms through a service.
I have asp.net (C#) background so I thought to implement the communication using WCF service but I am not sure this is the best choice?! Can you please tell me if my choice is good or should I choose other approach to implement the communication?
View 2 Replies
View Related
Jul 3, 2009
I want to send and receive information between Emulators in Android.i am using two systems and i have installed android in both the systems and i have to consider one emulator as server and another as client.Now i want to send data from one to another.Anyone knows regrading this please help me with some sample code.
View 2 Replies
View Related
Aug 25, 2010
i implemented the xmpp client in android.its working fine.the next task i focused on group communication from android. java code which related to group communication from xmpp.
View 2 Replies
View Related
Mar 19, 2009
Just say I have two applications, each with one activity running on separate processes and I want to send a simple string between them. For the purposes of this example, let us say I have a button that sends whatever is typed into an EditText view to the other application where it is then displayed. Do I have to expose a remote interface via a service that co-resides between the two applications? Or can I do something simpler (is there a way to pass data between processes without defining your interface using AIDL)? Thanks for clearing this up for me, as I seem to be struggling with performing IPC at the moment. I'm pretty sure I have to use the Android IPC path and generate a remote interface using AIDL. I'm just not sure about the binding to service part.
View 7 Replies
View Related
Aug 25, 2009
I'm not *entirely* sure this one is supposed to go here, but anyway :)
Assuming I have two Android-powered devices, connected both to the same 3G network; does the current API of Android allow to have a Service running on one of them being contacted by an Application running on the other one over this 3G network or do I have to go for a more traditional network (e.g. WiFi AP, Bluetooth) ? If so, how do I do it ?
I saw the usual Socket part in the API but it is not clear to me whether this is the way to use the 3G. I also found another discussion related to communication between a laptop and a dev phone ("Sending data to android dev phone using 3G connection") so it seems to be possible.
Does anyone have some details about how to do this?
View 4 Replies
View Related
Sep 14, 2010
How to implement communication with oracle.
View 3 Replies
View Related
Oct 6, 2010
Is there any way to allow communication between a program on a PC and an app on the Android through USB? I've notied some apps can sync through USB so I figure there must be a way.
View 2 Replies
View Related
Jan 22, 2010
I have done socket communication in a single application it is working fine.
But my requirement is i have opened two emulators and i am able to send sms between those two.
Now i want to run server in one emulator(myavd-5554) and client on another emulator(myavd1-5556)
I have used the following code on Serverside public class TCPServerActivity extends Activity
CODE:............................
View 2 Replies
View Related
May 26, 2009
I have just started to develop android application. My question is: Can I communacate with serial port by using android application? If yes, how can I start,need help.
View 3 Replies
View Related
Feb 13, 2010
I have a simple Java client application (Android app). I have to write a PHP server application which receives a request from the Java client application to write some data to a MySQL database or read some data from the MySQL database. It should respond with a status message (Write failed/success) or the data requested respectively. How would I get the Java client send a request and receive the reply from the PHP program and how would the PHP program receive the request and send the reply? I have googled about SOAP and REST architectures, but looking for a simple tutorial which will allow me to implement this simple program.
View 2 Replies
View Related
Sep 7, 2010
I want to develop a multiplayer game. The game will provide communication between different platforms:
1) Two android clients (client applications that communicates through a service).
2) Android client and a web application (internet application) which is something like facebook (web) and android client for some kind of game. I want to handle the communication between the platforms ((1) android to android and (2) android to web) through a service.
I have asp.net (C#) background so I thought to implement the communication using WCF service, but I am not sure this is a good choice. Can I handle the communication using WCF or should I use other approach? Can you please recommend me a good approach to implement the communication?
View 4 Replies
View Related
Nov 6, 2009
I'm currently in the research phase of my dissertation project.My project is a ticket booking system for a mobile device and I have chosen to target Android.I anticipate the need for a client/server architecture with a central server, and so am currently looking at how Android could communicate with such a server. The server would grant the client access to ticketing information, and the client would send information about ticket bookings to the server. I'm looking at Java EE for the server as Java is the language I'm most experienced with.I'm aware that Android comes with java.nio and java.net, as well as some org.apache packages, but am also looking for libraries/technologies that would be possible to use with Android.
View 1 Replies
View Related
Dec 21, 2009
This is the scenario:
1 user has a main activity used for ii.
2 program needs to communicate with peers and keep connection and wait for messages
3 when a message comes it is shown in the main activity. so the question is should I use a service for the communication and what type of service? and also should I use Aspects in the service in order to keep my ii responsive and why?
View 1 Replies
View Related
Nov 9, 2010
I've a simple Main Activity which has to stop till an SMS is received.How can I launch a Method from the MainActivity within the BroadCast Receivers onReceive() Method? Is there away with Signal and Wait? Can I pass something with a pending Intent, or how can i realise this communication?
View 2 Replies
View Related
Mar 29, 2010
I know we can communicate between 2 instances of Emulator. But Is it possible to communicate between the a read Device and Emulator?
View 6 Replies
View Related
Sep 8, 2010
Setup - android-notifier - How to set up communication between the android app and the desktop/laptop. - Project Hosting on Google Code I'm thinking this could be handy if I add BT to my netbook and can get it to automatically enable when I'm next to my netbook and disable when I step away.
View 1 Replies
View Related
Jul 6, 2009
I'm writing an application that consists of a background Service and one or several Activities acting as UI towards this. There will most likely be several different UIs for this service that will installed later on, like custom widgets or UIs. The question is how to solve this in the most efficient way. Is it better to only use Intents for communication between UI and Service (sending control commands with Intents from the UI and listening for Intents from the Service for state and data updates) or should I prefer using IPC communication (AIDL -> Java Stub, binding to the service etc.)?
Since the UI might be started long after the service is started, I would either need to use sticky intents to signal current state, or have a very frequent intent sent by the service if choose to go with the Intent-based design. Which one would be the preferred way in that case? I've read that sticky intents are much more resource consuming than normal intents, but are intents more consuming than IPC directly towards the service? Also, is really an AIDL the right way to allow third-party integration? Intents sounds better, since they are also asynchronous.
View 12 Replies
View Related
Apr 15, 2009
I am trying to create a tcp connection between the android emulator and remote PC. when i use the local host i can able to connect but remote host i could not able to connect. firewall disabled
for remote host i used the stcppipe for forwarding
Enter the Android tools path and run: adb forward tcp:40 tcp:40
stcppipe.exe -b 192.168.0.85 127.0.0.1 40 40
but my emulator application could not able to connect. what could be the reason.
View 2 Replies
View Related
Jun 4, 2009
I am trying to port a VoIP application based on SIP protocol to android.
I want to test this application first on two emulators running on two different PCs connected via LAN.
The problem is that, the communication is not happening when I run the application on two PCs. The same application works when I run it's non-android version on the same PC's.
I have identified the following problem. Let's say there are two computers C1(192.168.1.101), C2(192.168.1.102) connected in a LAN.
Emulator E1 is running on C1 Emulator E2 is running on C2
The application uses UDP protocol and the port being used is 5060 on both computers.
I have setup port forwarding on both the emulators. This is the command used for that in Android console. redir add udp:5060:5060
When we make a voip call from E1 with the URL 192.168.1.102:5060, then E2 responds to the call, but what ever E2 sends in response is not coming back to E1, and hence E1 is timing out.
When I observed the log files, actually E2 is sending the response to 10.0.2.2:5060, which is the C2's loop back address(127.0.0.1). How do we resolve this issue?
I have gone through the developer guide where they have mentioned about two emulators communicating on single PC. But looks like this concept doesn't work when we run emulators on two different computers.
I tried 'redir' command for port forwarding and added INTERNET permission, still it doesn't work.
My question is, Is it possible to implement this communication on two emulators? and if yes, How to do this?
View 5 Replies
View Related