The HMS Core SDK plug-in provided by Cocos SDKHub is able to hide or display the floating window by API calls, which means you don’t need to call the showToolBar or hideToolBar method.
But you can also choose to use the APIs by yourself.
Display the floating window:
Java:
sdkhub.getUserPlugin().showToolBar();
Hide the floating window:
Java:
sdkhub.getUserPlugin().hideToolBar();
Note that if the floating window is not displayed on a device running EMUI 9.1 or later during the test, just go to Settings > Apps > AppAssistant > Game Space, tap Add games to add your game, and test it again.
Related
I wants to listen for touch events in my application's SERVICE and run some actions for another activities from another applications.
For example : i wants to animate another application's activity from my service , or change it's title etc.
where could be my start point?
Accessibility Scanner is a tool that suggests accessibility improvements for Android apps without requiring technical skills. Just open the app you want to scan, then tap the Accessibility Scanner button to find items in the app that might benefit from accessibility improvements. You can use this app to suggest changes to developers or to make changes yourself.
Accessibility Scanner suggests improvements such as enlarging small touch targets, increasing contrast, and providing content descriptions so that your app can be more easily used by individuals with accessibility needs. Designing for accessibility can allow you to reach a larger audience and provide a more inclusive experience.
To begin using Accessibility Scanner:
- Navigate to Settings > Accessibility
- Locate and turn on Accessibility Scanner
- In the app that you want to scan, tap the Accessibility Scanner button
So new android version 11 beta is released there are two new features are included in that
1)back tap gesture to assign any activity(for pixel devices)
2)New media control integrated in Quick Settings panel
So following are the apps available which are working great and bringing these two features on android 7.0 to android 10, so lets takena look
1)TAP TAP:
This app brings new back tap Gesture on any device to access any activity that you have assigned. This apps gives numerous activities that can be assigned to double tap activity on back of the device. to what possibilities it can bring you need to watch this Video
https://youtu.be/gqpzlp4WQNw
Settings:
when you open app under gestures
Select device model as pixel 4 and increase sensitivity for 2 points only and assign any activity you want. You can add number of activities but for now fist main activity will be activated if double tap fails to generate that activity it will bring second activity and so on as per your preference.
Download :
https://forum.xda-developers.com/attachment.php?attachmentid=5075697&d=1596836605
2) power shade:
This app brings new media control implemented in quick settings panel along shade it aslo gives numerous features that like replacing stock Quick Settings panel and notifications headsup with this new powershade Quick Settings and notifications.
Preview of app:
https://youtu.be/ZKv2k6qajjo
In setting u have to go to extras and there enable new media control option to see the effect.
Download :
https://play.google.com/store/apps/details?id=com.treydev.pns
Scenario DescriptionWeChat mini programs allow you save images to the album by touching and holding them. Currently, HUAWEI Quick App does not have any API to implement this function, but you can trigger events to implement this function
All quick app elements support the longpress event. So you can use the image element to render images and trigger the longpress event on the element to implement the function.
Sample codehttps://gist.github.com/devwithzachary/c410fcfceba02fc2de32be20b2f20361
Does Quick App need any special permission?
I want a button on the home screen that executes the following : "open Settings > Display > Screensaver > click on Start Now button " Is this possible?
If you can't find another way then use Activity Launcher.
Activity Launcher - Apps on Google Play
Launches hidden activities and creates shortcuts for installed apps
play.google.com