Raspberry Pi 2 Server and 2 Android devices - java

I am pretty new to Android development and I got a project in witch I should connect two Android Phones to each other, through a raspberry pi. Could you help me with a idea about how I should do that? I was thinking about a multithreaded java server on the raspberry and the Phones would be the clients connected to it.

Related

Android app ignore Raspberry PI Wifi AP.How to connect Android App to non internet Wifi network?

I have basic web view android app - client side, and Raspberry Pi as server side (NodeJS WEB server). Raspberry acts as Wifi access point and receive connections. Android app works when i have internet enabled on raspberry via lan port. When i try to connect and around me i have saved wifi connection wit INTERNET ACCESSS, app ignore raspberry pi wifi. How to force android app to connect to NON INTERNET WIFI and keep the connection?
I assume you want to know, how you can prevent Android from switching networks, when the OS detects no Internet Connection.
You could start by disabling the Google Connectivity Services App. This sometimes works for me. To do this go to Settings -> Apps -> Google Connectivity Services (On some phones you need to enable 'system apps')
This feature might have different names on some brands...

Connecting Android studio to raspberry pi +touch screen dispaly(Android things)

I am doing a project using Android things,I have downloaded image and flashed in memory card ,n I got Android things os screen.... Until this is all fine..
Now I want develop app..how to connect to raspberry pi from Android studio so that the device should visible in deployment target of Android studio...so that I can debug ,put break point n see logcat...etc..I am using WINDOWS 7 OS For development system...I have installed Google USB driver from sdk manager,puTTy I have downloaded serial debug IP configuration did,..now adb is not detecting raspberry pi 3 .....but if I connect my mobile phone I can easily see the device in deployment target of Android studio....I have ref many sites ... But not working....if anybody have worked on Android thing with Windows Os plz provide me a full solutions right from scratch....n also suggest me site and books for Android things
The USB port of the Raspberry Pi is for charging only, it does not support data transmissions. You need to use adb over the network (either WiFi or wired).
First make sure to get the Raspberry Pi on the same network as your laptop. If you have access to a screen, you should also be able to see the IP under settings.
Once you know that, you can just use:
adb connect [Raspberry Pi]
And then you will be able to use it from Android Studio.
In theory you can also use:
adb connect Android.local
But that will not work if you have more than one android device on your network.
You cannot use the USB port from the Raspberry Pi for debugging. You need to connect its Ethernet port to your computer and debug over Ethernet.
See Android Things on Raspberry Pi.

Sending data over Wifi from Android App to Raspberry Pi

I'm trying to create an Android app that can send a confirmation message, either a string or an encrypted signal, over WiFi to my raspberry pi connected to the same WiFi network. How can I achieve this task?
The raspberry pi is running on raspbian. Do I need to code a separate app on the pi to receive the message?
How do you connect to your RaspberryPI? Does it have static IP?
You need kind of server on RaspberryPI which can listen what your Android device sends (I suggest you simple NodeJS server, easy to install, work, modify).
P.S.: provide more details and I can give you some suggestions, a month ago I did a project where connected Android app with RaspberryPI through Firebase.

Connect to mac address or UUID of raspberry pi from android device

I would like to connect to the MAC address of Raspberry Pi from my Android device.
Is there any approach that i can follow in order to Connect to specific MAC address of Raspberry Pi.
Any suggestions are much appreciated .

Connect Raspberry Pi to Android device via bluetooth

I just started of using raspberry Pi 3(Model B). I want to establish a bluetooth connection between raspberry pi and android device. Manually I am able to do a connection with android device but I want to run a program(python or any other language) so when I run it search the nearby device and connect with some specific device. How I achieve this? If any one have program similar like this then it is very helpful for me. I want to do code on Raspberry Pi which connect with diffrent device and collect the data.
Thanks in Advance.

Categories

Resources