How to read the current countries of device in iOS and Android?

See the topic!

I'm reading the current country of iPad and Android tablet.

I know that in iOS, it can be obtained here:

-GetCurrentCountryFromUserLocale (NSString *)

{

NSLocale * userLocale = [NSLocale currentLocale];

NSString * countryCode = [objectForKey:NSLocaleCountryCode userLocale].

Returns the country code;

}

But this, it will surely, build me a DONKEY? There must be a way to do it without needing a custom code?

For Android, I'm even more naïve!

Clues much appreciated, thank you.
G

UPDATE:

Android may be readable through this:

http://StackOverflow.com/questions/11293642/how-can-i-get-my-Android-device-country-code-w years-help-gps

But think there should be something in the Flex / AIR SDK?

You can use

new .actualLocaleIDName StringTools (LocaleID.DEFAULT)

It returns the locale. (en-GB for example)

Tags: Adobe AIR

Similar Questions

  • How to read the data in a device connected to the usb port

    Is there a class or object, or the piece of code in Java that is comparable to the PDQComm32.ocx and the mscomm32.ocx used in VB6? I need to know how to read the data of a device plugged into the usb port of the BBerry. Is it possible to use the BB to read data from a device via a usb cable?

    I'm new in Java and I'm looking for the opportunity to write a project to read the data in a device with this program that can turn on a BB instead of on a pc.

    Thank you

    Did you watch net.rim.device.api.system.USBPort?

    That's what the doc says:

    Provides access to the USB port of the device.

    Avoid using this class in applications, as it is not portable. On the contrary, if you need to access the USB port, use factory CLDC Connector to serve a connection.

    Rab

  • If I put a restriction of password which only allow customers who purchase print it (no copy or modification of the document) have an impact on the quality of the file when people open and read the file on mobile devices like phones and tablets?

    If I put a restriction of password that only allow users who buy to print it (no copies or the modification of the document allowed)-it will have no effect on the quality of the file when people open and read the file on mobile devices like phones and tablets?

    Some mobile devices won't be able to open it at all, but if it is open, the quality is not affected.  Please note and understand the warning you get when you set security: indeed, it is largely ignored by many apps.

  • How to get the current wording of the BlackBerry device with the BlackBerry App?

    Hello!

    I'm new to BlackBerry,

    Can u tell me pls, how to get the current language of the device using the program...

    PLS, suggest me...

    Locale.getDefaultForSystem () will give you the regional settings currently selected.

  • How to read the size of the current brush in javascript

    How can I read the current size of the brush in javascript?

    For either the brush or for example the clonestamp tool.

    I want to read the current value and change it to another within a script.

    function getCurrentBrushInfo() {
        var brsh = {};
        var ref = new ActionReference();
        ref.putEnumerated(charIDToTypeID("capp"), charIDToTypeID("Ordn"), charIDToTypeID("Trgt"));
        var currentBrush = executeActionGet(ref).getObjectValue(stringIDToTypeID("currentToolOptions")).getObjectValue(charIDToTypeID('Brsh'));
    
        brsh.diameter = currentBrush.getDouble(charIDToTypeID('Dmtr'));
        brsh.hardness = currentBrush.getDouble(charIDToTypeID('Hrdn'));
        brsh.angle = currentBrush.getDouble(charIDToTypeID('Angl'));
        brsh.roundness = currentBrush.getDouble(charIDToTypeID('Rndn'));
        brsh.spacing = currentBrush.getDouble(charIDToTypeID('Spcn'));
    
        return brsh
    }
    
  • How to read the VI Analyzer config file?

    Hello

    How to read the analuzer vi configuration file? I'm getting a lot of errors on the size of the front panel and I don't know what should be the size you want. Where is the maximum expected size of the specified front panel?

    Kaspar says:

    Hello

    How to read the analuzer vi configuration file? I'm getting a lot of errors on the size of the front panel and I don't know what should be the size you want. Where is the maximum expected size of the specified front panel?

    If you have VI Analyzer installed, you can load the configuration file and look at the section select the Tests. There is a test for the maximum size of front under front-> User Interface. The default value is the resolution of the current monitor of the PC (including multiple monitors). You can change to the desired option.

  • How to read the contents of the attachments to the record listener?

    Hi all

    We have a blackberry user interface application that implements FolderListener. The messagesAdded(FolderEvent e) public void in the record listener method is called whenever a new message arrives on the device.

    Now, there are some emails that will also spare.

    Can someone tell me how to read the contents of the attachment?

    I can read correctly the content of the body of the email.

    Our code to handle the arrival of e-mail for your reference is mentioned below.

    public class MyUIApplication extends UiApplication implements FolderListener
    {
        public void messagesAdded(FolderEvent e) {
            Message orginalMessage = e.getMessage();
    
            Folder messageFolder = orginalMessage.getFolder();
    
            if (e.getMessage().isInbound() == true) {
    
                String sender = orginalMessage.getFrom().toString();
                String subject = orginalMessage.getSubject();
                String body = orginalMessage.getBodyText();
    
                String attachmentContent = ""// Read atachment content here?
    
                // some more code
            }
        }
    }
    

    Any help in this regard will be appreciated.

    Thank you.

    There is no way to prevent a menu item to be added to an AttachmentHandler.  When a user clicks your menu item will be called the run method.

    If you have registered an AttachmentHandler for your type of attachment and the prefix the file name of the attachment with x-rimdevice, you would be able to access its contents of in a FolderListener.

  • How to read the papers of ucs tech support

    Hi team

    Can you please tell me how to read the newspapers of ucs tech support to find out hardware problems

    Greetings.

    Your question is probably something that is difficult to address in this format.

    Hardware and firmware is so rapidly changing, so are the various capabilities of diagnosis (and how, when, where they write to newspapers).  I think that it would be virtually impossible to maintain a full guide updated content of tech support file and how to interpret them.

    That being said, there are some more frequent for both blade/UCSM and stand alone C series servers such as SALT that connects usually record the major mistakes such as chess DIMM, HD failures, etc.

    There are general troubleshooting guides such as http://www.cisco.com/c/en/us/td/docs/unified_computing/ucs/ts/guide/UCSTroubleshooting/UCSTroubleshooting_chapter_0111.html

    There are also courses that correspond to the review DCUCT 642 - 035 http://www.cisco.com/c/en/us/training-events/training-certifications/exams/current-list/dcuct.html entering some details by looking at newspapers, among other things.

    Is there some hardware problems that you try searching?  You have some sort of polling app that parses the files you are trying to Setup alerts for, etc.?

    Thank you

    Kirk

  • I have Adobe Photoshop version 12.0.4x64 - how updated to the current version?

    I have Adobe Photoshop version 12.0.4x64 - how updated to the current version?

    Beginning of the updates here and product selection, read to see if you need to install updates in the order of the numbers, or if updates are cumulative for the product http://www.adobe.com/downloads/updates/

  • How to read the files on time capsule

    How to read the files on time capsule from iPad?

    Thank you

    Using an application like navigation on the iPad. More info here:

    Stratospherix - FileBrowser - overview

  • How to read the status of User1 DIP-switch with a cRIO FPGA chassis?

    How to read the State of the DIP switches on a FPGA cRio chassis?

    I work with a cRIO 9022... My idea is to put the system in "service" mode with USER1 switch to IT and communicate with the FPGA via the FPGA - GUI (VI) on the host computer instead via the RT module that is used in normal conditions.

    Any ideas? Unfortunately, I don't have an unused channel on the left... .and (as I know) cannot use the interface RS232 of FPGA.

    Many thanks in advance,

    Luke

    Hi, this is the correct information. You cannot read the FPGA of DIP-switch status. The only thing you could do is to use the function of Reading Switch.vi located under the range of functions-> real-> utilities RT time

    It's how you probably know side host RT and not the FPGA.

    Cordially Virginia

  • How to read the value of list boxes by iteration in a loop For?

    I have a lot of list boxes on the front of my VI. I want to know how to read the value of this combo with a loop boxes For. The point is that I don't know how to get the reference of each combo box in a loop.

    Any information would be welcome. Thank you!

    su27 wrote:

    I have a lot of combo boxes on the front of my VI [...]

    Be sure to close the references that you have finished with them.

  • How to start the assessment without a device

    Hello

    I downloaded the evaluation version.

    How to start the assessment without a device?

    Thank you

    DV63

    Hi DV63,

    Welcome to the Forums EITHER!

    If you downloaded an evaluation version of LabVIEW your 30 day trial must begin immediately after being invited to enter a serial number. You can choose not to enter a serial number and this will begin your trial period. I recommend that you install OR-DAQmx device drivers; It is a software that allows you to communicate with the hardware from National Instruments DAQ. However, this facility will be particularly useful because it allows you to simulate an Instrument with the measurement and Automation Explorer (MAX); This means that you can immediately start the signals in LabVIEW.

  • How to read the date and time of a file by labview information

    How to read the date and time of a file by labview information? for example, time created and updated time.

    The similar question had already spoken here (this is the old thread but still seems topical):

    http://forums.NI.com/T5/LabVIEW/file-date-created/TD-p/109836

  • How to read the host name or serial number cRIO locally

    I have not worked with cRIO and decided to ask for help.  (o).

    I don't know about the screws that allow to access this information from a connected Windows machine, however, I want to retrieve and display this information on remote panels.  But I cannot determine how to read the cRIO hostname or the serial number of the software running on the cRIO?

    Thanks for the help.

    James

    This could help.

Maybe you are looking for

  • HOW DO PARTS OF A SPREADSHEET LOCKING

    I need to lock the parts of a spreadsheet in numbers so that person don't mess the formulas?

  • How to test if the pc is connected to the TCP/IP protocol?

    Hello I have a VI how should the data received from another PC, using a TCP/IP connection. My VI could connect, receive data, but if I lose the connection im not able to reconnect, because I do not know how to test if my pc is connected to the other.

  • RAID vs AHCI when installing window?

    If Windows 7 installed in RAID mode, would be AHCI available on BIOS or not? If I want available for SSD AHCI, RAID setting would disable AHCI function during the installation of window? Does anyone have any suggestions?Thanks in advance for your sug

  • BlackBerry smartphones can not receive Hotmail on blackberry

    I read in the threads related to e-mail on this forum and have worked with Blackberry tech support people Sprint who assure me that there is an unknown problem on the side of the fence hotmail.  When I had my blackberry I got all my hotmail sent to t

  • Lightroom mobile app must be opened for CC to synchronize?

    I started using Lightroom Mobile and downloaded > 600 images from my phone, which must be synchronized to the computer and Lightroom CC.It seems that everything in the middle of download of CC images, no more images are synchronized. I check my accou