diff --git a/apk/AtypicalInterComponentCommunication/addAction1.apk b/apk/AtypicalInterComponentCommunication/addAction1.apk new file mode 100755 index 00000000..9d9d7494 Binary files /dev/null and b/apk/AtypicalInterComponentCommunication/addAction1.apk differ diff --git a/apk/AtypicalInterComponentCommunication/addAction2.apk b/apk/AtypicalInterComponentCommunication/addAction2.apk new file mode 100755 index 00000000..5479abfe Binary files /dev/null and b/apk/AtypicalInterComponentCommunication/addAction2.apk differ diff --git a/apk/AtypicalInterComponentCommunication/requestLocationUpdates.apk b/apk/AtypicalInterComponentCommunication/requestLocationUpdates.apk new file mode 100755 index 00000000..331d979a Binary files /dev/null and b/apk/AtypicalInterComponentCommunication/requestLocationUpdates.apk differ diff --git a/apk/AtypicalInterComponentCommunication/requestNetwork.apk b/apk/AtypicalInterComponentCommunication/requestNetwork.apk new file mode 100755 index 00000000..3f742884 Binary files /dev/null and b/apk/AtypicalInterComponentCommunication/requestNetwork.apk differ diff --git a/apk/AtypicalInterComponentCommunication/send.apk b/apk/AtypicalInterComponentCommunication/send.apk new file mode 100755 index 00000000..14abc6e1 Binary files /dev/null and b/apk/AtypicalInterComponentCommunication/send.apk differ diff --git a/apk/AtypicalInterComponentCommunication/sendIntent.apk b/apk/AtypicalInterComponentCommunication/sendIntent.apk new file mode 100755 index 00000000..cba66ca2 Binary files /dev/null and b/apk/AtypicalInterComponentCommunication/sendIntent.apk differ diff --git a/apk/AtypicalInterComponentCommunication/sendTextMessage1.apk b/apk/AtypicalInterComponentCommunication/sendTextMessage1.apk new file mode 100755 index 00000000..f812461e Binary files /dev/null and b/apk/AtypicalInterComponentCommunication/sendTextMessage1.apk differ diff --git a/apk/AtypicalInterComponentCommunication/sendTextMessage2.apk b/apk/AtypicalInterComponentCommunication/sendTextMessage2.apk new file mode 100755 index 00000000..b9ed602b Binary files /dev/null and b/apk/AtypicalInterComponentCommunication/sendTextMessage2.apk differ diff --git a/apk/AtypicalInterComponentCommunication/setDeleteIntent.apk b/apk/AtypicalInterComponentCommunication/setDeleteIntent.apk new file mode 100755 index 00000000..86f944d5 Binary files /dev/null and b/apk/AtypicalInterComponentCommunication/setDeleteIntent.apk differ diff --git a/apk/AtypicalInterComponentCommunication/setExact.apk b/apk/AtypicalInterComponentCommunication/setExact.apk new file mode 100755 index 00000000..cf70bcea Binary files /dev/null and b/apk/AtypicalInterComponentCommunication/setExact.apk differ diff --git a/apk/AtypicalInterComponentCommunication/setExactAndAllowWhileIdle.apk b/apk/AtypicalInterComponentCommunication/setExactAndAllowWhileIdle.apk new file mode 100755 index 00000000..4c754db1 Binary files /dev/null and b/apk/AtypicalInterComponentCommunication/setExactAndAllowWhileIdle.apk differ diff --git a/apk/AtypicalInterComponentCommunication/setFullScreenIntent.apk b/apk/AtypicalInterComponentCommunication/setFullScreenIntent.apk new file mode 100755 index 00000000..476e190c Binary files /dev/null and b/apk/AtypicalInterComponentCommunication/setFullScreenIntent.apk differ diff --git a/apk/AtypicalInterComponentCommunication/setInexactRepeating.apk b/apk/AtypicalInterComponentCommunication/setInexactRepeating.apk new file mode 100755 index 00000000..19eb1a34 Binary files /dev/null and b/apk/AtypicalInterComponentCommunication/setInexactRepeating.apk differ diff --git a/apk/AtypicalInterComponentCommunication/setLatestEventInfo.apk b/apk/AtypicalInterComponentCommunication/setLatestEventInfo.apk new file mode 100755 index 00000000..746cf635 Binary files /dev/null and b/apk/AtypicalInterComponentCommunication/setLatestEventInfo.apk differ diff --git a/apk/AtypicalInterComponentCommunication/setOnClickPendingIntent.apk b/apk/AtypicalInterComponentCommunication/setOnClickPendingIntent.apk new file mode 100755 index 00000000..f1228683 Binary files /dev/null and b/apk/AtypicalInterComponentCommunication/setOnClickPendingIntent.apk differ diff --git a/apk/AtypicalInterComponentCommunication/setPendingIntentTemplate.apk b/apk/AtypicalInterComponentCommunication/setPendingIntentTemplate.apk new file mode 100755 index 00000000..5d1f3787 Binary files /dev/null and b/apk/AtypicalInterComponentCommunication/setPendingIntentTemplate.apk differ diff --git a/apk/AtypicalInterComponentCommunication/setRepeating.apk b/apk/AtypicalInterComponentCommunication/setRepeating.apk new file mode 100755 index 00000000..c773d04e Binary files /dev/null and b/apk/AtypicalInterComponentCommunication/setRepeating.apk differ diff --git a/apk/AtypicalInterComponentCommunication/setSendDataMessage.apk b/apk/AtypicalInterComponentCommunication/setSendDataMessage.apk new file mode 100755 index 00000000..bf8ef1b5 Binary files /dev/null and b/apk/AtypicalInterComponentCommunication/setSendDataMessage.apk differ diff --git a/apk/AtypicalInterComponentCommunication/setWindow.apk b/apk/AtypicalInterComponentCommunication/setWindow.apk new file mode 100755 index 00000000..4d4ba921 Binary files /dev/null and b/apk/AtypicalInterComponentCommunication/setWindow.apk differ diff --git a/apk/AtypicalInterComponentCommunication/startIntentSenderForResult.apk b/apk/AtypicalInterComponentCommunication/startIntentSenderForResult.apk new file mode 100755 index 00000000..ea1649c8 Binary files /dev/null and b/apk/AtypicalInterComponentCommunication/startIntentSenderForResult.apk differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/addAction1/.DS_Store b/eclipse-project/AtypicalInterComponentCommunication/addAction1/.DS_Store new file mode 100644 index 00000000..e912f0d7 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/addAction1/.DS_Store differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/addAction1/main/.DS_Store b/eclipse-project/AtypicalInterComponentCommunication/addAction1/main/.DS_Store new file mode 100644 index 00000000..410eaa7a Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/addAction1/main/.DS_Store differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/addAction1/main/AndroidManifest.xml b/eclipse-project/AtypicalInterComponentCommunication/addAction1/main/AndroidManifest.xml new file mode 100644 index 00000000..7f513162 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/addAction1/main/AndroidManifest.xml @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/addAction1/main/java/lu/uni/trux/raicc/addAction1/MainActivity.java b/eclipse-project/AtypicalInterComponentCommunication/addAction1/main/java/lu/uni/trux/raicc/addAction1/MainActivity.java new file mode 100644 index 00000000..c703dcb3 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/addAction1/main/java/lu/uni/trux/raicc/addAction1/MainActivity.java @@ -0,0 +1,52 @@ +package lu.uni.trux.raicc.addAction1; + + +import android.app.Activity; +import android.app.NotificationChannel; +import android.app.NotificationManager; +import android.app.PendingIntent; +import android.content.Context; +import android.content.Intent; +import android.os.Build; +import android.os.Bundle; +import android.support.v4.app.NotificationCompat; +import android.support.v4.app.NotificationManagerCompat; +import android.telephony.TelephonyManager; + + +public class MainActivity extends Activity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_main); + + String imei = ((TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE)).getDeviceId(); + Intent i = new Intent(this, TargetActivity.class); + i.putExtra("DroidBench", imei); + PendingIntent pi = PendingIntent.getActivity(this, 0, i, 0); + + this.createNotificationChannel(); + NotificationCompat.Builder b = new NotificationCompat.Builder(this) + .setSmallIcon(R.drawable.ic_launcher_background) + .setContentTitle("title") + .setContentText("content") + .setPriority(NotificationCompat.PRIORITY_DEFAULT); + b.addAction(R.drawable.ic_launcher_background, "title", pi); + NotificationManagerCompat n = NotificationManagerCompat.from(this); + n.notify(1, b.build()); + } + + private void createNotificationChannel() { + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { + CharSequence name = "channel"; + String description = "desc"; + int importance = NotificationManager.IMPORTANCE_DEFAULT; + NotificationChannel channel = new NotificationChannel("1", name, importance); + channel.setDescription(description); + NotificationManager notificationManager = getSystemService(NotificationManager.class); + notificationManager.createNotificationChannel(channel); + } + } + +} diff --git a/eclipse-project/AtypicalInterComponentCommunication/addAction1/main/java/lu/uni/trux/raicc/addAction1/TargetActivity.java b/eclipse-project/AtypicalInterComponentCommunication/addAction1/main/java/lu/uni/trux/raicc/addAction1/TargetActivity.java new file mode 100644 index 00000000..7544bac5 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/addAction1/main/java/lu/uni/trux/raicc/addAction1/TargetActivity.java @@ -0,0 +1,18 @@ +package lu.uni.trux.raicc.addAction1; + + +import android.app.Activity; +import android.os.Bundle; +import android.util.Log; + + +public class TargetActivity extends Activity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_target); + String imei = this.getIntent().getStringExtra("DroidBench"); + Log.i("DroidBench", imei); + } +} diff --git a/eclipse-project/AtypicalInterComponentCommunication/addAction1/main/res/drawable-v24/ic_launcher_foreground.xml b/eclipse-project/AtypicalInterComponentCommunication/addAction1/main/res/drawable-v24/ic_launcher_foreground.xml new file mode 100644 index 00000000..1f6bb290 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/addAction1/main/res/drawable-v24/ic_launcher_foreground.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/addAction1/main/res/drawable/ic_launcher_background.xml b/eclipse-project/AtypicalInterComponentCommunication/addAction1/main/res/drawable/ic_launcher_background.xml new file mode 100644 index 00000000..0d025f9b --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/addAction1/main/res/drawable/ic_launcher_background.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/addAction1/main/res/layout/activity_main.xml b/eclipse-project/AtypicalInterComponentCommunication/addAction1/main/res/layout/activity_main.xml new file mode 100644 index 00000000..41d2ef14 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/addAction1/main/res/layout/activity_main.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/addAction1/main/res/layout/activity_target.xml b/eclipse-project/AtypicalInterComponentCommunication/addAction1/main/res/layout/activity_target.xml new file mode 100644 index 00000000..41d2ef14 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/addAction1/main/res/layout/activity_target.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/addAction1/main/res/mipmap-anydpi-v26/ic_launcher.xml b/eclipse-project/AtypicalInterComponentCommunication/addAction1/main/res/mipmap-anydpi-v26/ic_launcher.xml new file mode 100644 index 00000000..eca70cfe --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/addAction1/main/res/mipmap-anydpi-v26/ic_launcher.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/addAction1/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/eclipse-project/AtypicalInterComponentCommunication/addAction1/main/res/mipmap-anydpi-v26/ic_launcher_round.xml new file mode 100644 index 00000000..eca70cfe --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/addAction1/main/res/mipmap-anydpi-v26/ic_launcher_round.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/addAction1/main/res/mipmap-hdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/addAction1/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 00000000..898f3ed5 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/addAction1/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/addAction1/main/res/mipmap-hdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/addAction1/main/res/mipmap-hdpi/ic_launcher_round.png new file mode 100644 index 00000000..dffca360 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/addAction1/main/res/mipmap-hdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/addAction1/main/res/mipmap-mdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/addAction1/main/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 00000000..64ba76f7 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/addAction1/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/addAction1/main/res/mipmap-mdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/addAction1/main/res/mipmap-mdpi/ic_launcher_round.png new file mode 100644 index 00000000..dae5e082 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/addAction1/main/res/mipmap-mdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/addAction1/main/res/mipmap-xhdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/addAction1/main/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 00000000..e5ed4659 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/addAction1/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/addAction1/main/res/mipmap-xhdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/addAction1/main/res/mipmap-xhdpi/ic_launcher_round.png new file mode 100644 index 00000000..14ed0af3 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/addAction1/main/res/mipmap-xhdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/addAction1/main/res/mipmap-xxhdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/addAction1/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 00000000..b0907cac Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/addAction1/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/addAction1/main/res/mipmap-xxhdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/addAction1/main/res/mipmap-xxhdpi/ic_launcher_round.png new file mode 100644 index 00000000..d8ae0315 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/addAction1/main/res/mipmap-xxhdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/addAction1/main/res/mipmap-xxxhdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/addAction1/main/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 00000000..2c18de9e Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/addAction1/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/addAction1/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/addAction1/main/res/mipmap-xxxhdpi/ic_launcher_round.png new file mode 100644 index 00000000..beed3cdd Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/addAction1/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/addAction1/main/res/values/colors.xml b/eclipse-project/AtypicalInterComponentCommunication/addAction1/main/res/values/colors.xml new file mode 100644 index 00000000..69b22338 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/addAction1/main/res/values/colors.xml @@ -0,0 +1,6 @@ + + + #008577 + #00574B + #D81B60 + diff --git a/eclipse-project/AtypicalInterComponentCommunication/addAction1/main/res/values/strings.xml b/eclipse-project/AtypicalInterComponentCommunication/addAction1/main/res/values/strings.xml new file mode 100644 index 00000000..fe7ecc13 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/addAction1/main/res/values/strings.xml @@ -0,0 +1,3 @@ + + addAction1 + diff --git a/eclipse-project/AtypicalInterComponentCommunication/addAction1/main/res/values/styles.xml b/eclipse-project/AtypicalInterComponentCommunication/addAction1/main/res/values/styles.xml new file mode 100644 index 00000000..5885930d --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/addAction1/main/res/values/styles.xml @@ -0,0 +1,11 @@ + + + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/addAction2/.DS_Store b/eclipse-project/AtypicalInterComponentCommunication/addAction2/.DS_Store new file mode 100644 index 00000000..246299f7 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/addAction2/.DS_Store differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/addAction2/main/AndroidManifest.xml b/eclipse-project/AtypicalInterComponentCommunication/addAction2/main/AndroidManifest.xml new file mode 100644 index 00000000..baa25f32 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/addAction2/main/AndroidManifest.xml @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/addAction2/main/java/lu/uni/trux/raicc/addAction2/MainActivity.java b/eclipse-project/AtypicalInterComponentCommunication/addAction2/main/java/lu/uni/trux/raicc/addAction2/MainActivity.java new file mode 100644 index 00000000..7fe31b96 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/addAction2/main/java/lu/uni/trux/raicc/addAction2/MainActivity.java @@ -0,0 +1,49 @@ +package lu.uni.trux.raicc.addAction2; + +import android.app.Activity; +import android.app.NotificationChannel; +import android.app.NotificationManager; +import android.app.PendingIntent; +import android.content.Context; +import android.content.Intent; +import android.os.Build; +import android.os.Bundle; +import android.support.v4.app.NotificationCompat; +import android.support.v4.app.NotificationManagerCompat; +import android.telephony.TelephonyManager; + + +public class MainActivity extends Activity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_main); + + String imei = ((TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE)).getDeviceId(); + Intent i = new Intent(this, TargetActivity.class); + i.putExtra("DroidBench", imei); + PendingIntent pi = PendingIntent.getActivity(this, 0, i, 0); + + this.createNotificationChannel(); + NotificationCompat.Builder b = new NotificationCompat.Builder(this) + .setSmallIcon(R.drawable.ic_launcher_background) + .setContentTitle("title") + .setContentText("content") + .setPriority(NotificationCompat.PRIORITY_DEFAULT); + b.addAction(R.drawable.ic_launcher_background, "title", pi); + NotificationManagerCompat n = NotificationManagerCompat.from(this); + } + + private void createNotificationChannel() { + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { + CharSequence name = "channel"; + String description = "desc"; + int importance = NotificationManager.IMPORTANCE_DEFAULT; + NotificationChannel channel = new NotificationChannel("1", name, importance); + channel.setDescription(description); + NotificationManager notificationManager = getSystemService(NotificationManager.class); + notificationManager.createNotificationChannel(channel); + } + } +} diff --git a/eclipse-project/AtypicalInterComponentCommunication/addAction2/main/java/lu/uni/trux/raicc/addAction2/TargetActivity.java b/eclipse-project/AtypicalInterComponentCommunication/addAction2/main/java/lu/uni/trux/raicc/addAction2/TargetActivity.java new file mode 100644 index 00000000..9725a8ca --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/addAction2/main/java/lu/uni/trux/raicc/addAction2/TargetActivity.java @@ -0,0 +1,19 @@ +package lu.uni.trux.raicc.addAction2; + + +import android.app.Activity; +import android.os.Bundle; +import android.util.Log; + + +public class TargetActivity extends Activity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_target); + + String imei = this.getIntent().getStringExtra("DroidBench"); + Log.i("DroidBench", imei); + } +} diff --git a/eclipse-project/AtypicalInterComponentCommunication/addAction2/main/res/drawable-v24/ic_launcher_foreground.xml b/eclipse-project/AtypicalInterComponentCommunication/addAction2/main/res/drawable-v24/ic_launcher_foreground.xml new file mode 100644 index 00000000..1f6bb290 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/addAction2/main/res/drawable-v24/ic_launcher_foreground.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/addAction2/main/res/drawable/ic_launcher_background.xml b/eclipse-project/AtypicalInterComponentCommunication/addAction2/main/res/drawable/ic_launcher_background.xml new file mode 100644 index 00000000..0d025f9b --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/addAction2/main/res/drawable/ic_launcher_background.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/addAction2/main/res/layout/activity_main.xml b/eclipse-project/AtypicalInterComponentCommunication/addAction2/main/res/layout/activity_main.xml new file mode 100644 index 00000000..41d2ef14 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/addAction2/main/res/layout/activity_main.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/addAction2/main/res/layout/activity_target.xml b/eclipse-project/AtypicalInterComponentCommunication/addAction2/main/res/layout/activity_target.xml new file mode 100644 index 00000000..41d2ef14 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/addAction2/main/res/layout/activity_target.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/addAction2/main/res/mipmap-anydpi-v26/ic_launcher.xml b/eclipse-project/AtypicalInterComponentCommunication/addAction2/main/res/mipmap-anydpi-v26/ic_launcher.xml new file mode 100644 index 00000000..eca70cfe --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/addAction2/main/res/mipmap-anydpi-v26/ic_launcher.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/addAction2/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/eclipse-project/AtypicalInterComponentCommunication/addAction2/main/res/mipmap-anydpi-v26/ic_launcher_round.xml new file mode 100644 index 00000000..eca70cfe --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/addAction2/main/res/mipmap-anydpi-v26/ic_launcher_round.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/addAction2/main/res/mipmap-hdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/addAction2/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 00000000..898f3ed5 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/addAction2/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/addAction2/main/res/mipmap-hdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/addAction2/main/res/mipmap-hdpi/ic_launcher_round.png new file mode 100644 index 00000000..dffca360 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/addAction2/main/res/mipmap-hdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/addAction2/main/res/mipmap-mdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/addAction2/main/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 00000000..64ba76f7 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/addAction2/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/addAction2/main/res/mipmap-mdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/addAction2/main/res/mipmap-mdpi/ic_launcher_round.png new file mode 100644 index 00000000..dae5e082 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/addAction2/main/res/mipmap-mdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/addAction2/main/res/mipmap-xhdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/addAction2/main/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 00000000..e5ed4659 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/addAction2/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/addAction2/main/res/mipmap-xhdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/addAction2/main/res/mipmap-xhdpi/ic_launcher_round.png new file mode 100644 index 00000000..14ed0af3 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/addAction2/main/res/mipmap-xhdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/addAction2/main/res/mipmap-xxhdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/addAction2/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 00000000..b0907cac Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/addAction2/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/addAction2/main/res/mipmap-xxhdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/addAction2/main/res/mipmap-xxhdpi/ic_launcher_round.png new file mode 100644 index 00000000..d8ae0315 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/addAction2/main/res/mipmap-xxhdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/addAction2/main/res/mipmap-xxxhdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/addAction2/main/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 00000000..2c18de9e Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/addAction2/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/addAction2/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/addAction2/main/res/mipmap-xxxhdpi/ic_launcher_round.png new file mode 100644 index 00000000..beed3cdd Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/addAction2/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/addAction2/main/res/values/colors.xml b/eclipse-project/AtypicalInterComponentCommunication/addAction2/main/res/values/colors.xml new file mode 100644 index 00000000..69b22338 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/addAction2/main/res/values/colors.xml @@ -0,0 +1,6 @@ + + + #008577 + #00574B + #D81B60 + diff --git a/eclipse-project/AtypicalInterComponentCommunication/addAction2/main/res/values/strings.xml b/eclipse-project/AtypicalInterComponentCommunication/addAction2/main/res/values/strings.xml new file mode 100644 index 00000000..fe8ecce7 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/addAction2/main/res/values/strings.xml @@ -0,0 +1,3 @@ + + addAction2 + diff --git a/eclipse-project/AtypicalInterComponentCommunication/addAction2/main/res/values/styles.xml b/eclipse-project/AtypicalInterComponentCommunication/addAction2/main/res/values/styles.xml new file mode 100644 index 00000000..5885930d --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/addAction2/main/res/values/styles.xml @@ -0,0 +1,11 @@ + + + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/requestLocationUpdates/.DS_Store b/eclipse-project/AtypicalInterComponentCommunication/requestLocationUpdates/.DS_Store new file mode 100644 index 00000000..246299f7 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/requestLocationUpdates/.DS_Store differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/requestLocationUpdates/main/AndroidManifest.xml b/eclipse-project/AtypicalInterComponentCommunication/requestLocationUpdates/main/AndroidManifest.xml new file mode 100644 index 00000000..457ca405 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/requestLocationUpdates/main/AndroidManifest.xml @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/requestLocationUpdates/main/java/lu/uni/trux/raicc/requestLocationUpdates/IntermediateService.java b/eclipse-project/AtypicalInterComponentCommunication/requestLocationUpdates/main/java/lu/uni/trux/raicc/requestLocationUpdates/IntermediateService.java new file mode 100644 index 00000000..971fdd34 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/requestLocationUpdates/main/java/lu/uni/trux/raicc/requestLocationUpdates/IntermediateService.java @@ -0,0 +1,33 @@ +package lu.uni.trux.raicc.requestLocationUpdates; + +import android.app.PendingIntent; +import android.app.Service; +import android.content.Context; +import android.content.Intent; +import android.location.Criteria; +import android.location.LocationManager; +import android.os.IBinder; + +public class IntermediateService extends Service { + public IntermediateService() { + } + + @Override + public IBinder onBind(Intent intent) { + return null; + } + + @Override + public int onStartCommand(Intent intent, int startId, int ii) { + super.onStartCommand(intent, startId, ii); + String imei = intent.getStringExtra("DroidBench"); + Intent i = new Intent(this, TargetBroadcastReceiver.class); + i.putExtra("DroidBench", imei); + PendingIntent pi = PendingIntent.getBroadcast(this, 0, i, 0); + + LocationManager l = (LocationManager) this.getSystemService(Context.LOCATION_SERVICE); + Criteria c = new Criteria(); + l.requestLocationUpdates(0, 0, c, pi); + return 0; + } +} diff --git a/eclipse-project/AtypicalInterComponentCommunication/requestLocationUpdates/main/java/lu/uni/trux/raicc/requestLocationUpdates/MainActivity.java b/eclipse-project/AtypicalInterComponentCommunication/requestLocationUpdates/main/java/lu/uni/trux/raicc/requestLocationUpdates/MainActivity.java new file mode 100644 index 00000000..c6d54c27 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/requestLocationUpdates/main/java/lu/uni/trux/raicc/requestLocationUpdates/MainActivity.java @@ -0,0 +1,22 @@ +package lu.uni.trux.raicc.requestLocationUpdates; + +import android.app.Activity; +import android.content.Context; +import android.content.Intent; +import android.os.Bundle; +import android.telephony.TelephonyManager; + + +public class MainActivity extends Activity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_main); + + String imei = ((TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE)).getDeviceId(); + Intent i = new Intent(this, IntermediateService.class); + i.putExtra("DroidBench", imei); + startService(i); + } +} diff --git a/eclipse-project/AtypicalInterComponentCommunication/requestLocationUpdates/main/java/lu/uni/trux/raicc/requestLocationUpdates/TargetBroadcastReceiver.java b/eclipse-project/AtypicalInterComponentCommunication/requestLocationUpdates/main/java/lu/uni/trux/raicc/requestLocationUpdates/TargetBroadcastReceiver.java new file mode 100644 index 00000000..a7cbf014 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/requestLocationUpdates/main/java/lu/uni/trux/raicc/requestLocationUpdates/TargetBroadcastReceiver.java @@ -0,0 +1,15 @@ +package lu.uni.trux.raicc.requestLocationUpdates; + +import android.content.BroadcastReceiver; +import android.content.Context; +import android.content.Intent; +import android.util.Log; + +public class TargetBroadcastReceiver extends BroadcastReceiver { + + @Override + public void onReceive(Context context, Intent intent) { + String imei = intent.getStringExtra("DroidBench"); + Log.i("DroidBench", imei); + } +} diff --git a/eclipse-project/AtypicalInterComponentCommunication/requestLocationUpdates/main/res/drawable-v24/ic_launcher_foreground.xml b/eclipse-project/AtypicalInterComponentCommunication/requestLocationUpdates/main/res/drawable-v24/ic_launcher_foreground.xml new file mode 100644 index 00000000..1f6bb290 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/requestLocationUpdates/main/res/drawable-v24/ic_launcher_foreground.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/requestLocationUpdates/main/res/drawable/ic_launcher_background.xml b/eclipse-project/AtypicalInterComponentCommunication/requestLocationUpdates/main/res/drawable/ic_launcher_background.xml new file mode 100644 index 00000000..0d025f9b --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/requestLocationUpdates/main/res/drawable/ic_launcher_background.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/requestLocationUpdates/main/res/layout/activity_main.xml b/eclipse-project/AtypicalInterComponentCommunication/requestLocationUpdates/main/res/layout/activity_main.xml new file mode 100644 index 00000000..41d2ef14 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/requestLocationUpdates/main/res/layout/activity_main.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/requestLocationUpdates/main/res/mipmap-anydpi-v26/ic_launcher.xml b/eclipse-project/AtypicalInterComponentCommunication/requestLocationUpdates/main/res/mipmap-anydpi-v26/ic_launcher.xml new file mode 100644 index 00000000..eca70cfe --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/requestLocationUpdates/main/res/mipmap-anydpi-v26/ic_launcher.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/requestLocationUpdates/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/eclipse-project/AtypicalInterComponentCommunication/requestLocationUpdates/main/res/mipmap-anydpi-v26/ic_launcher_round.xml new file mode 100644 index 00000000..eca70cfe --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/requestLocationUpdates/main/res/mipmap-anydpi-v26/ic_launcher_round.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/requestLocationUpdates/main/res/mipmap-hdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/requestLocationUpdates/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 00000000..898f3ed5 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/requestLocationUpdates/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/requestLocationUpdates/main/res/mipmap-hdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/requestLocationUpdates/main/res/mipmap-hdpi/ic_launcher_round.png new file mode 100644 index 00000000..dffca360 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/requestLocationUpdates/main/res/mipmap-hdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/requestLocationUpdates/main/res/mipmap-mdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/requestLocationUpdates/main/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 00000000..64ba76f7 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/requestLocationUpdates/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/requestLocationUpdates/main/res/mipmap-mdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/requestLocationUpdates/main/res/mipmap-mdpi/ic_launcher_round.png new file mode 100644 index 00000000..dae5e082 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/requestLocationUpdates/main/res/mipmap-mdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/requestLocationUpdates/main/res/mipmap-xhdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/requestLocationUpdates/main/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 00000000..e5ed4659 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/requestLocationUpdates/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/requestLocationUpdates/main/res/mipmap-xhdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/requestLocationUpdates/main/res/mipmap-xhdpi/ic_launcher_round.png new file mode 100644 index 00000000..14ed0af3 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/requestLocationUpdates/main/res/mipmap-xhdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/requestLocationUpdates/main/res/mipmap-xxhdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/requestLocationUpdates/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 00000000..b0907cac Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/requestLocationUpdates/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/requestLocationUpdates/main/res/mipmap-xxhdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/requestLocationUpdates/main/res/mipmap-xxhdpi/ic_launcher_round.png new file mode 100644 index 00000000..d8ae0315 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/requestLocationUpdates/main/res/mipmap-xxhdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/requestLocationUpdates/main/res/mipmap-xxxhdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/requestLocationUpdates/main/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 00000000..2c18de9e Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/requestLocationUpdates/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/requestLocationUpdates/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/requestLocationUpdates/main/res/mipmap-xxxhdpi/ic_launcher_round.png new file mode 100644 index 00000000..beed3cdd Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/requestLocationUpdates/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/requestLocationUpdates/main/res/values/colors.xml b/eclipse-project/AtypicalInterComponentCommunication/requestLocationUpdates/main/res/values/colors.xml new file mode 100644 index 00000000..69b22338 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/requestLocationUpdates/main/res/values/colors.xml @@ -0,0 +1,6 @@ + + + #008577 + #00574B + #D81B60 + diff --git a/eclipse-project/AtypicalInterComponentCommunication/requestLocationUpdates/main/res/values/strings.xml b/eclipse-project/AtypicalInterComponentCommunication/requestLocationUpdates/main/res/values/strings.xml new file mode 100644 index 00000000..132538f2 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/requestLocationUpdates/main/res/values/strings.xml @@ -0,0 +1,3 @@ + + requestLocationUpdates + diff --git a/eclipse-project/AtypicalInterComponentCommunication/requestLocationUpdates/main/res/values/styles.xml b/eclipse-project/AtypicalInterComponentCommunication/requestLocationUpdates/main/res/values/styles.xml new file mode 100644 index 00000000..5885930d --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/requestLocationUpdates/main/res/values/styles.xml @@ -0,0 +1,11 @@ + + + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/requestNetwork/.DS_Store b/eclipse-project/AtypicalInterComponentCommunication/requestNetwork/.DS_Store new file mode 100644 index 00000000..133c1e5c Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/requestNetwork/.DS_Store differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/requestNetwork/main/AndroidManifest.xml b/eclipse-project/AtypicalInterComponentCommunication/requestNetwork/main/AndroidManifest.xml new file mode 100644 index 00000000..ce4144f1 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/requestNetwork/main/AndroidManifest.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/requestNetwork/main/java/lu/uni/trux/raicc/requestNetwork/MainActivity.java b/eclipse-project/AtypicalInterComponentCommunication/requestNetwork/main/java/lu/uni/trux/raicc/requestNetwork/MainActivity.java new file mode 100644 index 00000000..dff0dfa9 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/requestNetwork/main/java/lu/uni/trux/raicc/requestNetwork/MainActivity.java @@ -0,0 +1,28 @@ +package lu.uni.trux.raicc.requestNetwork; + + +import android.app.Activity; +import android.app.PendingIntent; +import android.content.Context; +import android.content.Intent; +import android.net.ConnectivityManager; +import android.net.NetworkRequest; +import android.os.Bundle; +import android.telephony.TelephonyManager; + +public class MainActivity extends Activity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_main); + + String imei = ((TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE)).getDeviceId(); + Intent i = new Intent(this, TargetService.class); + i.putExtra("DroidBench", imei); + PendingIntent pi = PendingIntent.getService(this, 0, i, 0); + + ConnectivityManager connectivityManager = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE); + connectivityManager.requestNetwork(new NetworkRequest.Builder().build(), pi); + } +} diff --git a/eclipse-project/AtypicalInterComponentCommunication/requestNetwork/main/java/lu/uni/trux/raicc/requestNetwork/TargetService.java b/eclipse-project/AtypicalInterComponentCommunication/requestNetwork/main/java/lu/uni/trux/raicc/requestNetwork/TargetService.java new file mode 100644 index 00000000..238f7e0e --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/requestNetwork/main/java/lu/uni/trux/raicc/requestNetwork/TargetService.java @@ -0,0 +1,24 @@ +package lu.uni.trux.raicc.requestNetwork; + +import android.app.Service; +import android.content.Intent; +import android.os.IBinder; +import android.util.Log; + +public class TargetService extends Service { + public TargetService() { + } + + @Override + public IBinder onBind(Intent intent) { + return null; + } + + @Override + public int onStartCommand(Intent intent, int startId, int ii) { + super.onStartCommand(intent, startId, ii); + String imei = intent.getStringExtra("DroidBench"); + Log.i("DroidBench", imei); + return 0; + } +} diff --git a/eclipse-project/AtypicalInterComponentCommunication/requestNetwork/main/res/drawable-v24/ic_launcher_foreground.xml b/eclipse-project/AtypicalInterComponentCommunication/requestNetwork/main/res/drawable-v24/ic_launcher_foreground.xml new file mode 100644 index 00000000..1f6bb290 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/requestNetwork/main/res/drawable-v24/ic_launcher_foreground.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/requestNetwork/main/res/drawable/ic_launcher_background.xml b/eclipse-project/AtypicalInterComponentCommunication/requestNetwork/main/res/drawable/ic_launcher_background.xml new file mode 100644 index 00000000..0d025f9b --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/requestNetwork/main/res/drawable/ic_launcher_background.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/requestNetwork/main/res/layout/activity_main.xml b/eclipse-project/AtypicalInterComponentCommunication/requestNetwork/main/res/layout/activity_main.xml new file mode 100644 index 00000000..f9504c9a --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/requestNetwork/main/res/layout/activity_main.xml @@ -0,0 +1,6 @@ + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/requestNetwork/main/res/layout/activity_target.xml b/eclipse-project/AtypicalInterComponentCommunication/requestNetwork/main/res/layout/activity_target.xml new file mode 100644 index 00000000..f9504c9a --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/requestNetwork/main/res/layout/activity_target.xml @@ -0,0 +1,6 @@ + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/requestNetwork/main/res/mipmap-anydpi-v26/ic_launcher.xml b/eclipse-project/AtypicalInterComponentCommunication/requestNetwork/main/res/mipmap-anydpi-v26/ic_launcher.xml new file mode 100644 index 00000000..eca70cfe --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/requestNetwork/main/res/mipmap-anydpi-v26/ic_launcher.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/requestNetwork/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/eclipse-project/AtypicalInterComponentCommunication/requestNetwork/main/res/mipmap-anydpi-v26/ic_launcher_round.xml new file mode 100644 index 00000000..eca70cfe --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/requestNetwork/main/res/mipmap-anydpi-v26/ic_launcher_round.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/requestNetwork/main/res/mipmap-hdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/requestNetwork/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 00000000..898f3ed5 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/requestNetwork/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/requestNetwork/main/res/mipmap-hdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/requestNetwork/main/res/mipmap-hdpi/ic_launcher_round.png new file mode 100644 index 00000000..dffca360 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/requestNetwork/main/res/mipmap-hdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/requestNetwork/main/res/mipmap-mdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/requestNetwork/main/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 00000000..64ba76f7 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/requestNetwork/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/requestNetwork/main/res/mipmap-mdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/requestNetwork/main/res/mipmap-mdpi/ic_launcher_round.png new file mode 100644 index 00000000..dae5e082 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/requestNetwork/main/res/mipmap-mdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/requestNetwork/main/res/mipmap-xhdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/requestNetwork/main/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 00000000..e5ed4659 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/requestNetwork/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/requestNetwork/main/res/mipmap-xhdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/requestNetwork/main/res/mipmap-xhdpi/ic_launcher_round.png new file mode 100644 index 00000000..14ed0af3 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/requestNetwork/main/res/mipmap-xhdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/requestNetwork/main/res/mipmap-xxhdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/requestNetwork/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 00000000..b0907cac Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/requestNetwork/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/requestNetwork/main/res/mipmap-xxhdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/requestNetwork/main/res/mipmap-xxhdpi/ic_launcher_round.png new file mode 100644 index 00000000..d8ae0315 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/requestNetwork/main/res/mipmap-xxhdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/requestNetwork/main/res/mipmap-xxxhdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/requestNetwork/main/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 00000000..2c18de9e Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/requestNetwork/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/requestNetwork/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/requestNetwork/main/res/mipmap-xxxhdpi/ic_launcher_round.png new file mode 100644 index 00000000..beed3cdd Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/requestNetwork/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/requestNetwork/main/res/values/colors.xml b/eclipse-project/AtypicalInterComponentCommunication/requestNetwork/main/res/values/colors.xml new file mode 100644 index 00000000..69b22338 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/requestNetwork/main/res/values/colors.xml @@ -0,0 +1,6 @@ + + + #008577 + #00574B + #D81B60 + diff --git a/eclipse-project/AtypicalInterComponentCommunication/requestNetwork/main/res/values/strings.xml b/eclipse-project/AtypicalInterComponentCommunication/requestNetwork/main/res/values/strings.xml new file mode 100644 index 00000000..5447084e --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/requestNetwork/main/res/values/strings.xml @@ -0,0 +1,3 @@ + + requestNetwork + diff --git a/eclipse-project/AtypicalInterComponentCommunication/requestNetwork/main/res/values/styles.xml b/eclipse-project/AtypicalInterComponentCommunication/requestNetwork/main/res/values/styles.xml new file mode 100644 index 00000000..5885930d --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/requestNetwork/main/res/values/styles.xml @@ -0,0 +1,11 @@ + + + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/send/.DS_Store b/eclipse-project/AtypicalInterComponentCommunication/send/.DS_Store new file mode 100644 index 00000000..246299f7 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/send/.DS_Store differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/send/main/AndroidManifest.xml b/eclipse-project/AtypicalInterComponentCommunication/send/main/AndroidManifest.xml new file mode 100644 index 00000000..1744c857 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/send/main/AndroidManifest.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/send/main/java/lu/uni/trux/raicc/send/MainActivity.java b/eclipse-project/AtypicalInterComponentCommunication/send/main/java/lu/uni/trux/raicc/send/MainActivity.java new file mode 100644 index 00000000..40cedf59 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/send/main/java/lu/uni/trux/raicc/send/MainActivity.java @@ -0,0 +1,29 @@ +package lu.uni.trux.raicc.send; + + +import android.app.Activity; +import android.app.PendingIntent; +import android.content.Context; +import android.content.Intent; +import android.os.Bundle; +import android.telephony.TelephonyManager; + + +public class MainActivity extends Activity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_main); + + String imei = ((TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE)).getDeviceId(); + Intent i = new Intent(this, TargetActivity.class); + i.putExtra("DroidBench", imei); + PendingIntent pi = PendingIntent.getActivity(this, 0, i, 0); + try { + pi.send(this, 0, null, null, null, null, null); + }catch(Exception e){ + e.printStackTrace(); + } + } +} diff --git a/eclipse-project/AtypicalInterComponentCommunication/send/main/java/lu/uni/trux/raicc/send/SecondActivity.java b/eclipse-project/AtypicalInterComponentCommunication/send/main/java/lu/uni/trux/raicc/send/SecondActivity.java new file mode 100644 index 00000000..e2286739 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/send/main/java/lu/uni/trux/raicc/send/SecondActivity.java @@ -0,0 +1,17 @@ +package lu.uni.trux.raicc.send; + +import android.app.Activity; +import android.os.Bundle; +import android.util.Log; + + +public class SecondActivity extends Activity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_second); + String imei = this.getIntent().getStringExtra("DroidBench"); + Log.i("DroidBench", imei); + } +} diff --git a/eclipse-project/AtypicalInterComponentCommunication/send/main/java/lu/uni/trux/raicc/send/TargetActivity.java b/eclipse-project/AtypicalInterComponentCommunication/send/main/java/lu/uni/trux/raicc/send/TargetActivity.java new file mode 100644 index 00000000..185fd16c --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/send/main/java/lu/uni/trux/raicc/send/TargetActivity.java @@ -0,0 +1,16 @@ +package lu.uni.trux.raicc.send; + +import android.app.Activity; +import android.os.Bundle; +import android.util.Log; + + +public class TargetActivity extends Activity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_target); + Log.i("DroidBench", "noLeak"); + } +} diff --git a/eclipse-project/AtypicalInterComponentCommunication/send/main/res/drawable-v24/ic_launcher_foreground.xml b/eclipse-project/AtypicalInterComponentCommunication/send/main/res/drawable-v24/ic_launcher_foreground.xml new file mode 100644 index 00000000..1f6bb290 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/send/main/res/drawable-v24/ic_launcher_foreground.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/send/main/res/drawable/ic_launcher_background.xml b/eclipse-project/AtypicalInterComponentCommunication/send/main/res/drawable/ic_launcher_background.xml new file mode 100644 index 00000000..0d025f9b --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/send/main/res/drawable/ic_launcher_background.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/send/main/res/layout/activity_main.xml b/eclipse-project/AtypicalInterComponentCommunication/send/main/res/layout/activity_main.xml new file mode 100644 index 00000000..41d2ef14 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/send/main/res/layout/activity_main.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/send/main/res/layout/activity_second.xml b/eclipse-project/AtypicalInterComponentCommunication/send/main/res/layout/activity_second.xml new file mode 100644 index 00000000..41d2ef14 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/send/main/res/layout/activity_second.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/send/main/res/layout/activity_target.xml b/eclipse-project/AtypicalInterComponentCommunication/send/main/res/layout/activity_target.xml new file mode 100644 index 00000000..41d2ef14 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/send/main/res/layout/activity_target.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/send/main/res/mipmap-anydpi-v26/ic_launcher.xml b/eclipse-project/AtypicalInterComponentCommunication/send/main/res/mipmap-anydpi-v26/ic_launcher.xml new file mode 100644 index 00000000..eca70cfe --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/send/main/res/mipmap-anydpi-v26/ic_launcher.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/send/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/eclipse-project/AtypicalInterComponentCommunication/send/main/res/mipmap-anydpi-v26/ic_launcher_round.xml new file mode 100644 index 00000000..eca70cfe --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/send/main/res/mipmap-anydpi-v26/ic_launcher_round.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/send/main/res/mipmap-hdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/send/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 00000000..898f3ed5 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/send/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/send/main/res/mipmap-hdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/send/main/res/mipmap-hdpi/ic_launcher_round.png new file mode 100644 index 00000000..dffca360 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/send/main/res/mipmap-hdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/send/main/res/mipmap-mdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/send/main/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 00000000..64ba76f7 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/send/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/send/main/res/mipmap-mdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/send/main/res/mipmap-mdpi/ic_launcher_round.png new file mode 100644 index 00000000..dae5e082 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/send/main/res/mipmap-mdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/send/main/res/mipmap-xhdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/send/main/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 00000000..e5ed4659 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/send/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/send/main/res/mipmap-xhdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/send/main/res/mipmap-xhdpi/ic_launcher_round.png new file mode 100644 index 00000000..14ed0af3 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/send/main/res/mipmap-xhdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/send/main/res/mipmap-xxhdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/send/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 00000000..b0907cac Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/send/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/send/main/res/mipmap-xxhdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/send/main/res/mipmap-xxhdpi/ic_launcher_round.png new file mode 100644 index 00000000..d8ae0315 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/send/main/res/mipmap-xxhdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/send/main/res/mipmap-xxxhdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/send/main/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 00000000..2c18de9e Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/send/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/send/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/send/main/res/mipmap-xxxhdpi/ic_launcher_round.png new file mode 100644 index 00000000..beed3cdd Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/send/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/send/main/res/values/colors.xml b/eclipse-project/AtypicalInterComponentCommunication/send/main/res/values/colors.xml new file mode 100644 index 00000000..69b22338 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/send/main/res/values/colors.xml @@ -0,0 +1,6 @@ + + + #008577 + #00574B + #D81B60 + diff --git a/eclipse-project/AtypicalInterComponentCommunication/send/main/res/values/strings.xml b/eclipse-project/AtypicalInterComponentCommunication/send/main/res/values/strings.xml new file mode 100644 index 00000000..742bad10 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/send/main/res/values/strings.xml @@ -0,0 +1,3 @@ + + send + diff --git a/eclipse-project/AtypicalInterComponentCommunication/send/main/res/values/styles.xml b/eclipse-project/AtypicalInterComponentCommunication/send/main/res/values/styles.xml new file mode 100644 index 00000000..5885930d --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/send/main/res/values/styles.xml @@ -0,0 +1,11 @@ + + + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/sendIntent/.DS_Store b/eclipse-project/AtypicalInterComponentCommunication/sendIntent/.DS_Store new file mode 100644 index 00000000..498847d9 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/sendIntent/.DS_Store differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/sendIntent/main/AndroidManifest.xml b/eclipse-project/AtypicalInterComponentCommunication/sendIntent/main/AndroidManifest.xml new file mode 100644 index 00000000..deb263f4 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/sendIntent/main/AndroidManifest.xml @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/sendIntent/main/java/lu/uni/trux/raicc/sendIntent/MainActivity.java b/eclipse-project/AtypicalInterComponentCommunication/sendIntent/main/java/lu/uni/trux/raicc/sendIntent/MainActivity.java new file mode 100644 index 00000000..03fc5bc7 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/sendIntent/main/java/lu/uni/trux/raicc/sendIntent/MainActivity.java @@ -0,0 +1,31 @@ +package lu.uni.trux.raicc.sendIntent; + +import android.app.Activity; +import android.app.PendingIntent; +import android.content.Context; +import android.content.Intent; +import android.content.IntentSender; +import android.os.Bundle; +import android.telephony.TelephonyManager; + + +public class MainActivity extends Activity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_main); + + String imei = ((TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE)).getDeviceId(); + Intent i = new Intent("ACTION"); + i.putExtra("DroidBench", imei); + i.putExtra("extra", "noLeak"); + PendingIntent pi = PendingIntent.getActivity(this, 0, i, 0); + IntentSender is = pi .getIntentSender(); + try{ + is.sendIntent(this, 0, null, null, null); + } catch(Exception e){ + e.printStackTrace(); + } + } +} diff --git a/eclipse-project/AtypicalInterComponentCommunication/sendIntent/main/java/lu/uni/trux/raicc/sendIntent/TargetActivity.java b/eclipse-project/AtypicalInterComponentCommunication/sendIntent/main/java/lu/uni/trux/raicc/sendIntent/TargetActivity.java new file mode 100644 index 00000000..00f30747 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/sendIntent/main/java/lu/uni/trux/raicc/sendIntent/TargetActivity.java @@ -0,0 +1,17 @@ +package lu.uni.trux.raicc.sendIntent; + +import android.app.Activity; +import android.os.Bundle; +import android.util.Log; + + +public class TargetActivity extends Activity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_target); + String imei = this.getIntent().getStringExtra("extra"); + Log.i("DroidBench", imei); + } +} diff --git a/eclipse-project/AtypicalInterComponentCommunication/sendIntent/main/res/drawable-v24/ic_launcher_foreground.xml b/eclipse-project/AtypicalInterComponentCommunication/sendIntent/main/res/drawable-v24/ic_launcher_foreground.xml new file mode 100644 index 00000000..1f6bb290 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/sendIntent/main/res/drawable-v24/ic_launcher_foreground.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/sendIntent/main/res/drawable/ic_launcher_background.xml b/eclipse-project/AtypicalInterComponentCommunication/sendIntent/main/res/drawable/ic_launcher_background.xml new file mode 100644 index 00000000..0d025f9b --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/sendIntent/main/res/drawable/ic_launcher_background.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/sendIntent/main/res/layout/activity_main.xml b/eclipse-project/AtypicalInterComponentCommunication/sendIntent/main/res/layout/activity_main.xml new file mode 100644 index 00000000..41d2ef14 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/sendIntent/main/res/layout/activity_main.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/sendIntent/main/res/layout/activity_target.xml b/eclipse-project/AtypicalInterComponentCommunication/sendIntent/main/res/layout/activity_target.xml new file mode 100644 index 00000000..41d2ef14 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/sendIntent/main/res/layout/activity_target.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/sendIntent/main/res/mipmap-anydpi-v26/ic_launcher.xml b/eclipse-project/AtypicalInterComponentCommunication/sendIntent/main/res/mipmap-anydpi-v26/ic_launcher.xml new file mode 100644 index 00000000..eca70cfe --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/sendIntent/main/res/mipmap-anydpi-v26/ic_launcher.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/sendIntent/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/eclipse-project/AtypicalInterComponentCommunication/sendIntent/main/res/mipmap-anydpi-v26/ic_launcher_round.xml new file mode 100644 index 00000000..eca70cfe --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/sendIntent/main/res/mipmap-anydpi-v26/ic_launcher_round.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/sendIntent/main/res/mipmap-hdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/sendIntent/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 00000000..898f3ed5 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/sendIntent/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/sendIntent/main/res/mipmap-hdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/sendIntent/main/res/mipmap-hdpi/ic_launcher_round.png new file mode 100644 index 00000000..dffca360 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/sendIntent/main/res/mipmap-hdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/sendIntent/main/res/mipmap-mdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/sendIntent/main/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 00000000..64ba76f7 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/sendIntent/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/sendIntent/main/res/mipmap-mdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/sendIntent/main/res/mipmap-mdpi/ic_launcher_round.png new file mode 100644 index 00000000..dae5e082 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/sendIntent/main/res/mipmap-mdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/sendIntent/main/res/mipmap-xhdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/sendIntent/main/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 00000000..e5ed4659 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/sendIntent/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/sendIntent/main/res/mipmap-xhdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/sendIntent/main/res/mipmap-xhdpi/ic_launcher_round.png new file mode 100644 index 00000000..14ed0af3 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/sendIntent/main/res/mipmap-xhdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/sendIntent/main/res/mipmap-xxhdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/sendIntent/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 00000000..b0907cac Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/sendIntent/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/sendIntent/main/res/mipmap-xxhdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/sendIntent/main/res/mipmap-xxhdpi/ic_launcher_round.png new file mode 100644 index 00000000..d8ae0315 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/sendIntent/main/res/mipmap-xxhdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/sendIntent/main/res/mipmap-xxxhdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/sendIntent/main/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 00000000..2c18de9e Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/sendIntent/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/sendIntent/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/sendIntent/main/res/mipmap-xxxhdpi/ic_launcher_round.png new file mode 100644 index 00000000..beed3cdd Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/sendIntent/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/sendIntent/main/res/values/colors.xml b/eclipse-project/AtypicalInterComponentCommunication/sendIntent/main/res/values/colors.xml new file mode 100644 index 00000000..69b22338 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/sendIntent/main/res/values/colors.xml @@ -0,0 +1,6 @@ + + + #008577 + #00574B + #D81B60 + diff --git a/eclipse-project/AtypicalInterComponentCommunication/sendIntent/main/res/values/strings.xml b/eclipse-project/AtypicalInterComponentCommunication/sendIntent/main/res/values/strings.xml new file mode 100644 index 00000000..2ebded76 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/sendIntent/main/res/values/strings.xml @@ -0,0 +1,3 @@ + + sendIntent + diff --git a/eclipse-project/AtypicalInterComponentCommunication/sendIntent/main/res/values/styles.xml b/eclipse-project/AtypicalInterComponentCommunication/sendIntent/main/res/values/styles.xml new file mode 100644 index 00000000..5885930d --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/sendIntent/main/res/values/styles.xml @@ -0,0 +1,11 @@ + + + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage1/.DS_Store b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage1/.DS_Store new file mode 100644 index 00000000..246299f7 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage1/.DS_Store differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage1/main/AndroidManifest.xml b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage1/main/AndroidManifest.xml new file mode 100644 index 00000000..5d5972e4 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage1/main/AndroidManifest.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage1/main/java/lu/uni/trux/raicc/sendTextMessage1/MainActivity.java b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage1/main/java/lu/uni/trux/raicc/sendTextMessage1/MainActivity.java new file mode 100644 index 00000000..af1405f6 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage1/main/java/lu/uni/trux/raicc/sendTextMessage1/MainActivity.java @@ -0,0 +1,25 @@ +package lu.uni.trux.raicc.sendTextMessage1; + +import android.app.Activity; +import android.app.PendingIntent; +import android.content.Context; +import android.content.Intent; +import android.os.Bundle; +import android.telephony.SmsManager; +import android.telephony.TelephonyManager; + + +public class MainActivity extends Activity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_main); + String imei = ((TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE)).getDeviceId(); + Intent i = new Intent(this, TargetActivity.class); + i.putExtra("DroidBench", imei); + PendingIntent pi = PendingIntent.getActivity(this, 0, i, 0); + SmsManager s = SmsManager.getDefault(); + s.sendTextMessage("dummyAddress", null, "data", pi, null); + } +} \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage1/main/java/lu/uni/trux/raicc/sendTextMessage1/TargetActivity.java b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage1/main/java/lu/uni/trux/raicc/sendTextMessage1/TargetActivity.java new file mode 100644 index 00000000..cd18af9d --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage1/main/java/lu/uni/trux/raicc/sendTextMessage1/TargetActivity.java @@ -0,0 +1,18 @@ +package lu.uni.trux.raicc.sendTextMessage1; + + +import android.app.Activity; +import android.os.Bundle; +import android.util.Log; + + +public class TargetActivity extends Activity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_target); + String imei = this.getIntent().getStringExtra("DroidBench"); + Log.i("DroidBench", imei); + } +} diff --git a/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage1/main/res/drawable-v24/ic_launcher_foreground.xml b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage1/main/res/drawable-v24/ic_launcher_foreground.xml new file mode 100644 index 00000000..1f6bb290 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage1/main/res/drawable-v24/ic_launcher_foreground.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage1/main/res/drawable/ic_launcher_background.xml b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage1/main/res/drawable/ic_launcher_background.xml new file mode 100644 index 00000000..0d025f9b --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage1/main/res/drawable/ic_launcher_background.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage1/main/res/layout/activity_intermediate.xml b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage1/main/res/layout/activity_intermediate.xml new file mode 100644 index 00000000..41d2ef14 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage1/main/res/layout/activity_intermediate.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage1/main/res/layout/activity_main.xml b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage1/main/res/layout/activity_main.xml new file mode 100644 index 00000000..41d2ef14 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage1/main/res/layout/activity_main.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage1/main/res/layout/activity_target.xml b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage1/main/res/layout/activity_target.xml new file mode 100644 index 00000000..41d2ef14 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage1/main/res/layout/activity_target.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage1/main/res/mipmap-anydpi-v26/ic_launcher.xml b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage1/main/res/mipmap-anydpi-v26/ic_launcher.xml new file mode 100644 index 00000000..eca70cfe --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage1/main/res/mipmap-anydpi-v26/ic_launcher.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage1/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage1/main/res/mipmap-anydpi-v26/ic_launcher_round.xml new file mode 100644 index 00000000..eca70cfe --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage1/main/res/mipmap-anydpi-v26/ic_launcher_round.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage1/main/res/mipmap-hdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage1/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 00000000..898f3ed5 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage1/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage1/main/res/mipmap-hdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage1/main/res/mipmap-hdpi/ic_launcher_round.png new file mode 100644 index 00000000..dffca360 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage1/main/res/mipmap-hdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage1/main/res/mipmap-mdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage1/main/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 00000000..64ba76f7 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage1/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage1/main/res/mipmap-mdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage1/main/res/mipmap-mdpi/ic_launcher_round.png new file mode 100644 index 00000000..dae5e082 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage1/main/res/mipmap-mdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage1/main/res/mipmap-xhdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage1/main/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 00000000..e5ed4659 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage1/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage1/main/res/mipmap-xhdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage1/main/res/mipmap-xhdpi/ic_launcher_round.png new file mode 100644 index 00000000..14ed0af3 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage1/main/res/mipmap-xhdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage1/main/res/mipmap-xxhdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage1/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 00000000..b0907cac Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage1/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage1/main/res/mipmap-xxhdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage1/main/res/mipmap-xxhdpi/ic_launcher_round.png new file mode 100644 index 00000000..d8ae0315 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage1/main/res/mipmap-xxhdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage1/main/res/mipmap-xxxhdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage1/main/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 00000000..2c18de9e Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage1/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage1/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage1/main/res/mipmap-xxxhdpi/ic_launcher_round.png new file mode 100644 index 00000000..beed3cdd Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage1/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage1/main/res/values/colors.xml b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage1/main/res/values/colors.xml new file mode 100644 index 00000000..69b22338 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage1/main/res/values/colors.xml @@ -0,0 +1,6 @@ + + + #008577 + #00574B + #D81B60 + diff --git a/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage1/main/res/values/strings.xml b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage1/main/res/values/strings.xml new file mode 100644 index 00000000..4729a4b1 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage1/main/res/values/strings.xml @@ -0,0 +1,3 @@ + + sendTextMessage1 + diff --git a/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage1/main/res/values/styles.xml b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage1/main/res/values/styles.xml new file mode 100644 index 00000000..5885930d --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage1/main/res/values/styles.xml @@ -0,0 +1,11 @@ + + + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage2/.DS_Store b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage2/.DS_Store new file mode 100644 index 00000000..246299f7 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage2/.DS_Store differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage2/main/AndroidManifest.xml b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage2/main/AndroidManifest.xml new file mode 100644 index 00000000..433a16db --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage2/main/AndroidManifest.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage2/main/java/lu/uni/trux/raicc/sendTextMessage2/MainActivity.java b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage2/main/java/lu/uni/trux/raicc/sendTextMessage2/MainActivity.java new file mode 100644 index 00000000..3bbdafdb --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage2/main/java/lu/uni/trux/raicc/sendTextMessage2/MainActivity.java @@ -0,0 +1,28 @@ +package lu.uni.trux.raicc.sendTextMessage2; + + +import android.app.Activity; +import android.app.PendingIntent; +import android.content.Context; +import android.content.Intent; +import android.os.Bundle; +import android.telephony.SmsManager; +import android.telephony.TelephonyManager; + + +public class MainActivity extends Activity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_main); + + String imei = ((TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE)).getDeviceId(); + Intent i = new Intent(this, TargetActivity.class); + i.putExtra("DroidBench", imei); + i.putExtra("Extra", "extra"); + PendingIntent pi = PendingIntent.getActivity(this, 0, i, 0); + SmsManager s = SmsManager.getDefault(); + s.sendTextMessage("dummyAddress", null, "body", pi, null); + } +} diff --git a/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage2/main/java/lu/uni/trux/raicc/sendTextMessage2/TargetActivity.java b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage2/main/java/lu/uni/trux/raicc/sendTextMessage2/TargetActivity.java new file mode 100644 index 00000000..468194f1 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage2/main/java/lu/uni/trux/raicc/sendTextMessage2/TargetActivity.java @@ -0,0 +1,18 @@ +package lu.uni.trux.raicc.sendTextMessage2; + + +import android.app.Activity; +import android.os.Bundle; +import android.util.Log; + + +public class TargetActivity extends Activity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_target); + String extra = this.getIntent().getStringExtra("Extra"); + Log.i("DroidBench", extra); + } +} diff --git a/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage2/main/res/drawable-v24/ic_launcher_foreground.xml b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage2/main/res/drawable-v24/ic_launcher_foreground.xml new file mode 100644 index 00000000..1f6bb290 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage2/main/res/drawable-v24/ic_launcher_foreground.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage2/main/res/drawable/ic_launcher_background.xml b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage2/main/res/drawable/ic_launcher_background.xml new file mode 100644 index 00000000..0d025f9b --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage2/main/res/drawable/ic_launcher_background.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage2/main/res/layout/activity_main.xml b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage2/main/res/layout/activity_main.xml new file mode 100644 index 00000000..f9504c9a --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage2/main/res/layout/activity_main.xml @@ -0,0 +1,6 @@ + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage2/main/res/layout/activity_target.xml b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage2/main/res/layout/activity_target.xml new file mode 100644 index 00000000..f9504c9a --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage2/main/res/layout/activity_target.xml @@ -0,0 +1,6 @@ + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage2/main/res/mipmap-anydpi-v26/ic_launcher.xml b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage2/main/res/mipmap-anydpi-v26/ic_launcher.xml new file mode 100644 index 00000000..eca70cfe --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage2/main/res/mipmap-anydpi-v26/ic_launcher.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage2/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage2/main/res/mipmap-anydpi-v26/ic_launcher_round.xml new file mode 100644 index 00000000..eca70cfe --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage2/main/res/mipmap-anydpi-v26/ic_launcher_round.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage2/main/res/mipmap-hdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage2/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 00000000..898f3ed5 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage2/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage2/main/res/mipmap-hdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage2/main/res/mipmap-hdpi/ic_launcher_round.png new file mode 100644 index 00000000..dffca360 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage2/main/res/mipmap-hdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage2/main/res/mipmap-mdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage2/main/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 00000000..64ba76f7 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage2/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage2/main/res/mipmap-mdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage2/main/res/mipmap-mdpi/ic_launcher_round.png new file mode 100644 index 00000000..dae5e082 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage2/main/res/mipmap-mdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage2/main/res/mipmap-xhdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage2/main/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 00000000..e5ed4659 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage2/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage2/main/res/mipmap-xhdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage2/main/res/mipmap-xhdpi/ic_launcher_round.png new file mode 100644 index 00000000..14ed0af3 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage2/main/res/mipmap-xhdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage2/main/res/mipmap-xxhdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage2/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 00000000..b0907cac Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage2/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage2/main/res/mipmap-xxhdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage2/main/res/mipmap-xxhdpi/ic_launcher_round.png new file mode 100644 index 00000000..d8ae0315 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage2/main/res/mipmap-xxhdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage2/main/res/mipmap-xxxhdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage2/main/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 00000000..2c18de9e Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage2/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage2/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage2/main/res/mipmap-xxxhdpi/ic_launcher_round.png new file mode 100644 index 00000000..beed3cdd Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage2/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage2/main/res/values/colors.xml b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage2/main/res/values/colors.xml new file mode 100644 index 00000000..69b22338 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage2/main/res/values/colors.xml @@ -0,0 +1,6 @@ + + + #008577 + #00574B + #D81B60 + diff --git a/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage2/main/res/values/strings.xml b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage2/main/res/values/strings.xml new file mode 100644 index 00000000..d37efe32 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage2/main/res/values/strings.xml @@ -0,0 +1,3 @@ + + sendTextMessage2 + diff --git a/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage2/main/res/values/styles.xml b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage2/main/res/values/styles.xml new file mode 100644 index 00000000..5885930d --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/sendTextMessage2/main/res/values/styles.xml @@ -0,0 +1,11 @@ + + + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/setDeleteIntent/.DS_Store b/eclipse-project/AtypicalInterComponentCommunication/setDeleteIntent/.DS_Store new file mode 100644 index 00000000..246299f7 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setDeleteIntent/.DS_Store differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setDeleteIntent/main/AndroidManifest.xml b/eclipse-project/AtypicalInterComponentCommunication/setDeleteIntent/main/AndroidManifest.xml new file mode 100644 index 00000000..cb1e7fa0 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setDeleteIntent/main/AndroidManifest.xml @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/setDeleteIntent/main/java/lu/uni/trux/raicc/setDeleteIntent/MainActivity.java b/eclipse-project/AtypicalInterComponentCommunication/setDeleteIntent/main/java/lu/uni/trux/raicc/setDeleteIntent/MainActivity.java new file mode 100644 index 00000000..2e16dd79 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setDeleteIntent/main/java/lu/uni/trux/raicc/setDeleteIntent/MainActivity.java @@ -0,0 +1,52 @@ +package lu.uni.trux.raicc.setDeleteIntent; + + +import android.app.Activity; +import android.app.Notification; +import android.app.NotificationChannel; +import android.app.NotificationManager; +import android.app.PendingIntent; +import android.content.Context; +import android.content.Intent; +import android.os.Build; +import android.os.Bundle; +import android.support.v4.app.NotificationManagerCompat; +import android.telephony.TelephonyManager; + + +public class MainActivity extends Activity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_main); + + String imei = ((TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE)).getDeviceId(); + Intent i = new Intent(this, TargetActivity.class); + i.putExtra("DroidBench", imei); + PendingIntent pi = PendingIntent.getActivity(this, 0, i, 0); + + this.createNotificationChannel(); + Notification.Builder b = new Notification.Builder(this) + .setSmallIcon(R.drawable.ic_launcher_background) + .setContentTitle("title") + .setContentText("content") + .setPriority(Notification.PRIORITY_DEFAULT); + b.setDeleteIntent(pi); + NotificationManagerCompat n = NotificationManagerCompat.from(this); + n.notify(1, b.build()); + } + + private void createNotificationChannel() { + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { + CharSequence name = "channel"; + String description = "desc"; + int importance = NotificationManager.IMPORTANCE_DEFAULT; + NotificationChannel channel = new NotificationChannel("1", name, importance); + channel.setDescription(description); + NotificationManager notificationManager = getSystemService(NotificationManager.class); + notificationManager.createNotificationChannel(channel); + } + } + +} diff --git a/eclipse-project/AtypicalInterComponentCommunication/setDeleteIntent/main/java/lu/uni/trux/raicc/setDeleteIntent/TargetActivity.java b/eclipse-project/AtypicalInterComponentCommunication/setDeleteIntent/main/java/lu/uni/trux/raicc/setDeleteIntent/TargetActivity.java new file mode 100644 index 00000000..26d5429f --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setDeleteIntent/main/java/lu/uni/trux/raicc/setDeleteIntent/TargetActivity.java @@ -0,0 +1,18 @@ +package lu.uni.trux.raicc.setDeleteIntent; + + +import android.app.Activity; +import android.os.Bundle; +import android.util.Log; + + +public class TargetActivity extends Activity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_target); + String imei = this.getIntent().getStringExtra("DroidBench"); + Log.i("DroidBench", imei); + } +} diff --git a/eclipse-project/AtypicalInterComponentCommunication/setDeleteIntent/main/res/drawable-v24/ic_launcher_foreground.xml b/eclipse-project/AtypicalInterComponentCommunication/setDeleteIntent/main/res/drawable-v24/ic_launcher_foreground.xml new file mode 100644 index 00000000..1f6bb290 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setDeleteIntent/main/res/drawable-v24/ic_launcher_foreground.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/setDeleteIntent/main/res/drawable/ic_launcher_background.xml b/eclipse-project/AtypicalInterComponentCommunication/setDeleteIntent/main/res/drawable/ic_launcher_background.xml new file mode 100644 index 00000000..0d025f9b --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setDeleteIntent/main/res/drawable/ic_launcher_background.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/setDeleteIntent/main/res/layout/activity_main.xml b/eclipse-project/AtypicalInterComponentCommunication/setDeleteIntent/main/res/layout/activity_main.xml new file mode 100644 index 00000000..41d2ef14 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setDeleteIntent/main/res/layout/activity_main.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/setDeleteIntent/main/res/layout/activity_target.xml b/eclipse-project/AtypicalInterComponentCommunication/setDeleteIntent/main/res/layout/activity_target.xml new file mode 100644 index 00000000..41d2ef14 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setDeleteIntent/main/res/layout/activity_target.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/setDeleteIntent/main/res/mipmap-anydpi-v26/ic_launcher.xml b/eclipse-project/AtypicalInterComponentCommunication/setDeleteIntent/main/res/mipmap-anydpi-v26/ic_launcher.xml new file mode 100644 index 00000000..eca70cfe --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setDeleteIntent/main/res/mipmap-anydpi-v26/ic_launcher.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/setDeleteIntent/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/eclipse-project/AtypicalInterComponentCommunication/setDeleteIntent/main/res/mipmap-anydpi-v26/ic_launcher_round.xml new file mode 100644 index 00000000..eca70cfe --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setDeleteIntent/main/res/mipmap-anydpi-v26/ic_launcher_round.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/setDeleteIntent/main/res/mipmap-hdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/setDeleteIntent/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 00000000..898f3ed5 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setDeleteIntent/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setDeleteIntent/main/res/mipmap-hdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/setDeleteIntent/main/res/mipmap-hdpi/ic_launcher_round.png new file mode 100644 index 00000000..dffca360 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setDeleteIntent/main/res/mipmap-hdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setDeleteIntent/main/res/mipmap-mdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/setDeleteIntent/main/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 00000000..64ba76f7 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setDeleteIntent/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setDeleteIntent/main/res/mipmap-mdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/setDeleteIntent/main/res/mipmap-mdpi/ic_launcher_round.png new file mode 100644 index 00000000..dae5e082 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setDeleteIntent/main/res/mipmap-mdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setDeleteIntent/main/res/mipmap-xhdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/setDeleteIntent/main/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 00000000..e5ed4659 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setDeleteIntent/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setDeleteIntent/main/res/mipmap-xhdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/setDeleteIntent/main/res/mipmap-xhdpi/ic_launcher_round.png new file mode 100644 index 00000000..14ed0af3 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setDeleteIntent/main/res/mipmap-xhdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setDeleteIntent/main/res/mipmap-xxhdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/setDeleteIntent/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 00000000..b0907cac Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setDeleteIntent/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setDeleteIntent/main/res/mipmap-xxhdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/setDeleteIntent/main/res/mipmap-xxhdpi/ic_launcher_round.png new file mode 100644 index 00000000..d8ae0315 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setDeleteIntent/main/res/mipmap-xxhdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setDeleteIntent/main/res/mipmap-xxxhdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/setDeleteIntent/main/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 00000000..2c18de9e Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setDeleteIntent/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setDeleteIntent/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/setDeleteIntent/main/res/mipmap-xxxhdpi/ic_launcher_round.png new file mode 100644 index 00000000..beed3cdd Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setDeleteIntent/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setDeleteIntent/main/res/values/colors.xml b/eclipse-project/AtypicalInterComponentCommunication/setDeleteIntent/main/res/values/colors.xml new file mode 100644 index 00000000..69b22338 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setDeleteIntent/main/res/values/colors.xml @@ -0,0 +1,6 @@ + + + #008577 + #00574B + #D81B60 + diff --git a/eclipse-project/AtypicalInterComponentCommunication/setDeleteIntent/main/res/values/strings.xml b/eclipse-project/AtypicalInterComponentCommunication/setDeleteIntent/main/res/values/strings.xml new file mode 100644 index 00000000..c854cfe6 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setDeleteIntent/main/res/values/strings.xml @@ -0,0 +1,3 @@ + + setDeleteIntent + diff --git a/eclipse-project/AtypicalInterComponentCommunication/setDeleteIntent/main/res/values/styles.xml b/eclipse-project/AtypicalInterComponentCommunication/setDeleteIntent/main/res/values/styles.xml new file mode 100644 index 00000000..5885930d --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setDeleteIntent/main/res/values/styles.xml @@ -0,0 +1,11 @@ + + + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/setExact/.DS_Store b/eclipse-project/AtypicalInterComponentCommunication/setExact/.DS_Store new file mode 100644 index 00000000..498847d9 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setExact/.DS_Store differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setExact/main/AndroidManifest.xml b/eclipse-project/AtypicalInterComponentCommunication/setExact/main/AndroidManifest.xml new file mode 100644 index 00000000..9d69c473 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setExact/main/AndroidManifest.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/setExact/main/java/lu/uni/trux/raicc/setExact/MainActivity.java b/eclipse-project/AtypicalInterComponentCommunication/setExact/main/java/lu/uni/trux/raicc/setExact/MainActivity.java new file mode 100644 index 00000000..1ebaf68e --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setExact/main/java/lu/uni/trux/raicc/setExact/MainActivity.java @@ -0,0 +1,26 @@ +package lu.uni.trux.raicc.setExact; + + +import android.app.Activity; +import android.app.AlarmManager; +import android.app.PendingIntent; +import android.content.Context; +import android.content.Intent; +import android.os.Bundle; +import android.telephony.TelephonyManager; + + +public class MainActivity extends Activity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_main); + String imei = ((TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE)).getDeviceId(); + Intent i = new Intent(this, TargetActivity.class); + i.putExtra("DroidBench", imei); + PendingIntent pi = PendingIntent.getActivity(this, 0, i, 0); + AlarmManager am = ((AlarmManager) this.getSystemService(Context.ALARM_SERVICE)); + am.setExact(AlarmManager.RTC_WAKEUP, System.currentTimeMillis() - 100, pi); + } +} diff --git a/eclipse-project/AtypicalInterComponentCommunication/setExact/main/java/lu/uni/trux/raicc/setExact/TargetActivity.java b/eclipse-project/AtypicalInterComponentCommunication/setExact/main/java/lu/uni/trux/raicc/setExact/TargetActivity.java new file mode 100644 index 00000000..c48134a8 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setExact/main/java/lu/uni/trux/raicc/setExact/TargetActivity.java @@ -0,0 +1,17 @@ +package lu.uni.trux.raicc.setExact; + +import android.app.Activity; +import android.os.Bundle; +import android.util.Log; + + +public class TargetActivity extends Activity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_target); + String imei = this.getIntent().getStringExtra("DroidBench"); + Log.i("DroidBench", imei); + } +} diff --git a/eclipse-project/AtypicalInterComponentCommunication/setExact/main/res/drawable-v24/ic_launcher_foreground.xml b/eclipse-project/AtypicalInterComponentCommunication/setExact/main/res/drawable-v24/ic_launcher_foreground.xml new file mode 100644 index 00000000..1f6bb290 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setExact/main/res/drawable-v24/ic_launcher_foreground.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/setExact/main/res/drawable/ic_launcher_background.xml b/eclipse-project/AtypicalInterComponentCommunication/setExact/main/res/drawable/ic_launcher_background.xml new file mode 100644 index 00000000..0d025f9b --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setExact/main/res/drawable/ic_launcher_background.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/setExact/main/res/layout/activity_main.xml b/eclipse-project/AtypicalInterComponentCommunication/setExact/main/res/layout/activity_main.xml new file mode 100644 index 00000000..aedcb76c --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setExact/main/res/layout/activity_main.xml @@ -0,0 +1,6 @@ + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/setExact/main/res/layout/activity_target.xml b/eclipse-project/AtypicalInterComponentCommunication/setExact/main/res/layout/activity_target.xml new file mode 100644 index 00000000..f9504c9a --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setExact/main/res/layout/activity_target.xml @@ -0,0 +1,6 @@ + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/setExact/main/res/mipmap-anydpi-v26/ic_launcher.xml b/eclipse-project/AtypicalInterComponentCommunication/setExact/main/res/mipmap-anydpi-v26/ic_launcher.xml new file mode 100644 index 00000000..eca70cfe --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setExact/main/res/mipmap-anydpi-v26/ic_launcher.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/setExact/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/eclipse-project/AtypicalInterComponentCommunication/setExact/main/res/mipmap-anydpi-v26/ic_launcher_round.xml new file mode 100644 index 00000000..eca70cfe --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setExact/main/res/mipmap-anydpi-v26/ic_launcher_round.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/setExact/main/res/mipmap-hdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/setExact/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 00000000..898f3ed5 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setExact/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setExact/main/res/mipmap-hdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/setExact/main/res/mipmap-hdpi/ic_launcher_round.png new file mode 100644 index 00000000..dffca360 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setExact/main/res/mipmap-hdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setExact/main/res/mipmap-mdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/setExact/main/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 00000000..64ba76f7 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setExact/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setExact/main/res/mipmap-mdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/setExact/main/res/mipmap-mdpi/ic_launcher_round.png new file mode 100644 index 00000000..dae5e082 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setExact/main/res/mipmap-mdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setExact/main/res/mipmap-xhdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/setExact/main/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 00000000..e5ed4659 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setExact/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setExact/main/res/mipmap-xhdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/setExact/main/res/mipmap-xhdpi/ic_launcher_round.png new file mode 100644 index 00000000..14ed0af3 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setExact/main/res/mipmap-xhdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setExact/main/res/mipmap-xxhdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/setExact/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 00000000..b0907cac Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setExact/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setExact/main/res/mipmap-xxhdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/setExact/main/res/mipmap-xxhdpi/ic_launcher_round.png new file mode 100644 index 00000000..d8ae0315 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setExact/main/res/mipmap-xxhdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setExact/main/res/mipmap-xxxhdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/setExact/main/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 00000000..2c18de9e Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setExact/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setExact/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/setExact/main/res/mipmap-xxxhdpi/ic_launcher_round.png new file mode 100644 index 00000000..beed3cdd Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setExact/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setExact/main/res/values/colors.xml b/eclipse-project/AtypicalInterComponentCommunication/setExact/main/res/values/colors.xml new file mode 100644 index 00000000..69b22338 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setExact/main/res/values/colors.xml @@ -0,0 +1,6 @@ + + + #008577 + #00574B + #D81B60 + diff --git a/eclipse-project/AtypicalInterComponentCommunication/setExact/main/res/values/strings.xml b/eclipse-project/AtypicalInterComponentCommunication/setExact/main/res/values/strings.xml new file mode 100644 index 00000000..092a128a --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setExact/main/res/values/strings.xml @@ -0,0 +1,3 @@ + + setExact + diff --git a/eclipse-project/AtypicalInterComponentCommunication/setExact/main/res/values/styles.xml b/eclipse-project/AtypicalInterComponentCommunication/setExact/main/res/values/styles.xml new file mode 100644 index 00000000..5885930d --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setExact/main/res/values/styles.xml @@ -0,0 +1,11 @@ + + + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/setExactAndAllowWhileIdle/.DS_Store b/eclipse-project/AtypicalInterComponentCommunication/setExactAndAllowWhileIdle/.DS_Store new file mode 100644 index 00000000..498847d9 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setExactAndAllowWhileIdle/.DS_Store differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setExactAndAllowWhileIdle/main/AndroidManifest.xml b/eclipse-project/AtypicalInterComponentCommunication/setExactAndAllowWhileIdle/main/AndroidManifest.xml new file mode 100644 index 00000000..e7ace387 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setExactAndAllowWhileIdle/main/AndroidManifest.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/setExactAndAllowWhileIdle/main/java/lu/uni/trux/raicc/setExactAndAllowWhileIdle/MainActivity.java b/eclipse-project/AtypicalInterComponentCommunication/setExactAndAllowWhileIdle/main/java/lu/uni/trux/raicc/setExactAndAllowWhileIdle/MainActivity.java new file mode 100644 index 00000000..e8aed3bd --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setExactAndAllowWhileIdle/main/java/lu/uni/trux/raicc/setExactAndAllowWhileIdle/MainActivity.java @@ -0,0 +1,26 @@ +package lu.uni.trux.raicc.setExactAndAllowWhileIdle; + + +import android.app.Activity; +import android.app.AlarmManager; +import android.app.PendingIntent; +import android.content.Context; +import android.content.Intent; +import android.os.Bundle; +import android.telephony.TelephonyManager; + + +public class MainActivity extends Activity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_main); + String imei = ((TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE)).getDeviceId(); + Intent i = new Intent(this, TargetActivity.class); + i.putExtra("DroidBench", imei); + PendingIntent pi = PendingIntent.getActivity(this, 0, i, 0); + AlarmManager am = ((AlarmManager) this.getSystemService(Context.ALARM_SERVICE)); + am.setExactAndAllowWhileIdle(AlarmManager.RTC_WAKEUP, System.currentTimeMillis() - 100, pi); + } +} diff --git a/eclipse-project/AtypicalInterComponentCommunication/setExactAndAllowWhileIdle/main/java/lu/uni/trux/raicc/setExactAndAllowWhileIdle/TargetActivity.java b/eclipse-project/AtypicalInterComponentCommunication/setExactAndAllowWhileIdle/main/java/lu/uni/trux/raicc/setExactAndAllowWhileIdle/TargetActivity.java new file mode 100644 index 00000000..a456c02c --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setExactAndAllowWhileIdle/main/java/lu/uni/trux/raicc/setExactAndAllowWhileIdle/TargetActivity.java @@ -0,0 +1,17 @@ +package lu.uni.trux.raicc.setExactAndAllowWhileIdle; + +import android.app.Activity; +import android.os.Bundle; +import android.util.Log; + + +public class TargetActivity extends Activity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_target); + String imei = this.getIntent().getStringExtra("DroidBench"); + Log.i("DroidBench", imei); + } +} diff --git a/eclipse-project/AtypicalInterComponentCommunication/setExactAndAllowWhileIdle/main/res/drawable-v24/ic_launcher_foreground.xml b/eclipse-project/AtypicalInterComponentCommunication/setExactAndAllowWhileIdle/main/res/drawable-v24/ic_launcher_foreground.xml new file mode 100644 index 00000000..1f6bb290 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setExactAndAllowWhileIdle/main/res/drawable-v24/ic_launcher_foreground.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/setExactAndAllowWhileIdle/main/res/drawable/ic_launcher_background.xml b/eclipse-project/AtypicalInterComponentCommunication/setExactAndAllowWhileIdle/main/res/drawable/ic_launcher_background.xml new file mode 100644 index 00000000..0d025f9b --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setExactAndAllowWhileIdle/main/res/drawable/ic_launcher_background.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/setExactAndAllowWhileIdle/main/res/layout/activity_main.xml b/eclipse-project/AtypicalInterComponentCommunication/setExactAndAllowWhileIdle/main/res/layout/activity_main.xml new file mode 100644 index 00000000..aedcb76c --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setExactAndAllowWhileIdle/main/res/layout/activity_main.xml @@ -0,0 +1,6 @@ + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/setExactAndAllowWhileIdle/main/res/layout/activity_target.xml b/eclipse-project/AtypicalInterComponentCommunication/setExactAndAllowWhileIdle/main/res/layout/activity_target.xml new file mode 100644 index 00000000..f9504c9a --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setExactAndAllowWhileIdle/main/res/layout/activity_target.xml @@ -0,0 +1,6 @@ + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/setExactAndAllowWhileIdle/main/res/mipmap-anydpi-v26/ic_launcher.xml b/eclipse-project/AtypicalInterComponentCommunication/setExactAndAllowWhileIdle/main/res/mipmap-anydpi-v26/ic_launcher.xml new file mode 100644 index 00000000..eca70cfe --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setExactAndAllowWhileIdle/main/res/mipmap-anydpi-v26/ic_launcher.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/setExactAndAllowWhileIdle/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/eclipse-project/AtypicalInterComponentCommunication/setExactAndAllowWhileIdle/main/res/mipmap-anydpi-v26/ic_launcher_round.xml new file mode 100644 index 00000000..eca70cfe --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setExactAndAllowWhileIdle/main/res/mipmap-anydpi-v26/ic_launcher_round.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/setExactAndAllowWhileIdle/main/res/mipmap-hdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/setExactAndAllowWhileIdle/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 00000000..898f3ed5 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setExactAndAllowWhileIdle/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setExactAndAllowWhileIdle/main/res/mipmap-hdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/setExactAndAllowWhileIdle/main/res/mipmap-hdpi/ic_launcher_round.png new file mode 100644 index 00000000..dffca360 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setExactAndAllowWhileIdle/main/res/mipmap-hdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setExactAndAllowWhileIdle/main/res/mipmap-mdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/setExactAndAllowWhileIdle/main/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 00000000..64ba76f7 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setExactAndAllowWhileIdle/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setExactAndAllowWhileIdle/main/res/mipmap-mdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/setExactAndAllowWhileIdle/main/res/mipmap-mdpi/ic_launcher_round.png new file mode 100644 index 00000000..dae5e082 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setExactAndAllowWhileIdle/main/res/mipmap-mdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setExactAndAllowWhileIdle/main/res/mipmap-xhdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/setExactAndAllowWhileIdle/main/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 00000000..e5ed4659 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setExactAndAllowWhileIdle/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setExactAndAllowWhileIdle/main/res/mipmap-xhdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/setExactAndAllowWhileIdle/main/res/mipmap-xhdpi/ic_launcher_round.png new file mode 100644 index 00000000..14ed0af3 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setExactAndAllowWhileIdle/main/res/mipmap-xhdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setExactAndAllowWhileIdle/main/res/mipmap-xxhdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/setExactAndAllowWhileIdle/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 00000000..b0907cac Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setExactAndAllowWhileIdle/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setExactAndAllowWhileIdle/main/res/mipmap-xxhdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/setExactAndAllowWhileIdle/main/res/mipmap-xxhdpi/ic_launcher_round.png new file mode 100644 index 00000000..d8ae0315 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setExactAndAllowWhileIdle/main/res/mipmap-xxhdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setExactAndAllowWhileIdle/main/res/mipmap-xxxhdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/setExactAndAllowWhileIdle/main/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 00000000..2c18de9e Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setExactAndAllowWhileIdle/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setExactAndAllowWhileIdle/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/setExactAndAllowWhileIdle/main/res/mipmap-xxxhdpi/ic_launcher_round.png new file mode 100644 index 00000000..beed3cdd Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setExactAndAllowWhileIdle/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setExactAndAllowWhileIdle/main/res/values/colors.xml b/eclipse-project/AtypicalInterComponentCommunication/setExactAndAllowWhileIdle/main/res/values/colors.xml new file mode 100644 index 00000000..69b22338 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setExactAndAllowWhileIdle/main/res/values/colors.xml @@ -0,0 +1,6 @@ + + + #008577 + #00574B + #D81B60 + diff --git a/eclipse-project/AtypicalInterComponentCommunication/setExactAndAllowWhileIdle/main/res/values/strings.xml b/eclipse-project/AtypicalInterComponentCommunication/setExactAndAllowWhileIdle/main/res/values/strings.xml new file mode 100644 index 00000000..866f2e18 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setExactAndAllowWhileIdle/main/res/values/strings.xml @@ -0,0 +1,3 @@ + + setExactAndAllowWhileIdle + diff --git a/eclipse-project/AtypicalInterComponentCommunication/setExactAndAllowWhileIdle/main/res/values/styles.xml b/eclipse-project/AtypicalInterComponentCommunication/setExactAndAllowWhileIdle/main/res/values/styles.xml new file mode 100644 index 00000000..5885930d --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setExactAndAllowWhileIdle/main/res/values/styles.xml @@ -0,0 +1,11 @@ + + + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/setFullScreenIntent/.DS_Store b/eclipse-project/AtypicalInterComponentCommunication/setFullScreenIntent/.DS_Store new file mode 100644 index 00000000..246299f7 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setFullScreenIntent/.DS_Store differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setFullScreenIntent/main/AndroidManifest.xml b/eclipse-project/AtypicalInterComponentCommunication/setFullScreenIntent/main/AndroidManifest.xml new file mode 100644 index 00000000..8db83a0e --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setFullScreenIntent/main/AndroidManifest.xml @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/setFullScreenIntent/main/java/lu/uni/trux/raicc/setFullScreenIntent/MainActivity.java b/eclipse-project/AtypicalInterComponentCommunication/setFullScreenIntent/main/java/lu/uni/trux/raicc/setFullScreenIntent/MainActivity.java new file mode 100644 index 00000000..57d08ef7 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setFullScreenIntent/main/java/lu/uni/trux/raicc/setFullScreenIntent/MainActivity.java @@ -0,0 +1,52 @@ +package lu.uni.trux.raicc.setFullScreenIntent; + + +import android.app.Activity; +import android.app.NotificationChannel; +import android.app.NotificationManager; +import android.app.PendingIntent; +import android.content.Context; +import android.content.Intent; +import android.os.Build; +import android.os.Bundle; +import android.support.v4.app.NotificationCompat; +import android.support.v4.app.NotificationManagerCompat; +import android.telephony.TelephonyManager; + + +public class MainActivity extends Activity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_main); + + String imei = ((TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE)).getDeviceId(); + Intent i = new Intent(this, TargetActivity.class); + i.putExtra("DroidBench", imei); + PendingIntent pi = PendingIntent.getActivity(this, 0, i, 0); + + this.createNotificationChannel(); + NotificationCompat.Builder b = new NotificationCompat.Builder(this) + .setSmallIcon(R.drawable.ic_launcher_background) + .setContentTitle("title") + .setContentText("content") + .setPriority(NotificationCompat.PRIORITY_DEFAULT); + b.setFullScreenIntent(pi, true); + NotificationManagerCompat n = NotificationManagerCompat.from(this); + n.notify(1, b.build()); + } + + private void createNotificationChannel() { + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { + CharSequence name = "channel"; + String description = "desc"; + int importance = NotificationManager.IMPORTANCE_DEFAULT; + NotificationChannel channel = new NotificationChannel("1", name, importance); + channel.setDescription(description); + NotificationManager notificationManager = getSystemService(NotificationManager.class); + notificationManager.createNotificationChannel(channel); + } + } + +} diff --git a/eclipse-project/AtypicalInterComponentCommunication/setFullScreenIntent/main/java/lu/uni/trux/raicc/setFullScreenIntent/TargetActivity.java b/eclipse-project/AtypicalInterComponentCommunication/setFullScreenIntent/main/java/lu/uni/trux/raicc/setFullScreenIntent/TargetActivity.java new file mode 100644 index 00000000..72a14794 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setFullScreenIntent/main/java/lu/uni/trux/raicc/setFullScreenIntent/TargetActivity.java @@ -0,0 +1,18 @@ +package lu.uni.trux.raicc.setFullScreenIntent; + + +import android.app.Activity; +import android.os.Bundle; +import android.util.Log; + + +public class TargetActivity extends Activity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_target); + String imei = this.getIntent().getStringExtra("DroidBench"); + Log.i("DroidBench", imei); + } +} diff --git a/eclipse-project/AtypicalInterComponentCommunication/setFullScreenIntent/main/res/drawable-v24/ic_launcher_foreground.xml b/eclipse-project/AtypicalInterComponentCommunication/setFullScreenIntent/main/res/drawable-v24/ic_launcher_foreground.xml new file mode 100644 index 00000000..1f6bb290 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setFullScreenIntent/main/res/drawable-v24/ic_launcher_foreground.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/setFullScreenIntent/main/res/drawable/ic_launcher_background.xml b/eclipse-project/AtypicalInterComponentCommunication/setFullScreenIntent/main/res/drawable/ic_launcher_background.xml new file mode 100644 index 00000000..0d025f9b --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setFullScreenIntent/main/res/drawable/ic_launcher_background.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/setFullScreenIntent/main/res/layout/activity_main.xml b/eclipse-project/AtypicalInterComponentCommunication/setFullScreenIntent/main/res/layout/activity_main.xml new file mode 100644 index 00000000..41d2ef14 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setFullScreenIntent/main/res/layout/activity_main.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/setFullScreenIntent/main/res/layout/activity_target.xml b/eclipse-project/AtypicalInterComponentCommunication/setFullScreenIntent/main/res/layout/activity_target.xml new file mode 100644 index 00000000..41d2ef14 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setFullScreenIntent/main/res/layout/activity_target.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/setFullScreenIntent/main/res/mipmap-anydpi-v26/ic_launcher.xml b/eclipse-project/AtypicalInterComponentCommunication/setFullScreenIntent/main/res/mipmap-anydpi-v26/ic_launcher.xml new file mode 100644 index 00000000..eca70cfe --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setFullScreenIntent/main/res/mipmap-anydpi-v26/ic_launcher.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/setFullScreenIntent/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/eclipse-project/AtypicalInterComponentCommunication/setFullScreenIntent/main/res/mipmap-anydpi-v26/ic_launcher_round.xml new file mode 100644 index 00000000..eca70cfe --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setFullScreenIntent/main/res/mipmap-anydpi-v26/ic_launcher_round.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/setFullScreenIntent/main/res/mipmap-hdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/setFullScreenIntent/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 00000000..898f3ed5 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setFullScreenIntent/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setFullScreenIntent/main/res/mipmap-hdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/setFullScreenIntent/main/res/mipmap-hdpi/ic_launcher_round.png new file mode 100644 index 00000000..dffca360 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setFullScreenIntent/main/res/mipmap-hdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setFullScreenIntent/main/res/mipmap-mdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/setFullScreenIntent/main/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 00000000..64ba76f7 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setFullScreenIntent/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setFullScreenIntent/main/res/mipmap-mdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/setFullScreenIntent/main/res/mipmap-mdpi/ic_launcher_round.png new file mode 100644 index 00000000..dae5e082 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setFullScreenIntent/main/res/mipmap-mdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setFullScreenIntent/main/res/mipmap-xhdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/setFullScreenIntent/main/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 00000000..e5ed4659 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setFullScreenIntent/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setFullScreenIntent/main/res/mipmap-xhdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/setFullScreenIntent/main/res/mipmap-xhdpi/ic_launcher_round.png new file mode 100644 index 00000000..14ed0af3 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setFullScreenIntent/main/res/mipmap-xhdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setFullScreenIntent/main/res/mipmap-xxhdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/setFullScreenIntent/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 00000000..b0907cac Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setFullScreenIntent/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setFullScreenIntent/main/res/mipmap-xxhdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/setFullScreenIntent/main/res/mipmap-xxhdpi/ic_launcher_round.png new file mode 100644 index 00000000..d8ae0315 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setFullScreenIntent/main/res/mipmap-xxhdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setFullScreenIntent/main/res/mipmap-xxxhdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/setFullScreenIntent/main/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 00000000..2c18de9e Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setFullScreenIntent/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setFullScreenIntent/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/setFullScreenIntent/main/res/mipmap-xxxhdpi/ic_launcher_round.png new file mode 100644 index 00000000..beed3cdd Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setFullScreenIntent/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setFullScreenIntent/main/res/values/colors.xml b/eclipse-project/AtypicalInterComponentCommunication/setFullScreenIntent/main/res/values/colors.xml new file mode 100644 index 00000000..69b22338 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setFullScreenIntent/main/res/values/colors.xml @@ -0,0 +1,6 @@ + + + #008577 + #00574B + #D81B60 + diff --git a/eclipse-project/AtypicalInterComponentCommunication/setFullScreenIntent/main/res/values/strings.xml b/eclipse-project/AtypicalInterComponentCommunication/setFullScreenIntent/main/res/values/strings.xml new file mode 100644 index 00000000..0773b7af --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setFullScreenIntent/main/res/values/strings.xml @@ -0,0 +1,3 @@ + + setFullScreenIntent + diff --git a/eclipse-project/AtypicalInterComponentCommunication/setFullScreenIntent/main/res/values/styles.xml b/eclipse-project/AtypicalInterComponentCommunication/setFullScreenIntent/main/res/values/styles.xml new file mode 100644 index 00000000..5885930d --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setFullScreenIntent/main/res/values/styles.xml @@ -0,0 +1,11 @@ + + + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/setInexactRepeating/.DS_Store b/eclipse-project/AtypicalInterComponentCommunication/setInexactRepeating/.DS_Store new file mode 100644 index 00000000..7080c4d5 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setInexactRepeating/.DS_Store differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setInexactRepeating/main/AndroidManifest.xml b/eclipse-project/AtypicalInterComponentCommunication/setInexactRepeating/main/AndroidManifest.xml new file mode 100644 index 00000000..c50b8495 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setInexactRepeating/main/AndroidManifest.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/setInexactRepeating/main/java/lu/uni/trux/raicc/setInexactRepeating/MainActivity.java b/eclipse-project/AtypicalInterComponentCommunication/setInexactRepeating/main/java/lu/uni/trux/raicc/setInexactRepeating/MainActivity.java new file mode 100644 index 00000000..ca06fa4d --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setInexactRepeating/main/java/lu/uni/trux/raicc/setInexactRepeating/MainActivity.java @@ -0,0 +1,26 @@ +package lu.uni.trux.raicc.setInexactRepeating; + + +import android.app.Activity; +import android.app.AlarmManager; +import android.app.PendingIntent; +import android.content.Context; +import android.content.Intent; +import android.os.Bundle; +import android.telephony.TelephonyManager; + + +public class MainActivity extends Activity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_main); + String imei = ((TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE)).getDeviceId(); + Intent i = new Intent(this, TargetActivity.class); + i.putExtra("DroidBench", imei); + PendingIntent pi = PendingIntent.getActivity(this, 0, i, 0); + AlarmManager am = ((AlarmManager) this.getSystemService(Context.ALARM_SERVICE)); + am.setInexactRepeating(AlarmManager.RTC_WAKEUP, System.currentTimeMillis() - 100, 10, pi); + } +} diff --git a/eclipse-project/AtypicalInterComponentCommunication/setInexactRepeating/main/java/lu/uni/trux/raicc/setInexactRepeating/TargetActivity.java b/eclipse-project/AtypicalInterComponentCommunication/setInexactRepeating/main/java/lu/uni/trux/raicc/setInexactRepeating/TargetActivity.java new file mode 100644 index 00000000..7c20b06e --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setInexactRepeating/main/java/lu/uni/trux/raicc/setInexactRepeating/TargetActivity.java @@ -0,0 +1,17 @@ +package lu.uni.trux.raicc.setInexactRepeating; + +import android.app.Activity; +import android.os.Bundle; +import android.util.Log; + + +public class TargetActivity extends Activity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_target); + String imei = this.getIntent().getStringExtra("DroidBench"); + Log.i("DroidBench", imei); + } +} diff --git a/eclipse-project/AtypicalInterComponentCommunication/setInexactRepeating/main/res/drawable-v24/ic_launcher_foreground.xml b/eclipse-project/AtypicalInterComponentCommunication/setInexactRepeating/main/res/drawable-v24/ic_launcher_foreground.xml new file mode 100644 index 00000000..1f6bb290 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setInexactRepeating/main/res/drawable-v24/ic_launcher_foreground.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/setInexactRepeating/main/res/drawable/ic_launcher_background.xml b/eclipse-project/AtypicalInterComponentCommunication/setInexactRepeating/main/res/drawable/ic_launcher_background.xml new file mode 100644 index 00000000..0d025f9b --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setInexactRepeating/main/res/drawable/ic_launcher_background.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/setInexactRepeating/main/res/layout/activity_main.xml b/eclipse-project/AtypicalInterComponentCommunication/setInexactRepeating/main/res/layout/activity_main.xml new file mode 100644 index 00000000..aedcb76c --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setInexactRepeating/main/res/layout/activity_main.xml @@ -0,0 +1,6 @@ + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/setInexactRepeating/main/res/layout/activity_target.xml b/eclipse-project/AtypicalInterComponentCommunication/setInexactRepeating/main/res/layout/activity_target.xml new file mode 100644 index 00000000..f9504c9a --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setInexactRepeating/main/res/layout/activity_target.xml @@ -0,0 +1,6 @@ + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/setInexactRepeating/main/res/mipmap-anydpi-v26/ic_launcher.xml b/eclipse-project/AtypicalInterComponentCommunication/setInexactRepeating/main/res/mipmap-anydpi-v26/ic_launcher.xml new file mode 100644 index 00000000..eca70cfe --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setInexactRepeating/main/res/mipmap-anydpi-v26/ic_launcher.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/setInexactRepeating/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/eclipse-project/AtypicalInterComponentCommunication/setInexactRepeating/main/res/mipmap-anydpi-v26/ic_launcher_round.xml new file mode 100644 index 00000000..eca70cfe --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setInexactRepeating/main/res/mipmap-anydpi-v26/ic_launcher_round.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/setInexactRepeating/main/res/mipmap-hdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/setInexactRepeating/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 00000000..898f3ed5 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setInexactRepeating/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setInexactRepeating/main/res/mipmap-hdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/setInexactRepeating/main/res/mipmap-hdpi/ic_launcher_round.png new file mode 100644 index 00000000..dffca360 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setInexactRepeating/main/res/mipmap-hdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setInexactRepeating/main/res/mipmap-mdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/setInexactRepeating/main/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 00000000..64ba76f7 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setInexactRepeating/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setInexactRepeating/main/res/mipmap-mdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/setInexactRepeating/main/res/mipmap-mdpi/ic_launcher_round.png new file mode 100644 index 00000000..dae5e082 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setInexactRepeating/main/res/mipmap-mdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setInexactRepeating/main/res/mipmap-xhdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/setInexactRepeating/main/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 00000000..e5ed4659 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setInexactRepeating/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setInexactRepeating/main/res/mipmap-xhdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/setInexactRepeating/main/res/mipmap-xhdpi/ic_launcher_round.png new file mode 100644 index 00000000..14ed0af3 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setInexactRepeating/main/res/mipmap-xhdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setInexactRepeating/main/res/mipmap-xxhdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/setInexactRepeating/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 00000000..b0907cac Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setInexactRepeating/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setInexactRepeating/main/res/mipmap-xxhdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/setInexactRepeating/main/res/mipmap-xxhdpi/ic_launcher_round.png new file mode 100644 index 00000000..d8ae0315 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setInexactRepeating/main/res/mipmap-xxhdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setInexactRepeating/main/res/mipmap-xxxhdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/setInexactRepeating/main/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 00000000..2c18de9e Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setInexactRepeating/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setInexactRepeating/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/setInexactRepeating/main/res/mipmap-xxxhdpi/ic_launcher_round.png new file mode 100644 index 00000000..beed3cdd Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setInexactRepeating/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setInexactRepeating/main/res/values/colors.xml b/eclipse-project/AtypicalInterComponentCommunication/setInexactRepeating/main/res/values/colors.xml new file mode 100644 index 00000000..69b22338 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setInexactRepeating/main/res/values/colors.xml @@ -0,0 +1,6 @@ + + + #008577 + #00574B + #D81B60 + diff --git a/eclipse-project/AtypicalInterComponentCommunication/setInexactRepeating/main/res/values/strings.xml b/eclipse-project/AtypicalInterComponentCommunication/setInexactRepeating/main/res/values/strings.xml new file mode 100644 index 00000000..7d02f26d --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setInexactRepeating/main/res/values/strings.xml @@ -0,0 +1,3 @@ + + setInexactRepeating + diff --git a/eclipse-project/AtypicalInterComponentCommunication/setInexactRepeating/main/res/values/styles.xml b/eclipse-project/AtypicalInterComponentCommunication/setInexactRepeating/main/res/values/styles.xml new file mode 100644 index 00000000..5885930d --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setInexactRepeating/main/res/values/styles.xml @@ -0,0 +1,11 @@ + + + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/setLatestEventInfo/.DS_Store b/eclipse-project/AtypicalInterComponentCommunication/setLatestEventInfo/.DS_Store new file mode 100644 index 00000000..246299f7 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setLatestEventInfo/.DS_Store differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setLatestEventInfo/main/AndroidManifest.xml b/eclipse-project/AtypicalInterComponentCommunication/setLatestEventInfo/main/AndroidManifest.xml new file mode 100644 index 00000000..0ac2abe3 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setLatestEventInfo/main/AndroidManifest.xml @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/setLatestEventInfo/main/java/lu/uni/trux/raicc/setLatestEventInfo/MainActivity.java b/eclipse-project/AtypicalInterComponentCommunication/setLatestEventInfo/main/java/lu/uni/trux/raicc/setLatestEventInfo/MainActivity.java new file mode 100644 index 00000000..c5475aa8 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setLatestEventInfo/main/java/lu/uni/trux/raicc/setLatestEventInfo/MainActivity.java @@ -0,0 +1,32 @@ +package lu.uni.trux.raicc.setLatestEventInfo; + +import android.app.Activity; +import android.app.Notification; +import android.app.NotificationManager; +import android.app.PendingIntent; +import android.content.Context; +import android.content.Intent; +import android.os.Bundle; +import android.support.v4.app.NotificationCompat; +import android.telephony.TelephonyManager; + + +public class MainActivity extends Activity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_main); + String imei = ((TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE)).getDeviceId(); + Intent i = new Intent(this, TargetActivity.class); + i.putExtra("DroidBench", imei); + PendingIntent pi = PendingIntent.getActivity(this, 0, i, 0); + + NotificationManager notificationManager = (NotificationManager)this.getSystemService(Context.NOTIFICATION_SERVICE); + Notification notification = new NotificationCompat.Builder(this) + .setSmallIcon(R.drawable.ic_launcher_background) + .build(); + notification.setLatestEventInfo(this,"Title","Text",pi); + notificationManager.notify(10, notification); + } +} diff --git a/eclipse-project/AtypicalInterComponentCommunication/setLatestEventInfo/main/java/lu/uni/trux/raicc/setLatestEventInfo/TargetActivity.java b/eclipse-project/AtypicalInterComponentCommunication/setLatestEventInfo/main/java/lu/uni/trux/raicc/setLatestEventInfo/TargetActivity.java new file mode 100644 index 00000000..44fdffdd --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setLatestEventInfo/main/java/lu/uni/trux/raicc/setLatestEventInfo/TargetActivity.java @@ -0,0 +1,18 @@ +package lu.uni.trux.raicc.setLatestEventInfo; + + +import android.app.Activity; +import android.os.Bundle; +import android.util.Log; + + +public class TargetActivity extends Activity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_target); + String imei = this.getIntent().getStringExtra("DroidBench"); + Log.i("DroidBench", imei); + } +} diff --git a/eclipse-project/AtypicalInterComponentCommunication/setLatestEventInfo/main/res/drawable-v24/ic_launcher_foreground.xml b/eclipse-project/AtypicalInterComponentCommunication/setLatestEventInfo/main/res/drawable-v24/ic_launcher_foreground.xml new file mode 100644 index 00000000..f9441a3c --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setLatestEventInfo/main/res/drawable-v24/ic_launcher_foreground.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/setLatestEventInfo/main/res/drawable/ic_launcher_background.xml b/eclipse-project/AtypicalInterComponentCommunication/setLatestEventInfo/main/res/drawable/ic_launcher_background.xml new file mode 100644 index 00000000..0d025f9b --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setLatestEventInfo/main/res/drawable/ic_launcher_background.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/setLatestEventInfo/main/res/layout/activity_intermediate.xml b/eclipse-project/AtypicalInterComponentCommunication/setLatestEventInfo/main/res/layout/activity_intermediate.xml new file mode 100644 index 00000000..41d2ef14 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setLatestEventInfo/main/res/layout/activity_intermediate.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/setLatestEventInfo/main/res/layout/activity_main.xml b/eclipse-project/AtypicalInterComponentCommunication/setLatestEventInfo/main/res/layout/activity_main.xml new file mode 100644 index 00000000..41d2ef14 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setLatestEventInfo/main/res/layout/activity_main.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/setLatestEventInfo/main/res/layout/activity_target.xml b/eclipse-project/AtypicalInterComponentCommunication/setLatestEventInfo/main/res/layout/activity_target.xml new file mode 100644 index 00000000..41d2ef14 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setLatestEventInfo/main/res/layout/activity_target.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/setLatestEventInfo/main/res/mipmap-anydpi-v26/ic_launcher.xml b/eclipse-project/AtypicalInterComponentCommunication/setLatestEventInfo/main/res/mipmap-anydpi-v26/ic_launcher.xml new file mode 100644 index 00000000..d8a70dbf --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setLatestEventInfo/main/res/mipmap-anydpi-v26/ic_launcher.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/setLatestEventInfo/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/eclipse-project/AtypicalInterComponentCommunication/setLatestEventInfo/main/res/mipmap-anydpi-v26/ic_launcher_round.xml new file mode 100644 index 00000000..d8a70dbf --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setLatestEventInfo/main/res/mipmap-anydpi-v26/ic_launcher_round.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/setLatestEventInfo/main/res/mipmap-hdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/setLatestEventInfo/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 00000000..898f3ed5 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setLatestEventInfo/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setLatestEventInfo/main/res/mipmap-hdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/setLatestEventInfo/main/res/mipmap-hdpi/ic_launcher_round.png new file mode 100644 index 00000000..dffca360 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setLatestEventInfo/main/res/mipmap-hdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setLatestEventInfo/main/res/mipmap-mdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/setLatestEventInfo/main/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 00000000..64ba76f7 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setLatestEventInfo/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setLatestEventInfo/main/res/mipmap-mdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/setLatestEventInfo/main/res/mipmap-mdpi/ic_launcher_round.png new file mode 100644 index 00000000..dae5e082 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setLatestEventInfo/main/res/mipmap-mdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setLatestEventInfo/main/res/mipmap-xhdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/setLatestEventInfo/main/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 00000000..e5ed4659 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setLatestEventInfo/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setLatestEventInfo/main/res/mipmap-xhdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/setLatestEventInfo/main/res/mipmap-xhdpi/ic_launcher_round.png new file mode 100644 index 00000000..14ed0af3 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setLatestEventInfo/main/res/mipmap-xhdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setLatestEventInfo/main/res/mipmap-xxhdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/setLatestEventInfo/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 00000000..b0907cac Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setLatestEventInfo/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setLatestEventInfo/main/res/mipmap-xxhdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/setLatestEventInfo/main/res/mipmap-xxhdpi/ic_launcher_round.png new file mode 100644 index 00000000..d8ae0315 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setLatestEventInfo/main/res/mipmap-xxhdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setLatestEventInfo/main/res/mipmap-xxxhdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/setLatestEventInfo/main/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 00000000..2c18de9e Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setLatestEventInfo/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setLatestEventInfo/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/setLatestEventInfo/main/res/mipmap-xxxhdpi/ic_launcher_round.png new file mode 100644 index 00000000..beed3cdd Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setLatestEventInfo/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setLatestEventInfo/main/res/values/colors.xml b/eclipse-project/AtypicalInterComponentCommunication/setLatestEventInfo/main/res/values/colors.xml new file mode 100644 index 00000000..69b22338 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setLatestEventInfo/main/res/values/colors.xml @@ -0,0 +1,6 @@ + + + #008577 + #00574B + #D81B60 + diff --git a/eclipse-project/AtypicalInterComponentCommunication/setLatestEventInfo/main/res/values/strings.xml b/eclipse-project/AtypicalInterComponentCommunication/setLatestEventInfo/main/res/values/strings.xml new file mode 100644 index 00000000..81ac9e07 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setLatestEventInfo/main/res/values/strings.xml @@ -0,0 +1,3 @@ + + setLatestEventInfo + diff --git a/eclipse-project/AtypicalInterComponentCommunication/setLatestEventInfo/main/res/values/styles.xml b/eclipse-project/AtypicalInterComponentCommunication/setLatestEventInfo/main/res/values/styles.xml new file mode 100644 index 00000000..5885930d --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setLatestEventInfo/main/res/values/styles.xml @@ -0,0 +1,11 @@ + + + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/.DS_Store b/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/.DS_Store new file mode 100644 index 00000000..498847d9 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/.DS_Store differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/AndroidManifest.xml b/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/AndroidManifest.xml new file mode 100644 index 00000000..994ce8e0 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/AndroidManifest.xml @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/java/lu/uni/trux/raicc/setOnClickPendingIntent/MainActivity.java b/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/java/lu/uni/trux/raicc/setOnClickPendingIntent/MainActivity.java new file mode 100644 index 00000000..066f2d12 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/java/lu/uni/trux/raicc/setOnClickPendingIntent/MainActivity.java @@ -0,0 +1,27 @@ +package lu.uni.trux.raicc.setOnClickPendingIntent; + + +import android.app.Activity; +import android.app.AlarmManager; +import android.app.PendingIntent; +import android.content.Context; +import android.content.Intent; +import android.os.Bundle; +import android.telephony.TelephonyManager; + + + +public class MainActivity extends Activity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_main); + String imei = ((TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE)).getDeviceId(); + Intent i = new Intent(this, TargetActivity.class); + i.putExtra("DroidBench", imei); + PendingIntent pi = PendingIntent.getActivity(this, 0, i, 0); + AlarmManager am = ((AlarmManager) this.getSystemService(Context.ALARM_SERVICE)); + am.set(AlarmManager.RTC_WAKEUP, System.currentTimeMillis() - 100, pi); + } +} diff --git a/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/java/lu/uni/trux/raicc/setOnClickPendingIntent/MyWidgetProvider.java b/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/java/lu/uni/trux/raicc/setOnClickPendingIntent/MyWidgetProvider.java new file mode 100644 index 00000000..063bbce4 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/java/lu/uni/trux/raicc/setOnClickPendingIntent/MyWidgetProvider.java @@ -0,0 +1,42 @@ +package lu.uni.trux.raicc.setOnClickPendingIntent; + +import java.util.Random; + +import android.app.PendingIntent; +import android.appwidget.AppWidgetManager; +import android.appwidget.AppWidgetProvider; +import android.content.ComponentName; +import android.content.Context; +import android.content.Intent; +import android.telephony.TelephonyManager; +import android.widget.RemoteViews; + + +public class MyWidgetProvider extends AppWidgetProvider { + + private static final String ACTION_CLICK = "ACTION_CLICK"; + + @Override + public void onUpdate(Context context, AppWidgetManager appWidgetManager, + int[] appWidgetIds) { + + ComponentName thisWidget = new ComponentName(context, + MyWidgetProvider.class); + int[] allWidgetIds = appWidgetManager.getAppWidgetIds(thisWidget); + for (int widgetId : allWidgetIds) { + int number = (new Random().nextInt(100)); + + RemoteViews remoteViews = new RemoteViews(context.getPackageName(), + R.layout.widget_layout); + remoteViews.setTextViewText(R.id.update, String.valueOf(number)); + System.out.println("TEST"); + + String imei = ((TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE)).getDeviceId(); + Intent i = new Intent(context, TargetActivity.class); + i.putExtra("DroidBench", imei); + PendingIntent pi = PendingIntent.getActivity(context, 0, i, 0); + remoteViews.setOnClickPendingIntent(R.id.update, pi); + appWidgetManager.updateAppWidget(widgetId, remoteViews); + } + } +} \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/java/lu/uni/trux/raicc/setOnClickPendingIntent/TargetActivity.java b/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/java/lu/uni/trux/raicc/setOnClickPendingIntent/TargetActivity.java new file mode 100644 index 00000000..580740bd --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/java/lu/uni/trux/raicc/setOnClickPendingIntent/TargetActivity.java @@ -0,0 +1,17 @@ +package lu.uni.trux.raicc.setOnClickPendingIntent; + +import android.app.Activity; +import android.os.Bundle; +import android.util.Log; + + +public class TargetActivity extends Activity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_target); + String imei = this.getIntent().getStringExtra("DroidBench"); + Log.i("DroidBench", imei); + } +} diff --git a/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/res/drawable-v24/ic_launcher_foreground.xml b/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/res/drawable-v24/ic_launcher_foreground.xml new file mode 100644 index 00000000..1f6bb290 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/res/drawable-v24/ic_launcher_foreground.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/res/drawable/ic_launcher_background.xml b/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/res/drawable/ic_launcher_background.xml new file mode 100644 index 00000000..0d025f9b --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/res/drawable/ic_launcher_background.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/res/drawable/myshape.xml b/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/res/drawable/myshape.xml new file mode 100644 index 00000000..9ee36d9b --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/res/drawable/myshape.xml @@ -0,0 +1,20 @@ + + + + + + + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/res/layout/activity_main.xml b/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/res/layout/activity_main.xml new file mode 100644 index 00000000..aedcb76c --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/res/layout/activity_main.xml @@ -0,0 +1,6 @@ + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/res/layout/activity_target.xml b/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/res/layout/activity_target.xml new file mode 100644 index 00000000..f9504c9a --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/res/layout/activity_target.xml @@ -0,0 +1,6 @@ + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/res/layout/widget_layout.xml b/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/res/layout/widget_layout.xml new file mode 100644 index 00000000..ff898455 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/res/layout/widget_layout.xml @@ -0,0 +1,20 @@ + + + + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/res/mipmap-anydpi-v26/ic_launcher.xml b/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/res/mipmap-anydpi-v26/ic_launcher.xml new file mode 100644 index 00000000..eca70cfe --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/res/mipmap-anydpi-v26/ic_launcher.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/res/mipmap-anydpi-v26/ic_launcher_round.xml new file mode 100644 index 00000000..eca70cfe --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/res/mipmap-anydpi-v26/ic_launcher_round.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/res/mipmap-hdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 00000000..898f3ed5 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/res/mipmap-hdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/res/mipmap-hdpi/ic_launcher_round.png new file mode 100644 index 00000000..dffca360 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/res/mipmap-hdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/res/mipmap-mdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 00000000..64ba76f7 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/res/mipmap-mdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/res/mipmap-mdpi/ic_launcher_round.png new file mode 100644 index 00000000..dae5e082 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/res/mipmap-mdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/res/mipmap-xhdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 00000000..e5ed4659 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/res/mipmap-xhdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/res/mipmap-xhdpi/ic_launcher_round.png new file mode 100644 index 00000000..14ed0af3 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/res/mipmap-xhdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/res/mipmap-xxhdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 00000000..b0907cac Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/res/mipmap-xxhdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/res/mipmap-xxhdpi/ic_launcher_round.png new file mode 100644 index 00000000..d8ae0315 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/res/mipmap-xxhdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/res/mipmap-xxxhdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 00000000..2c18de9e Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/res/mipmap-xxxhdpi/ic_launcher_round.png new file mode 100644 index 00000000..beed3cdd Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/res/values/colors.xml b/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/res/values/colors.xml new file mode 100644 index 00000000..69b22338 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/res/values/colors.xml @@ -0,0 +1,6 @@ + + + #008577 + #00574B + #D81B60 + diff --git a/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/res/values/strings.xml b/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/res/values/strings.xml new file mode 100644 index 00000000..9b05c86a --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/res/values/strings.xml @@ -0,0 +1,3 @@ + + setOnClickPendingIntent + diff --git a/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/res/values/styles.xml b/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/res/values/styles.xml new file mode 100644 index 00000000..5885930d --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/res/values/styles.xml @@ -0,0 +1,11 @@ + + + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/res/xml/widget_info.xml b/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/res/xml/widget_info.xml new file mode 100644 index 00000000..ce98f002 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setOnClickPendingIntent/main/res/xml/widget_info.xml @@ -0,0 +1,9 @@ + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/.DS_Store b/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/.DS_Store new file mode 100644 index 00000000..498847d9 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/.DS_Store differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/AndroidManifest.xml b/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/AndroidManifest.xml new file mode 100644 index 00000000..d21df6c9 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/AndroidManifest.xml @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/java/lu/uni/trux/raicc/setPendingIntentTemplate/MainActivity.java b/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/java/lu/uni/trux/raicc/setPendingIntentTemplate/MainActivity.java new file mode 100644 index 00000000..6b3df74b --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/java/lu/uni/trux/raicc/setPendingIntentTemplate/MainActivity.java @@ -0,0 +1,27 @@ +package lu.uni.trux.raicc.setPendingIntentTemplate; + + +import android.app.Activity; +import android.app.AlarmManager; +import android.app.PendingIntent; +import android.content.Context; +import android.content.Intent; +import android.os.Bundle; +import android.telephony.TelephonyManager; + + + +public class MainActivity extends Activity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_main); + String imei = ((TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE)).getDeviceId(); + Intent i = new Intent(this, TargetActivity.class); + i.putExtra("DroidBench", imei); + PendingIntent pi = PendingIntent.getActivity(this, 0, i, 0); + AlarmManager am = ((AlarmManager) this.getSystemService(Context.ALARM_SERVICE)); + am.set(AlarmManager.RTC_WAKEUP, System.currentTimeMillis() - 100, pi); + } +} diff --git a/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/java/lu/uni/trux/raicc/setPendingIntentTemplate/MyWidgetProvider.java b/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/java/lu/uni/trux/raicc/setPendingIntentTemplate/MyWidgetProvider.java new file mode 100644 index 00000000..feea82cd --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/java/lu/uni/trux/raicc/setPendingIntentTemplate/MyWidgetProvider.java @@ -0,0 +1,41 @@ +package lu.uni.trux.raicc.setPendingIntentTemplate; + +import java.util.Random; + +import android.app.PendingIntent; +import android.appwidget.AppWidgetManager; +import android.appwidget.AppWidgetProvider; +import android.content.ComponentName; +import android.content.Context; +import android.content.Intent; +import android.telephony.TelephonyManager; +import android.widget.RemoteViews; + + +public class MyWidgetProvider extends AppWidgetProvider { + + private static final String ACTION_CLICK = "ACTION_CLICK"; + + @Override + public void onUpdate(Context context, AppWidgetManager appWidgetManager, + int[] appWidgetIds) { + + ComponentName thisWidget = new ComponentName(context, + MyWidgetProvider.class); + int[] allWidgetIds = appWidgetManager.getAppWidgetIds(thisWidget); + for (int widgetId : allWidgetIds) { + int number = (new Random().nextInt(100)); + + RemoteViews remoteViews = new RemoteViews(context.getPackageName(), + R.layout.widget_layout); + remoteViews.setTextViewText(R.id.update, String.valueOf(number)); + + String imei = ((TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE)).getDeviceId(); + Intent i = new Intent(context, TargetActivity.class); + i.putExtra("DroidBench", imei); + PendingIntent pi = PendingIntent.getActivity(context, 0, i, 0); + remoteViews.setPendingIntentTemplate(R.id.update, pi); + appWidgetManager.updateAppWidget(widgetId, remoteViews); + } + } +} \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/java/lu/uni/trux/raicc/setPendingIntentTemplate/TargetActivity.java b/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/java/lu/uni/trux/raicc/setPendingIntentTemplate/TargetActivity.java new file mode 100644 index 00000000..e10a7a49 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/java/lu/uni/trux/raicc/setPendingIntentTemplate/TargetActivity.java @@ -0,0 +1,17 @@ +package lu.uni.trux.raicc.setPendingIntentTemplate; + +import android.app.Activity; +import android.os.Bundle; +import android.util.Log; + + +public class TargetActivity extends Activity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_target); + String imei = this.getIntent().getStringExtra("DroidBench"); + Log.i("DroidBench", imei); + } +} diff --git a/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/res/drawable-v24/ic_launcher_foreground.xml b/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/res/drawable-v24/ic_launcher_foreground.xml new file mode 100644 index 00000000..1f6bb290 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/res/drawable-v24/ic_launcher_foreground.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/res/drawable/ic_launcher_background.xml b/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/res/drawable/ic_launcher_background.xml new file mode 100644 index 00000000..0d025f9b --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/res/drawable/ic_launcher_background.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/res/drawable/myshape.xml b/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/res/drawable/myshape.xml new file mode 100644 index 00000000..9ee36d9b --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/res/drawable/myshape.xml @@ -0,0 +1,20 @@ + + + + + + + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/res/layout/activity_main.xml b/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/res/layout/activity_main.xml new file mode 100644 index 00000000..aedcb76c --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/res/layout/activity_main.xml @@ -0,0 +1,6 @@ + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/res/layout/activity_target.xml b/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/res/layout/activity_target.xml new file mode 100644 index 00000000..f9504c9a --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/res/layout/activity_target.xml @@ -0,0 +1,6 @@ + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/res/layout/widget_layout.xml b/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/res/layout/widget_layout.xml new file mode 100644 index 00000000..ff898455 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/res/layout/widget_layout.xml @@ -0,0 +1,20 @@ + + + + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/res/mipmap-anydpi-v26/ic_launcher.xml b/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/res/mipmap-anydpi-v26/ic_launcher.xml new file mode 100644 index 00000000..eca70cfe --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/res/mipmap-anydpi-v26/ic_launcher.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/res/mipmap-anydpi-v26/ic_launcher_round.xml new file mode 100644 index 00000000..eca70cfe --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/res/mipmap-anydpi-v26/ic_launcher_round.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/res/mipmap-hdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 00000000..898f3ed5 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/res/mipmap-hdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/res/mipmap-hdpi/ic_launcher_round.png new file mode 100644 index 00000000..dffca360 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/res/mipmap-hdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/res/mipmap-mdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 00000000..64ba76f7 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/res/mipmap-mdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/res/mipmap-mdpi/ic_launcher_round.png new file mode 100644 index 00000000..dae5e082 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/res/mipmap-mdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/res/mipmap-xhdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 00000000..e5ed4659 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/res/mipmap-xhdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/res/mipmap-xhdpi/ic_launcher_round.png new file mode 100644 index 00000000..14ed0af3 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/res/mipmap-xhdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/res/mipmap-xxhdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 00000000..b0907cac Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/res/mipmap-xxhdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/res/mipmap-xxhdpi/ic_launcher_round.png new file mode 100644 index 00000000..d8ae0315 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/res/mipmap-xxhdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/res/mipmap-xxxhdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 00000000..2c18de9e Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/res/mipmap-xxxhdpi/ic_launcher_round.png new file mode 100644 index 00000000..beed3cdd Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/res/values/colors.xml b/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/res/values/colors.xml new file mode 100644 index 00000000..69b22338 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/res/values/colors.xml @@ -0,0 +1,6 @@ + + + #008577 + #00574B + #D81B60 + diff --git a/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/res/values/strings.xml b/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/res/values/strings.xml new file mode 100644 index 00000000..d5f8abae --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/res/values/strings.xml @@ -0,0 +1,3 @@ + + setPendingIntentTemplate + diff --git a/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/res/values/styles.xml b/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/res/values/styles.xml new file mode 100644 index 00000000..5885930d --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/res/values/styles.xml @@ -0,0 +1,11 @@ + + + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/res/xml/widget_info.xml b/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/res/xml/widget_info.xml new file mode 100644 index 00000000..ce98f002 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setPendingIntentTemplate/main/res/xml/widget_info.xml @@ -0,0 +1,9 @@ + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/setRepeating/.DS_Store b/eclipse-project/AtypicalInterComponentCommunication/setRepeating/.DS_Store new file mode 100644 index 00000000..498847d9 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setRepeating/.DS_Store differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setRepeating/main/AndroidManifest.xml b/eclipse-project/AtypicalInterComponentCommunication/setRepeating/main/AndroidManifest.xml new file mode 100644 index 00000000..92c481a7 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setRepeating/main/AndroidManifest.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/setRepeating/main/java/lu/uni/trux/raicc/setRepeating/MainActivity.java b/eclipse-project/AtypicalInterComponentCommunication/setRepeating/main/java/lu/uni/trux/raicc/setRepeating/MainActivity.java new file mode 100644 index 00000000..564571af --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setRepeating/main/java/lu/uni/trux/raicc/setRepeating/MainActivity.java @@ -0,0 +1,26 @@ +package lu.uni.trux.raicc.setRepeating; + + +import android.app.Activity; +import android.app.AlarmManager; +import android.app.PendingIntent; +import android.content.Context; +import android.content.Intent; +import android.os.Bundle; +import android.telephony.TelephonyManager; + + +public class MainActivity extends Activity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_main); + String imei = ((TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE)).getDeviceId(); + Intent i = new Intent(this, TargetActivity.class); + i.putExtra("DroidBench", imei); + PendingIntent pi = PendingIntent.getActivity(this, 0, i, 0); + AlarmManager am = ((AlarmManager) this.getSystemService(Context.ALARM_SERVICE)); + am.setRepeating(AlarmManager.RTC_WAKEUP, System.currentTimeMillis() - 100, 10, pi); + } +} diff --git a/eclipse-project/AtypicalInterComponentCommunication/setRepeating/main/java/lu/uni/trux/raicc/setRepeating/TargetActivity.java b/eclipse-project/AtypicalInterComponentCommunication/setRepeating/main/java/lu/uni/trux/raicc/setRepeating/TargetActivity.java new file mode 100644 index 00000000..e71bc95a --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setRepeating/main/java/lu/uni/trux/raicc/setRepeating/TargetActivity.java @@ -0,0 +1,17 @@ +package lu.uni.trux.raicc.setRepeating; + +import android.app.Activity; +import android.os.Bundle; +import android.util.Log; + + +public class TargetActivity extends Activity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_target); + String imei = this.getIntent().getStringExtra("DroidBench"); + Log.i("DroidBench", imei); + } +} diff --git a/eclipse-project/AtypicalInterComponentCommunication/setRepeating/main/res/drawable-v24/ic_launcher_foreground.xml b/eclipse-project/AtypicalInterComponentCommunication/setRepeating/main/res/drawable-v24/ic_launcher_foreground.xml new file mode 100644 index 00000000..1f6bb290 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setRepeating/main/res/drawable-v24/ic_launcher_foreground.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/setRepeating/main/res/drawable/ic_launcher_background.xml b/eclipse-project/AtypicalInterComponentCommunication/setRepeating/main/res/drawable/ic_launcher_background.xml new file mode 100644 index 00000000..0d025f9b --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setRepeating/main/res/drawable/ic_launcher_background.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/setRepeating/main/res/layout/activity_main.xml b/eclipse-project/AtypicalInterComponentCommunication/setRepeating/main/res/layout/activity_main.xml new file mode 100644 index 00000000..aedcb76c --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setRepeating/main/res/layout/activity_main.xml @@ -0,0 +1,6 @@ + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/setRepeating/main/res/layout/activity_target.xml b/eclipse-project/AtypicalInterComponentCommunication/setRepeating/main/res/layout/activity_target.xml new file mode 100644 index 00000000..f9504c9a --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setRepeating/main/res/layout/activity_target.xml @@ -0,0 +1,6 @@ + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/setRepeating/main/res/mipmap-anydpi-v26/ic_launcher.xml b/eclipse-project/AtypicalInterComponentCommunication/setRepeating/main/res/mipmap-anydpi-v26/ic_launcher.xml new file mode 100644 index 00000000..eca70cfe --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setRepeating/main/res/mipmap-anydpi-v26/ic_launcher.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/setRepeating/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/eclipse-project/AtypicalInterComponentCommunication/setRepeating/main/res/mipmap-anydpi-v26/ic_launcher_round.xml new file mode 100644 index 00000000..eca70cfe --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setRepeating/main/res/mipmap-anydpi-v26/ic_launcher_round.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/setRepeating/main/res/mipmap-hdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/setRepeating/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 00000000..898f3ed5 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setRepeating/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setRepeating/main/res/mipmap-hdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/setRepeating/main/res/mipmap-hdpi/ic_launcher_round.png new file mode 100644 index 00000000..dffca360 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setRepeating/main/res/mipmap-hdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setRepeating/main/res/mipmap-mdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/setRepeating/main/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 00000000..64ba76f7 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setRepeating/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setRepeating/main/res/mipmap-mdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/setRepeating/main/res/mipmap-mdpi/ic_launcher_round.png new file mode 100644 index 00000000..dae5e082 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setRepeating/main/res/mipmap-mdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setRepeating/main/res/mipmap-xhdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/setRepeating/main/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 00000000..e5ed4659 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setRepeating/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setRepeating/main/res/mipmap-xhdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/setRepeating/main/res/mipmap-xhdpi/ic_launcher_round.png new file mode 100644 index 00000000..14ed0af3 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setRepeating/main/res/mipmap-xhdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setRepeating/main/res/mipmap-xxhdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/setRepeating/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 00000000..b0907cac Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setRepeating/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setRepeating/main/res/mipmap-xxhdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/setRepeating/main/res/mipmap-xxhdpi/ic_launcher_round.png new file mode 100644 index 00000000..d8ae0315 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setRepeating/main/res/mipmap-xxhdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setRepeating/main/res/mipmap-xxxhdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/setRepeating/main/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 00000000..2c18de9e Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setRepeating/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setRepeating/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/setRepeating/main/res/mipmap-xxxhdpi/ic_launcher_round.png new file mode 100644 index 00000000..beed3cdd Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setRepeating/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setRepeating/main/res/values/colors.xml b/eclipse-project/AtypicalInterComponentCommunication/setRepeating/main/res/values/colors.xml new file mode 100644 index 00000000..69b22338 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setRepeating/main/res/values/colors.xml @@ -0,0 +1,6 @@ + + + #008577 + #00574B + #D81B60 + diff --git a/eclipse-project/AtypicalInterComponentCommunication/setRepeating/main/res/values/strings.xml b/eclipse-project/AtypicalInterComponentCommunication/setRepeating/main/res/values/strings.xml new file mode 100644 index 00000000..7ef720c8 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setRepeating/main/res/values/strings.xml @@ -0,0 +1,3 @@ + + setRepeating + diff --git a/eclipse-project/AtypicalInterComponentCommunication/setRepeating/main/res/values/styles.xml b/eclipse-project/AtypicalInterComponentCommunication/setRepeating/main/res/values/styles.xml new file mode 100644 index 00000000..5885930d --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setRepeating/main/res/values/styles.xml @@ -0,0 +1,11 @@ + + + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/.DS_Store b/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/.DS_Store new file mode 100644 index 00000000..246299f7 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/.DS_Store differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/main/AndroidManifest.xml b/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/main/AndroidManifest.xml new file mode 100644 index 00000000..504fd042 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/main/AndroidManifest.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/main/java/lu/uni/trux/raicc/setSendDataMessage/IntermediateActivity.java b/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/main/java/lu/uni/trux/raicc/setSendDataMessage/IntermediateActivity.java new file mode 100644 index 00000000..f1980e33 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/main/java/lu/uni/trux/raicc/setSendDataMessage/IntermediateActivity.java @@ -0,0 +1,25 @@ +package lu.uni.trux.raicc.setSendDataMessage; + + +import android.app.Activity; +import android.app.AlarmManager; +import android.app.PendingIntent; +import android.content.Context; +import android.content.Intent; +import android.os.Bundle; + + +public class IntermediateActivity extends Activity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_intermediate); + String imei = this.getIntent().getStringExtra("DroidBench"); + Intent i = new Intent(this, TargetActivity.class); + i.putExtra("DroidBench", imei); + PendingIntent pi = PendingIntent.getActivity(this, 0, i, 0); + AlarmManager am = ((AlarmManager) this.getSystemService(Context.ALARM_SERVICE)); + am.set(AlarmManager.RTC_WAKEUP, System.currentTimeMillis() - 100, pi); + } +} diff --git a/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/main/java/lu/uni/trux/raicc/setSendDataMessage/MainActivity.java b/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/main/java/lu/uni/trux/raicc/setSendDataMessage/MainActivity.java new file mode 100644 index 00000000..0a3374fc --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/main/java/lu/uni/trux/raicc/setSendDataMessage/MainActivity.java @@ -0,0 +1,26 @@ +package lu.uni.trux.raicc.setSendDataMessage; + +import android.app.Activity; +import android.app.PendingIntent; +import android.content.Context; +import android.content.Intent; +import android.os.Bundle; +import android.telephony.SmsManager; +import android.telephony.TelephonyManager; + + +public class MainActivity extends Activity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_main); + String imei = ((TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE)).getDeviceId(); + Intent i = new Intent(this, IntermediateActivity.class); + i.putExtra("DroidBench", imei); + PendingIntent pi = PendingIntent.getActivity(this, 0, i, 0); + SmsManager s = SmsManager.getDefault(); + byte [] data = "data".getBytes(); + s.sendDataMessage("dummyAddress", null, (short) 0, data, pi, null); + } +} diff --git a/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/main/java/lu/uni/trux/raicc/setSendDataMessage/TargetActivity.java b/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/main/java/lu/uni/trux/raicc/setSendDataMessage/TargetActivity.java new file mode 100644 index 00000000..8414e4a5 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/main/java/lu/uni/trux/raicc/setSendDataMessage/TargetActivity.java @@ -0,0 +1,18 @@ +package lu.uni.trux.raicc.setSendDataMessage; + + +import android.app.Activity; +import android.os.Bundle; +import android.util.Log; + + +public class TargetActivity extends Activity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_target); + String imei = this.getIntent().getStringExtra("DroidBench"); + Log.i("DroidBench", imei); + } +} diff --git a/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/main/res/drawable-v24/ic_launcher_foreground.xml b/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/main/res/drawable-v24/ic_launcher_foreground.xml new file mode 100644 index 00000000..1f6bb290 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/main/res/drawable-v24/ic_launcher_foreground.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/main/res/drawable/ic_launcher_background.xml b/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/main/res/drawable/ic_launcher_background.xml new file mode 100644 index 00000000..0d025f9b --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/main/res/drawable/ic_launcher_background.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/main/res/layout/activity_intermediate.xml b/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/main/res/layout/activity_intermediate.xml new file mode 100644 index 00000000..41d2ef14 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/main/res/layout/activity_intermediate.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/main/res/layout/activity_main.xml b/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/main/res/layout/activity_main.xml new file mode 100644 index 00000000..41d2ef14 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/main/res/layout/activity_main.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/main/res/layout/activity_target.xml b/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/main/res/layout/activity_target.xml new file mode 100644 index 00000000..41d2ef14 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/main/res/layout/activity_target.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/main/res/mipmap-anydpi-v26/ic_launcher.xml b/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/main/res/mipmap-anydpi-v26/ic_launcher.xml new file mode 100644 index 00000000..eca70cfe --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/main/res/mipmap-anydpi-v26/ic_launcher.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/main/res/mipmap-anydpi-v26/ic_launcher_round.xml new file mode 100644 index 00000000..eca70cfe --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/main/res/mipmap-anydpi-v26/ic_launcher_round.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/main/res/mipmap-hdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 00000000..898f3ed5 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/main/res/mipmap-hdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/main/res/mipmap-hdpi/ic_launcher_round.png new file mode 100644 index 00000000..dffca360 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/main/res/mipmap-hdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/main/res/mipmap-mdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/main/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 00000000..64ba76f7 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/main/res/mipmap-mdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/main/res/mipmap-mdpi/ic_launcher_round.png new file mode 100644 index 00000000..dae5e082 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/main/res/mipmap-mdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/main/res/mipmap-xhdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/main/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 00000000..e5ed4659 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/main/res/mipmap-xhdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/main/res/mipmap-xhdpi/ic_launcher_round.png new file mode 100644 index 00000000..14ed0af3 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/main/res/mipmap-xhdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/main/res/mipmap-xxhdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 00000000..b0907cac Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/main/res/mipmap-xxhdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/main/res/mipmap-xxhdpi/ic_launcher_round.png new file mode 100644 index 00000000..d8ae0315 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/main/res/mipmap-xxhdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/main/res/mipmap-xxxhdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/main/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 00000000..2c18de9e Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/main/res/mipmap-xxxhdpi/ic_launcher_round.png new file mode 100644 index 00000000..beed3cdd Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/main/res/values/colors.xml b/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/main/res/values/colors.xml new file mode 100644 index 00000000..69b22338 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/main/res/values/colors.xml @@ -0,0 +1,6 @@ + + + #008577 + #00574B + #D81B60 + diff --git a/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/main/res/values/strings.xml b/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/main/res/values/strings.xml new file mode 100644 index 00000000..2eb4ea6b --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/main/res/values/strings.xml @@ -0,0 +1,3 @@ + + setSendDataMessage + diff --git a/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/main/res/values/styles.xml b/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/main/res/values/styles.xml new file mode 100644 index 00000000..5885930d --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setSendDataMessage/main/res/values/styles.xml @@ -0,0 +1,11 @@ + + + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/setWindow/.DS_Store b/eclipse-project/AtypicalInterComponentCommunication/setWindow/.DS_Store new file mode 100644 index 00000000..498847d9 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setWindow/.DS_Store differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setWindow/main/AndroidManifest.xml b/eclipse-project/AtypicalInterComponentCommunication/setWindow/main/AndroidManifest.xml new file mode 100644 index 00000000..7845d741 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setWindow/main/AndroidManifest.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/setWindow/main/java/lu/uni/trux/raicc/setWindow/MainActivity.java b/eclipse-project/AtypicalInterComponentCommunication/setWindow/main/java/lu/uni/trux/raicc/setWindow/MainActivity.java new file mode 100644 index 00000000..9e1df327 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setWindow/main/java/lu/uni/trux/raicc/setWindow/MainActivity.java @@ -0,0 +1,25 @@ +package lu.uni.trux.raicc.setWindow; + + +import android.app.Activity; +import android.app.AlarmManager; +import android.app.PendingIntent; +import android.content.Context; +import android.content.Intent; +import android.os.Bundle; +import android.telephony.TelephonyManager; + +public class MainActivity extends Activity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_main); + String imei = ((TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE)).getDeviceId(); + Intent i = new Intent(this, TargetActivity.class); + i.putExtra("DroidBench", imei); + PendingIntent pi = PendingIntent.getActivity(this, 0, i, 0); + AlarmManager am = ((AlarmManager) this.getSystemService(Context.ALARM_SERVICE)); + am.setWindow(AlarmManager.RTC_WAKEUP, System.currentTimeMillis() - 100, 10, pi); + } +} diff --git a/eclipse-project/AtypicalInterComponentCommunication/setWindow/main/java/lu/uni/trux/raicc/setWindow/TargetActivity.java b/eclipse-project/AtypicalInterComponentCommunication/setWindow/main/java/lu/uni/trux/raicc/setWindow/TargetActivity.java new file mode 100644 index 00000000..f59bf01b --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setWindow/main/java/lu/uni/trux/raicc/setWindow/TargetActivity.java @@ -0,0 +1,16 @@ +package lu.uni.trux.raicc.setWindow; + +import android.app.Activity; +import android.os.Bundle; +import android.util.Log; + +public class TargetActivity extends Activity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_target); + String imei = this.getIntent().getStringExtra("DroidBench"); + Log.i("DroidBench", imei); + } +} diff --git a/eclipse-project/AtypicalInterComponentCommunication/setWindow/main/res/drawable-v24/ic_launcher_foreground.xml b/eclipse-project/AtypicalInterComponentCommunication/setWindow/main/res/drawable-v24/ic_launcher_foreground.xml new file mode 100644 index 00000000..1f6bb290 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setWindow/main/res/drawable-v24/ic_launcher_foreground.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/setWindow/main/res/drawable/ic_launcher_background.xml b/eclipse-project/AtypicalInterComponentCommunication/setWindow/main/res/drawable/ic_launcher_background.xml new file mode 100644 index 00000000..0d025f9b --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setWindow/main/res/drawable/ic_launcher_background.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/setWindow/main/res/layout/activity_main.xml b/eclipse-project/AtypicalInterComponentCommunication/setWindow/main/res/layout/activity_main.xml new file mode 100644 index 00000000..aedcb76c --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setWindow/main/res/layout/activity_main.xml @@ -0,0 +1,6 @@ + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/setWindow/main/res/layout/activity_target.xml b/eclipse-project/AtypicalInterComponentCommunication/setWindow/main/res/layout/activity_target.xml new file mode 100644 index 00000000..f9504c9a --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setWindow/main/res/layout/activity_target.xml @@ -0,0 +1,6 @@ + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/setWindow/main/res/mipmap-anydpi-v26/ic_launcher.xml b/eclipse-project/AtypicalInterComponentCommunication/setWindow/main/res/mipmap-anydpi-v26/ic_launcher.xml new file mode 100644 index 00000000..eca70cfe --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setWindow/main/res/mipmap-anydpi-v26/ic_launcher.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/setWindow/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/eclipse-project/AtypicalInterComponentCommunication/setWindow/main/res/mipmap-anydpi-v26/ic_launcher_round.xml new file mode 100644 index 00000000..eca70cfe --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setWindow/main/res/mipmap-anydpi-v26/ic_launcher_round.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/setWindow/main/res/mipmap-hdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/setWindow/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 00000000..898f3ed5 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setWindow/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setWindow/main/res/mipmap-hdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/setWindow/main/res/mipmap-hdpi/ic_launcher_round.png new file mode 100644 index 00000000..dffca360 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setWindow/main/res/mipmap-hdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setWindow/main/res/mipmap-mdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/setWindow/main/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 00000000..64ba76f7 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setWindow/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setWindow/main/res/mipmap-mdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/setWindow/main/res/mipmap-mdpi/ic_launcher_round.png new file mode 100644 index 00000000..dae5e082 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setWindow/main/res/mipmap-mdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setWindow/main/res/mipmap-xhdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/setWindow/main/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 00000000..e5ed4659 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setWindow/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setWindow/main/res/mipmap-xhdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/setWindow/main/res/mipmap-xhdpi/ic_launcher_round.png new file mode 100644 index 00000000..14ed0af3 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setWindow/main/res/mipmap-xhdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setWindow/main/res/mipmap-xxhdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/setWindow/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 00000000..b0907cac Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setWindow/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setWindow/main/res/mipmap-xxhdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/setWindow/main/res/mipmap-xxhdpi/ic_launcher_round.png new file mode 100644 index 00000000..d8ae0315 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setWindow/main/res/mipmap-xxhdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setWindow/main/res/mipmap-xxxhdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/setWindow/main/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 00000000..2c18de9e Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setWindow/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setWindow/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/setWindow/main/res/mipmap-xxxhdpi/ic_launcher_round.png new file mode 100644 index 00000000..beed3cdd Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/setWindow/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/setWindow/main/res/values/colors.xml b/eclipse-project/AtypicalInterComponentCommunication/setWindow/main/res/values/colors.xml new file mode 100644 index 00000000..69b22338 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setWindow/main/res/values/colors.xml @@ -0,0 +1,6 @@ + + + #008577 + #00574B + #D81B60 + diff --git a/eclipse-project/AtypicalInterComponentCommunication/setWindow/main/res/values/strings.xml b/eclipse-project/AtypicalInterComponentCommunication/setWindow/main/res/values/strings.xml new file mode 100644 index 00000000..2bd3ddfe --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setWindow/main/res/values/strings.xml @@ -0,0 +1,3 @@ + + setWindow + diff --git a/eclipse-project/AtypicalInterComponentCommunication/setWindow/main/res/values/styles.xml b/eclipse-project/AtypicalInterComponentCommunication/setWindow/main/res/values/styles.xml new file mode 100644 index 00000000..5885930d --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/setWindow/main/res/values/styles.xml @@ -0,0 +1,11 @@ + + + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/startIntentSenderForResult/.DS_Store b/eclipse-project/AtypicalInterComponentCommunication/startIntentSenderForResult/.DS_Store new file mode 100644 index 00000000..246299f7 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/startIntentSenderForResult/.DS_Store differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/startIntentSenderForResult/main/AndroidManifest.xml b/eclipse-project/AtypicalInterComponentCommunication/startIntentSenderForResult/main/AndroidManifest.xml new file mode 100644 index 00000000..d2a7be94 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/startIntentSenderForResult/main/AndroidManifest.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/startIntentSenderForResult/main/java/lu/uni/trux/raicc/startIntentSenderForResult/MainActivity.java b/eclipse-project/AtypicalInterComponentCommunication/startIntentSenderForResult/main/java/lu/uni/trux/raicc/startIntentSenderForResult/MainActivity.java new file mode 100644 index 00000000..5b8bfe52 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/startIntentSenderForResult/main/java/lu/uni/trux/raicc/startIntentSenderForResult/MainActivity.java @@ -0,0 +1,37 @@ +package lu.uni.trux.raicc.startIntentSenderForResult; + + +import android.app.Activity; +import android.app.PendingIntent; +import android.content.Context; +import android.content.Intent; +import android.content.IntentSender; +import android.os.Bundle; +import android.telephony.TelephonyManager; +import android.util.Log; + + +public class MainActivity extends Activity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_main); + + String imei = this.getIntent().getStringExtra("DroidBench"); + if(imei == null){ + imei = ((TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE)).getDeviceId(); + Intent i = new Intent(this, SecondActivity.class); + i.putExtra("DroidBench", imei); + PendingIntent pi = PendingIntent.getActivity(this, 0, i, 0); + IntentSender is = pi.getIntentSender(); + try { + this.startIntentSenderForResult(is, 0, null, 0, 0, 0); + } catch (Exception e) { + e.printStackTrace(); + } + }else{ + Log.i("DroidBench", imei); + } + } +} diff --git a/eclipse-project/AtypicalInterComponentCommunication/startIntentSenderForResult/main/java/lu/uni/trux/raicc/startIntentSenderForResult/SecondActivity.java b/eclipse-project/AtypicalInterComponentCommunication/startIntentSenderForResult/main/java/lu/uni/trux/raicc/startIntentSenderForResult/SecondActivity.java new file mode 100644 index 00000000..ff9e6f27 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/startIntentSenderForResult/main/java/lu/uni/trux/raicc/startIntentSenderForResult/SecondActivity.java @@ -0,0 +1,30 @@ +package lu.uni.trux.raicc.startIntentSenderForResult; + + +import android.app.Activity; +import android.app.PendingIntent; +import android.content.Intent; +import android.os.Bundle; + + +public class SecondActivity extends Activity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_second); + String imei = this.getIntent().getStringExtra("DroidBench"); + Intent intent = new Intent(this, MainActivity.class); + intent.putExtra("DroidBench", imei); + PendingIntent pi = PendingIntent.getActivity(this, 0, intent, 0); + try { + pi.send(this, 0, null, null, null, null, null); + } catch (Exception e) { + e.printStackTrace(); + } +// super.onCreate(savedInstanceState); +// setContentView(R.layout.activity_second); +// String imei = this.getIntent().getStringExtra("DroidBench"); +// Log.i("DroidBench", imei); + } +} diff --git a/eclipse-project/AtypicalInterComponentCommunication/startIntentSenderForResult/main/res/drawable-v24/ic_launcher_foreground.xml b/eclipse-project/AtypicalInterComponentCommunication/startIntentSenderForResult/main/res/drawable-v24/ic_launcher_foreground.xml new file mode 100644 index 00000000..1f6bb290 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/startIntentSenderForResult/main/res/drawable-v24/ic_launcher_foreground.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/startIntentSenderForResult/main/res/drawable/ic_launcher_background.xml b/eclipse-project/AtypicalInterComponentCommunication/startIntentSenderForResult/main/res/drawable/ic_launcher_background.xml new file mode 100644 index 00000000..0d025f9b --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/startIntentSenderForResult/main/res/drawable/ic_launcher_background.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/startIntentSenderForResult/main/res/layout/activity_main.xml b/eclipse-project/AtypicalInterComponentCommunication/startIntentSenderForResult/main/res/layout/activity_main.xml new file mode 100644 index 00000000..f9504c9a --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/startIntentSenderForResult/main/res/layout/activity_main.xml @@ -0,0 +1,6 @@ + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/startIntentSenderForResult/main/res/layout/activity_second.xml b/eclipse-project/AtypicalInterComponentCommunication/startIntentSenderForResult/main/res/layout/activity_second.xml new file mode 100644 index 00000000..f9504c9a --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/startIntentSenderForResult/main/res/layout/activity_second.xml @@ -0,0 +1,6 @@ + + + + diff --git a/eclipse-project/AtypicalInterComponentCommunication/startIntentSenderForResult/main/res/mipmap-anydpi-v26/ic_launcher.xml b/eclipse-project/AtypicalInterComponentCommunication/startIntentSenderForResult/main/res/mipmap-anydpi-v26/ic_launcher.xml new file mode 100644 index 00000000..eca70cfe --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/startIntentSenderForResult/main/res/mipmap-anydpi-v26/ic_launcher.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/startIntentSenderForResult/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/eclipse-project/AtypicalInterComponentCommunication/startIntentSenderForResult/main/res/mipmap-anydpi-v26/ic_launcher_round.xml new file mode 100644 index 00000000..eca70cfe --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/startIntentSenderForResult/main/res/mipmap-anydpi-v26/ic_launcher_round.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/eclipse-project/AtypicalInterComponentCommunication/startIntentSenderForResult/main/res/mipmap-hdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/startIntentSenderForResult/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 00000000..898f3ed5 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/startIntentSenderForResult/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/startIntentSenderForResult/main/res/mipmap-hdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/startIntentSenderForResult/main/res/mipmap-hdpi/ic_launcher_round.png new file mode 100644 index 00000000..dffca360 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/startIntentSenderForResult/main/res/mipmap-hdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/startIntentSenderForResult/main/res/mipmap-mdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/startIntentSenderForResult/main/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 00000000..64ba76f7 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/startIntentSenderForResult/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/startIntentSenderForResult/main/res/mipmap-mdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/startIntentSenderForResult/main/res/mipmap-mdpi/ic_launcher_round.png new file mode 100644 index 00000000..dae5e082 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/startIntentSenderForResult/main/res/mipmap-mdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/startIntentSenderForResult/main/res/mipmap-xhdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/startIntentSenderForResult/main/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 00000000..e5ed4659 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/startIntentSenderForResult/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/startIntentSenderForResult/main/res/mipmap-xhdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/startIntentSenderForResult/main/res/mipmap-xhdpi/ic_launcher_round.png new file mode 100644 index 00000000..14ed0af3 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/startIntentSenderForResult/main/res/mipmap-xhdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/startIntentSenderForResult/main/res/mipmap-xxhdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/startIntentSenderForResult/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 00000000..b0907cac Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/startIntentSenderForResult/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/startIntentSenderForResult/main/res/mipmap-xxhdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/startIntentSenderForResult/main/res/mipmap-xxhdpi/ic_launcher_round.png new file mode 100644 index 00000000..d8ae0315 Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/startIntentSenderForResult/main/res/mipmap-xxhdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/startIntentSenderForResult/main/res/mipmap-xxxhdpi/ic_launcher.png b/eclipse-project/AtypicalInterComponentCommunication/startIntentSenderForResult/main/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 00000000..2c18de9e Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/startIntentSenderForResult/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/startIntentSenderForResult/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/eclipse-project/AtypicalInterComponentCommunication/startIntentSenderForResult/main/res/mipmap-xxxhdpi/ic_launcher_round.png new file mode 100644 index 00000000..beed3cdd Binary files /dev/null and b/eclipse-project/AtypicalInterComponentCommunication/startIntentSenderForResult/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ diff --git a/eclipse-project/AtypicalInterComponentCommunication/startIntentSenderForResult/main/res/values/colors.xml b/eclipse-project/AtypicalInterComponentCommunication/startIntentSenderForResult/main/res/values/colors.xml new file mode 100644 index 00000000..69b22338 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/startIntentSenderForResult/main/res/values/colors.xml @@ -0,0 +1,6 @@ + + + #008577 + #00574B + #D81B60 + diff --git a/eclipse-project/AtypicalInterComponentCommunication/startIntentSenderForResult/main/res/values/strings.xml b/eclipse-project/AtypicalInterComponentCommunication/startIntentSenderForResult/main/res/values/strings.xml new file mode 100644 index 00000000..170b0458 --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/startIntentSenderForResult/main/res/values/strings.xml @@ -0,0 +1,3 @@ + + startIntentSenderForResult + diff --git a/eclipse-project/AtypicalInterComponentCommunication/startIntentSenderForResult/main/res/values/styles.xml b/eclipse-project/AtypicalInterComponentCommunication/startIntentSenderForResult/main/res/values/styles.xml new file mode 100644 index 00000000..5885930d --- /dev/null +++ b/eclipse-project/AtypicalInterComponentCommunication/startIntentSenderForResult/main/res/values/styles.xml @@ -0,0 +1,11 @@ + + + + + +