60 likes | 272 Views
IFS 234 – Server side application DEvelopment. TOPIC 3 – SERVER SIDE DATABASE APPLICATIONS AND MOBILE CLIENTS NOTES ON APPLICATION ARCHITECTURE. CLIENT AND SERVER architecture. Client / Mobile decive: Java (JRE 6 / 7) Eclipse with Android plug-ins (DEV) Android SDK’s (DEV)
E N D
IFS 234 – Server side application DEvelopment TOPIC 3 – SERVER SIDE DATABASE APPLICATIONS AND MOBILE CLIENTS NOTES ON APPLICATION ARCHITECTURE
CLIENT AND SERVER architecture Client / Mobile decive: Java (JRE 6 / 7) Eclipse with Android plug-ins (DEV) Android SDK’s (DEV) SQLite (android.database library) Web server: MySQL (mysqld service) Apache (httpd service) PHP / phpMyAdmin Apache SQLite Android Java MySQL PHP
CLIENT AND SERVER / Another architecture Client / Mobile decive: Web browser SQLite (library) Web server: MySQL (mysqld service) Apache (httpd service) PHP / phpMyAdmin PhoneGap Apache SQLite HTML5 Javascript JQuery MySQL PHP
EXAMPLE: Weather app • Server stores up-to-date weather information in a MySQL database • This information can be retrieved by calling a PHP function from Java code – the PHP function returns this information (format?) • Android Java: receive results from PHP call, and store this information in SQLite database • Now this information resides on mobile device, and can be displayed on screen
Web services AND API’s? • Using existing web services is helpful (and an easy way) for getting the data/information you need for your app • Example: weather services, news feeds • You can also look at using API’s (application programming interfaces) like the Twitter API, the Facebook API, etc.