Need to use WLAN in android - android

I developed an app for android tablet, Now i need to perform certain actions on the app through my android phone using WLAN... How to do it?

Your app can create a server socket to receive client requests, and then interpret commands that your remote client sends to it. This page might help you with the Android server socket part of things.

Related

Chat application using Socket programming android

Is it possible to do a chat between client and server (two android devices) using socket programming in android?If possible,anybody please offer me a help.Even a link is acceptable.
It is possible. you can use socket programming and create chat application with 2+ devices. one device must act as server and others have to be client. if your want to your server to be android device and don't want have web server side it does not need an internet connection. just a access point or one mobile hotsopt is enough. but all device must be connect to same hotspot or access point.

"Call" Android app from server using Ajax

I wish to create a Cordova/Android app that will be called/executed from my server. Both devices are on the same intranet and connect via WiFi, therefore no cloud messaging required .
For another scenario I have done the opposite. i.e. Android calls, via Ajax, an application on a Raspberry Pi for door opening purposes but this time I want to call an Android application from a Raspberry Pi. Where do I start? Ajax? Socket Server? What is the recommended connection method?
I think that websockets are the way to go. Implementing such a real time application allows you to 'push' data from the server to connected clients.
This can be initiated by clients (like in a chat application) but also by the server based on whatever events.
Have a look at Primus as a possible implementation. It abstracts the functionality from the websockets layer. This way it is possible to work with different websocket implementations.

Trying to make an android app in which the phone acting as a Server

Trying to figure a way in which the phone app acting as a broadcaster over UDP protocol stop listening as soon as it encounters a datagaram packet as reply.
Can't use google cloud need the app to be lightweight
You you want that your android phone act as server. then you can that using this https://github.com/NanoHttpd/nanohttpd

How to draw from web app to android app screen in real time

How to draw from web app to android app screen in real time?
is there any way to communicate web app to android app in real time?
i want to draw from web app to android app screen in real time?
How can i communicate from browser to android app in real time?
If i get the (x,y) position from web page, how can i send it to android app and told it to draw on its screen(any transparent layer/canvas)?
You can communicate Via web services at real time from web application to an android application.
You can set the web service code to send data from web To android application, suppose on button click.
Hope this may help you!
Use web sockets to communicate in real time.
SERVER:
This exposes a web socket. Can be a simple Node.js server. Refer this
WEB APP
A simple web application that connects to the above web socket. Refer in the same link where they will guide you to create a client.js which is the client part of the app
ANDROID APP
Refer this article which explains the simple way to connect & listen to web socket
APPROACH
When you draw something on the webpage (assuming you do it on a canvas), just get the coordinates of the drawing & send it to server thru web sockets. You can decide on when to send data using onMouseMove, onTouchEnd.....you get the idea
And on the other target side, you listen to messages coming thru web socket connection & then you handle it.
Note:
If you want really fast comm between the connected clients then look into the world of WEBRTC where you will use the SERVER only for initial handshake & later use direct peer to peer connection for all ongoing messages which can include video, audio calls, screen sharing

Setup simple bluetooth server console?

Hi i wanna work with some bluetooth communication using my Android device.
How can i test bluetooth connections easy?
Let say im creating a simple application that will send the message "Hello World" upon connection. I would like some sort of server application console i could fire up on my iMac and have my android application connect to.
The server application should just be a console or something that displays all the data it receives and maybe a input to back a response.
Is there anykind of program that allow this ?
Or do i really need 2x android devices to create a simple server / client interaction with bluetooth?
this Android Bluetooth Chat App will be good starting point .
you can make this connect to the mac over serial port profile.
The example above is for the latest Android versions (it is possible to accomplish this with 1.x versions of android also, you will have to use the appropriate api that are supported in older android versions also)
For Programming in the Mac refer to This

Categories

Resources