Slatedroid info

Everything about android tablet pc [slatedroid]

Tasker Task Timer Stop Start Music

Last week in our Android customization series, we walked through the basics and tools needed to hook up a USB flash drive to your Android device. As a recap, you need an USB OTG capable device and connector cable, then an app, usually your favorite file manager, to connect. So much simpler than you might have thought it was.

This week, we want to look at our favorite customization app, Tasker, and use it to control our music. Perhaps down the road we will create a full music player, today all we want to create are a sleep timer that shuts down your music automatically, and another timer to fire up your music after a set amount of time, let’s call it an alarm clock.

In the end, today’s project is mostly a lesson in using Tasker’s Task Timer widget.

Before we get started

Get it on Google Play ButtonYou will require Tasker for our project today. Tasker is $2.99 in the Google Play Store. Be sure to check out some of the capabilities of Tasker and a few of the other projects we’ve built with it, if you are not sure it is worth the price.

Create a music sleep timer using Tasker

This project draws upon an idea I floated a few months back, utilizing the media controls in Tasker to start and stop music playback. First things first, we’ll need to start with the Tasker Task to stop media playback. It’s pretty easy, let’s get started.

Tasker Task Stop Music Media Control

Create a simple Tasker Task and name it concisely and uniquely, I’ll call mine “StopMusic.”

Select Media.

You may have the urge to hit that Music Stop button, resist it. Instead, select Media Control.

Under Cmd, select Stop.

Tap the system Back button.

Tasker Task Stop Music icon

In the bottom right corner, tap the icon with the nine little squares in a grid. You are now setting up an icon for the Task, so follow through the selection method and choose something that appeals to you.

Tap the system Back button, all the way out of Tasker.

Before we continue, it is crucial that we test out the Task we’ve just built. Fire up some music on your device, re-open the Tasker Task and tap that little run button that looks like a media play button. If it does not work, you’ll need to modify the Task a bit. Try turning off Simulate Media Button for starters. If that does not do it, you may actually try out that Music Stop option. The only right or wrong option here is to choose the one that works on your device.

Create the Task Timer widget to stop music

Find an empty 2×1 space on your Homescreen and perform the actions required to place a widget. For most of you, that means long pressing the empty space. Stock Android users will be able to choose the widget from within the applications dock.

Tasker Task Timer Stop Music

Select the Tasker widget called Task Timer.

Choose your “StopMusic” Task.

Verify all looks well and hit the system Back button to save and complete.

As an added tweak, you may choose to resize the widget to 3×1, if you find that the text does not display properly.

Using your new music sleep timer

Tasker Task Timer control Stop Music

To put your sleep timer to work, tap on the icon portion of the widget, on the left hand side. This will open up the time selection tool. Set your desired time and tap OK to start the countdown.

I suppose you’ve chosen just a few seconds at first, just to test things out. If all went well, go ahead and pump it up to half hour or an hour or more, fire up your tunes and head on to bed.

Wake to music in the morning

As I hope you gathered, the process to create an alarm clock is almost exactly the same as your sleep timer.

Create your new Task, named appropriately, perhaps “StartMusic” will do.

This time out, in your media control choose Play [Simulated Only].

It will again need an icon and you will again want to test it out before continuing. This time out, there is a Toggle Pause option that may also work on your device.

With the Task created and tested, follow the same instructions as above to place the Task Timer widget for your alarm clock. Once created, simply choose your amount of time and tap OK to be awoken by your own music come morning.

Tasker Task Timer Stop Start Music

What’s next

You have a bunch of options available to you on this project. You may, perhaps, have a very regimented schedule, in which case you could skip the widget and simply create Tasker Profiles that will stop music at an appropriate time each night and fire up the tunes every morning, without having to bother with the widget.

You should find that once you’ve used the timer once, instead of tapping the icon of the widget to re-select a countdown, you can simply tap the timed countdown numbers to restart the timer using the previous value.

Myself, I like have a visual confirmation of the action. In my Task, I’ve added Alert -> Flash -> “Music Stopped.”

Tasker Task Timer Music Stop notify

Finally, and I apologize if you’ve made it this far without success, you’ll find that Tasker’s media controls are not very precise. I am working on an Android device with Google Play Music as my main music player, and I have a music widget set on my Homescreen. You should not need to have these yourself for the project to work, just be aware that Tasker is firing off generic start/stop media commands that may not work with your desired music player all that well.

Considering the commands are fairly generic, it is also very important to note that the StopMusic Task will stop all media. If you are watching a video on your device when your widget countdown reaches zero, expect that your video player will accept the stop media command and come to a halt.

