• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

When checkbox selected, start Location updates

 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello, I need help with a Weather application project for my school in android development: when the checkbox (preferences.xml) is checked, I need to start location update and when unchecked stop it.
I must have the android.lcation.LocationListener in a inner class.
The syntax is provider by the school, and I have been working on it for some time, but there are still a few things that I don't get:
How can I retrieve the JSON  information via my local location? and how do I set it with the checked box?
Here is my full code:

 
Eli Kook
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have found the solution if anyone will be interested, here's my git:
GeoWeatherApp
reply
    Bookmark Topic Watch Topic
  • New Topic