Please introduce my first Android Application, Sharee (Sharia Economics Education) now on Play Store.Īnd here is My post (in Bahasa) about Sharee. This is the app gonna be look like in real device running Android 2.3 OS And the query result stored in array which then will be displayed in html with listview style.įinally, you can run it on your android device or emulator. When successCB() run, it does another transaction to the database which will retrieve all record from SoccerPlayer table. Tx.executeSql('DROP TABLE IF EXISTS SoccerPlayer') If it failed, errorCB() function will be called, otherwise successCB() will. Then when the device ready it create connection to the database and do the transaction.įunction populateDB() run to create the table and insert some record into it. Ok, then how this thing work ?įirst thing first, you’ll have to add listener when the device is ready. This javascript code are used for connecting the app to the SQLite Database. $('#SoccerPlayerList').append(''+row+'Club '+row+'') Add jQuery Mobile app that uses the backend and invokes the Barcode Scanner. Tx.executeSql('SELECT * FROM SoccerPlayer',querySuccess,errorCB) function will be called when process succeed ![]() function will be called when an error occurredĪlert("Error processing SQL: "+err.code) By default it supports all options and operations that are available in a standard select box, but with added flexibility. Tx.executeSql('INSERT INTO SoccerPlayer(Name,Club) VALUES ("Van Persie", "Arsenal")') Select2 was designed to be a replacement for the standard
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |