This question already has answers here:
Listen to volume buttons in background service?
(14 answers)
Closed 5 years ago.
I am making an application and I want to make app in such a way that user directly open that by using volume key, suppose user click twice the volume+ or volume- buttom and the app will directly open without home screen or without any interuption.
I want to add this functionality using the code in Android Studio. If anyone know how to add this, please help...
What you are asking for is not App/Code nor Android Studio related but device related, If the Original Equipment Manufacturer will allow a device to have a shortcut button it could be possible to achieve that on those devices.
Cheers.
Related
This question already has answers here:
Is there a way to get current activity's layout and views via adb?
(8 answers)
Closed 4 years ago.
I write a testing automation for some android application and I want to tap on application elements like buttons by their ID, I know if it can be done by writing an android test application and install it on device (like Espresso, UIAutomator, etc...), but I don't want to use this approach.
Is there a way to do it from Android Debug Bridge? Maybe someone know some sort of tool similar to monkey-runner that can perform it? Basically what I ask - Is it possible to click buttons on Android by ID via ADB?
This is possible by using AndroidViewClient, and it is basically done by creating a python script and executing it. Note that this works best if these buttons contain some text or an ID to differentiate them from others. More information can be found here: https://github.com/dtmilano/AndroidViewClient/
This question already has answers here:
How to disable the home key
(5 answers)
Closed 8 years ago.
I'd like to lock the screen. I want to disable the home key.How do I accomplish this?
And I wonder why some lockscreen apps ask for setting the Launcher?
How to shield the home key by implementing a custom Launcher.
getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD) does not work in android4.0.
So, what do I need to do in android4.0?
It is android security violation. Only way you can do this is to implement custom launcher.
This question already has answers here:
How to programmatically take a screenshot on Android?
(26 answers)
Closed 10 years ago.
i trying to do an application to take screenshot for android tablet every 1 second and view the image in desktop application. i got a help to do it but it takes the screenshot for my app only . what i need is to take screenshot even the user minimize the application so in the desktop application it will keep tracking what the user is doing on the tablet.
appreciate your help.
Thanks.
You can check android-screenshot-library, which should work without a root access; however it still have some limitations
Also AndroSS is another option for Tegra-based Android phones
This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
How can I create a custom home-screen replacement application for Android?
What is the name of the application which appears when you press Home button? PhoneApplication?
Where would I find it in the source code? I need it because I want to see how items are dragged so smooth on the screen.
It's called a Launcher, and it's not necessarily the same app everywhere. This might be of interest - a (modified) stock launcher including the source code: http://forum.xda-developers.com/showthread.php?t=538871
See also this for inspiration: http://code.google.com/p/android-launcher-plus/
In android-sdk samples also you will find one application named Home. this is also a launcher application., but its not much implemented, if you interested check it once.
You can get good launcher source code here
Modified Launcher
This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Android: Get Installed Shortcuts
Is there a way to get the list of shortcuts the user has on his home screen?
From my Android app..
I doubt it - the home launcher does not have to be part of the Android system, it could even be a custom app that doesn't use shortcuts at all.
However, you could create a custom home screen launcher specifically designed to broadcast what shortcuts are contained, and it is possible one exists out there already. But this would obviously require everyone using your app to have this custom home screen.