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#

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

Having some trouble with the BlackJack Java card total ouptput
You've overridden toString on many classes, but not (yet) on the Hand class. Override toString on Hand to provide your own custom string conversion, or else you'll get the Object implementation of toString, which is to use the class name, an @ sign, and the address of the object. To quote the Javadocs: The toString method for class Object returns a string consisting of the name of the class of which the object is an instance, the at-sign character `@', and the unsigned hexadecimal representation of the hash code of the object. In other words, this method returns a string equal to the value of: getClass().getName() + '@' + Integer.toHexString(hashCode())

Categories : Java

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

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

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

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

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#

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

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

iOS Phonegap app crashes after Card.io scans credit card
@Paul if you using latest card.io SDK just modify the CardIOPGPlugin.m file on line 101 from [CardIOCreditCardInfo displayStringForCardType:info.cardType] to [CardIOCreditCardInfo displayStringForCardType:info.cardType usingLanguageOrLocale:[[NSLocale currentLocale] localeIdentifier]] Hope it helps.

Categories : IOS

Coordinate Id of same card that is read by two different card readers
Its rather hard to understand just exactly what your wanting, but in the bottom you state: 'in other words, i want to convert this array of bytes to corresponding hex code'. You can perform that operation like so: public static string ByteArrayToString(byte[] ba) { StringBuilder sb = new StringBuilder(ba.Length * 2); foreach (byte b in ba) { sb.AppendFormat("{0:x2}", b); } return sb.ToString(); } Just pass in your Byte array and the result will be your hex conversion in string format. Edit: This will probably yield the same results, but try this: byte[ ] bytes = {0, 1, 2, 4, 8, 16, 32, 64, 128, 255 } Console.WriteLine( BitConverter.ToString( bytes ) );

Categories : C#

Card holder's name in APDU commands (ICC Card)
Reading the card holders name and other info on a chip & pin card is not as simple as you might think. It's not as simple as just one straight forward APDU , there are several more steps you have to go through first. First you need to perform an application selection. How you do this, depends on your card and your terminal. There are 2 standard ways. 1) Application file selection 2) AID Scanning For type 1, you typically call a known file name using the select file apdu (NOTE: I'm not going to implement full apdu sentences in what I type here as there is just too much data to try and represent, if there is enough attention to this post then I might do a blog entry) The file name to select for most EMV standard cards is '1PAY.SYS.DDF01' or '2PAY.SYS.DDF01' for contactless ca

Categories : Misc

Card.io SDK gives partial credit card number
Josh from card.io here. The sample code you're probably looking at reads: - (void)userDidProvideCreditCardInfo:(CardIOCreditCardInfo *)info inPaymentViewController:(CardIOPaymentViewController *)scanViewController { // The full card number is available as info.cardNumber, but don't log that! NSLog(@"Received card info. Number: %@, expiry: %02i/%i, cvv: %@.", info.redactedCardNumber, info.expiryMonth, info.expiryYear, info.cvv); // Use the card info... [scanViewController dismissModalViewControllerAnimated:YES]; } Note the comment above the NSLog call. What is being logged is info.redactedCardNumber. You want info.cardNumber instead. See the header files, which are pretty well documented, for more details. The older version of the SDK is has been publicly deprecated for nearly a

Categories : Iphone

Is it possible to get credit card type using card.io?
I have no experience of using card.io. But your question got me all curious about this API. In github, I found it and in there, there is a file: CardIOCreditCardInfo.h // Derived from cardNumber. // When provided by card.io, cardType will not be CardIOCreditCardTypeUnrecognized or CardIOCreditCardTypeAmbiguous. @property(nonatomic, assign, readonly) CardIOCreditCardType cardType; Hope this helps. I am trying to learn this, if it doesnot help you please tell me.

Categories : Iphone

Nokia S40 custom header bar
In my application it's work: protected void createTitle(Form f) { Container titleContainer = f.getTitleArea(); titleContainer.removeAll(); titleContainer.setLayout(new BorderLayout()); titleContainer.addComponent(BorderLayout.CENTER, titleBarContainer); titleContainer.addComponent(BorderLayout.EAST, labelLogo); }

Categories : Java

Displaying Map on Lwuit nokia s40
Have you taken a look on this tutorial? LWUIT MAP I think that this can solve your problem.

Categories : Java

Different SearchBox results from HERE API and old Nokia OVI API
This can be done by adding the showAddress parameter. Taking your example the following search box: var fromSearchBox = new nokia.places.widgets.SearchBox({ targetNode: "fromSearchBox", template: "fromSearchBox", map: map }); Returns the following responses to "Oxford Street" for a search centered on London Results Oxford Street Oxford Street John Lewis Oxford Street Adding in the showAddress parameter as shown: var toSearchBox = new nokia.places.widgets.SearchBox({ targetNode: "toSearchBox", template: "toSearchBox", map: map, suggestions : {showAddress: true} }); And the "Oxford Street" query gives me: Results Oxford Street Southampton, SO14 3, United Kingdom Oxford Street Northwo

Categories : Javascript

Using Nokia AT command in VB 2010
0) open read before write, try switch: SerialPort1.Open() TextBox1.Text = SerialPort1.ReadLine() SerialPort1.WriteLine("AT") SerialPort1.WriteLine("AT+CNUM") SerialPort1.Close() 1) send ( ) -- end of string 2) use command with view resultats: call (ATD<number>); busy (ATH); response call (ATA) -- for view this 2 commands to call from phone to modem; other (blink/switch off radio/play tone) disclaimer: VB don't know, i'm using python on Linux; sorry for my dirty english.

Categories : Vb.Net

nokia web apps playing sound
Your code does not work because the embed tag is not supported in S40 Web Apps. This page lists all the supported tags. The example given in this FAQ instructs you to use the loadUrl method. There is no way to play a sound in the background of the app. The following example will download the file and the user will play it in the native audio player. Example: <a href="#" onclick="mwl.loadURL('path_to_file.mp3');">Play sound</a>

Categories : Javascript

Nokia Here Maps Heatmap Overlay holes
My feeling is that this is a bug within the canvas rendering, as I have come across a similar issue before (but with overlays). A workaround suggested there seems to work for me here as well. I never get any overlay rendering problems when using DOM mode - it seem to get this problem only seems to occur in Canvas mode. To force the library to use the DOM mode, change the <script> tag by appending &map=js-p2d-dom as shown. Code: <script type="text/javascript" charset="UTF-8" src="http://api.maps.nokia.com/2.2.4/jsl.js?with=all&map=js-p2d-dom"> </script>

Categories : Javascript

Nokia Lumia 920 supports navigator.geolocation?
By default the Nokia Lumia 920 runs an IE10 browser which does support HTML5 geolocation. You can check this using the link on w3schools.com. Clicking the try it button, it prompted me for my location as you would expect. The site also helpfully provides the code. The HERE Maps API for JavaScript offers the nokia.maps.positioning.Manager which wraps this nicely and also works in mobile - try the example here

Categories : Javascript

Implementing Birds Eye map mode in WP8 Nokia Maps
Specify the MapCartographicMode for the map style that you want, and then set the Pitch property to a value between 0 and 180. 0 is the default value, which gives the flat map view. If you use a value around 60, this gives you a view that is more like the driving mode found in SatNav apps. Just tweak it to give the effect that you want. If you want something more akin to the Bing "Birds Eye" view, then you will need to adjust the pitch based on the ZoomLevel (there is a ZoomLevelChanged or you could bind it to a view model property).

Categories : Windows Phone 8

How to get default mail credentials in nokia s40 phones ?
No, but Nokia supports platformRequest("mailto:") for some S40 devices. http://www.developer.nokia.com/Resources/Library/Java/#!developers-guides/invoking-applications/invoking-applications-in-java-me.html

Categories : Java

Nokia Maps - Change Circle Coordinates
Whereas the Marker object has a coordinate property, the Circle object has a radius and center. You can alter the center property as shown: circle.set("center", [49.44, 8.44])

Categories : Javascript

J2ME http post error - Nokia Asha SDK 1.0
Please find below an example. It will helpful to somebody. It is tested in Nokia Asha 501, It is perfectly working. import javax.microedition.midlet.*; import javax.microedition.lcdui.*; import javax.microedition.io.*; import java.io.*; public class GetNpost extends MIDlet implements CommandListener { private Display display; // Reference to Display object private Form fmMain; // The main form private Alert alError; // Alert to error message private Command cmGET; // Request method GET private Command cmPOST; // Request method Post private Command cmExit; // Command to exit the MIDlet private TextField tfAcct; // Get account number private TextField tfPwd; // Get password private StringItem siBalance;// Show account balance private

Categories : Java

Is there a way to associate the reponse and query while invoking Nokia reverse geocoding api?
You can do that with any JavaScript callback by using immediately invoked function expression. Your code should look something like that: searchManager.reverseGeoCode({ latitude: lat, longitude: lng, onComplete: (function(localID) { return function(data, status, requestId) { processResults(data, status, requestId, localID); }; })(myID) }); To understand this example you need good comprehension of closures and above mentioned immediately invoked function expressions syntax.

Categories : Javascript

Javascript API - calling nokia.maps.map.Display with zoomLevel causes map container div to fill entire page
Some sort of combination of either: percentages with position absolute such as width:100%; height:90%; left: 0; top: 1em; position: absolute; fixed pixel size on the height e.g. width:600px; height:600px; In other words something like this: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> <meta http-equiv="X-UA-Compatible" content="IE=7; IE=EmulateIE9" /> <title>Map with a DIV</title> <meta name="description" content="" /> <meta name="keywords" content="" /> <meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> <script language="j

Categories : Javascript

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#

Reading a json url file in Android returns blank screen on my phone - nothing's displayed on phone
Try something like this: JSONObject jObj; JSONArray data = null; JSONObject jsonOffer; jObj = new JSONObject(data); data = jObj.getJSONArray("offers"); jsonOffer=data.getJSONObject(0); Hope it Helps!!

Categories : Android

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

WP8 Nokia Here Maps: Get directions between two locations using official Here Maps app
You can either use the URI Association Schemes: directions://v2.0/route/destination/?latlon=52.53,13.41&origin.latlon=52.53,13.41&mode=car or the HERE Launchers: DirectionsRouteDestinationTask routeTo = new DirectionsRouteDestinationTask(); routeTo.Destination = new GeoCoordinate(60.35, 24.60); routeTo.Mode = RouteMode.Car; routeTo.Show(); More information about these API here and a demo application here.

Categories : Windows Phone 8

Find app on computer and send to phone via phone number
You would need to implement something like twilio on your website. They provide an API that you can use to send text messages. It looks as though pricing starts at around 1 cent per message. They provide libraries in a variety of languages to help you get started.

Categories : Android

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#



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