w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
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

Categories : C#

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 lat/lon info rgc.QueryAsync(); You can then get the data from within your rgc_QueryCompleted event handler using the Result property of the event args passed in.

Categories : C#

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 unlocked device.

Categories : Windows Phone 8

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.

Categories : Windows Phone 8

How to load music from SD card / Music+Video hub in Windows Phone 8?
MediaLibrary 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 tracks... http://msdn.microsoft.com/en-us/library/dd231914.aspx http://www.jeffblankenburg.com/2011/11/28/31-days-of-mango-day-28-media-library/ ExternalStorage If you want to access the SD card, then you'll have to use ExternalStorage API... http://dotnet.dzone.com/articles/using-local-storage-windows BackgroundAudioPlayer 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... http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh202978(v=vs.105).aspx http://msdn.microsoft.com/en-us/library/wi

Categories : C#

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 Express 2012. 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.

Categories : Windows Phone 8

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 design.

Categories : C#

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: <script type="text/javascript" charset="utf-8" src="cordova-x.x.x.js"></script> src should be set to "cordova.js".

Categories : Cordova

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[0]+50, $aPos[1]+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.

Categories : Windows

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 want. 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 > rightBar.X) { 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. For example: if(greenBallPositionX1 < (leftBar.X + leftBar.Width) || greenBallPositionX1 &

Categories : C#

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 remain heuristics.

Categories : Windows

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.

Categories : Windows

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. – CommonsWare 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.

Categories : Android

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 try again.

Categories : Misc

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 onto host. Then restart the target, enable the driver as soon as enable the driver onto target it will jump to VS running into debug mode onto host at the already settled breakpoint. then after just press F5 and go ahead. regards matt

Categories : Windows

Android - How to get two or more SD Cards' path from Card Reader using OTG to connect our phone?
Well, 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()); }

Categories : Android

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 videos. One suggestion is to look at the YouTube developer pages to see if there are any tags you can set programatically while uploading.

Categories : C#

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. http://msdn.microsoft.com/en-us/library/windowsphone/develop/ff402541%28v=vs.105%29.aspx#BKMK_Medialibrary

Categories : Dotnet

Read all phone contacts and update them. windows phone 8
try something like this void GetContact() { cons = new Contacts(); //Identify the method that runs after the asynchronous search completes. cons.SearchCompleted += new EventHandler<ContactsSearchEventArgs>(ContactsSearchCompleted); //Start the asynchronous search. cons.SearchAsync(String.Empty, FilterKind.None, "Contacts Test #1"); } private void ContactsSearchCompleted(object sender, ContactsSearchEventArgs e) { 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

Categories : C#

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: MediaPlayer.Play(song); Reference the Microsoft.Xna.Framework.Media in your Project and make sure you dispose the MediaLibrary after your access.

Categories : C#

display the phone contacts only in windows phone 8
@Chakravathy you can't replace contactFilterKind with contactStorageKind because cons.SearchAsync defination only accepts FilterKind parameter so it can't be anything else..

Categories : C#

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: DeviceName DeviceManufacturer DeviceHardwareVersion DeviceFirmareCVersion to figure out the screen resolution you can look at this MSDN Library Article Sorry above was for DirectX Try looking at Windows.Graphics.Display Namespace's DisplayInformation Class to get your dpi.

Categories : C#

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) { if (_paused) { return; } ... } private void btnPause_Click(object sender, RoutedEventArgs e) { _paused != _paused; }

Categories : C#

Passing image data buffers to Windows Runtime on Windows Phone 8
Camera api for native code is the way to go: http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj571202 you'll get the data directly in your c++ WinRT component code. see an example here : http://library.developer.nokia.com/Community/Wiki/Getting_started_with_the_Camera_APIs_for_native_code

Categories : Dotnet

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 = App.MobileService.GetTable<TodoItem>(); private async void InsertTodoItem(TodoItem todoItem) { // This code inserts a new TodoItem into the database. When the operation completes // and Mobile Services has assigned an Id, the item is added to the CollectionView await todoTable.InsertAsync(todoItem); items.Add(todoItem); } The insert script for example doesn't run if you use Manageme

Categories : C#

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.

Categories : C#

how to override windows back button in windows phone 8 ?
Try this one, which works for me Step 1 : in XAML BackKeyPress="PhoneApplicationPage_BackKeyPress" Step 2 : in C# private void PhoneApplicationPage_BackKeyPress(object sender, System.ComponentModel.CancelEventArgs e) { MessageBoxResult mRes = MessageBox.Show("Would you like to exit?", "Exit", MessageBoxButton.OKCancel); if (mRes == MessageBoxResult.OK) { NavigationService.GoBack(); } if (mRes == MessageBoxResult.Cancel) { e.Cancel = true; } }

Categories : C#

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

Categories : C#

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 WP8

Categories : C#

Windows Phone 8 Emulator for Windows 8 Single Language
64-bit of Windows 8 Pro edition is the requirement. You have to upgrade the Windows. Reference: http://msdn.microsoft.com/en-us/library/windowsphone/develop/ff626524(v=vs.105).aspx

Categories : Windows Phone 8

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)

Categories : Visual C++

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.

Categories : Windows

could not find oci pdo driver in windows
See here: http://php.net/manual/en/install.windows.extensions.php and http://php.net/manual/en/pdo.installation.php To enable an extension, uncomment (remove initial semicolon) the line that looks like this: extension=php_pdo_oci8.dll

Categories : PHP

Windows driver certificates
First, certificates are not "SSL certificates". They are X.509 certificates. 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. Also check http://www.microsoft.com/whdc/driver/install/drvsign/crosscert.mspx for cross-signing certificate (you'll need to add one to your signature).

Categories : Windows

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 install Git. Check Git Setup Options Run Git from the Windows Command Prompt Checkout as-is, commit Unix-style line endings Check the installation by running: C:>git --version git version 1.8.3.msysgit.0

Categories : Windows

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? https://www.google.com/search?q=mysql+get_driver_instance+site:stackoverflow.com If that isn't it, it can be a problem with c++ name mangling. https://en.wikipedia.org/wiki/Name_mangling#Name_mangling_in_C.2B.2B Because the name-mangling systems for such features are not standardized across compilers, few linkers can link object code that was produced by different compilers. and I think the final answer is here: http://www.mingw.org/wiki/MixingCompilers another stack overflow answer saying this: What problems can appear when using G++ compiled DLL (pl

Categories : C++

How to install IBM db2 ODBC driver in Windows 7 - 64 bit?
You can download DB2 clients for your DB2 version from here: http://www-01.ibm.com/support/docview.wss?uid=swg27007053 Client software is free.

Categories : Sql Server

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 sample the screen becomes red You may want to write display/monitor filter driver. Reference

Categories : Windows

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

Categories : Windows

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 application. 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 ^^

Categories : Windows Phone 8



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.