If you absolutely do not like how this project works, Tasker has the ability to select and play local media files. If you have a single song or folder of songs on your device that you would like to wake to each and every day, you’ll want to use the Media -> Music Play or Music Play Dir options. Just be sure to also have a Tasker built StopMusic tool, or it’ll just keep playing.

Next week

Next Thursday will be Thanksgiving day in the United States, and that means that Christmas is only a short time after that. But just how many days is it exactly until Christmas? Wouldn’t you know it, we’ll use next week’s Android Customization post to create a Christmas countdown for you.

Androidify Christmas LollipopSince most of you will have the day off, we’ll make this a crazy one. We’ll make it a voice activated project that does some hard core variable manipulation to reach our goal. I’ll explain the process as we go, for those that wish to use these tools for other projects. At the same time, I’ll make it easy to just follow along, so you can be up and running with your own ‘days to Christmas’ reminder in no time. For those that do not celebrate Christmas exactly, don’t worry, you can use this project to count down to any day that you desire.

I hope you find a use for the Task Timer through Tasker. Using this tool to play music as an alarm clock, and stop music as a sleep timer, are fairly simple implementations, what great uses have you come up with?

AT&T bumps 10GB to 15 for mobile share value customers

Posted by wicked November - 19 - 2014 - Wednesday Comments Off

AT&T_Logo_01_TAAs of yesterday, AT&T is offering Mobile Share Value customers 15GB for the price of 10 or a limited time. That’s right, for the $100 per month price tag that normally comes with 10GB you’ll get an extra five. According to AT&T you can do a lot with 15GB of data.

With 15GB you can stream 160 hours of music and 30 hours of video, surf the web for 300 hours, 1,000 photo posts to social media, download 100 apps or send and receive 10,000 emails.

The deal is available for existing consumer and business customers. It includes domestic unlimited talk and text, unlimited international messaging from those sent from the US, Puerto Rico and the Virgin Islands to 190 countries for texting and 120 countries for picture and video messages.

So if you’re in the market for a new plan or want to take advantage of an extra 5GB you better hurry. Like I said before, it’s a limited time deal.

source: AT&T

Come comment on this article: AT&T bumps 10GB to 15 for mobile share value customers

Android customization – how to connect a USB flash drive to your Android device

Posted by wicked November - 14 - 2014 - Friday Comments Off

Android USB OTG flash drives

Last week on our Android customization series, we rounded out a string of Tasker and Zooper Widget tutorials that made it possible to rock your Homescreen with custom widgets. With the software customizations we’ve been working with, perhaps it is time to look at something a little more physical, like connecting a USB flash drive to your Android device.

Flash drives spent a good amount of time as the number one way to take your files with you wherever you needed to go. As some of that has changed with Android devices and cloud storage, many of us still have those USB flash drives kicking around looking for a good use.

Let us take a good look at connecting a USB flash drive to your Android device, but fair warning, you’ll need to purchase a new cable to proceed.

Before we get started

As mentioned, connecting a USB flash drive to your Android device will more often than not require a special cable called an USB On-The-Go or OTG cable. I will be using a simple $1.47 OTG cable from Monoprice today, but you may be more comfortable looking at this $1.09 cable from Amazon.

Beyond the basic OTG cable, you can step it up to a powered Y-splitter OTG cable. Be aware that this is not intended to charge your device, rather it is to power your connected USB peripheral. You shouldn’t need this for your basic USB flash drive, but it is highly recommended if you are attempting to connect a full external hard drive or anything that will draw more than 500mA of power.

If you do not already have a flash drive or ten kicking around, you may consider one of the OTG capable USB flash drives or card readers already on the market. Equipped with a micro USB connector, these unit will attach directly to your Android device.


There are also some folks over on Kickstarter that have taken the OTG Flash drive all-in-one approach to the next level, creating a microSD card reader that can plug into either your computer or Android device, plus much more. Feel free to head on over to Kickstarter to learn more about the project, then, if it appears slightly beyond your drone flying, GoPro packing, smart TV flash drive needs, maybe this simpler USB OTG microSD card reader will better suit your needs.

Connecting a USB flash drive to you Android device

This is the easy part. For best results, plug your USB flash drive into your USB OTG cable first, then plug the OTG cable into the micro USB port on your device.

Android USB OTG flash drive

With the right cable, connecting a flash drive to your Android device is a simple thing, but what do you do now?

Apps that can read USB flash drives

Once your USB flash drive is connected to your Android device, you’ll need to use specific apps to be able to access the data. There are a number of options here, of which I will cover just two.

ES File Explorer

In addition to being one of the few apps that can take advantage of your installed microSD card on device, ES File Explorer can also read and write to your connected USB flash drive. Best of all, no root required.

Install ES File Explorer

With your USB flash drive connected, open up ES File Explorer, you will be greeted with a permissions screen. Click OK to allow ES File Explorer to access your USB flash drive.

Now, swipe in from the left hand side to access the side menu. Open the Local section and choose your USB flash drive, mine was named “USB1002″ but this is not the first time I’ve connected it.

ES File Explorer OTG USB flash drive

To eject, simply close out of ES File Explorer then unplug. If your USB flash drive is equipped with an indicator light, make sure that it is not flashing before you unplug.

Special note: Although I’ve used ES File Explorer today, you should find that most file explorer apps will perform the same task in their own way. Check out our list of favorite file explorer apps for suggestions.

Nexus Photo Viewer and Nexus Media Importer

Don’t let the names fool you, these apps should work on any USB Host enabled Android 4.0+ Android device.

Nexus Photo Viewer is a simplified free version of Nexus Media Importer. Do try out Nexus Photo Viewer before spending the $4 on Nexus Media Importer. Both apps should connect to the media on your OTG cable connected USB flash drive.

As above, simply connect your USB flash drive to your OTG cable, then plug the OTG cable into your Android device. These apps will act on the USB attached intent and will immediately ask if you would like to connect. Click OK to proceed.

Nexus Media importer Nexus Photo Viewer OTG USB flash drive

Once in either Nexus Media Importer or Nexus Photo Viewer, you will be able to view your stored content, with extra features such as a photo slide show available in the paid version. There is also a basic file explorer too, so you will be able to transfer files to and from your USB flash drive.

Disconnecting from Nexus Photo Viewer and Nexus Media Importer is done by accessing the menu button in the top right, then choosing disconnect. Then simply unplug.

What’s next

Do not think that a USB flash drive is the extent of devices that you can connect to your Android device. I have successfully tested several powered external hard drives, USB mice and keyboards. Just keep in mind that 500mA limit, as we’ve heard reports of high draw USB peripherals causing damage to phones. Personally, I’ve been lucky in that my device has rebooted on me, without causing any noticeable harm. I was attempting to connect a webcam, just for fun, but it didn’t work.

Android USB OTG mouse

Next week

I’ll give you some time to play around with this week’s Android customization post, let you try attaching all of your USB components to your Android devices. I’ll give you some time, let’s say, on week. Next week, I’d like to use Tasker timer widgets to mess around with music. A sleep timer and an alarm clock should be a good start.

Have you found any fancy USB devices that have unexpectedly connected to your Android device?

Verizon Offers Football Leather Moto X

Posted by wicked November - 7 - 2014 - Friday Comments Off

FootballMotoxFor all you football fans out there waiting for your pigskin phone, your wait is over. Verizon has added the Football Leather option to the online Moto Maker website. There was already a leather option, but this option looks and feels like a real football.

If you want to show your love of the gridiron, you’ll have to cough up a few extra bucks—twenty-five of them to be exact. However, that will be a small price to pay for true football fans. Head over to Moto Maker and check it out! Source: Verizon Wireless

Come comment on this article: Verizon Offers Football Leather Moto X

Nest thermostats add compatability with third-party home automation products

Posted by wicked October - 24 - 2014 - Friday Comments Off

Nest privacy

It was only a matter of time before the now Google-owned Nest Learning Thermostat (and smoke detector) became even more integrated in the “Internet of things.”

Now, the device can be paired and controlled with other home automation products, including Pebble smartwatches (to check and control the temperature in your home), ivee (voice-controlled home manager) and Life360 (an app used to check the location of family and friends and can adjust the temperature when people enter and leave your home).

WallyHome, a device that checks for water leaks, is also on the list of compatible products, as is Rachio, which controls sprinklers in the house for fires. Expect more and more products to become compatible with Nest, as Google is looking for more partners to expand the capabilities of its device.

Source: Engadget

Come comment on this article: Nest thermostats add compatability with third-party home automation products

Get in the fall spirit with Google Calendar’s new seasonal wallpapers

Posted by wicked October - 24 - 2014 - Friday Comments Off


The Google Calendar app is probably one of the last places you’d expect to get some extremely attractive wallpapers, but Google’s most recent update for the application changes that. The update includes twelve very elegant backgrounds, each representing a different month, and therefore each only visible for a month at a time. Luckily these wallpapers have been extracted from the app and can be downloaded and enjoyed at anytime. Hit the break for the full gallery.


Source: AmongTech
Via: Android Authority

Come comment on this article: Get in the fall spirit with Google Calendar’s new seasonal wallpapers

Android customization – Gmail and SMS message counts on your Homescreen with Zooper Widget

Posted by wicked October - 23 - 2014 - Thursday Comments Off

Zooper Widget Gmail SMS Count

Continuing with notification management tools in our Android customization series, we will be using Zooper Widget today to build a simple Gmail and SMS counter for your Homescreen.

Last week, we took to notification management by using Tasker to popup a simple read-only alert for all incoming notifications to your device. Today’s approach works great along side the notification popup, adding a counter of specific notification types.

Zooper Widget is capable of handling a few messaging tasks, but has made it really simple to add Gmail and SMS counters to your custom widget. We will start with these two service today, then we’ll expand on the project next time, to include any app or service you have installed on your device.

Before we get started

Get it on Google Play ButtonYou will need Zooper Widget installed on your device for today’s project. Zooper Widget free will work, but again, it has limitations. You may consider dropping the $2.49 in the Google Play Store for Zooper Widget Pro if you wish to implement everything as we will in this project.

A little background before we get started: I am going to show off today’s project in several different ways, but I will only cover the new material once. You may need to head back to previous Zooper Widget tutorials to get an idea how you might handle each of the examples and what elements are available to you.

My primary Gmail widget is the basic gmail app icon, when a new message arrives, an additional image and text pops onto the screen. The other examples will include pure text, the boring old red dot counter and simply having the letter “G” popup when the time is right. Again, these are all near identical, just a touch of different code in the Advanced Parameters.

Add a Gmail message count to your Homescreen

Zooper Widget Gmail SMS Count

Set up your base widget, for my personal usage, I have the app icon as the main element in my widget, it is clickable into Gmail itself, and I was sure to leave empty space within the actual widget area for both the pop up notification and as my way to click into the Zooper Widget setup screens.

There are two elements that are to be adjusted, the little popup image or red dot and the text counter.

For this, let us use the red dot example. I would have used my actual bitmap image popup as example, but I do not have permission to share the icons I’ve used (3K SR Black icon set.)

Again, I will leave it to you to design the widget, create your dot, or image, then size and position it appropriately. Take note of the X Offset value. We did this stuff back in this Zooper Widget tutorial, if you need help.

Now, create your text element, manually change it to a value like 10 for now so you can size and position it appropriately.

Once everything is looking good from a design perspective, we’ll go into the advanced stuff, as follows:

Zooper Widget popup element when unread Gmail in inbox

You remember your X Offset value from above, right? Good. Head on into your Red Dot.

Zooper Widget Advanced Gmail Notification

Scroll to the bottom and enter Advanced Parameters.

Enter the following code:

Replace “20” with your X Offset Value.

Tap the checkmark in the top right to save and exit Advanced Parameters.

Tap the system Back button to exit back to the Module Manager.

Zooper Widget popup text count of Gmail messages

Zooper Widget Advanced Gmail Notification Text

Head into your Text element.

Scroll down a short ways and tap into Edit text manually.

Enter the following code:

$#SUG#>0?#SUG#: $

Tap the checkmark in the top right to save and exit the text editor.

Tap the system Back button to exit all the way out of Zooper Widget. That’s right, project complete.

What happened up there?

If you followed along previous Zooper Widget tutorials that worked with Advanced Parameters, including the Weather Warning system from a couple weeks back, then you might be able to guess your way through this one.

Once again, we utilized the IF statement for our string. #SUG# is the check for messages in your first Gmail account inbox. If you wish to see more options on that one, #SUG# and related live within the System section of Advanced Parameters. The only other new trick here is the blank text at the end of the Text element string – #SUG#: $ With the space ” ” after the colon, Zooper knowns to put nothing on screen.

As pseudo english, for the Red Dot we said IF Gmail message count is greater than 0 THEN position the red dot in view, ELSE position it ten thousand pixels off the screen. For the text string, IF Gmail message count is greater than 0 THEN show the message count, ELSE show nothing. I hope that made sense.

Create an SMS counter

This is going to possibly be one of the shortest step-by-step tutorials that I ever write:

Using the same steps and code as in the Gmail tutorials above, change just one small thing – use Advanced code #SUSMS# instead of Gmail’s #SUG#. That is it, the SMS counter is pretty simple, once you’ve gone through the Gmail one.

What’s next

Now that you’ve got the hang of things here, go ahead and adjust the basic code above to work for the other Zooper Widget elements that you might like to use. I showed off the letter “G” popping up on screen, I assume you might want that embedded into another widget on your screen instead of a dedicated widget. Don’t be afraid to play with it and show off what you come up with.

You may also desire to tackle notifications for other services on your device. Although there are things that can be done within Zooper Widget alone, I have never bothered trying. Instead, I find that Tasker adds that extra functionality and customization. What do you know, we will be doing just that next week.

Next Week

Custom Notification Count Zooper Widgets

Gmail and SMS are a great start, but there are plenty of other messaging services that most of use. Next week on our Android customization series, we’ll take today’s tutorial to a whole new level. Utilizing Tasker, we’ll show you how to collect notifications from any app and display a counter on your Zooper Widget. By request, this will dive into Variables – that’s you Waterdroid – for both Tasker and Zooper Widget. Bring your thinking caps, it’s going to be a big one.

That is two rather simple projects in a row, don’t worry, they both lead into the big one for next week.

Any ideas on improving this project? Please show off your creations in the comments below, we love to see what you come up with.

Tasker Popup notification Project

I am looking out the window at this very moment, it is windy and raining hard. I was able to prepare for it though because my weather warning system built using Zooper Widget in last week’s Android customization series notified me. Speaking of notifications, today we want to step up the notification game, building our own tools, like usual.

Just after Android Lollipop was announced (as Android L) at Google I/O back in June, we took a look at an app that attempted to duplicate the new floating notifications that Android L revealed. The app was called Heads Up! and is now one of many that attempted to bring to you then what Android L promised for later.

Here’s the thing, Heads Up! didn’t work very well for me. Functionally, there were no errors to speak of, I just wanted more control over the notification and didn’t care for the presentation. Most of all, once a notification faded out of the screen, that was it, gone forever. As always, I turned to Tasker to see what I could do for myself. Guess what, the results were exactly what I wanted, and so I shall share my project with you.

Even with Android Lollipop being announced just yesterday, it is still a ways out and we want something today.

Before we begin

Get it on Google Play ButtonOn your Android 4.0 or higher device, we’ll need Tasker installed for today’s project. Tasker is still $2.49 in the Google Play Store.

Custom notification tool with Tasker

This project is actually much larger than I can rightly squeeze into a single post. In all, we will look at several projects over the coming weeks. Starting today, we’ll collect notifications and display them through a pop up using Tasker itself. From there, we will look at providing a custom notification count using Zooper Widget, we will combine the two, and we may just dive into Tasker Scenes, if the selection of notification options doesn’t yet feel complete.

Tasker Task to popup a simple notification

I’ll leave it to you to head back to previous Tasker projects for a reminder on how to get Tasker up and running. Fire up a new Task, I’ll call mine “BasicNotify“, then add the following action:

Tasker Task Flash Notify

Select Alert.

Select Flash.

Tap the labels/tags icon to the right of Text.

Scroll down and choose Notification Title, or just type in %NTITLE on the Text line.

Tap the system Back button to save and exit out of the Task.

Tasker Profile to identify all incoming Notifications

Fire up your Tasker Profile, I called mine “GetAllNotifications” and add the following:

Tasker Profile Flash Notifications

Choose Event.

Choose UI.

Choose Notification.

Tap the little spaceship icon to the right of Owner Application.

In the bottom right, tap All.

Tap the system Back button to save the app selection, then tap it again to save the Profile event.

Choose your notification Task from earlier, mine was called “BasicNotify.”

Tap the system Back button when you are done to save and exit out of Tasker. Project complete.

What’s next

Now comes the waiting game, but the next time a notification comes in to your system, any notification, it will pop up in a semi-transparent, non-actionable, flash notification on your screen. It’ll hang out for a few seconds before going away. It really does not do that much, but these are the basics we need to take the project to the next level.

There are very few options to mess with on this one, but do play around with it if you desire. We will eventually dive into creating custom Scenes using Tasker, which will let you create exactly the popup that you desire. Again, feel free to poke around with Scenes, but I’ve got some better stuff on deck for you before I get there.

Bonus: How to view history of all Notifications

Typically, once a notification is swiped away or tapped, it is up to your memory to figure out what that notification said, if you even happened to see it in the first place. Did you know there is a way to view all recent notifications? Just find an empty 1×1 space on your homescreen and start the process to add a shortcut. Under Shortcuts, look for Settings Shortcuts, then simply choose Notifications. You can’t do much with the list, and it is not very informative, but I am sure you’ll find a use for it.

Next week

Custom Notification Count Zooper Widgets

As mentioned, this is just the basic starter to creating a custom notification tool that you will eventually use to make stock Android L users jealous. Don’t get me wrong, the Android L floating notification looks very cool, and will be quite functional, but that is not going to stop us from taking things to the next level in our Android customization series. Specifically, next week we’d like to look at using Zooper Widget to build an SMS and Gmail notification counter.

I know it’s pretty basic, but what do you say, is this simple little notification popup making things better for you?

Android customization – create a custom weather warning system with Zooper Widget

Posted by wicked October - 9 - 2014 - Thursday Comments Off

Zooper Widget Weather Blizzard

Over the last few weeks our Android customization series has provided some great ideas and tricks to manage and reduce power consumption. We would like to take a little break from battery life tools this week to focus on the weather.

With it being that time of year for us northerners, leaves are beginning to turn brown and the weather is beginning to cool down. Now may be a great time prepare for bad weather days by creating a little weather warning system right on your Android device Homescreen.

Chances are, if you’re still reading this, you are interested enough in your weather that you already have a weather widget on your device. And if you’ve been following our customization series, you may even already use Zooper Widget. If this describes you, then you already have the hard part complete and ready to roll today.

Before we get started

You will need Zooper Widget installed on your Android device. The free version will get you by, but if you’ve been testing out all of these Zooper Widget projects, you may have already invested your $2.49 for Zooper Widget Pro in the Google Play Store.

Before proceeding, I will leave it to you to create your own Zooper Widget with a weather indicator. We’ve walked through this before, but you’ll likely want at least the weather scalable icon set in your widget.

Create a mini weather warning system with Zooper Widget

We’re going to try to keep it simple, all I want to do is adjust a weather icon to reflect upcoming problematic weather. Specifically, what I want is for my weather icon/indicator to turn red and/or change size if unfavorable weather is headed my way.

Zooper Widget Weather Warning

This is a modified approach to the techniques we looked at to change the color of your battery indicator based on power level from a while back. That should make this pretty easy. Let’s do this in order, from the beginning:

Create your widget.

Add a weather icon or text element with the weather.

Head to the Advanced parameters section of your weather indicator.

Now, enter only one of the following code snippets, for now. You can come back to mix and match to create your own custom super tool later:

When today’s temperature is to be below 40F, change the indicator blue:

Zooper Weather Temperature Code

When there is snow in the forecast, change the indicator red, and enlarge it:
(This assumes that your weather indicator has a default size of 30, thus a size of 60 is a major increase. You will need to identify the default size of your indicator and adjust accordingly.)

Zooper Weather Snow Code

Too easy so far? Let’s step it up – When the weather condition is going to be severe today, like a thunderstorm or snow, we’ll do something drastic, like still just changing the indicator to red.

Zooper Weather condition codes Code

What is going on here?

I best break that down a bit. #W0COND# breaks into W=weather, 0=today (alternatively, C=current, 1=tomorrow, etc) and CODE=is a weather condition code. All available condition codes can be found here but may act differently depending on your set default weather provider. I have chosen to work with Yahoo! as my provider, you may find that either Open Weather Map (which is the usual default) or works better in your area. Change that up in your default Zooper Widget settings.

Back to that string of code, you’ll see I used “&&” and “||” which indicate AND and OR, respectively. So, what we really said up there was ‘if the weather code is greater than or equal to 1 AND below 3, OR it is exactly 8, change the color.’ You’ll have to run through that list of weather codes to decide what you want to check for.

Now that that is all over, be sure to hit the check mark in the top right corner of the screen to save and exit. Then hit the system Back button to save and exit right out of Zooper Widget.

Zooper Weather Sunny

What’s next?

Please do not be discouraged if things are not quite right the first time around. You will have to play with this to see what works best for you. Myself, I tweak and modify my code almost monthly, and at the very least, adapt to the season with more controls for snow and cold during the winter and granular checks for high temps in the summer.

This project started off sounding fairly simple, but revealed some very detailed and complicated techniques, leaving you with tons of options and lots to think about. When you get the hang of what you see here, try combining the weather attributes so that you can adjust your weather icon to account for temperatures, conditions and even humidity levels and wind speeds. You can then still change colors and sizes of elements, but you could also use a dedicated warning icon or text that moves into view when the time is right.

Lastly, and we won’t get into this, don’t forget that Zooper Widget plays nice with Tasker.

Next week

As we close out a topic about notifications of one sort in our Android customization series, I’d like to start looking at notifications in general on your Android device. We’ll begin a multi-part series on handling notifications, partially inspired by what is to come from Android L, and partially inspired by apps that attempt to duplicate that Android L functionality, like HeadsUp!

What do you think about our little weather warning system – I do hope you never see it activated for severe weather, but let us know how it goes and what modifications you have done to make it better?

Android customization – save battery by managing Location services (without root)

Posted by wicked October - 2 - 2014 - Thursday Comments Off

Android Customization Location Tasker GPS

Last week on our Android customization series, we took a little detour from our regularly scheduled battery saving tips with Tasker to show off a battery management tip with Zooper Widget. Today, we continue to look at reducing battery consumption on your Android device by getting back to those Location services we had on deck for last week.

Along with the display on your device, Location services and their use specifically of your GPS antenna are easy ways to drain your battery. While we do not think that turning off Location services permanently is the best idea, there are times that it is just not needed. Let’s head back to Tasker and look at managing Location services to save you some juice.

Today we will focus on Android 4.4 KitKat. The steps below may not work on other version of Android.

Before we get started

Get it on Google Play ButtonYou will need a copy of Tasker installed on your Android 4.0+ device. Tasker is $2.99 in the Google Play Store.

How should we manage Location services?

Before diving in, please take stock of your specific needs of your Location services. For today’s tutorial we will be assuming that you do not want Location services turned on at all, except if certain apps are active, like Maps or Ingress.

We have taken great care within our Android customization series to ensure that all tutorials and apps presented will work for as many of you as possible. Specifically, we have avoided root apps and tools, as we do not want you to root your phone for our behalf. To that end, you will find that today’s tutorial lacks a little finesse, this is due to the limitations of non-root devices running current generation Android. We will revisit this exact tutorial but with root abilities coming soon.

Tasker Location GPS disabled

Turn off Location services with Tasker

As mentioned, we will look at having Location services turned off by default and only turning it on when you have certain apps running. Truth is, Tasker is not able to bypass the newest security features of Android to access Location services, or even just the GPS settings. In the end, without rooting your device, all we can do is have Tasker open up Location services for us so that we can turn on or off GPS and the rest manually.

To keep this as clean and elegant as possible, we will simply fire up a notification that asks you if you want to head to Location settings and make those changes. I admit that this offers no advantage over the quick settings on most devices, but it is just a starting point to leap from.

Tasker Location GPS Notification

As with all things good in this world, it is going to take a bit of work to create our Tasker project today. We need several Tasks to pull this all together, and we’ll need to create them in a certain order, but it’s all pretty simple stuff, don’t worry.

You will need to create four Tasker Tasks in total. I’ll leave it to you to create a new Task for each, named appropriately for your needs, and I’ll show you what actions to add to each as we go. Some of the Tasks will not make sense until the end, please follow along in order.

If you are not ready to tackle Task creation on your own, head back to a previous Tasker tutorial to see how it’s done.

Tasker Task to access Location Settings

Tasker Location GPS Location Settings

I’ve called mine “OpenLocationServices.”

Of course, you’ll tap the “+” button to add the first Action to this Task.

Choose Settings.

Choose Location Settings.

Tap the system Back button to save and exit back to the Task.

Tap “+” again to add Action two.

Tasker Location GPS Status Bar

Choose Display.

Choose Status Bar.

Change the setting to Collapsed.

Tap the system Back button to save and exit all the way out of this Task.

Tasker Task to close the location reminder

Tasker Location GPS Task Wait

I’ve called mine “CloseLocationReminder.”

Tap the “+” button to add our first Action.

Choose Task.

Choose Wait.

Set a time value of about 10 seconds. This is the amount of time you will have after closing an app that the notification will remain active. You can always come back here later and change things up.

Tap the system Back button to save and exit back to the Task.

Tasker Location GPS Notify Cancel

Tap the “+” to add Action two.

Choose Alert.

Choose Notify Cancel.

In the Title section, enter “GPS” (without the quotes.)

Tap the system Back button to save and exit all the way out of this Task.

Tasker Task to clear the location notification

This one is pretty simple, and just combines two of the above Actions in a different configuration. Trust me, we need it.

I’ve called mine “ClearLocationNotification.”

Tap the “+” button to add our first Action.

Choose Alert.

Choose Notify Cancel.

In the Title section, enter “GPS” (without the quotes.)

Tap the system Back button to save and exit back to the Task.

Take a deep Breath! And continue.

Tap the “+” button to add our second Action.

Choose Display.

Choose Status Bar.

Change the setting to Collapsed.

Tap the system Back button to save and exit all the way out of this Task.

Tasker Task to create our location notification

Tasker Location GPS Alert Notify

Tap the “+” button.

Choose Alert.

Choose Notify.

Change Title to be “GPS” (without the quotes.) It is crucial that this matches exactly the term you used in the Notify Cancel actions above. You do not have to use the term GPS, but do make sure that whatever you use matches in all of the Tasks.

For Text, give yourself a quick message, as you can see, I’ve written “Turn on or off GPS?

Add an Icon. I’ve chosen the built-in icon for non-connected GPS, but there is no requirements here, whatever you want to add is fine, just keep in mind that this is the icon you will see in your Notification bar at the top of the screen.

Tasker Location GPS Notify setup

Under Actions, tap the “+” button to add a slot, then tap the Action button on the right.

Beside Name, tap the magnifying glass icon.

Choose your “OpenLocationServices” Task.

Tap the system Back button to save and go back.

Tap the Icon on the left and choose another icon, I’ve gone with the built-in GPS locked icon.

Tap on the text in the center and change it to a very short message, no more than eight characters, to signify the Action. You see I’ve put “Yes, GPS.”

We need another Action here.

Tasker Location GPS Notify Tasks

Follow the same steps starting with the “+” button to add another Action.

This time you’ll choose your “ClearGPSNotification” Task.

Assign another Icon and enter text, such as “Nope!

Tap your system Back button to save and exit all the way out of the Task.

That concludes the dirty work here folks. Now we need to put this all to good use. For that, we use a Tasker Profile. Head back to our previous Tasker tutorials if you need to brush up on Profiles.

Tasker Profile to trigger Location Services reminder

What we are going to do here is create a Profile that fires up when specified apps are open, and closes down when the apps close. More specifically, we’ll trigger the Location reminder notification when we open apps like Maps, Ingress and Camera. Hold on, did you forget that most Camera apps can use your GPS to tag your images? No worries, I’ve got some other reminders for you later.

Tasker Location GPS Profile Apps

Create your new Profile and name it appropriately, I’ve gone with “StartGPSReminder.”

Choose Application.

Run through the list and select all of the appropriate apps that you wish to let use your location services. As mentioned, Maps and camera are good starters. The Google Search app includes Google Now, so you’ll probably want that. Google+ has location services, if you want them. Street View is a separate app from maps, don’t forget that. Speedtest needs your location, as does Torque, for the car. Finally, Google’s Wallet app should be on your list, if you are an active Wallet user, of course. I’m sure you’ll have more, go ahead and choose them too.

Tap the system Back button to save your selection of apps.

Tasker Location GPS Profile Exit Task

Choose your “OpenLocationReminder” Task.

Now, long press your “OpenLocationReminder” Task and choose Add Exit Task.

Choose your “CloseLocationReminder” Task.

Tap the system Back button to save and exit Tasker.

You’ve done it! Go ahead and open one of those apps you chose above. See that, a notification popped up asking you if you want to enable or disable GPS.

From the notification, you can tap your yes or no buttons. By tapping the yes button, you will be taken to the Location Settings on your device where you can manually enable or disable Location services.

Tasker Location GPS

What’s next

As you likely already know, you can control more than just the GPS in Location settings. I will mention that many users are reporting that by simply changing to Battery Saving mode, which just turns off the GPS, the majority of battery drain is eliminated. You’ll have to play with the settings to see what works best for you.

Now, you already reminded me that this specific notification offers no advantage over the quick settings on your device. Well, I challenge you to take this project to the next level. Perhaps you would have an on-screen popup that offers these options. Perhaps you want to mess with variables and make it so that Location settings opens automatically without your input. Hint: you could utilize the IF parameter and look for GPS Status, which will equal ‘on’ or ‘off’.

If you take this project to the next level, be sure to come back here and show off your settings in the comments below.

Finally, if you are like me, this is just not good enough, you want more and better automation of the Location services on your Android device. Well, we will need to root our devices to gain this control. We may take a little while, but I guarantee that we’ll revisit this with root instructions at some point. For now, I’ll remind you that you’ll need Secure Settings installed, and there is an Xposed module to get passed that Location services agreement. Good luck.

Next week

As always, I hope you enjoyed following along our Android customization series and found value in the Tasker project you built. As compared to our previous projects, you really rocked Tasker today. I mean, the Tasks individually were easy enough, but if you can see how that all pulled together, you are well on your way to becoming a Tasker master.

It’s starting to get colder out there in the northern hemisphere, perhaps it is time we started looking at some weather warning options you can quickly put to use using Zooper Widget. We’ll show you a simple weather warning, then unleash you to make it your own.

How do you like this method of handling Location Services, can you recommend something a little easier for the non-root users out there?