Profile cover photo
Profile photo
Greg Kochaniak
156 followers -
Hyperionics Technology LLC - owner, author of @Voice Aloud Reader app for Android, HyperSnap and HyperCam screen capture and recording software - http://hyperionics.com
Hyperionics Technology LLC - owner, author of @Voice Aloud Reader app for Android, HyperSnap and HyperCam screen capture and recording software - http://hyperionics.com

156 followers
About
Posts

Post has attachment
Just joined beta and updated my Nexus 6P to build no. OPP4.170623.014. I find now that in my own app, @Voice Aloud Reader (https://play.google.com/store/apps/details?id=com.hyperionics.avar), media buttons to play/pause, skip forward or back, no longer work on Bluetooth headsets, and probably on wired as well. They work great for all older versions of Android, API 10 up to and including API 25. What could be wrong, is "O" simply broken here?

The way I handle media buttons on API 21 and higher, is by creating MediaSessionCompat in a service, setting flags to handle media buttons (flags are depreciated in API 26, but still needed for older versions and harmless), setting media session callback and handling buttons in onMediaButtonEvent() there. Of course set playback state in mSession object, including setting actions to include ACTION_PLAY_PAUSE | ACTION_PLAY | ACTION_PAUSE | ACTION_SKIP_TO_NEXT | ACTION_SKIP_TO_PREVIOUS | ACTION_FAST_FORWARD | ACTION_REWIND etc.

I also experimented with PendingIntent, using MediaButtonReceiver.buildMediaButtonPendingIntent() and set mSession.setMediaButtonReceiver(pendingIntent) for all the actions I'm insterested in, then in my service onStartCommand() I call MediaButtonReceiver.handleIntent(mSession, intent). Nothing, it's completely dumb to media buttons press events. What's wrong with "O" or my code there??? I'm completely baffled.

Could I post my wish list for the new Android emulator? If so, I'd like to see in it, in addition to all the great enhancements already done in version 2 preview:

1. Ability to copy/paste text between the emulator and the host machine.

2. Ability to mount a host directory in Android guest system.

Both of these abilities are present in Genymotion, but I can't use Genymotion any more. My app is based on the system WebView control, and in Genymotion this control is very slow, unusable.

Post has attachment
Add a comment...

Post has attachment
Add a comment...

Post has attachment
HyperSnap v8 - a major update of our best-selling screen capture for Windows is out. Today we released HyperSnap 8.03.00, improvements in auto-paste captured images and reviewing images from selected folder. See http://www.hyperionics.com
Add a comment...

HyperSnap version 8, new major release is out. 64-bit to handle larger images, many enhancements. 32-bit version also available. More at http://www.hyperionics.com
Add a comment...

Post has attachment
Add a comment...

Post has attachment

Really useful tutorial, helped me understand how widgets work. Thanks!
Add a comment...

Post has attachment
More on Android ART runtime - found KitKat build for my Galaxy Note II on http://omnirom.org/. Works great. Enabled ART runtime, and the phone booted with no problems. Then tried loading a long HTML page for aloud reading in my app, which on the same device and system with Dalvik runtime takes about 6 seconds to load and start talking. With ART took only 4 seconds instead, and this does not give full justice to ART still, as part of my loading and parsing code is in native C++. More tests are needed, but I expect about 2x speedup on Java code already. And they are still not done developing and improving ART!

Post has attachment
Released version 4.0 of @Voice Aloud Reader - Android app. Improvements:

* Added "Edit speech" feature under Settings menu, to change pronunciation of some words, delete unwanted fragments of sentences (using RegEx) and more.
* Added "Clear contents" function to the menu, to clear the current text from @Voice screen.
* If HTML page declares text encoding different from auto-detected, we let you switch between the two from the menu, to display text correctly.
* Made the APK file to download smaller.
* Many smaller new features, improvements and bug fixes.

Download from Google Play: https://play.google.com/store/apps/details?id=com.hyperionics.avar
Add a comment...
Wait while more posts are being loaded