How to save the current location into database when button was clicked?

  • Replies:1
  • OpenNot stickiedUnanswered
  • Forum posts: 1

Jun 7, 2018, 8:05:02 AM via Website

I'm creating a project that need to get the current location of the user and when the user clicked the specific button the current location, date and time will automatic save into database and in another activity you can see the list or history of your location log

can anyone please help me with the database I already know how to get current location of the user creating database for the current location to be saved is the only my problem can anyone please help me?

Reply
  • Forum posts: 864

Jun 7, 2018, 10:39:37 AM via Website

If you already know how to get current location, you may create a database in design time and build the db into your app package.
The db should include at least one table for records. In your click event handler codes, just execute insert sql command to insert a record with current location info as well as current date and time.

— modified on Jun 7, 2018, 11:30:28 AM

Helpful?
Reply

Recommended articles