// Path: Services/Services/app/src/main/java/qa/edu/qu/cse/cmps312/services/services/LocalLoggingService.java
// public class LocalLoggingService extends IntentService {
// 
//     public static String EXTRA_LOG = "qa.edu.qu.cse.cmps312.services.MESSAGE";
//     private static final String TAG = "LoggingService";
// 
//     public LocalLoggingService() {
//         super("LocalLoggingService");
//     }
// 
//     @Override
//     protected void onHandleIntent(Intent intent) {
// 
//         Log.i(TAG, intent.getStringExtra(EXTRA_LOG));
// 
//     }
// 
// }


import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import qa.edu.qu.cse.cmps312.services.services.LocalLoggingService;
package qa.edu.qu.cse.cmps312.services;



public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }

    public void buttonClicked(View view) {
        switch (view.getId()) {


            case R.id.local_logging_button:
                // Create an Intent for starting the LoggingService
                Intent startServiceIntent = new Intent(getApplicationContext(),
// Path: Services/Services/app/src/main/java/qa/edu/qu/cse/cmps312/services/services/LocalLoggingService.java
// public class LocalLoggingService extends IntentService {
// 
//     public static String EXTRA_LOG = "qa.edu.qu.cse.cmps312.services.MESSAGE";
//     private static final String TAG = "LoggingService";
// 
//     public LocalLoggingService() {
//         super("LocalLoggingService");
//     }
// 
//     @Override
//     protected void onHandleIntent(Intent intent) {
// 
//         Log.i(TAG, intent.getStringExtra(EXTRA_LOG));
// 
//     }
// 
// }


// Path: Services/Services/app/src/main/java/qa/edu/qu/cse/cmps312/services/MainActivity.java
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import qa.edu.qu.cse.cmps312.services.services.LocalLoggingService;

package qa.edu.qu.cse.cmps312.services;



public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }

    public void buttonClicked(View view) {
        switch (view.getId()) {


            case R.id.local_logging_button:
                // Create an Intent for starting the LoggingService
                Intent startServiceIntent = new Intent(getApplicationContext(),
                        LocalLoggingService.class);