10

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?)

2
  • 1
    As nice as this would be to have, I don't think it exists.
    – Bryan Denny
    Commented Mar 18, 2013 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
    Commented Mar 18, 2013 at 17:09

2 Answers 2

4

"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).

3
  • 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
    Commented Mar 21, 2013 at 19:49
  • Not sure if metered wifi has arrived in stock yet, but it definitely is available in CyanogenMod under Settings > Data usage > (Menu) > Mobile hotspots. That way, I can at least stop the annoying updates when at uni or passing by a cafe wifi — thanks!
    – eflorico
    Commented Jan 3, 2015 at 15:18
  • have a look at my SO question, stackoverflow.com/questions/55953622/…
    – Aman Verma
    Commented May 2, 2019 at 13:37
1

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.

2
  • Good point, I'll check this out.
    – henrebotha
    Commented Mar 21, 2013 at 19:49
  • Unfortunately I don't think this works.
    – MikeFHay
    Commented Apr 3, 2013 at 14:59

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .