10
votes
How to get current (foreground) activity name?
Using apps: Current Activity and some similar apps will display the info in the form of floating texts above the screen content.
Using adb (from your PC): dumpsys window windows | grep -E '...
8
votes
Accepted
Disable notifications per app and time frame
In Settings open Notifications (under Device heading) ➡ Do not disturb ➡ Automatic rules ➡ + Add rule ➡ Type [Rule name], select [Time rule] or [Event rule], select OK ➡ select options for the new ...
8
votes
Accepted
Is there a way/app to automatically change DNS server based on connection?
The solution below will set Private DNS to "Automatic" on SSID: 'SSID-1' and 'SSID-2' Everything else will set Private DNS to your entered Private DNS hostname in settings.
Install Tasker.
...
7
votes
How to automatically repeatedly dial a number and automatically press numbers each time?
There's an app called Auto Redial that you can configure to keep calling the same number over and over.
I configured it like this:
(click screenshot to enlarge)
Note that I added ,1,1 after the ...
6
votes
How to start application automatically when bluetooth device is connected?
For such automation purposes, you can use any one of the following-
IFTTT (if this happens then do this)
Automate
Tasker (paid app)
Takser is somewhat difficult to use and paid app so I will ...
5
votes
Accepted
How to clear a Folder (e.g. Downloads) automatically on a regular/scheduled basis?
MacroDroid (free up to five macros) can do the job.
The macro would be:
Trigger: Day/Time Trigger → select all the days and choose the time for trigger activation
Action: File Operation → ...
5
votes
How to start application automatically when bluetooth device is connected?
For LG phones specifically you can use Smart Settings to automatically open apps when a specific Bluetooth device is connected, among other things.
To get to the Smart Settings, go to the Settings ...
5
votes
"Allow USB debugging" keeps on popping up
Change the USB cable
My proposed solution is not general, but may work in in some special cases.
Here is my story: Once I used an old USB cable for connecting my 10 smartphones to my computer. It ...
5
votes
How can I emulate pressing another application's Quick Settings tile?
In brief
Automating an already visible Quick Settings tile
# Click on a TileService of the specified component
cmd statusbar click-tile com.package.name/.service.QuickSettingsTileComponent
# You may ...
4
votes
Accepted
Trigger actions on notification received with IFTTT
You can use the Android Device IFTTT service:
https://ifttt.com/android_device
It has "Notification received from specific app" trigger where you can filter the Notification by app name and ...
4
votes
Accepted
Tasker: If variable - not connected to Wifi
You're going about this the wrong way.
Go to Profiles → (New profile) → State → Net → Wifi Connected. Leave SSID blank and tick "Invert". Link this profile to a task which ...
4
votes
Accepted
App that would open a url based on the current date in a browser
With Tasker this is very easy.
Setup a task like this:
Code → Run Shell:
Command: date +"%Y%m%d"
Store Output In: %date
App → Launch App → select your browser app:
Data: static ...
4
votes
How do I invert colours inside a specific app?
For me Tasker did the job, but you need an additional Tasker plug in for this, called AutoTools.
On my bq android device root wasn't needed to do the job.
I set up a profile to invert the screen when ...
3
votes
Disable notifications per app and time frame
This can be done quite easily via Tasker but requires root.
Create a profile using the 'Day' and 'Time' triggers
Create a task which turns off notifications for XXX app via Secure Settings
(Create ...
3
votes
Is there a way to automatically turn off the wireless hotspot once I get back home?
Other than MacroDroid which is already covered by 3DDario here, you can consider any of the following apps -- none requires root for the goal.
Tasker (paid; 7 day free trial).
Profile: Any of the ...
3
votes
Automatically switch to a saved wireless access point with the strongest signal
Most Android devices removed the auto-switch feature for APs having the same SSID because it is an Apple patent.
3
votes
Is there a way to automatically put my Android phone into silent mode while recharging?
I used to have the same boring procedure every night. Plug in the power cable to recharge the phone and turn sounds off manually. So I decided to create an app to automate this procedure.
With this ...
3
votes
How to turn off ringer when connected to particular wifi network
User rules in Android 11 - System, Rules.
3
votes
Disable notifications per app and time frame
I have had the same problem for quite some time. I have just developed an app that allows you to cancel notifications from specific applications on the day and time you want. Also, you can set a ...
3
votes
Custom ring tone for callers who block their caller ID?
Automation is the preferred option. Many apps are available. I prefer using MacroDroid , since it is free (upto 5 macros) and easy to learn. To understand how MacroDroid works and required settings, ...
3
votes
Accepted
Sync ext SD to USB OTG **without** using a PC
As we figured out the solution you now use in chat, this answer should comply with "being tested", "not involving a PC or file manager" and "relying on verified sources". Though in the meantime there ...

Izzy♦
- 90.8k
3
votes
Is there any way to programmatically turn on airplane mode on non-rooted Android?
Using Tasker and AutoInput plugin, here is the procedure:
First, create a profile that suits your needs (i.e. when to trigger airplane mode e.g at a specific time, etc)
Task
Create a new task "...
3
votes
Accepted
How to turn off Wi-Fi 15min after it had been turned on?
I am not familiar with Tasker , in Macrodroid another versatile automation app:
Trigger : WiFi state change → connected (choose network)
Actions:
Wait 15 minutes
WiFi configure → disable ...
3
votes
How to set everything to silent except the alarm clock [7.1.1 Nougat]
You can try to achieve this by automation. I prefer MacroDroid being easy to learn and free
I don't have Nougat , so can't test it. I also recall reading that dnd mode is behaviour is different ...
3
votes
Accepted
Block all calls from area code unless in Contacts
automation is the preferred option. Many apps are available. I prefer using MacroDroid , since it is free (upto 5 macros) and easy to learn.
You would need two macros for this
First macro would be to ...
3
votes
Block all calls from area code unless in Contacts
beeshyams' solution did not work for me, but i was able to modify it and get it working. The issue that i encountered was that the "call incoming" trigger only happens once when you first receive the ...
3
votes
Accepted
Dual SIM device : How to configure data usage on per app basis (Rooted device)
Requires Rooted Device, Xposed framework installed, latest version of GravityBox Xposed module and an automation app - I use Macrodroid
Create a macro in Macrodroid
Trigger:
Application Launched &...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
automation × 336tasker × 38
applications × 32
wi-fi × 23
sms × 16
scripts × 15
calls × 12
adb × 11
settings × 11
macrodroid × 11
notifications × 10
backup × 9
mobile-data × 9
silent-mode × 9
6.0-marshmallow × 8
whatsapp-messenger × 8
sync × 8
power-on × 8
cyanogenmod × 6
bluetooth × 6
boot × 6
screen × 6
calendar × 6
file-management × 6
contacts × 5