I have Samsung Galaxy S4 GT-I9506, Android 5.0.1 Lollipop. I am using the application, Tasker. I feel it is too visual. I would like to write its profiles and events by code such that I could easily communicate about them with my friends. For instance, how you can write the following process from their homepage in code?
during the night, turn on airplane mode to conserve battery/reduce radiation, but turn it off every 15 minutes to check for SMS/voicemail.
It would be so great to have a better control of Android's UI by functions. I think the GUI is not enough. I studied the case further. Tasker can do airplane mode only in Android 2.2-4.0. The application recommends to use Secure settings plugin and rooted device to get the feature. It would be great to understand why Tasker fails with such a feature in later versions of Android.
Any applications (MacroDroid) are ok for solutions but their solutions must be stable with explanation why they work. Like pointed above for Tasker, the change of the Android version may make the program not working. I think this kind of situation can be avoided by using APIs or designing APIs i.e. understanding which API we need for such communication. Much Android is hidden but still something can be thought through.
How can you automate by code and GUI in Android?