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.
Related
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...
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.
I have to develop an biometric authentication application.
The application will be written in java and it will be an desktop app, I want to use my smartphone for the fingerprint sensor, but I don`t know how to build this connection betwenn application and phone.
The main application will be installed on a computer without web.
I would be grateful if you have any idea or examples how to do this. Thank you!
You should have an app on your smartphone which uses the fingerprint authentication API.
If you are looking to use an android phone, you can refer this
https://developer.android.com/about/versions/marshmallow/android-6.0#fingerprint-authentication
You can create a simple APP using this API.
When user authenticates, then you can send message to your desktop java application from this App.
By 'without web' if you mean without internet, but can be connected to a local network, then you can send message via TCP/UDP.
Or if you wont be able to connect to any network, then you can try bluetooth.
If bluetooth is also not available, then you can connect your phone to your computer via a USB cable and communicate using Serial communication. There are a few external libraries available for this.
I want to send and receive data from a Linux based hardware piece to an android device. The hardware device is connected to Hotspot created by android device. Can you please suggest some links or tutorial from where I can get idea how to establish communication between hardware device and the android device to send and receive data through WI-FI .Please Help any sample code or links
There is an enormous amount of ways to do it. The easiest one is running an ftp server on the linux machine and upload the file to it from the Android app via the FTPClient class from Apache Commons.
While this is very easy to establish it is very unsecure, and should only be used in your local wifi.
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.