1. Download our Official Android App: Forums for Android!

Apps App that gets GPS coordinates and Phone language(Locale)

Discussion in 'Android Development' started by directora, May 3, 2012.

  1. directora

    directora Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    3
    Joined:
    Apr 12, 2012

    Apr 12, 2012
    3
    0
    5
    Hi everyone.

    I'm a new in android developing.

    I need help for one simple app.

    I need an app which get GPS coordinates of the device(if GPS is disabled - get last known location coordinates) and also get the language of the device(Locale).

    When I start the app, it will appear a button with link to website. Clicking that button will open the default browser and go to website(set by me). That website will use the GPS coordinates(Long/Lat) and language of the device to show information on that language and somethings near this coordinates.

    Can anyone help me with this?
    If anyone have some code or idea - please share it with me.

    Thanks to everyone!

    Greets,
    Jordan.
     

    Advertisement

  2. RichSz

    RichSz Not Entitled
    Rank:
    None
    Points:
    313
    Posts:
    2,086
    Joined:
    Jul 9, 2010

    Jul 9, 2010
    2,086
    1,173
    313
    Male
    Software Engineer
    Between Imladris and Lothl
    Welcome to the Forums, directora!

    I moved your thread into the Application Development forum so hopefully you can get some help!
     
  3. Stigy

    Stigy Some say...
    Rank:
    None
    Points:
    413
    Posts:
    4,100
    Joined:
    Nov 5, 2009

    Nov 5, 2009
    4,100
    3,023
    413
    Male
  4. rahules

    rahules Well-Known Member
    Rank:
    None
    Points:
    43
    Posts:
    152
    Joined:
    Aug 30, 2011

    Check out
    Locale
    to know about getting the phone's locale.
    Locale.getDefault() and Locale.getDefault().getLanguage() would help you.

    Also look up on "WebView" for displaying a web page
     
  5. directora

    directora Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    3
    Joined:
    Apr 12, 2012

    Apr 12, 2012
    3
    0
    5
    I made this app. Thanks of all of you for the tips.
     

Share This Page

Loading...