This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CREATE TABLE `countries` ( | |
| `country_code` varchar(2) NOT NULL default '', | |
| `country_enName` varchar(100) NOT NULL default '', | |
| `country_arName` varchar(100) NOT NULL default '', | |
| `country_enNationality` varchar(100) NOT NULL default '', | |
| `country_arNationality` varchar(100) NOT NULL default '', | |
| PRIMARY KEY (`country_code`) | |
| ) ENGINE=MyISAM DEFAULT CHARSET=utf8; | |
| -- | |
| -- Dumping data for table `countries` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <select name="nationality"> | |
| <option value="">-- select one --</option> | |
| <option value="afghan">Afghan</option> | |
| <option value="albanian">Albanian</option> | |
| <option value="algerian">Algerian</option> | |
| <option value="american">American</option> | |
| <option value="andorran">Andorran</option> | |
| <option value="angolan">Angolan</option> | |
| <option value="antiguans">Antiguans</option> | |
| <option value="argentinean">Argentinean</option> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Clean up the media player by releasing its resources. | |
| */ | |
| private void releaseMediaPlayer() { | |
| // If the media player is not null, then it may be currently playing a sound. | |
| if (mMediaPlayer != null) { | |
| // Regardless of the current state of the media player, release its resources | |
| // because we no longer need it. | |
| mMediaPlayer.release(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8"?> | |
| <!-- Layout for a single list item --> | |
| <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
| xmlns:tools="http://schemas.android.com/tools" | |
| android:layout_width="match_parent" | |
| android:layout_height="@dimen/list_item_height" | |
| android:background="@color/tan_background" | |
| android:orientation="horizontal"> |