Implement a long running process in windows store app [closed] - windows-runtime

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I need to run a background process which gonna poll on a web service every 5 minutes.
I want this process to start on app startup and runs forever.
In Android I can use a Service for this kind of situation but I don't know how to approach this
on windows store apps.(Windows 8.1)

In WinRT apps you can use background tasks with time triggers to achieve a similar functionality. You won't be able to poll the web service every 5 minutes, though:
In Windows 8, the minimum interval is 15 minutes; your app must also be pinned to the lock screen for them to be available.
On Windows Phone the minimum interval is 30 minutes; there are no additional requirements.
You might also want to take a look at push notifications as an alternative approach to polling.

Related

upgrade from WP7 app to WP8 [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I have a WP 7.1 app in the marketplace, but some features crash in WP 8.
I don't use VS 2010 anymore and would like to take the opportunity to create a WP8 version of the app.
Imagine that I have a user that runs my 7.1 app on his Windows Phone 8 and that he has already saved data to isolated storage. Will he see the WP 8 version of my app as an upate? Will he lose data already stored in Isolated Storage?
No, the user will not lose data in the isolated storage as long as it's an update to the existing app. Make sure you don't replace the old xap, add a new one for WP8 instead.
This is my app that have got both WP7.1 and WP8 xaps. You should see something similar in your dashboard once you uploaded your WP8 version.

Is a 610kb image too large for download in a smartphone app? (over mobile data network) [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I'm getting an image of size 610kb from an HTTP source and displaying it on my app main page But I feel like its too large. There are no alternatives - provider does not have any lower resolution images. It may eat away at users bandwidth if they refresh too often. How should I handle this?
EDIT - its a live space image of earth updated every 30 seconds (but I programmed the app to update every hour - i.e. it caches the image to the phone so it wont update unless 1 or more hours has passed
BUT there is a refresh button, the user can force update whenever they want
I've never heard of such limitation in WP. As long as your app is in the foreground, it can download large files without problem. 610 kb isn't a big deal and it can be downloaded in a matter of seconds.
What you should pay attention to, however, is to download your image and do any heavy post-processing asynchronously (in a background thread). Also, make sure that the user is alerted that a download is in progress so that they can wait for it.

how to make an app that uninstalls after some specific time [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
i would like to know if there is a way to make an app in wp8 that uninstall itself after some specific time.
for example i make an app that makes filters on photos, i test this app on my phone, after testing i forget to uninstall it and so i would like to have a timer inside that app so that it can uninstalls itself after some time.
or is there a way to make an app that checks for some apps(that i have developed) on my phone and uninstalls them in some regular time(that is the app wakes app, cheks if that app exist on my phone and if that apps exist on my phone it uninstalls it)?
i thank you in advance for the help
Installing and uninstalling of app requires more permissions than any app sandbox environment provides to it.
You can check the time when the app was installed to user machine and thus forbid the user for using it post-specific time. Similar to what trial version softwares work like.
Second part of your question clearly violates the user rights. As the requirement is to uninstall other apps using another app. I doubt that this can not be done.

Application notice software [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
What is the name where the application shows messages of any updates available whenever the update is available?
Is it called web service?
For example, I have installed an antivirus (avast); sometimes a small popup message shows that an update is available.
I have very vague idea about it, it must be contacting the server periodically for checking the new updates are available or not.
I do not know what the application name is so I was not able to search.
It's called an auto-update software feature. It's part of the software itself usually - If you'd like to look at some API's regarding implementing them into your application, find out more here. WinSparkle is also something you could look into if your doing Windows development.
Those are vendor dependant solutions. It is usually not a separate software checking for updates. All they do is query a web service that replies with the 'current' version. At least as long as talking about MS-Windows. More elegant and efficient solutions exist in the Linux environment.

Deactivate Air app created in AS3 after next Monday? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I have an application deployed in Air, written in AS3 that the client wants to install and test, I have developed a simple license app, but he is pushing for a full license which he said he will fully pay on next Monday.
How would you create a procedure in AS3 to deactivate application next Monday? How secure will it be? Will simply changing machine date bypass this?
Changing the machine date will easily bypass your security mechanism. You need something more robust, which cannot be controlled by anybody other than you.
If your application is going to run connected to the web, you might be able to poll a remote server to see if the application is allowed to run or not. This is more flexible in that you can control the validity of the application without embedding dates into it.
There might even be off-the-shelf commercial components that do this for you.
But a more serious problem is that you have reason to distrust your client. Maybe you can collect part of the money when you deliver a limited-period beta and take it on good faith that he'll give you the remainder later.