Senin, 19 Oktober 2015

Koneksi Data Base SQLite (Mengunakan FireDAC) Delphi mobile (Android)

pertama :
untuk membuat aplikasi mobile (android) di delphi xe . sebelumnya harus download dulu deliphi y :v

kedua :
pilih file > new > firemonkey mobile device












ke tiga :
tambah kan komponen yang ada di gambar di bawah
lalu doble klik di componen FD conection dan pilih database sqlite 

  













ke empat :
atur propertis FD conection action > true
dan  propertis  Fd query   sql > 'select * from tabel' ;
tambahkan komponen Grid dan Binding sporce db klik kanan pilih living binding  lakukan seperti gambar













ke lima :
ke pallete  project > deployment  tambahkan databse sqlite anda .



ke enam :
tambah kan koding di komponen FD conection  propertis > event > Before conection












coba run ke device atau emulator
selesaideh gampang kan :D

2 komentar: