Ausnahme gefangen: SSL certificate problem: certificate is not yet valid ๐Ÿ“Œ Prepare your app to support predictive back gestures

๐Ÿ  Team IT Security News

TSecurity.de ist eine Online-Plattform, die sich auf die Bereitstellung von Informationen,alle 15 Minuten neuste Nachrichten, Bildungsressourcen und Dienstleistungen rund um das Thema IT-Sicherheit spezialisiert hat.
Ob es sich um aktuelle Nachrichten, Fachartikel, Blogbeitrรคge, Webinare, Tutorials, oder Tipps & Tricks handelt, TSecurity.de bietet seinen Nutzern einen umfassenden รœberblick รผber die wichtigsten Aspekte der IT-Sicherheit in einer sich stรคndig verรคndernden digitalen Welt.

16.12.2023 - TIP: Wer den Cookie Consent Banner akzeptiert, kann z.B. von Englisch nach Deutsch รผbersetzen, erst Englisch auswรคhlen dann wieder Deutsch!

Google Android Playstore Download Button fรผr Team IT Security



๐Ÿ“š Prepare your app to support predictive back gestures


๐Ÿ’ก Newskategorie: Android Tipps
๐Ÿ”— Quelle: android-developers.googleblog.com

Posted by Jason Tang, Product Management, Diego Zuluaga, Developer Relations, and Michael Mauzy, Developer Documentation

Since we introduced gesture navigation in Android 10, users have signaled they want to understand where a back gesture will take them before they complete it.

As the first step to addressing this need, we've been developing a predictive back gesture. When a user starts their gesture by swiping back, weโ€™ll show an animated preview of the destination UI, and the user can complete the gesture to navigate to that UI if they want โ€“ as shown in the following example.

Although the predictive back gesture wonโ€™t be visible to users in Android 13, weโ€™re making an early version of the UI available as a developer option for testing starting in Beta 4. We plan to make the UI available to users in a future Android release, and weโ€™d like all apps to be ready. Weโ€™re also working with partners to ensure itโ€™s consistent across devices.

Read on for details on how to try out the new gesture and support it in your apps. Adding support for predictive back gesture is straightforward for most apps, and you can get started today.

We also encourage you to submit your feedback.

Try out the predictive back gesture in Beta 4

To try out the early version of the predictive back gesture available through the developer option, youโ€™ll need to first update your app to support the predictive back gesture, and then enable the developer option.

Update your app to support predictive back gesture

To help make predictive back gesture helpful and consistent for users, we're moving to an ahead-of-time model for back event handling by adding new APIs and deprecating existing APIs.

The new platform APIs and updates to AndroidX Activity 1.6+ are designed to make your transition from unsupported APIs (KeyEvent#KEYCODE_BACK and OnBackPressed) to the predictive back gesture as smooth as possible.

The new platform APIs include OnBackInvokedCallback and OnBackInvokedDispatcher, which AndroidX Activity 1.6+ supports through the existingย OnBackPressedCallbackย and OnBackPressedDispatcher APIs.

You can start testing this feature in two to four steps, depending on your existing implementation.

To begin testing this feature:


1. Upgrade to AndroidX Activity 1.6.0-alpha05. By upgrading your dependency on AndroidX Activity, APIs that are already using the OnBackPressedDispatcher APIs such as Fragments and the Navigation Component will seamlessly work when you opt-in for the predictive back gesture.ย 

// In your build.gradle file:
dependencies {

ย  // Add this in addition to your other dependencies
ย  implementation "androidx.activity:activity:1.6.0-alpha05"


2. Opt-in for the predictive back gesture. Opt-in your app by setting the EnableOnBackInvokedCallback flag to true at the application level in the AndroidManifest.xml.

<application

ย  ย  ...

ย  ย  android:enableOnBackInvokedCallback="true"

ย  ย  ... >

...

</application>


If your app doesnโ€™t intercept the back event, you're done at this step.

Note: Opt-in is optional in Android 13, and it will be ignored after this version.

3. Create a callback to intercept the system Back button/event. If possible, we recommend using the AndroidX APIs as shown below. For non-AndroidX use cases, check the platform API mentioned above.

This snippet implements handleOnBackPressed and adds the OnBackPressedCallback to the OnBackPressedDispatcher at the activity level.

ย valย onBackPressedCallback =ย object:ย OnBackPressedCallback(true) {

ย  ย overrideย funย handleOnBackPressed() {

ย  ย  ย // Your business logic to handle the back pressed event

ย  ย }

ย }

ย requireActivity().onBackPressedDispatcher

ย  ย .addCallback(onBackPressedCallback)


4. When your app is ready to stop intercepting the system Back event, disable the onBackPressedCallback callback.
ย 

onBackPressedCallback.isEnabled = webView.canGoBack()



Note: Your app may require using the platform APIs (OnBackInvokedCallback and OnBackPressedDispatcher) to implement the predictive back gesture. Read our documentation for details.

Enable the developer option to test the predictive back gesture

Once youโ€™ve updated your app to support the predictive back gesture, you can enable a developer option (supported in Android 13 Beta 4 and higher) to see it for yourself.

To test this animation, complete the following steps:
  1. On your device, go to Settings > System > Developer options.
  2. Select Predictive back animations.
  3. Launch your updated app, and use the back gesture to see it in action.

Learn more

In addition to our detailed documentation, try out our predictive back gesture codelab in an actual implementation.

If you need a refresher on system back and predictive back gesture on Android, we recommend watching Basics for System Back.


Thank you again for all the feedback and being a part of the Android Community - we love collaborating together to provide the best experience for our users. ...



๐Ÿ“Œ Prepare your app to support predictive back gestures


๐Ÿ“ˆ 65.62 Punkte

๐Ÿ“Œ New to the web, try out Android predictive back gestures, and more dev news!


๐Ÿ“ˆ 40.27 Punkte

๐Ÿ“Œ Customize Linux Touchpad Gestures with โ€˜Gesturesโ€™ App


๐Ÿ“ˆ 38.06 Punkte

๐Ÿ“Œ Von Predictive Maintenance zum Predictive IT-Desaster-Management


๐Ÿ“ˆ 30.93 Punkte

๐Ÿ“Œ Fail to prepare, prepare to fail โ€“ a guide to preparing for the next big retail launch


๐Ÿ“ˆ 27.27 Punkte

๐Ÿ“Œ Guess who's back, back again? China's back, hacking your friends: Beijing targets American biz amid tech tariff tiff


๐Ÿ“ˆ 25.42 Punkte

๐Ÿ“Œ How to set up back tap gestures on iPhone


๐Ÿ“ˆ 24.81 Punkte

๐Ÿ“Œ Epiphany 3.32 features redesigned tab menu, gestures support, improved reader mode and more!


๐Ÿ“ˆ 22.67 Punkte

๐Ÿ“Œ Epiphany 3.32 features redesigned tab menu, gestures support, improved reader mode and more!


๐Ÿ“ˆ 22.67 Punkte

๐Ÿ“Œ X.org server 21.0.99.1 snapshot released with touchpad gestures, variable refresh rate support


๐Ÿ“ˆ 22.67 Punkte

๐Ÿ“Œ Deepin Linux 15.9 Released with Support for Touchscreen Gestures, Faster Updates


๐Ÿ“ˆ 22.67 Punkte

๐Ÿ“Œ Deepin Linux 15.9 Released with Support for Touchscreen Gestures, Faster Updates


๐Ÿ“ˆ 22.67 Punkte

๐Ÿ“Œ Scrcpy Update Adds Android 10 Support, Multitouch Gestures


๐Ÿ“ˆ 22.67 Punkte

๐Ÿ“Œ Scrcpy Update Adds Android 10 Support, Multitouch Gestures


๐Ÿ“ˆ 22.67 Punkte

๐Ÿ“Œ 4k laptop + Nvidia + Gnome 40 + Gestures support -> possible?


๐Ÿ“ˆ 22.67 Punkte

๐Ÿ“Œ Apple Adds Support For Windows Precision Touchpad Gestures in New Boot Camp Update


๐Ÿ“ˆ 22.67 Punkte

๐Ÿ“Œ Learn all these gestures and youโ€™ll master your iPad


๐Ÿ“ˆ 21 Punkte

๐Ÿ“Œ Data breaches help crooks targeting you. Prepare to fight back


๐Ÿ“ˆ 20.94 Punkte

๐Ÿ“Œ Data breaches help crooks targeting you. Prepare to fight back


๐Ÿ“ˆ 20.94 Punkte

๐Ÿ“Œ Gtk app developers can now implement touchpad and touchscreen gestures easily for smoother UX.


๐Ÿ“ˆ 20.56 Punkte

๐Ÿ“Œ Hands-on with Surface Duo's OS gestures, spanning, app groups, and more


๐Ÿ“ˆ 20.56 Punkte

๐Ÿ“Œ Prepare your app for the new Samsung tablets, foldables and watches


๐Ÿ“ˆ 20.19 Punkte

๐Ÿ“Œ Need Customer Service For an App? Prepare To Lose Your Mind


๐Ÿ“ˆ 20.19 Punkte

๐Ÿ“Œ How to prepare your app for a global audience


๐Ÿ“ˆ 20.19 Punkte

๐Ÿ“Œ Mesa 17.0.7 to End Support for Mesa 17.0 Series, Prepare to Move to Mesa 17.1


๐Ÿ“ˆ 18.8 Punkte

๐Ÿ“Œ Curves, Gestures May Be in iPhone's Future


๐Ÿ“ˆ 17.5 Punkte

๐Ÿ“Œ Navigation Gestures bringt Gesten auf Android-Gerรคte


๐Ÿ“ˆ 17.5 Punkte

๐Ÿ“Œ Gestures ยท a minimal gui for libinput tweaking


๐Ÿ“ˆ 17.5 Punkte

๐Ÿ“Œ Are there any cheap touchpads that work with linux including multitouch gestures ?


๐Ÿ“ˆ 17.5 Punkte

๐Ÿ“Œ How to get tap gestures with Synaptics drivers on Windows 10


๐Ÿ“ˆ 17.5 Punkte

๐Ÿ“Œ How to get tap gestures with Synaptics drivers on Windows 10


๐Ÿ“ˆ 17.5 Punkte











matomo