|Windows phone 8 GeoFencing using Nokia Maps|
The new GeoCoordinateWatcher API deals with this in Windows Phone 8.
Geofencing and Geolocation in WP8 formed a major part of the discussion in
a recent webinar on the subject - the slides can be found here. Rather than
repeat the code here, I would suggest that you look at the Track My
Position example which can be found in the Windows Phone 8 Maps Examples
project on projects.developer.nokia.com
|How to get the name of a place in Nokia Maps on Windows Phone 8?|
You can use the ReverseGeocodeQuery class.
var rgc = new ReverseGeocodeQuery();
rgc.QueryCompleted += rgc_QueryCompleted;
rgc.GeoCoordinate = myGeoCoord; //or create new gc with your current
You can then get the data from within your rgc_QueryCompleted event handler
using the Result property of the event args passed in.
|Add xap file in sd card on windows phone|
you cannot install a xap file into phone like this.
there are two ways to install an app one is by downloading it from app
store and other one is by installing app from visual studio on a developer
|Secure java card access in windows phone 8|
There is something in place through the Wallet and SecureElement APIs which
allows you to access the UICC. This requires some privileges. This was
developed in the context of NFC payment, and may require a specific SIM.
Probably more APIs will emerge in the next release of Windows Phone 8.
|How to load music from SD card / Music+Video hub in Windows Phone 8?|
If you want to access the music already detected by the phone (both on the
device memory and SD card), then use the MediaLibrary to access all the
If you want to access the SD card, then you'll have to use ExternalStorage
And if you're serious about making a music player, you will have to also
use the BackgroundAudioPlayer which allows music to keep playing even when
your app is not running...
|How to create Windows Phone 8 app package for windows store using VS Express 2012 for windows phone?|
If I understand correctly, you're hoping to publish a Windows Phone 8 app
to the Windows Store (on Windows 8)?
Publishing to each store (phone/Windows) is a separate process, requiring
different projects, and as you've seen, different versions of Visual Studio
There's an helpful Windows Phone 8 and Windows 8 App Development Dev Center
for guidance on doing this, and a recent article by Doug Holland on
"Sharing Code between Windows Phone 8 and Windows 8 Applications" that
should help as well.
|long list in c# windows phone.What are the ways to display LISTs in windows phone?|
The idea of a ListBox/LongListSelector is to show a list of items that
wouldn't fit on the screen at once. The user can scroll through all the
items so it sounds like it's doing what you'd expect it to. If each item is
too long for your deign plans then you have to change your item template
|Why is the Phonegap sample app for accelerometer not able to show phone accelerometer data on Nokia 5800?|
I got the answer at Phonegap forum. In the line:
src should be set to "cordova.js".
|How to automate the "Windows Security" window: "Windows can't verify the publisher of this driver software"|
Are you able to identify the window using the Win... functions? If so you
could try using MouseClick:
$aPos = WinGetPos("Windows Security")
MouseClick("left", $aPos+50, $aPos+100)
First get the position of the window, then add some pixels so that when you
do a right-click with the mouse you click the appropriate button. Of course
you need to adjust the number of pixels to add to the x-/y-axis.
|How to do image collision in C# for Windows Phone 8 using Windows Phone App?|
I don't see a reference to the bar object in your code. But the detection
of the collision is much easier than the physics of handling the collision.
There are several schools of thought to something as simple as Pong
collision, and the way you choose to handle it depends on the gameplay you
Here is an easy way to detect and handle the collision, simply by negating
the X velocity just as you are handling the wall collisions:
if(greenBallPositionX1 < leftBar.X || greenBallPositionX1 >
this.greenBallVelocityX *= -1;
Keep in mind you might also have to take into account the width of the bar
or the ball depending on where the coordinate is in relation to the image.
if(greenBallPositionX1 < (leftBar.X + leftBar.Width) ||
|Windows Driver - How do I determine if Windows is in the process of booting, or has already booted?|
I've answered a similar question elsewhere on SO. The short version is that
what you're asking is not normal driver behavior, so no API exists to
support this. You can add in heuristics to tell you this, but they'll
|Is there a way to turn off Windows Display Driver Model (WDDM) in Windows 7/8?|
There really isn't a way to turn off WDDM mode for a GeForce GPU. If you
have a Quadro or Tesla GPU, you can set the GPU to use TCC mode (use the
nvidia-smi tool, with --help to figure out the command options to switch
from wddm to tcc mode) but you will need another GPU in the system to host
the display. You may also be interested in this question.
|Retrieving phone number from SIM card error|
See this thread for more information on this issue. Specifically, the below
comment on the accepted answer:
Actually, not so perfect. Last time I tried this method, it reported the
phone number that my phone originally had, before my old mobile number was
ported over to it. It probably still does, as the Settings app still shows
that defunct number. Also, there are reports that some SIMs cause this
method to return null. That being said, I'm not aware of a better answer.
It seems that getting a user's phone number is not as simple as asking the
OS to hand it over, for reasons beyond the control of the developer. An
alternative is to populate whichever field you need with the number the OS
gives, but also let the user edit the phone number in case the OS is wrong.
|Does an HID device need libusbx Windows backend driver on Windows 7?|
If you really use libusbx then you should be able to at least open the
device for sure.
Make sure you did not mess the default HID driver for your device while
playing with Zadig tool. Go to Control Panel/Device Manager/Hid section (is
your device listed there?), search your device and remove the driver. Then
|How to debug windows device driver and what to debug if driver is installed on VM?|
On target, disable the driver meanwhile keep the VS into running debug mode
Then restart the target, enable the driver as soon as enable the driver
it will jump to VS running into debug mode onto host at the already settled
breakpoint. then after just press F5 and go ahead.
|Android - How to get two or more SD Cards' path from Card Reader using OTG to connect our phone?|
When you've got the path of the USB device, try
File usbPath = new File("path_to_usb_device");
File sdcardsPath = usbPath.listFiles();
for(File ff : sdcardsPath)
Log.d("File repo", ff.getAbsolutePath());
|MyToolkit for windows phone 7.x "Sorry we can't play this file on your phone" for VEVO videos|
It's a YouTube restriction I'm afraid. Not entirely sure how to unblock it
but a fair amount of videos are tagged as HQ or have a "non-mobile" flag.
Certain channels also only allow desktop viewing and changing the browser
version on your phone (mobile vs desktop) does not help.
Not even sure if it's possible from Windows Phone devices for uploaded
One suggestion is to look at the YouTube developer pages to see if there
are any tags you can set programatically while uploading.
|how to access phone memory from 3rd party application in windows phone 8|
This question has been answered here:
Can I write some data to SD card on Windows Phone 8
It tells you how to access memory on an SD card and in other Windows Phone
8 folders, including a Win32 Storage API which can be used to try to access
files in phone storage that aren't normally available to you. I'm not sure
if this will allow your app access.
|Read all phone contacts and update them. windows phone 8|
try something like this
cons = new Contacts();
//Identify the method that runs after the asynchronous search
cons.SearchCompleted += new
//Start the asynchronous search.
cons.SearchAsync(String.Empty, FilterKind.None, "Contacts Test #1");
private void ContactsSearchCompleted(object sender, ContactsSearchEventArgs
cons.SearchCompleted -= ContactsSearchCompleted;
//e.Results should be the list of contact, since there's no filter
applyed in the search you shoul have all contact here
not this is a copy paste of an old not tested code of mine so you might
have to change something
|Accessing the Phone's Music in Windows Phone 7 (and 8)|
The MediaLibrary class is a api to access MediaFiles on the phone
(Pictures, Music, ...)
you can access the song-collection with the following snippet:
using(MediaLibrary library = new MediaLibrary())
foreach(var song in library.Songs)
Debug.WriteLine("Name: " + song.Name);
Debug.WriteLine("Artist: " + song.Artist.Name);
Debug.WriteLine("Album: " + song.Album.Name);
You can also play a song:
Reference the Microsoft.Xna.Framework.Media in your Project and make sure
you dispose the MediaLibrary after your access.
|display the phone contacts only in windows phone 8|
@Chakravathy you can't replace contactFilterKind with contactStorageKind
cons.SearchAsync defination only accepts FilterKind parameter so it can't
be anything else..
|Windows Phone - How to detect what phone users have|
According to the MSDN Documentation you need to be looking at the
DeviceStatus Class in the Microsoft.Phone.Info Namespace.
It will give you access to the:
to figure out the screen resolution you can look at this MSDN Library
Sorry above was for DirectX
Try looking at Windows.Graphics.Display Namespace's DisplayInformation
Class to get your dpi.
|How to do a pause in C# for Windows Phone 8 using Windows Phone App|
What have you tried to do to get this to work? In this case I would do:
private bool _paused = false;
private void OnUpdate(object sender, object e)
private void btnPause_Click(object sender, RoutedEventArgs e)
_paused != _paused;
|Passing image data buffers to Windows Runtime on Windows Phone 8|
Camera api for native code is the way to go:
you'll get the data directly in your c++ WinRT component code.
see an example here :
|Windows Phone 8 Raw Notification with Windows Azure Mobile Services|
I was able to find out from the logs that my code wasn't sending the
notification and worked out that it was my method of testing which was
causing it and so I've fixed it. I've found out that the insert script only
fires when I use the code:
private MobileServiceCollection<TodoItem, TodoItem> items;
private IMobileServiceTable<TodoItem> todoTable =
private async void InsertTodoItem(TodoItem todoItem)
// This code inserts a new TodoItem into the database. When the
// and Mobile Services has assigned an Id, the item is added to the
The insert script for example doesn't run if you use Manageme
|Do I need to create separate applications for windows phone 8 and windows 8 desktop?|
You will not be able to create a single assembly which can run on Windows
Phone 8 and Windows 8.
You may be able to create libraries which you can reference in both
projects or share code in other ways.
You will need to create separate UI for each platform. (Even if they end up
looking the same-although that would probably not be a good idea.) Each
platform has different conventions and ways users will expect apps to
behave. You should respect these to avoid confusing users.
You can use SQLite on both Windows Phone 8 and Windows 8.
|how to override windows back button in windows phone 8 ?|
Try this one, which works for me
Step 1 : in XAML
Step 2 : in C#
private void PhoneApplicationPage_BackKeyPress(object sender,
MessageBoxResult mRes = MessageBox.Show("Would you like to
exit?", "Exit", MessageBoxButton.OKCancel);
if (mRes == MessageBoxResult.OK)
if (mRes == MessageBoxResult.Cancel)
e.Cancel = true;
|Connect Windows Phone and Windows 8 apps to SQL Server|
You can't directly connect to a SQL Server, because of the
Metro-Apps-Sandbox concept. They only can comunicate with a server through
a service. The only way around this limitation that I know of is a SQLite
integration into Windows 8 Apps.
In my opinion the best way (if you use Visual Studio) is the
EntityFramework. It seems a bit complex at the beginning, but the ORM
really helps while developing (less mistakes through intellisens, more
security against injections). Then you wrap it up into a WCF Data Service
and you are ready to use any SQL-Database in your application.
The Entity Framework enables developers to work with data in the form of
domain-specific objects and properties, such as customers and customer
addresses, without having to concern themselves with the underlying dat
|How to use the namespace "Windows.Globalization.Calendar" in Windows Phone 8|
Try an opensource calender library:
Noda Time or some more generic explanation here which specifically mentions
|Windows Phone 8 Emulator for Windows 8 Single Language|
64-bit of Windows 8 Pro edition is the requirement. You have to upgrade the
|Runtime Component targeting Windows Phone and Windows|
I'll preface by noting I don't do much coding on the C++ side of Visual
Studio, but this should get you close.
You will need two separate projects, but you could set one project up to
house all the files and then in the second project Add->Existing Item... to
the source/.h in the first project. In C++ (unlike VB/C#) a reference is
included to the original location and a copy is NOT made.
I'm presuming #ifdef can be used to work around any differences in the
implementation (as is also recommended as an option for C# targeting both
Windows 8 and Windows Phone)
|Windows driver in wine|
There are is some weird printer related stuff to wine but I doubt you'll be
able to get status working like you hoped. My advice is to either dual boot
with windows (or have a separate machine running windows) or even run a
virtual machine on your linux pc and have windows running in that. You
could then use the virtual version of windows to connect to the printer and
receive the printer status stuff with the windows driver and tools.
|could not find oci pdo driver in windows|
See here: http://php.net/manual/en/install.windows.extensions.php and
To enable an extension, uncomment (remove initial semicolon) the line that
looks like this:
|Windows driver certificates|
First, certificates are not "SSL certificates". They are X.509
In your case you need a code-signing certificate. But not each code signing
certificate will work. Only those from Verisign and GlobalSign CAs will.
GlobalSign seems to be cheaper.
cross-signing certificate (you'll need to add one to your signature).
|How to install go-sql-driver on Windows|
Download the Windows version of Git from http://git-scm.com/downloads.
Run the downloaded executable file, currently
Git-1.8.3-preview20130601.exe, which will start a Git Setup wizard to
Check Git Setup Options
Run Git from the Windows Command Prompt
Checkout as-is, commit Unix-style line endings
Check the installation by running:
git version 1.8.3.msysgit.0
|Using C++ MySQL Driver on Windows|
It's likely in a namespace.
throw in this and see what happens:
using namespace sql::mysql;
edit: Also, did you look through the approximately 869 other times people
have asked this same question on stack overflow before posting?
If that isn't it, it can be a problem with c++ name mangling.
Because the name-mangling systems for such features are not standardized
across compilers, few linkers can link object code that was produced by
and I think the final answer is here:
another stack overflow answer saying this:
What problems can appear when using G++ compiled DLL (pl
|How to install IBM db2 ODBC driver in Windows 7 - 64 bit?|
You can download DB2 clients for your DB2 version from here:
Client software is free.
|Windows Driver: Input and Output|
Very short answer,
Whenever the F10 key is pressed everything freezes
You may want to write keyboard class filter to read keys pressed. Here is
the screen becomes red
You may want to write display/monitor filter driver. Reference
|recording live video stream from tv card using ffmpeg in windows|
First be sure that the video label you use is really the label return by:
ffmpeg -list_devices true -f dshow -i dummy
More info here
But another solution should be ti use the old "Video For Windows" (VFW).
To try that, list your device with:
ffmpeg -y -f vfwcap -i list
And use your device number as value of the -ioption:
ffmpeg -y -f vfwcap -r 25 -i 0 out.mp4
And if finally you are able to record your stream, there is different
options, but in your case everything is clear describe here
ffmpeg -y -f vfwcap -r 25 -i 0 -f image2 -vf fps=fps=1 out%d.jpg
|Windows Phone 8 apps for Windows Surface|
Windows Surface is not a Windows Phone, is a Windows Tablet, You can
developp for Both with same "class Library" , but you want to have two
different project. One for Windows Phone 8 and one for Windows 8
You can read this MSDN article for better explain.
Also, I don't think PhoneGap manage Windows 8.
Unlike Androïd, You don't publish the same project for smartphones and
tablet with Windows.
A Windows Phone project is just for Windows phone, a Windows 8 Application
is for Tablet, Laptop and Computer using Windows 8 ^^