Android: Develop Data Entry and Export info to Text File


SKU: 1340712 Category: Tags: , ,


Introduction:The general structure of App is explained:a) MainActivity Class where the layout of user screen is defined.b) DatabaseHandler Class. Creation of database, insert and select queries. How Cursor works on android database.c) Generation of the CSV file.The intruction explains how important is to understand the layoutof the user screen to allocate space on each table and row forText and Data Entry fields. Also for buttons and the On Clickevent to execute an action like:a) Insert data entry to the database.b) Generate the text CSV file.The souce code and PDF with explanationis included in the section two of the course.Indexa) Structure of the Appb) TableLayout to Display Titles, Input Fields and Buttons.c) Properties for Rows on Table Layouts to Display Text, Edit Fields and Buttons.Structure concept to allocate Text, Edit and Button Fields inside the Rows of theTable.d) Actions to allocate each Field on the Rows and each Row inside the Tablee) Create Database Handler Classf) Initialization Methods of the DatabaseHandler.g) Insert and Select Statements in the Databaseh) Code for Function SelectData() on the MainActivity to get the results of the queryfrom the Database.i) Functions and Statements to generate CSV file from Database Query.j) Display and Orientation settings Initializationk) Run and Test Codel) Export the data from database to CSV filem) Exercise to build all the Pieces TogetherThe source code packed in the file has the structure to beimported in the Eclipse with Android Plug In IDE. The version used to compile thesource code is Eclipse JUNO. If you are using another version or IDE, the source filesare located on path: Inventory/src/com/com/example2/ex2 :