15

I've developed such an app called RepetiTouch. It's currently in beta stage and aimed at developers, but a limited free version is available here. However, it needs a rooted device running Android 2.3 or later. As far as I know, currently no other app with this functionality exists, but there are some tools/scripts providing such features using a computer ...


10

Alas, the UsbStorageActivity doesn't use an intent to enable and disable USB mass storage, so there's no way to achieve this using am. It instead calls the functions StorageManager.enableUsbMassStorage and `StorageManager.disableUsbMassStorage to do its work. As these functions are hidden in the framework, it's not possible to write an app to do this, either....


9

You can use Tasker for this (Play Store link). Tasker can create macros that are run on certain triggers, such as connecting the phone to a charger. An example of the necessary programming can be found here. Check the link for additional info, but here's the necessary part: Create Profile "Sleep Mode" Add Context Power Source: AC //You can also set ...


8

This isn't built-in functionality, but it's something you could achieve with a trigger/event app such as Tasker. This kind of app runs in the background, and lets you configure certain actions to take (such as turning off the ringer) when certain events occur (such as seeing a particular Wi-Fi network). Tasker's not the only such app, but it's very complete ...


7

Alternatively, my default recommendation for cases like this: Tasker. Use a profile like this (abstract): Condition: App (select "Youtube", and optionally other apps you would like to have autorotate turned on) Task: Display->Display Rotation: Set On This way, whenever one of the selected apps runs in foreground, autorotate is turned on -- and as soon as ...


7

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 rule: Days, Filter notifications. Start time, End time, Do not disturb type Hope this helps Jonathan


7

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 'mCurrentFocus', or dumpsys activity top (for full info meant for developers)


7

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 number. This makes the phone automatically dial 1 twice, once the call is connected. This works even outside of the app, while dialing a number manually or from ...


6

I know of no way to restrict an app to the 3G network (as opposed to 2G/4G), but there are several solutions to restrict apps to either WiFi or mobile networks (or keep/allow them from/to both). Examples include DroidWall - Android Firewall1 (which you already mentioned, but which is discontinued), its successor AFWall+2, its fork Android Firewall3 (gone), ...


6

I know you can freeze and thaw an app using Titanium Backup Pro, which I have. But that would require manually going in to TiBu and doing the freeze/thaw commands each time. You're wrong about that part. Try this: look for a free place on your homescreen long-press there select to add a widget scroll to Titanium Backup select the item to (un)freeze an app ...


6

Wi-Fi Manager provides the "Switch to best network" option in its settings.


5

Natively, there is no way to schedule shutdowns and boot ups of the Android system. If you do decide to root there are applications in the Play store that can shedule a shutdown (you may even be able to make your own busybox script instead). However booting up will never be possible the way Android handles shut downs because when Android shuts down, it is ...


5

I tried the "StorageManager.enableUsbMassStorage" and the "StorageManager.disableUsbMassStorage" to enable and disable the mass storage and its works. Thanks. That methods are private method. So, If you want to use them, You shoud do it by reflection. To get that Storage Manager, you might use getSystemService(java.lang.String) method that included in ...


5

Android 4.x will connect to the strongest available network when first connecting, but, by default, once connected, it will not change networks unless it loses its connection first. This is presumably because switching would involve disconnecting existing connections, and a second or three of no network. Turning on "Avoid poor connections" in the Advanced ...


5

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 → Delete → select the folder that needs to be cleared → All Files Edit: { There is a catch here. Unless the device is rooted, only the files at the ...


5

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 recommend you to use IFTTT or Automate. IFTTT has supports for a variety of products such as Phillips Hue lights etc. But Automate is the easiest to use for your ...


5

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 app, navigate to the General tab, then tap on Smart Settings.


4

There isn't a system setting, so the app Smart Rotator is probably the closest thing you can get, but yes, in the beginning, you have to set everything up yourself.


4

As you write you know Unix scripting, you might want to take a look at apps like SH Script Runner, Script Manager, Script Kitty, and similar. They all allow you to run shell scripts on your Android device. Also, you could utilize Tasker: create a task to run a script, and then create a shortcut to that task on your homescreen. So you have easy access to ...


4

It sounds like Agent fits the bill for you. Specifically, the Sleep Agent. I do use the Agent app, though I don't use the Sleep Agent itself, so this list of features is just me going through the setup options in the app. Set Days & Times for it to activate. (defaults to 11:00 PM through 7:00 the next morning, Sunday through Thursday nights.) ...


4

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 notification keyword. Please beware that the keyword must be a whole word. Trigger won't be fired if you filter "receive" and the notification is "sms received". ...


4

For lollipop versions, Goto Settings -> Sim Cards -> Call settings -> Phone account settings -> Make calls with -> Under this you will have three options Sim 1 Sim 2 Ask First Select Ask First option from that menu and when you call someone from the contacts, you will be shown the Sim 1 and Sim 2 option. Select the Remember SIM for number checkbox and ...


4

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 URL part appended with %date as required. E.g. http://myserver.com/daily_reports/Day_%date.htm For weekly URL, create an another task: Code → Run Shell: ...


4

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 I open specific apps like my newspaper reader.


3

One thing I haven't seen mentioned yet is SL4A, the Scripting Layer for Android. This allows you run various types of scripts on your phone, Python scripts being one of them. Since SL4A isn't directly in the Play store, you may want something like QPython instead (which incorporates SL4A). Tasker, also mentioned by Izzy, has the ability to launch SL4A ...


3

People might expect me to recomment Tasker including a profile -- so I will do this first. But I will include another, free solution as well this time. First, how to solve this with Tasker? Quite easy: Condition: Time (10pm to 7 am, for example) Task: Airplane On (optionally, so no incoming calls) WiFi On (so weather-updates and streaming music for my ...


3

Don't bother with these 3rd party apps. Go to "Widgets" in your app drawer. Long-press the "Settings" icon and drag it to your main home screen and the shortcut settings menu for all your settings automatically appears.


3

Background To understand the issue, you will need a little background on how this works: For almost everything, Android broadcasts "events" -- such as e.g. boot_completed, SMS received, SD card inserted/removed, battery low... NFC signal received. Apps can register so-called "Listeners" with the system, which are bound to specified events....


3

Using tasker you can accomplish this and more fairly easily once you know how to use it. To solve the whole phone ringing while you are in a meeting you have a few options with how to do it in Tasker. You can choose to silence your phone while in meetings, set it to vibrate, block all phone calls (probably not the best choice) or send them all to voicemail. ...


Only top voted, non community-wiki answers of a minimum length are eligible