Database Tutorial

  • Replies:8
  • Answered
Linu S.
  • Forum posts: 77

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

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

Reply
1 Pixel Army
  • 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.

James WatsonLinu S.

Reply
Linu S.
  • Forum posts: 77

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)

damponting44

Reply
James Watson
  • Forum posts: 1,585

Aug 26, 2016, 10:19:13 AM via Website

What's xampp? Some development technology for hybrid mobile app?

Download size < 0.15 MB. But also accurate enough, ad-free & free.
The minimalist app available on Play Store: https://goo.gl/ws42fN
Blog: https://okblackcafe.blogspot.com Your 5-star is appreciated.

damponting44

Reply
Linu S.
  • Forum posts: 77

Aug 26, 2016, 10:43:54 AM via Website

xampp means local server.

damponting44

Reply
van hoa
  • Forum posts: 27

Aug 26, 2016, 1:51:37 PM via Website

why not use mysql?. it was available in XAMPP

damponting44

Reply
1 Pixel Army
  • 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.

damponting44Linu S.

Reply
Linu S.
  • Forum posts: 77

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..:?

damponting44

Reply
damponting44
  • Forum posts: 70

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.

Reply