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 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#

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

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

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#

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++

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

Starting Windows Phone Development on Windows 7
Is it possible for me to develop the Application for WP 7 Yes, if you can't upgrade to Windows 8 but want to develop for the WP platform, the WP7 SDK is a good solution. You can download it here. Your app should run on every Windows Phone (7 & 8) without trouble. Would my app miss out a lot of features available in WP8 and be an obsolete app? No, it won't be obsolete at all. If the WP7 API set covers your app requirements, it won't be a problem. The WP8 SDK brings Direct3D, C++, Speech, NFC... Look at this article for more information about What's new in the Windows Phone 8 SDK: http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj206940(v=vs.105).aspx To demo/test on a real device do I need a developer account unlocked phone or is there any workaround?

Categories : Dotnet

Programming for Windows Phone 8 on Microsoft Windows 7
You can't - you'll need Windows 8 64-bit to develop for Windows Phone 8, and additionally you'll want the Professional version of Windows 8 to leverage the emulator. See http://www.microsoft.com/en-us/download/details.aspx?id=35471 for details.

Categories : Windows Phone 8

Windows Phone button press not doing any press when using Phone Accent Brush
You need to create a new template for the Button and change the color there. In blend, select your button, click the menu item "Object"->"Edit Template"->"Edit a Copy..." and a new template is created. Change tke background color for the Normal state.

Categories : C#

App Development for Windows Phone 8 and Windows 8
You need separate projects for the two app platforms, but you can share a lot of the effort by utilising portable class libraries, especially if you are using the MVVM pattern. For example, you can make a shared view model class using the PCL version of MVVMLight.

Categories : Windows

AWS SDK for Windows Phone 8 and Windows Store app
There is a open source AWS SDK for Windows Phone: https://github.com/Microsoft-Interop/AWS-SDK-for-WP But if that Amazon SDK for .NET does not work for Windows Store apps, than there is no sdk yet. (You could theoretically take the source code for the Windows Phone one and make it compatible to Windows Store apps. Since most code written for Windows Phone should easily be transferable to Windows Store apps)

Categories : Amazon

Card.io usage in android. Displaying Credit card number and Expiry date
Maybe I missed it but I dont see anything wrong with the code. The problem may be in your XML so I thought I would make it easy for you. Send the user to another activity when the scan is completed. Copy this in the appropriate place. Create a new xml.file and see if this works. If you have any problems tell me. This is working fine for me. private Button scanButton; } @Override protected void onResume() { super.onResume(); if (CardIOActivity.canReadCardWithCamera(this)) { scanButton.setText("Charge"); } else { scanButton.setText("Charge"); } } final String TAG = getClass().getName(); private int MY_SCAN_REQUEST_CODE = 100; // arbitrary int public void onScanPress(View v) { // This method is set up as an onClick handler in the layout xml // e.g. and

Categories : Android

What is the difference between twitter photo card and summary with large image card?
The difference between a summary_large_image card and a photo card is what occurs when the user clicks on the image in the card: In the case of a summary_large_image card, a click on the image opens the link in a new tab (or in a browser on smartphones). In the case of a photo card, a click on the image opens a bigger version of the image in the same browser window (or displays the image full-screen on smartphones).

Categories : Twitter

making smtp class for windows store apps and windows phone apps
If you haven't done any socket programming I propose to learn first the basics of socket programming in C#. A start could be the book C# Network Programming http://www.amazon.de/C-Network-Programming-Richard-Blum/dp/0782141765. This book contains also a chapter about SMTP. As you said you want to build this library for Windows Phone I assume you only need a client to send mails to a server. A mail server inside a Windows Phone would not make a lot of sense... But to build a library with a useful interface you should have some experience in using the Protocol. So build first a small example client for Windows Form, refactor it, test it (with different mail servers, if possible) and with the experiences you've made create your SMTP library. tl;dr: learn the socket basics build a first m

Categories : Dotnet

Im trying to figure out how to deal a card from the deck in my card game class
yeah, now that i've thinked about, "hand" was empty because you fill it from "deck" that is in turn empty. Maybe you can define a method "initDeck" in deck class that fills the deck with random cards, and call it from game constructor. or maybe you already do this out of the game class, but in that case you should pass the deck to game!

Categories : Java

How to implemet creadit card and debit card payment in salesforce
If you are not experienced with API development, paypal API details are here: https://developer.paypal.com/docs/api/ Then the best other option is an App. I have used the connected Epos solution, which is great for taking payments from credit cards, either with the customer present (chip n pin) or by keying in the card numbers. You need to get the PayPalHere card terminal which is about $50, but it is a great all round solution. https://appexchange.salesforce.com/listingDetail?listingId=a0N30000000qD0GEAU

Categories : Paypal

Java Card: How to load SIM applet to real smart card?
It might not work because the SIM application might have dependencies to APIs that are not present in the JCOP cards (for instance ETSI 102 705). But then it is worth trying. Make sure that the file format is compatible between the tools (a cap file is not always a cap file by the way; a real cap file is a zip, some tools prefer IJC files). Try using the cap file from the Gemalto tool in the jcManager. If it does not work you can try GPShell. The main challenge is to have the keys to your target, and then the right tool.

Categories : Java

Reset Smart Card pin having Muscle card applet
MSCUnblockPIN is the function to use, but you have to know the unblock value of course. The corresponding ISO command Reset Retry Counter allows variants without unblock value, but these need another kind of protection to avoid arbitrary many retries.

Categories : Security



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