r/Android • • Mar 21 '17

Android O is here

https://android-developers.googleblog.com/2017/03/first-preview-of-android-o.html
11.5k Upvotes

2.0k comments sorted by

View all comments

342

u/neqwork Mar 21 '17

Fingerprint gestures:

Your accessibility service can also respond to an alternative input mechanism, directional swipes (up, down, left, and right) along a device's fingerprint sensor. To receive callbacks about these interactions, complete the following sequence of steps:

Declare the USE_FINGERPRINT permission and the CAPABILITY_CAN_CAPTURE_FINGERPRINT_GESTURES capability.

Set the FLAG_CAPTURE_FINGERPRINT_GESTURES flag within the android:accessibilityFlags attribute.

Register for callbacks using registerFingerprintGestureCallback().

Keep in mind that not all devices include fingerprint sensors. You can use the isHardwareDetected() method to identify whether a device supports the sensor.

Even on devices that include a fingerprint sensor, your service can use the sensor only when it's not in use for authentication purposes. To identify when the sensor is available, call the isGestureDetectionAvailable() method and implement the onGestureDetectionAvailabilityChanged() callback.

yay

168

u/Charizarlslie Pixel 8 Pro Mar 21 '17

Does this mean scrolling via the fingerprint sensor??

0

u/[deleted] Mar 21 '17

[deleted]

171

u/Kattzalos Nokia 6.1 Plus (with Nokia tune as call ringtone) Mar 22 '17

we blackberry now boys

2

u/petard Galaxy Z Fold7 + GWU2 Mar 22 '17

The touch-sensitive keyboard on my Priv is AMAZING. It's nice that a similar feature will be available for slate devices as I'll inevitably have to come back to slates in a couple years when my Priv becomes unusable.

26

u/Ph0X Pixel 5 Mar 21 '17

Well the app can use it for whatever it wants.

8

u/JediBurrell I like tech Mar 21 '17

If anything, not very detailed scrolling.

It's not going to be a trackpad, just gesture detection.

6

u/Charizarlslie Pixel 8 Pro Mar 21 '17

Let me dream, eh?

15

u/amunak Xperia 5 II Mar 21 '17

Why would you want a trackpad on the phone when there's this other HUGE ASS TOUCH SENSITIVE SURFACE called usually just "the screen"?

2

u/Charizarlslie Pixel 8 Pro Mar 21 '17 edited Mar 22 '17

Because being able to scroll with the sensor on the back would let me look at 100% of the screen at all times, instead of having to block part with my finger.

→ More replies (6)
→ More replies (2)
→ More replies (1)

3

u/electric_dolphin S10 Mar 21 '17

Do people actually want that? Would it really be more convenient than using your thumb that's directly hovering over the screen?

→ More replies (6)

2

u/iamnotaneffinfanboy OnePlus One 64Gb|Euphoria 1.1 Mar 21 '17

Kinda like what they had with the first HTC Desire. An optical button thingy that you used for scrolling

4

u/Charizarlslie Pixel 8 Pro Mar 21 '17

Or a nav ball thing like on blackberry swoons

6

u/iamnotaneffinfanboy OnePlus One 64Gb|Euphoria 1.1 Mar 21 '17

0

u/[deleted] Mar 22 '17

[deleted]

2

u/iamnotaneffinfanboy OnePlus One 64Gb|Euphoria 1.1 Mar 22 '17

I think the first google nexus was a modified HTC Desire.

→ More replies (1)
→ More replies (2)

2

u/tintin_92 Google Pixel XL 32GB Mar 21 '17

More like the O Touch Pad on the rear of the Oppo N1

→ More replies (1)

2

u/[deleted] Mar 22 '17

OMG. I WANT.

1

u/Klllilnaixsllli Galaxy S7 edge Mar 21 '17

Oh like you can with the keyboard on blackberries. That's super cool.

→ More replies (5)

4

u/7734128 Mar 21 '17

All I want is for it to function like my beloved nub on the HTC Desire. It's an immense pain in the ass to move the cursor one letter when writing on Android, especially if you have the horrendous Google spelling active, this would solve it if I could swipe to move the cursor.

6

u/mortenmhp Mar 21 '17

If you use gboard just swipe left or right on the space bar

→ More replies (2)

1

u/[deleted] Mar 21 '17

So is this for all fingerprint sensors?

4

u/Ajedi32 Nexus 5 ➔ Pixel (OG ➔ 3a ➔ 6 -> 10pro) Mar 21 '17

I assume those that don't support it would just always return false for isGestureDetectionAvailable().

→ More replies (5)

1

u/AngryItalian Pixel 2 XL | Moto 360 v2 | Note 10.1 Mar 21 '17 edited Mar 21 '17

Works great on the latest 6P beta 7.1.2 I got last night. I assume this was their proof that any device can use it, contrary to what they originally said.

1

u/tanghan Mar 21 '17

Just the other day I was thinking back to how awesome the trackball on the G1 was and was wondering why the fingerprint scanner isn't used for this purpose (similar to how the HTC legend did it, just without fingerprint) and here it is.

I hope it will be implemented system wide so you can use it to easily navigate through text, scroll in the browser etc

→ More replies (2)