Windows Phone 8 get foreground application - windows-phone-8

Is there a way to get current foreground application, by some background process or application running in background?
I would like to make a history of user's activity. In Android we can use package manager and get running applications. Is there a similar approach in Windows Phone 8?

No. there is no any API or any other technique available to do that as of now in Windows Phone.

Related

Windows Phone 8.1 - This app is not available for your device although I can manually deploy it into the device

I have recently finished working on an App for Windows Phone 8.1 and 10 - I have successfully been able to deploy it on both type of phone by using Windows Phone Application Deployment 8.1 tool.
I am now trying to load the app into the store and create a flight package so my develop phone should be able to see, download and install the app from the Microsoft Store on the device.
I am having 2 'problems' right now:
+ the App is not showing on the Store
+ using the app URL from the store, I am able to find the app but it is only available for downloading on the Windows 10 phone and it comes back unavailable on the Windows Phone 8.1
Here is some screenshots which should give an idea of my set ups:
Apart from the above, I would like to mention that I have added my Microsoft account to the devices so ideally I should be able to see the App!
Let me know guys if it makes sense and if you need further details to help me
Thanks

Windows Phone 8.1 Universal App: How to listen to user's voice commands in background?

I'm developing on Windows Runtime and Universal App (8.1) but I don't have any experience about this topic.
Is it possible to make a vocal command to perform the same action that now I do with a button?
For example the user could click the button "start" or say the voice command "start". How should I do?
This might help you. This Link is on a similar note. Most of the windows 10 API for speech are similar to those for the windows 8.1 Universal.
Starting an app this way isn't possible with Windows Phone 8.1 Run Time. It is with Windows Phone 8.1 Silverlight, and Windows Phone 10 universal apps. Similar question asked here

How can I port a Windows Phone 8 app to Windows Phone 8.1?

I've been working on a Windows Phone 8 app, which I now want to change to be Windows Phone 8.1. How can I do this?
Should I create a new Windows Phone 8.1 app and copy all my existing files into it? Or is there an automated way for me to upgrade the existing solution to 8.1?
There are two ways to do that:
like in comment - right click on oyour project and you should see Retarget to Windows Phone 8.1
or you can open Properties window of your project and the in dropdown box Target Windows Phone OS version you can choose Windows Phone 8.1
In every case the VS should ask if you are sure to do that - it's one-way operation, so it's worth to make a backup of your solution. As WP8.1 has backward compability, in most cases there shouldn't be any problems.
Some clarification for the followers:
As WP8.0 apps are Silverlight, after retargetting it will still be a Silverlight app but WP8.1 (some new features and enhancemens).
Thought, if you want to retarget to WP8.1 Runtime, it's a totally different thing - it's a different type of an app, different API and more. You will have to port it manually. Note that not all features from WP8.0 are yet available in WP8.1 Runtime - here is a good article about that.

Windows phone 8.1 background tasks

I just downloaded the universal app background task sample application for windows phone 8.1 and windows 8.1.
http://code.msdn.microsoft.com/windowsapps/Background-Task-Sample-9209ade9
So after going through the code, I understand that the background task is being implemented using the windows runtime component. I am trying to use the timertrigger.
Is it a possibility that the background task be implemented using the Silverlight 8.1 windows phone project instead of a windows runtime project?
The answer above is wrong. Wonder how it has 5 votes. Anyways, background task cannot run in a silverlight applciation but it can only register a background task. It has to be a runtime project that runs a background task.
A silverlight application can just register a background task which is a separate runtime project. Its a different process all together.
Yes, it is possible. The reason why they chose a Windows Runtime project in this example was to show the new Universal Apps. You can use the BackGroundTasks in a Silverlight based project and in a Windows Runtime base project.
But if you ever plan to expand you app to Windows 8 you should think about making it a Universal App.

Can I get installed applications of phone from user's Windows Live ID in Windows Phone

I am developing Windows Phone application in that I want installed applications of phones but I searched a lot on this issue , there is no solution available. So I m trying to get Windows Live ID of windows phone so my question is that from Windows Live ID can I get installed applications in that phone related with that id..?Can anyone help me ?
Thank you.
Its not possible for a 3rd party developer app to get the list of apps installed on phone. There is no such communication existing in the present versions.
You could use launchers(available in wp8 only) for app to app communication like for opening a file or so. But getting the list of apps installed isn't possible. Atleast not in the present versions.
i.e, Sending data to app is possible but not receiving the data from one.