I have this android mobile app which is a client of an NVR software. It uses basic auth and api key for server authentication. I am now building an app for android tv. I’m adding a feature which allows authentication using mobile. For this, I am using Nearby library from google where the TV becomes ..
I am currently on android SDK level 29. (Android 10/11) In my android manifest I grant permissions as such: <uses-permission android:name="android.permission.BLUETOOTH"/> <uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/> <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/> <uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/> <uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" /> I also grant location permissions for MainActivity, which is the parent activity for the fragment that uses user location data as ..
I am trying to implement something similar to this (https://github.com/ankitsinghmyself/SearchNearByPlace) in my Android application. I have tried running the persons code straight from GitHub with my own API key and it works but will not allow Nearby Search. I have tried two YouTube tutorials and two GitHub repos and no luck with Nearby Search. Can ..
I was searching what is the max number of connected devices and I came across a post that roughly states: When using P2P_STAR, the max number of devices is 10 as this topoly uses Wi-Fi hotspots. That is, if you don’t have a router. This makes me ask two questions: I know nearby connection uses ..
I am trying to use Google Nearby Connections API to connect two Android devices to exchange data but no success. The devices can found eachother non none of them can connect to the other. It always fails at onConnectionInitiated() with STATUS_ENDPOINT_UNKNOWN when I try to accept the connection. I tried it with Strategy.P2P_POINT_TO_POINT Strategy.CLUSTER and ..
I’m trying to implement file transfer using Nearby Connection with P2P_STAR strategy where the "spoke" sends a video file to the "hub". Using the documentation example I send the filenameMessage as bytes payload and the file payload. The receiver uses the SimpleArrayMaps to store the filename, incoming and completed payloads to rename the file later ..
Thank you for reading. I have to communicate with more than two devices which have been working perfectly with Google NearbyAPI Connections. Now I need to secure the connection restricting the access to the cluster network. The API exposes a method to authenticate the devices, which is used with a token provided by the library, ..
I’m trying to develop an offline P2P Network and am looking to adopt the P2P_CLUSTER strategy in my app. However, the v2 version of the Nearby API doesn’t seem to have samples for P2P_CLUSTER. I would greatly appreciate any pointers on how to approach this or any alternatives for offline P2P Cluster communication in Android. ..