Peti
Peti

Reputation: 139

Run script after windows store app has been installed

Is there any way to run some activity after a Windows Store app has been installed?

I'd like to get some data from a webservice (data is rarely changes), but I would not like to make the query on the first start, because it might take some time, and I don't want to ruin the user experience.

Thanks!

Upvotes: 2

Views: 275

Answers (2)

Jeremy Foster
Jeremy Foster

Reputation: 4763

My codeSHOW app loads data asynchronously when it first starts, and stores the async promise as an app level variable so anything else in the app can await it. It's not exactly what you're looking for, but if it helps, it's available at http://codeshow.codeplex.com.

Upvotes: 1

C0L.PAN1C
C0L.PAN1C

Reputation: 12233

You can have it run on a separate background thread while concurrently running the main thread. You can allocate limited resources to this separate background thread, then have it subside on it's own.

You can do an async operation as well from your app, see link from MSDN: http://msdn.microsoft.com/en-us/library/windows/apps/br230301.aspx#AsyncOps

Upvotes: 4

Related Questions