Get the country in iOS

Hi,
In my iOS app Capabilities.languages[0] is returning only the language, not the country code.
Does Adobe Air provide any way to access to the country code in this case?
thanks!

No.
You have to use an online geolocation service and send it the IP.

Similar Messages

  • How to get the Country Name details always in Eng while using the SForms

    Hi Group,
    I have a requirement as under:
    the Smartform has to display the COUNTRY NAME - always and it should be printed in ENGLISH only.
    The Smartform is having a Alternative option(for printing the Address) and for YES part(for certain countries) - the fm "ADDRESS_INTO_PRINTFORM" is being used and for the NO(for the rest of the countries) part an ADDRESS TEMPLATE is being used....
    The issues are:
    - the fm 'ADDRESS.......FORM" is printing the COUNTRY Name for certain cases and for the rest it is not...
    - the Address template has no option to do any manipulation on the COUNTRY Name to come
    how can have the COUNTRY NAME to appear in both the cases(YES part and NO part) printed in ENGLISH always?
    I tried for a USEREXIT "EXIT_SAPLSADR_900" but still not able to tweak it and get the COUNTRY NAME always in ENGLISH.
    Kindly provide your valuable inputs.
    Regards,
    Vishnu.

              Hi Laura Taylor ,
              Thanks for your Reply and Thanks for ur Guidelines.
              Thanks & Regards
              Subu.
              "Laura Taylor" <[email protected]> wrote:
              >
              >Unfortunately, there is no way to determine the country unless the client
              >indicates
              >that to you directly(i.e. via a form input value). However, there are
              >two request
              >headers that can help you determine the language preference(s) of the
              >client:
              >
              >Accept-Language -- Specifies the language preference(s) the client prefers
              >to
              >receive.
              >Accept-Charset -- Identifies the charset(s) the client understands.
              >
              >Laura
              >Developer Relations Engineer
              >BEA Support
              >
              >
              >"Subu" <[email protected]> wrote:
              >>
              >>Hi ,
              >> i have a requiremtn in which i want to display the country name
              >from
              >>where
              >>the user browse our webpages . for example if he is browsing from us
              >>, then i
              >>should display US and if he is browsing from UK , then i should dispaly
              >>"uk" etc...
              >>can anyone guide me how to proceed .
              >>
              >>thanks in advance
              >>
              >>Regards
              >>Subu
              >
              

  • To get the country code...

    Hi...I need some help...I need to get the country code of the client browsing.For example..If the server is located in US and the client is browsing from China...the server shoulod know that this client is from China,,how to get the client's country code in the server.
    From URL ,,its explicit,,i,e if th URL reads as www.dfd.co.ch,,there from url i can get the country...but if the URL is same for all,,then how to get the end users country code???
    Please let me know asap.
    regds
    Subhash

    You can only take a "best guess" judging upon their browser locale settings. They client browser sends that with the "Accept-Language" header.
    API methods are in ServletRequest: request.getLocale() and request.getLocales();

  • HT201210 where can i get the .ipsw for ios 6

    where can i get the .ipsw for ios 6

    Adobe Photoshop 6.0 Classroom in a Book: Sandee Adobe Creative Team: 9780201710168: Amazon.com: Books

  • HT4623 I have ios 5.1 and according to my ipad there are no ios updates but yet there are apps I would like to use that require 6.0 or later.  how do i get the most recent ios 7.0.3?

    how and where do I the the latest IOS for IPAD!!!

    Fredronalderman wrote:
    there are apps I would like to use that require 6.0 or later.  how do i get the most recent ios 7.0.3?
    Finding iOS Apps Compatible with Older Devices
    App Store: Downloading Older Versions of Apps

  • How do I get the Numbers application iOS 7.0.4 unstuck updating on iPad 2?

    How do I get the Numbers application unstuck in updating on iPad 2?   After the last update of iOS 7 it started acting up. Then weeks ago (in November) I opened the application right after iOS 7.0.4 update and while accessing a file it got stuck, some files are white and I can access them. Other files are gray and I can not open them. The application goes white when it first opens up instead of just opening then there is a delay, then it eventually opens.  It is stuck updating.
    I have tried various things. 1) Rebooting, 2) hard reboot (holding down the off button and home key until the apple icon appears), 3) tried putting it in Airplane mode-reboot-then connect to computer and iTunes-then rebooted. 4) tried opening a file in another application- I get an error message that says : can't open spreadsheet- this spreadsheet is updating, wait for it to finish then try opening. 5) sending spreadsheet- I get an error message that says : this spreadsheet is updating, wait for it to finish then try sending.  None of these have worked.
    I am at my wits end I use these files for my business and I am self-employed, some files I can't access at all, this is very serious for me. If you know how to fix this please help me.  I transferred all of my NECESSARY and IMPORTANT client files to Numbers from Excel, I've been using Numbers successfully for about 1 year.

    Better to post your topic in the developer community >  Developer Forums: Apple Support Communities

  • How to get the country name from IP address?

    Hello All,
    I am able get the IP address of the visitors by using
    String ipAddress = request.getRemoteAddr(); .
    I'm also getting the host name by using
    InetAddress iaddress = InetAddress.getByName( ipAddress );
              String ipaddr = iaddress.getHostName();
    But... I'm not able to find the Country's name from which that IP is coming from.
    Is there any class in JAVA that will help me find the respective country's name??
    Thank u!!!

    There is no magic way to tell country from IP address. You can guesstimate the country using a IP-to-country mapping database, with some accuracy.
    I use the free version of the GeoIP (google for it) database; it is a file that you download, and they have a Java API or you can roll your own. They also have better quality databases for a fee, and apparently a web service. I prefer a file because it's faster and more reliable to check against a memory data structure than to make a long distance TCP/IP call. The web service isn't magic either; it is just an interface to the same database, and it doesn't give 100% accuracy, nothing will. If you use the file you may want to make it a monthly to-do item to download the latest version. There are other similar databases around too; google for "geolocation".

  • How to get the country to print when printing envelopes or labels

    Has anyone figured out how to configure Address Book so that the country field can be printed on envelopes or labels? Haven't found any pref or setting to get it to show up on those items.
    OT

    Duh! I didn't see the checkbox for printing Country. Really have to get my glasses checked.

  • FM CLAF_CLASSIFICATION_OF_OBJECTS  to get the Country characteristics .

    Hello Gurus,
    I am trying to use the FM CLAF_CLASSIFICATION_OF_OBJECTS to get the characteristics name and the corresponding value by Importing-CLASSTYPE = '023'
                    OBJECT and OBJECTTABLE = 'MCH1' etc.
    The table T_OBJECTDATA is returning all the characteristics. I have to use only the country characteristics like (US, JP).
    Can any one suggest what will be the key field to read the table T_OBJECTDATA?
    Regards
    Soocharita

    Hi,
    In T_OBJECTDATA there is a field called ATINN which is a no corresponding to ATNAM, the characteristics name in table CABN. Please check the ATINN corresponding to your requirement.
    Regards
    Prasenjit

  • Why can't ipod touch 1st gen get the most recent ios update?

    i have tried to update my ipod touch but it doesnt work. i dont understand why the 1st generation cannot get the most recent update.

    Because the 1G iPod does not have the hardware necessary to support higher than iOS 3.1.3

  • How to get the Country name from where the user access the website ?????

              Hi ,
              i have a requiremtn in which i want to display the country name from where
              the user browse our webpages . for example if he is browsing from us , then i
              should display US and if he is browsing from UK , then i should dispaly "uk" etc...
              can anyone guide me how to proceed .
              thanks in advance
              Regards
              Subu
              

              Hi Laura Taylor ,
              Thanks for your Reply and Thanks for ur Guidelines.
              Thanks & Regards
              Subu.
              "Laura Taylor" <[email protected]> wrote:
              >
              >Unfortunately, there is no way to determine the country unless the client
              >indicates
              >that to you directly(i.e. via a form input value). However, there are
              >two request
              >headers that can help you determine the language preference(s) of the
              >client:
              >
              >Accept-Language -- Specifies the language preference(s) the client prefers
              >to
              >receive.
              >Accept-Charset -- Identifies the charset(s) the client understands.
              >
              >Laura
              >Developer Relations Engineer
              >BEA Support
              >
              >
              >"Subu" <[email protected]> wrote:
              >>
              >>Hi ,
              >> i have a requiremtn in which i want to display the country name
              >from
              >>where
              >>the user browse our webpages . for example if he is browsing from us
              >>, then i
              >>should display US and if he is browsing from UK , then i should dispaly
              >>"uk" etc...
              >>can anyone guide me how to proceed .
              >>
              >>thanks in advance
              >>
              >>Regards
              >>Subu
              >
              

  • I have an iPod Touch (4th generation) and I am not able to get the new Apple iOS 5 software update...

    Hello all,
    I need some assistance with downloading the new iOS 5 software for my iPod touch 4th generation (32GB). Once connected, my iTunes says that a newer version is available and when I click on "update," the standard boxes appear and when i click on "download and update," it appears to download just as expected, but after a few minutes, an error box pops up and says that my "network connection timed out" and to "try again later"...
    I have tried to get around this in every which way possible, but the same error box pops up each time. I have checked AND double checked my network and its connections and I am 100 percent sure they are stable. I have downloaded the latest version of iTunes (10.5). I even re-installed it, just in case. I have also tried clicking the "download only" option instead of "download and update"... No different.
    In previous discussions, I have inferred that having my media on an external hard drive may cause some issues...? If this is the case, please note that all my media is on an external hard drive that connects to my computer via USB.
    I am looking for any and all advice to help resolve this issue as the my warrenty has expired and I do not want to pay for Apple Support. : ) plus, iOS 5 looks so cool and I really really want it!!!!
    Please Help!!
    Sincerely,
    Deanna

    I disabled all my computer's firewalls and sure enough, IT WORKED!! My iPod is updated and just now finishing restoring! Thank you SOOOO SOOO much. : D

  • Since i have downloaded the new IOS 8 my ipod touch 5G has been much slower, is there any way to downgrade and get the MUCH better IOS 7 back?

    I have recently downloaded the new IOS 8 and it has made my Ipod much slower.
    is there any way to get IOS 7 back or a way to speed up IOS 8?

    Downgrading the iOS is not supported by Apple:
    Try:
    - Reset the iOS device. Nothing will be lost      
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings                            
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                               
    iOS: Back up and restore your iOS device with iCloud or iTunes
    - Restore to factory settings/new iOS device.                       

  • I Cant get the up grande  ios 6 for mi iPad, what can i do?

    O need help beca use i cant get iOS 6for mi iPad what can i do? Pelease help!

    If you have an early iPad 1G it won't run iOS 6 or later. You're running the latest version of iOS - 5.1.1.
    See the chart below to determine whether you can upgrade your device and what you can upgrade to. If you do not have a Software Update option present on your iDevice, then you are trying to upgrade to iOS 5 or higher. You will have to connect your device to your computer and open iTunes in order to upgrade.
    IPhone, iPod Touch, and iPad iOS Compatibility Chart
         Device                                       iOS Verson
    iPhone 1                                      iOS 3.1.3
    iPhone 3G                                   iOS 4.2.1
    iPhone 3GS                                 iOS 6.1.x
    iPhone 4                                      iOS 7.0.x
    iPhone 4S                                    iOS 7.0.x
    iPhone 5                                      iOS 7.0.x
    iPhone 5c                                     iOS 7.0.x
    iPhone 5s                                     iOS 7.0.x
    iPod Touch 1                               iOS 3.1.3
    iPod Touch 2                               iOS 4.2.1
    iPod Touch 3                               iOS 5.1.1
    iPod Touch 4                               iOS 6.1.x
    iPod Touch 5                               iOS 7.0.x
    iPad 1                                          iOS 5.1.1
    iPad 2                                          iOS 7.0.x
    iPad 3                                          iOS 7.0.x
    iPad 4                                          iOS 7.0.x
    iPad Mini                                      iOS 7.0.x
    iPad Air                                        iOS 7.0.x
    =====================================
    Select the method most appropriate for your situation.
    Upgrading iOS
       1. How to update your iPhone, iPad, or iPod Touch
       2. iPhone Support
       3. iPod Touch Support
       4. iPad Support
         a. Updating Your iOS to Version 6.0.x from iOS 5
              Tap Settings > General > Software Update
         If an update is available there will be an active Update button. If you are current,
         then you will see a gray screen with a message saying your are up to date.
         b. If you are still using iOS 4 — Updating your device to iOS 5 or later.
         c. Resolving update problems
            1. iOS - Unable to update or restore
            2. iOS- Resolving update and restore alert messages

  • I have the first generation iPad, how do I get the software update iOS 6?

    I have the first generation iPad and I'm trying to download apps but my device keeps telling me to download the iOS software update 6. When I go to updates in my settings it's saying my device is up to date with iOS 5.1.1, but it's saying I need the iOS 6. How do I upgrade my device if it's not showing iOS update 6?

    The first generation iPad cannot be updated past iOS 5.1.1
    You may still be able to get compatible versions fo the Apps by downloading the App to iTunes on a computer or another device that does support the current  App version using the same Apple Id you have on your iPad. With that done you can follow these instructions from your iPad to get a compatible version:
    App Store: Install the latest compatible version of an app
    http://support.apple.com/kb/ht5919

Maybe you are looking for