Co-ordinates on wp8 emulator - windows-phone-8

I am trying to get my current location; my code is correct but wp8 emulator is giving every time same results (Microsoft place while I am in Asia). I also read people posts even on stack overflow but I could not understand their answer. they are saying set location from emulator ">>" "Location". I want to know can emulator give me correct answer when I run my app ? Is it emulator fault ? how will it work on real device ? will it give same wrong results or correct ones ?
Thanks

The WP8 emulator doesn't have a GPS or other means to get a location like a phone or other devices might be able to. So, the emulator has other ways of getting location information.
If you want to change your location settings around, you need to click on the double chevron to the right of the emulator. This will open up the additional tools menu. Click on the Location tab. Then, click anywhere on the map to set your emulator's location to the place where you clicked. When you run code to get the location it will reflect the new location.
Now you asked
can emulator give me correct answer when I run my app
The emulator does not know where it is, you set its location in the way described above. So, as long as you give it a location you deem correct then it will be correct.
how will it work on real device
On a real device there are multiple ways of obtaining the location. 1. GPS. 2. Location of cellular towers. 3. You could connect to a Wifi network (The location of some wifi connection points can be ascertained by the phone.) The phone will use one of these mechanisms to get the location.

It will work fine on real device. Emulator doesn't have required hardwares to detect your location correctly (such as mobile GPS) when a real windows phone device has.
That's the reason why people setting location in emulator manually for purpose of testing their location-aware application.

Related

How to see other users in indoor location app built on estimote sdk

I have built an indoor location ios app using Estimote SDK and its working fine. Now I want to see all the users in same location to be able to see each other in App.
Any suggestions on how to do that. Please comment and let me know if anything is not clear about the question
Here's one example how we did it using IndoorAtlas & PubNub service. Does not require any logic on the server side and allows you to tap into the location stream from several different types of clients such as mobile or browser. You should be able to do it in similar way using Estimote.
https://github.com/IndoorAtlas/android-sdk-examples/tree/master/Basic/src/main/java/com/indooratlas/android/sdk/examples/sharelocation

Windows Phone 8.1 Downloaded Maps

I have a small question about downloaded maps in Windows Phone 8.1. Is it possible to detect in code if the user has a downloaded map for a particular country? The idea is to suggest the user to download the map, so the Application runs faster and the user saves some wifi or network data
Thanks in advance
There are two classes that will help the user to understand the Offline Maps content, but there is no known way to do this only in C#.
The two options are:
MapUpdaterTask: https://msdn.microsoft.com/en-us/library/windows/apps/jj206975(v=vs.105).aspx
MapDownloaderTask: https://msdn.microsoft.com/en-us/library/windows/apps/jj206984(v=vs.105).aspx
This will load the Maps Settings app but not directly give you hint on code.
I did not try but you might be able to perform local request (find/geocoding or route) and observe the result to see if there are specific properties or values that might differ while calculating in offline.

How to build a windows phone 8 application like kid's corner?

I need help on how to build an app for windows 8 phone which is exactly similar to Kid's Corner application which is available with NOKIA LUMIA 520.
I registered with the App Studio of Microsoft and tried to create a simple application like album but as a nubee I am not aware of all fundamentals and so need a simple guide.
Here is what I want my application should do:
Once you launch it, you can not go back until you lock phone and unlock it using password. same way as Kid's Corner.
I want that the app user should be able to see videos and photos only which the app is allowed to access.
User should be able to Zoom photos and play pause videos and using touch-slide can view the next one.
User should not be able to delete any files.
Thanks for pointing me to the exact resource where I can find some things which are easy to understand and simple to do :) .
Thanks a lot!
EDIT:
Is it possible to get the source code of Kid's Zone/Corner application?
1. Once you launch it, you can not go back until you lock phone and unlock it using password. same way as Kid's Corner.
This is impossible to lock user into your app. User always can exit or suspend your app using hardware buttons, you just can handle back button tab, but user also can touch to startmenu button or can hold to backbutton.
And you cant get kid zone's source code, its part of Windows Phone OS.

Not able to install app made using App studio Windows phone 8

Initially I was able to install on my lumia 620 apps made using app studio.
Now I'm getting the following error.
"We haven’t been able to contact the Microsoft Corporation company account to make sure you can install this app. Make sure you’re connected to a mobile or WiFi network, and we’ll try again as soon as we can.
Unfortunately, it may take a couple of days before we can make that connection. If you continue to have trouble contact your company’s support person for help."
I'm in India and I'm using the same live account I used earlier.
Take a look at this : How do I get my app on my Windows Phone device?
It explains in details all the steps you need to do.
For Windows Phone 8.1
As well as various 3rd party QR Code readers you can use, you can also use Bing vision by doing the following. Open your camera on your Windows phone. Press the “Lenses” button Search icon( Sometimes the lenses button won’t be bound to your screen, you can do this by pressing the three dots and adding it to your bindings ) From here, a new menu will appear with various lenses listed. Choose Bing Vision.
Remember that by clicking “install” you download the app. By clicking Tap to open, you add the company certificate. It pushes you back to “Install company app” at that point, but you do not have to do it a second time. At this point, go to your app menu and you will see your app. Point the phone’s camera at the QR code that opens with the certificate link, and the phone will automatically scan it. Click “add” and the certificate is successfully installed once it returns to the original Install the certificate page.
...... CAN'T UNDERSTAND THIS FULLY. PLEASE EXPLAIN

location based proximity alert in windows phone 8

Is there any way to add location for proximity alert in windows phone 8 ?
For example .Suppose I have added a particular location xyz with radius 50 meter .Once user entered in the location xyx proximity alert should be triggered .
How to do this?
I did in android but I do not know how to do in windows phone 8 . I checked official documentation as well as I googled but I got nothing
Any help is appreciated
WP7/WP8 doesn't allow for full multitasking. As such having a background process open at all times listening to geoloc changes isn't a possibility.
Depending on your usecase though you could consider using WP8 geolocation tracking background support. Your app first has to be launched by the user and if may remain open in the background as long as it's tracking location and no other location tracking app has been activated. You can read more about how to create geolocation tracking apps on MSDN # http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj662935%28v=vs.105%29.aspx
A good example for when a geolocation tracking app can be used for proxmity alerts is an easter egg hunt game. After the user launches the app they can move it to the background and have it popup ShellToasts and Tile updates corresponding to a user's location.