Develop Android app for connecting to smart devices/Home automation app - android

So, for the start I have a smart light device. I want to develop a app which searches this smart light and then connect to it. After connection I want to access the traits offered by that smart light and control it from my application.
What I have tried is, I have used Android NSD service to discover devices but I didn't get the smart light device.
Here is what I referred to
https://developer.android.com/training/connect-devices-wirelessly/nsd
https://developer.android.com/guide/topics/connectivity/wifip2p

Related

Android Wear Bluetooth turning on/off using coding

Is it possible turn on and off Bluetooth by coding in Android Wear? I couldn't find anything online.
It's possible in Android mobile apps, but I want to know whether the same is possible with android watches.

Android smartphone as a gamepad

Is there a way to create an app to recognize an android smartphone as a bluetooth gamepad?
Every app I found on the store is a client/server app but it's not what I need.

Can I develop Android watch app to run without mobile phone?

I am planning a new application that I would like to put on the smartwatch. I would like to have it usable also when there is no phone nearby. The app needs no Internet connection to work, could synchronize data to the phone later and I do not need anything from the phone while the app is running. However I could use the phone no problem to install the app.
I have googled, there are some foggy talks on a web that this is not possible, Android watch must always be connected to the phone for apps to run. How much is it true?
With Android Wear 2.0 it is possible to now develop standalone applications and thus eliminates the need for a mobile 'companion' completely.
Please follow this link for more information: https://developer.android.com/wear/preview/index.html
As I am aware, the current Android Wear version always requires a companion app for installation purposes etc. But with 2.0 this is no longer necessary. It would probably make sense for you to start developing with 2.0 now. That being said, it is still in a development preview and can officially run on only two smart watches (Huawei Watch and LG Watch Urbane 2nd Edition)
Wearable apps are run directly on wearables and don't require presence of a phone except for installation or phone-provided features (voice recognition, SMS, internet connection etc.)
Note that some features are wearable-provided or phone-provided depending on the hardware configuration of the watch/wearable (eg. GPS).
Yes, it is most definitely possible. As long as the wearable app doesn't require any functionality from the phone then it can operate as a standalone device. It will require a companion app on the phone to install the app on the wear device.
There are several wear apps that work without the need to be tethered to the phone, including Google Play music. There is the possibility of designing wear apps for hardware on only a few wear devices - I know that Ghostracer has standalone functionality using GPS, but it requires the wear device to have a GPS chip (it is designed for the Sony SmartWatch 3).

How to simulate different bluetooth devices in one application?

I want to develop an Android application which can simulate different Bluetooth devices in one.
for example on launching this application my android device or Computer system act at Bluetooth watch to other devices.
The closest solution I found is a IOS application by Attack pattern .com
http://attackpattern.com/work/bluetooth/
I tried to develop the similar application in android or LINUX system but not find any solution.
Please help.

Android Wear, connect to bluetooth device

I want to connect a 3rd party bluetooth device to my Android Wear watch (Samsung Gear Live). I am trying to find documentation on how to do this but I am not having any luck. All the searches I do seem to think I want to attach to a phone.
Does anyone know of a good example that shows how to connect, for example, a bluetooth heart rate monitor (or other device) to the Android Wear so I can keep a history when the phone isn't present? Is this even possible? Would it be the same protocols as doing it from a phone/tablet?
#Ryan Tensmeyer, I think #Wayne Pieksarki's answer is now out-dated. I was able to create and run a stand-alone app that used BLE to connect to a third-party bluetooth device, namely, a wireless thermometer. I used a library called SweetBlue and tested the stand-alone app on an Android Wear Moto 360. It worked great -- no phone required!
It is not possible to connect 3rd party bluetooth devices to an Android Wear watch as you describe. You will need to pair your heart rate monitor with your phone, extract the data you want, and then use the Data Layer API to send the data to the wearable for display to the user.
EDIT: Android Wear devices now support the ability to pair with Bluetooth devices.

Categories

Resources