App-provided Voice Action on Android 5.0.1 Device NOT Wear - android

Having come back to Android programming after some time away I'm currently investigating whether I can create a custom 'App-provided' voice action that will work on an Android phone.
As described here a custom voice action can be added but it appears to imply it only works on a 'Wear' device not a handheld. However as I can use the "OK Google" voice-command to set a timer on my Android 5.0.1 handheld device I wondered if the above link applied as well, but it appears not when I try it.
Is it the case custom app-provided voice actions are only available via a Wear device?

Related

Does Wear OS have a concept of a system-level assistant app?

My Samsung Galaxy Watch 4 Classic has a behavior where I can hold down one of the buttons to launch a voice assistant. When I got the watch, this was Bixby, Samsung's assistant app, but a later update added the ability to configure the app to launch the Google Assistant instead.
Is this functionality an affordance built into Wear OS, or my watch's firmware? Is it possible for me to write a Wear OS app that offers assistant functionality and can hook into this same action to trigger the app?

using android phone as a bluetooth keyboard for another android phone

I'd like to use my old android phone as a bluetooth keyboard for my new android phone. There seems to be plenty of solutions when it comes to using the phone as a keyboard for windows, but no solutions for android->android connection. How would I go about implementing one?
I do not think that you can do that via a simple Bluetooth pairing as you wish to do. But did you tried the Android App store? There are multiple Apps (which can be installed on both devices) for example "Tablet Remote" which description said "Tablet Remote let you control an Android tablet or phone with another Android device".

Android App - Turn on "Screen Cast" from ChromeCast App

This is a tricky one and I am guessing it won't be answered as I am not sure its possible. I am working on an application that the customer would like screen cast on to a large TV, with effectively "one click" in a menu on an android device (to a ChromeCast).
Scenario is
ChromeCast in TV and on wifi (but not connected to android device).
Android application is run by user.
User hits "one click" button (which is more like two click), one to start cast device lookup, second selects device.
Mirroring occurs
That's pretty much it. Its the same feature as the ChromeCast App "Screen Cast" functionality...to be honest we just want to turn this on from our app, instead of having to load the ChromeCast App.
Thanks.
There is currently no API to turn mirroring on from within an app. Note that on devices such as N5, the mirroring option is also offered from the notification shade so no need to bring up the chromecast app.
I have the same problem. The only way I have been able to acheive this is by starting the chromecast app and starting screen mirroring from there, and have my app implement a Presentation class. Even though I have been able to fully implement the ChromeCast UIButton, it doesn't work for starting screen mirroring from within the app. Probably an undocumented API or something they might add in the future, but currently I have found no way of doing it only in-app.
-edit-
Just thought I'd mention it, but a while back (after I/O 15) Google updated the available ChromeCast API's. Using a CastPresentation and the latest callbacks, it's possible to do this.

Android Mediaplayer control on notification bar like Samsung Radio App

All
I'm a Android Developer from Argentina I'm developing an app to listening the Audio streaming for a local radio station. This app should work for Android OS for 2.3 and >4.0 I'm including a play/pause button into a custom notification, all works fine on Android >4.0 but with 2.3 I could see that is not possible to detect push on the button, my notification is like that (my goal is that the notification work same in all android version)
http://i.stack.imgur.com/B5qh7.jpg
I use this Samsung's radio App for Android 2.3 and this allow push buttons to control the Radio and change stations.
http://i.stack.imgur.com/ziiVw.png
This controls are above the notifications bar section, so I'm not sure if this an improving including by Samsung into this rom or is possible made something similar with android api.
If anybody has any idea about this issue I will appreciate any tip or suggestion.
Thanks in advance. Regards.
notifications android-mediaplayer and

How to control custom Android app via Bluetooth custom device

I'm building a Bluetooth device and would like to make it so that once it's paired with an Android device such as a phone or tablet (eg. Nexus 7) it will be able to interact with a custom app on the Android device in a transparent manner without any prior setup.
For example, the behavior I'm looking for is similar to that of a handsfree headset where once you've done the initial pairing you can push a button on your headset, issue a voice command, and it transmits commands to the phone and the phone does it's thing. I have built a Bluetooth device where when a button is pushed it should be able to immmediately send commands to a custom app on my Android device and the custom app should run and do its thing. This should all happen without putting the Android device into some ready state or having my custom app open waiting for commands; it should all be transparent without the user having to do anything (eg. the Android device could be in my pocket or bookbag).
I am a veteran programmer but very new to Android and Bluetooth and would appreciate pointers in the right direction. I imagine that perhaps I would need to install some service-level app on the Android device to implement my own custom profile and/or intercept the Bluetooth commands but these are just guesses; I'm hoping someone would shed light on the actual process so that I can read up on them in detail. I'm also hoping that the solution is a generic one that would apply across the board but right now I'll take anything I can get lol!
Many thanks in advance.

Categories

Resources