As all users of Windows Phone 10 know, the Bluetooth connectivity on this system is cutted to the simplest for end-user, which ends for programmers as a horror to create anything. When connecting to a device, system automatically looks for a "functions" that device has, for ex. audio. The questions are as following:1. How to define a function like that on external Android device? The main goal is, to control all types of music playback from it (ex. Groove music playing)2. Where can i find a list of things like this, for future app functions?
And to get ahead of answers, I already tried the easier ways, which came to nothing due to UWP limits of controlling other apps playback.
Main target of project is to make a xamarin c# (or java, I can "translate" from one to another with ease) android app for a smartwatch and in c# uwp for windows phone to do most common tasks, like - as mentioned before - music playback control and notifications reciever.
Based on your description, you want to develop an Android app to send Bluetooth command to control the music player of a windows phone device, then it depends on your Bluetooth of your android device.
But control music player by Bluetooth need the profile Avrcp I have check the google Bluetooth API I did not find the profile of Avrcp, I think it is may be hard to send the Avrcp command at the android application level.
And Android is source opened, many device factories prefer to customize their own Android system, it is possible that the device uses a Bluetooth module as a serial device, then the official Bluetooth APIs are not suitable for this scenario, the develop protocol of this Bluetooth module is in need.
Related
I would like to know if there is a possibility that an app can simulate a Human Interface Device over bluetooth of an android device.
In my context this would be an app, which simulates a mouse, that should be recognized by a computer as a bluetooth mouse. Ideally this should be realizeable in java.
I know this question has been asked several times in the past but i want to know if there are new nonoutdated possibilities.
This should be possible in android pie and later by using the HID device profile, but a lot of chinese manufacturers ignored to implement the HID profile. You can check if your phone supports Bluetooth HID device profile with the app - https://play.google.com/store/apps/details?id=com.rkaneapplabs.bluetooth_hid.bluetoothproxy and let your device manufacturer know if they don't support your device because its part of android pie and should be supported.
During discovery the Android app will publish a SDP service-record where the computer can find out that the Android device support the HID-profile. The Android device will still be identified as the original Class of Device (COD). Most PC's will work great with a BT mouse app on a phone, but some devices (Game consoles) scanning for a BT-mouse will only look for devices belonging to the 'mouse' COD, and ignore other devices such as phones and tablet.
I'm wanting to develop an app for my personal use so that several mobile devices can pair to several Bluetooth speakers (regardless of the brand).
Because the sync will take place through internet, and that the app may become cross-platform overtime, it is essential that I can give to the device which is synced to me the ability to manually tweak its Bluetooth latency (ms offset), so that the speakers can be in phase. That was achieved previously because I saw it in certain apps; yet I can't find any developer information about it!
Any ideas as to how one would go about developing it?
I don't think compensating for Android Bluetooth Latency using app side code only is possible, because the latency varies a lot by manufacturer.
It might be possible though if you can modify your speaker firmwares in order to add timestamp based syncing between your speakers... or use Wi-Fi speakers
For more developer information about Android Bluetooth Latency, read this:
https://www.soundguys.com/android-bluetooth-latency-22732/
I recently sarted working with bluetooth devices in Java with the target to build a programm, which can stream music from a smartphone app (e.g. Spotify, Google music player, VLC for Android, ...) to a PC/Laptop.
For communication with bluetooth devices I use bluecove.
The pairing works fine, but I can't find a possibility to create a A2DP or HSP client. According to a thread I found on google code this is because bluecove (or JSR-82 implementations in general) doesn't support "audio streaming".
Am I out of luck with java for this project? Or is there another possibility to stream music from a smartphone to a PC/Laptop via bluetooth?
I am looking for a simple direction pointer here. I am wanting to try communicating from an android tabled to a java program. send/receiving data over USB interface. Help would include API references (like libraries i should look into for both android java and standard java) or links to tuts if you know any or simple ideas. Thanks in advance! I contonue searching.
**EDIT**
I am still lost. I don't know where to begin so I will restate my question in hopes for more answers. I am looking to connect an android tablet to my computer through usb and be able to send/receive string data to a custom java application. I have to use usb as the situation will not permit Bluetooth or wifi. An example would be a java(PC) application that sends an x,y coordinate to an android tablet, and the tablet draws that coordinate and a user touches the screen and the android tablet sends an x,y coordinate to the java application to the pc. I can do this with an arduino so the PC java application is not an issue, just the android java app.
A good place to start would be the "USB Host and Accessory" guide in the Android developer guides.
If data volume is low you might just copy files back and forth by using MTP file transfer protocol which is readily available on almost any Android device and easy to use.
I am working on an app that scans your messages and presents interesting statistics about your contacts. Right now I have it running on my laptop scanning an iPhone SMS database. I want to create an app that will allow people to scan their own messages from their phone. I know this is not possible on iPhone so I am focussing on Android. Here are the kinds of stats we are calculating:
http://cl.ly/460S3y3Q3F200o1W2X0Y
I have read this answer:
How can I read SMS messages from the device programmatically in Android?
But just wanted to double-check that it is still possible to access the messages on Android phones from within an Android app.
Is that possible?
Thanks!
There is no publicly available API on Android SDK that allows you to read the user's SMS messages from within an app.
As you've found, there are ways in which you can obtain the information using unofficial / undocumented calls. Google themselves do not recommend you do this, because it's not guaranteed to work across all phones, or all versions of Android.
So to answer your question: yes, it's technically possible, but probably ill-advised if you're looking to publish your app and have it work successfully across all devices.