I am registering RemoteControlClient to control playback in my application. http://developer.android.com/reference/android/media/RemoteControlClient.html
it shows playback notification on android wear, but buttons play/pause/next/prev does not work on wear, volume up/down work. It also work locally on phone, so i think remotecontrolclient is registered correctly. Does someone faced up with this problem too? Any advices?
Thanks,
It seems that on Android 4.3, Android Wear only sends specific Intents that are unique to Google Play Music, rather than using the standard functionality to handle media controls. In Android 4.4, they use RemoteController to correctly send media events, in place of their custom solution on Android 4.3 (hence, why it works on those devices).
I've filed an issue with the Android Wear team to use the standard functionality, which should eventually fix this issue.
Related
How do I make my WearOS app work on LockScreen? My app reacts to tapping the smartwatch on an NFC tag. I hear about widget, but it's almost dead now. Is lockscreen programming still possible in Android app development? Thanks in advance.
From: https://developer.android.com/guide/topics/appwidgets
Only Android versions lower than 5.0 support lock-screen widgets.
So lock-screen widgets have been unavailable for quite some time now.
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.
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
I've been reading the AnyMot protocol and the fling is mentioned wherein a second screen app can launch the YouTube app. Could a tablet application launch say the Flixter, Pandora or the Goolge Music app without it being a remote control emulator. If so would the AnyMot protocol be what's used?
Thanks
Anymote is a very much adequate for that. If, you want to do an app like "Able Remote", you'll need to put a small app on the TV which will tell you what apps are present. But for what your asking, it's doable w/ just Anymote.
I am an android developer. I plan to implement my existing android application (which does voice to text) on Amazon Kindle Fire. I created a test device as per the amazon kindle help as i don't have kindle fire with me. I have a doubt that what happens if i click on microphone icon on my app with out connecting external mic (kindle does not have built-in mic as per specification). Does it lead to a crash? Do kindle handle this?
I agree with CommonsWare above that you really need to own the hardware to develop an app properly for that platform.
To assist a bit with other that are looking into this issue, it has been reported (and I have verified) that you can use cellphone headsets with the Fire and some apps to recognize the headset mic.
Source: http://www.the-digital-reader.com/2011/11/27/how-to-add-a-microphone-to-the-kindle-fire/
Are you developing natively or using a crossplatform IDE like Titanium or PhoneGap?