Automatically Enable Airplane Mode at Home?


Question

I have Project Fi and my data connection at home is spotty -- I often miss calls. I would like to automatically enable airplane mode when I get home (by GPS probably?). When I leave, I would like to disable airplane mode.



I have a Nexus 5X with beta 7.1.1. Any ideas?


Answer

Automation! Yay!



You are going to need four things:





PREMINILARY. Install Tasker and AutoInput, and open them both at least once. Also, ensure you downloaded the script. Also, Go settings -> accessibility and grant access to both Tasker and AutoInput.




  1. Go into tasker, and tap the house, then 'import' then the script I gave you (should be AirplaneToggle.prf.xml) to import it.


  2. Close Tasker while connected to WiFi, and watch to see if it works. It should!




What is that script doing?



Simply put, the script starts up the wireless and networks settings, creates a fake tap to enable airplane mode, waits a little, then returns to your homescreen, and also disables tasker to finish.
Keep in mind:




  • If you want to have this only apply to Home WiFi, you need to configure the WiFi bit. In tasker, tap the stuff on the left of the green arrow, and add the SSID (The name) of your WiFi hub. For example, I have a sky Hub, so it would be 'SKYXXXXX6' (X's replaced with random characters) that I put into the SSID field.


  • This task disables Tasker when finished to avoid it looping constantly. You can re-enable it by holding your finger on the grey lightning cog in taskers main menu (top left) OR by adding a widget that let's you toggle it from the homescreen!*


  • Delays are in place to allow for animations and Lag to finish safely. Also, the script will take you to your home screen when done.


  • You can still enable your WiFi in airplane mode- just don't enable tasker when on your Home WiFi! (I already said that, right?)


  • Tweak the task if you want. Not stopping you at all.


  • Tasker is woring paying for, but free alternatives are available! (Or be an ass, and just trial Hop (backup the scripts before the trial expires, then uninstall and reinstall said trial version)




*Just found out there is no Widget to enable tasker. You will have to do it via opening Tasker itself.



All links are legitimate, including the trial (it links to the official site, as a direct download) if you feel links are illegitimate, say so in the comments


Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes