Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

I own a Samsung Galaxy S2, running the official ICS OS. I want to use the Llama app (too poor for Tasker!) to tell my phone to update all apps whenever I am connected to certain Wi-Fi networks (but not all - my home Wi-Fi is volume-based).

Llama allows you to signal custom intents, but I don't know how intents work. Does the Play Store support an intent to either signal "update all", or to turn on automatic updating?

(Essentially, I'm trying to do something like this: How to allow auto-update of apps in Play Store only when plugged in?)

share|improve this question
1  
As nice as this would be to have, I don't think it exists. –  Bryan Denny Mar 18 '13 at 15:44
1  
You could try Package Explorer to figure out what intents an app supports. Maybe you're lucky (though I doubt it). OTOH: You can configure Playstore to update on WiFi only. I'd say it would react on the "network changed" intent and, if the "new network" is WiFi, act accordingly. So no extra actions required. –  Izzy Mar 18 '13 at 17:09
add comment

2 Answers

up vote 2 down vote accepted

"to turn on automatic updating?"

I highly doubt there is an intent for this - that is a user setting and Android doesn't generally allow apps to change user settings.

I think the best solution is to, first, manually turn on the auto-updates feature of the play store, and set it to wifi only, and second, launch the play store when you connect to the desired hotspot. Just launching it will typically cause it to perform any pending updates.

I'm not sure how you specify this in tasker or llama, but you can launch the play store by sending an intent that requests that a play store URL be launched (e.g. the URL of a play store app or publisher), e.g.

new Intent( Intent.ACTION_VIEW, Uri.parse("http://play.google.com/store/apps/details?id="+appName) )

More info about that is here.

Finally, you should go to the wifi settings and mark your home wifi network as metered. Whoops. I've seen that setting in the API docs here but now I can't find a way for a user to set it. Maybe that is only available for cell networks, or maybe that is coming in future versions of Android (the API was just added recently).

share|improve this answer
    
It looks like that "metered wifi" thing is a Jelly Bean feature - I'm still on ICS. But great, useful info otherwise. My biggest issue with your suggested best solution is that it means I can never launch the Play Store if I'm on metered wifi, which means no browsing for apps to +wishlist, or updating a single, small app. –  henrebotha Mar 21 '13 at 19:49
add comment

Under the Account Sync action in Llama, you can Enable Account Sync then Request Update. It's possible that the Play Store will update when this is called, but I haven't tried it so couldn't tell you for sure. Worth a shot though.

share|improve this answer
    
Good point, I'll check this out. –  henrebotha Mar 21 '13 at 19:49
    
Unfortunately I don't think this works. –  MikeFHay Apr 3 '13 at 14:59
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.