AryanGupta
(Aryan Gupta)
December 6, 2020, 3:21pm
#1
Hello oders.
Today i Present my Another Contribution to this Excellent Community.
My Very Small But Very Useful Extension - Accessibility Tools
All Blocks Along With What They Are Capable Of Doing
This Block Will Stimulate A Click On Back Button Of Your Android Device.
This Block Will Stimulate A Click On Home Button Of Your Android Device.
Exiting (Not Closing) The App Currently Which You Are In, If Any.
This Block Will Stimulate A Click On Recent Button Of Your Android Device.
This Block Will Open Your Notification Pannel Of Your Device.
This Block Will Open The Dialog Which Opens When You Long Press Power Button Of Your Device.
This Block Will Open The Quick Settings Pannel Of Your Device.
(Usually Availabe Above Notification Pannel)
This Block Will Activate The Split Screen Feature Of Your Device.
Available Starting From API 26 Android Oreo 8.1.0
Two More -
To Ask For Accessibility Permission.
Check Whether The Permission is Given.
Credits
Thanks to @Mohamed_Tamer and @ADDYLIN
Requirements
POWER DIALOG : API 21
QUICK SETTINGS : API 17
and other methods required API 16
Important Links
How to make a back button in app
https://developer.android.com/reference/android/accessibilityservice/AccessibilityService
.aix
aryan.gupta.BackButton.aix (11.7 KB)
To Donate me
Click on this link
Hope You All Like This Extension.
Like My Work To Keep Me Motivated For More Excellent Upcoming Extensions.
34 Likes
AryanGupta
(Aryan Gupta)
December 6, 2020, 3:37pm
#3
Very very very veeery use full extension BR0
keep it up.
1 Like
the extension i wass lokking for thanks
great contributions
Taifun
December 6, 2020, 4:50pm
#9
thank you for your conribution
as already mentioned in the App Inventor community, unfortunately your documentation is incomplete…
I guess you like to say this Block will simulate …
some questions:
what kind of permission is required for this extension? what about providing a screenshot?
how did you test this time?
does the extension work in the companion app?
what is the minimum API for this extension to run? For the SplitScreen method I have seen, it is API 26…
please also follow the naming conventions… thank you for adjusting the extension in advance!
If you are developing an extension, then please follow the naming conventions, which is UpperCamelCase for the package name as well as for property, method and event names (i.e. the first letter should be a capital letter) and lowerCamelCase for parameter names, no underscores .
Example
[naming]
What does UpperCamelCase mean?
UpperCamelCase (part of CamelCase ) is a naming convention in which a name is formed of multiple words that are joined together as a single word with the first l…
also it might help to add a link to the Android documentation AccessibilityService  | Android Developers
Accessibility services should only be used to assist users with disabilities in using Android devices and apps. They run in the background and receive callbacks by the system when AccessibilityEvent
s are fired.
Taifun
7 Likes
msr79526
(SR Official)
December 6, 2020, 5:18pm
#11
Can you added hardware volume button press recognizer
1 Like
AryanGupta
(Aryan Gupta)
December 6, 2020, 5:20pm
#12
it is easy , it is possible but not suitable for my extension
1 Like
Taifun
December 6, 2020, 5:23pm
#13
why not elaborating a little bit in the documentation ? Isn’t that why we have it? as I already mentioned
it might help to add a link to the Android documentation https://developer.android.com/reference/android/accessibilityservice/AccessibilityService
ADDYLIN:
i did, on .apk
excellent… to complete this information it might help to tell us the devices an Android versions you used for your tests…
ok… what is missing is the minimum API for the other methods…
Taifun
1 Like
AryanGupta
(Aryan Gupta)
December 6, 2020, 5:25pm
#14
have a look at this @Taifun
1 Like
AryanGupta
(Aryan Gupta)
December 6, 2020, 5:29pm
#16
POWER DIALOG : API 21
QUICK SETTINGS : API 17
and other methods required API 16
1 Like
Taifun
December 6, 2020, 8:32pm
#17
all the answers you were giving now step by step should be part of your documentation… so if someone wants to use the extension, all information is there…
Taifun
4 Likes
themaayur
(Mayur Berad)
December 6, 2020, 9:03pm
#18
Awesome Extension !
Can you add a feature/property so we can disable split screen for our application. So users can’t use our app in split screen mode.
4 Likes
AryanGupta
(Aryan Gupta)
December 7, 2020, 5:57am
#19
it is possible @themaayur but it cannot done at Runtime so, you cannot use this as a block. if i add these features then, you use my extension .Your app will work with/without Split Screen
feature.
if you need this so, I can make a separate extension for you
1 Like
themaayur
(Mayur Berad)
December 7, 2020, 7:43am
#20
It would be great, if you provide the Extension
1 Like
luv.ak.tech
(Aarush Kumar)
December 7, 2020, 11:53am
#21
you have to change this to @Mohamed_Tamer
froniu84a
(Patryk F)
December 11, 2020, 8:31am
#22
On Samsung S8, Android9 works fine. I have no idea for use but I tested it out of curiosity.
2 Likes
Can you add up a block for on home press and on recent press !!
1 Like