Database Tutorial

  • Replies:8
  • OpenNot stickiedAnswered
  • Forum posts: 69

Aug 23, 2016 8:22:46 AM via Website

How to simply store data from android form to local database??

  • Forum posts: 16

Aug 26, 2016 8:32:50 AM via Website

If it's simple data you can use SharedPreferences (developer.android.com/training/basics/data-storage/shared-preferences.html). Otherwise, you'll want to use a SQLite3 database.

  • Forum posts: 69

Aug 26, 2016 8:52:21 AM via Website

I'm using xampp and and i need to store the data to the xampp database..(angel)

  • Forum posts: 16

Aug 26, 2016 2:02:24 PM via Website

You can use HttpClient from Android to POST data to your XAMPP server. From XAMPP you can save to your local MySQL database. Be sure you're encrypting your data in the way.

  • Forum posts: 69

Aug 26, 2016 2:12:55 PM via Website

Thank you....
But what is the URL that I want to specify in the Java code???
i think localhost/android/registration won't work..:?

  • Forum posts: 79

Oct 6, 2016 1:58:11 PM via Website

You can utilize HttpClient from Android to POST information to your XAMPP server. From XAMPP you can spare to your neighborhood MySQL database. Make certain you're encoding your information in the way.