This file contains 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
// Set an item click listener on the ListView, which sends an intent to a web browser | |
// to open a website with more information about the selected earthquake. | |
earthquakeListView.setOnItemClickListener(new AdapterView.OnItemClickListener() { | |
@Override | |
public void onItemClick(AdapterView<?> adapterView, View view, int position, long l) { | |
// Find the current earthquake that was clicked on | |
EarthQuakeData currentEarthQuakeData = mAdapter.getItem(position); | |
// Convert the String URL into a URI object (to pass into the Intent constructor) | |
Uri earthquakeUri = Uri.parse(currentEarthQuakeData.getUrl()); |
This file contains 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
//*************************** Question 3 ************************************* | |
//define an instance of checkboxes linked to question 3 | |
Button btn3 = (Button) findViewById(R.id.button_check_Q3); | |
final CheckBox checkBox1 = (CheckBox) findViewById(checkbox3_1); | |
final CheckBox checkBox2 = (CheckBox) findViewById(checkbox3_2); | |
final CheckBox checkBox3 = (CheckBox) findViewById(checkbox3_3); | |
final CheckBox checkBox4 = (CheckBox) findViewById(checkbox3_4); | |
This file contains 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
package com.example.android.cheesequiz; | |
import android.content.Intent; | |
import android.os.Bundle; | |
import android.support.v7.app.AppCompatActivity; | |
import android.util.Log; | |
import android.view.View; | |
import android.widget.Button; | |
import android.widget.CheckBox; | |
import android.widget.RadioButton; |
This file contains 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
/** | |
* This Class is indented to manage some grades informations about a student. | |
* A teacher is able to set and get, grade notes relative to some courses the student follows | |
* | |
* @author (damir Males) | |
* @version (v1 02 juin 2017) | |
*/ | |
public class ReportCard | |
{ |
This file contains 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
package com.example.android.mymusicapp; | |
import android.content.Intent; | |
import android.os.Bundle; | |
import android.support.v7.app.AppCompatActivity; | |
import android.util.Log; | |
import android.view.View; | |
import android.widget.AdapterView; | |
import android.widget.ListView; |
This file contains 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
package com.example.android.mymusicapp; | |
import android.content.Intent; | |
import android.support.v7.app.AppCompatActivity; | |
import android.os.Bundle; | |
import android.util.Log; | |
import android.view.View; | |
import android.widget.AdapterView; | |
import android.widget.ListView; | |
import android.widget.TextView; |