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 @@ +<?xml version="1.0" encoding="utf-8"?> +<manifest xmlns:android="http://schemas.android.com/apk/res/android" + package="lu.uni.trux.raicc.addAction1"> + + <uses-permission android:name="android.permission.READ_PHONE_STATE" /> + + <application + android:allowBackup="true" + android:icon="@mipmap/ic_launcher" + android:label="@string/app_name" + android:roundIcon="@mipmap/ic_launcher_round" + android:supportsRtl="true" + android:theme="@style/AppTheme"> + <activity android:name="lu.uni.trux.raicc.addAction1.TargetActivity"></activity> + <activity android:name="lu.uni.trux.raicc.addAction1.MainActivity"> + <intent-filter> + <action android:name="android.intent.action.MAIN" /> + + <category android:name="android.intent.category.LAUNCHER" /> + </intent-filter> + </activity> + </application> + +</manifest> \ 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 @@ +<vector xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:aapt="http://schemas.android.com/aapt" + android:width="108dp" + android:height="108dp" + android:viewportWidth="108" + android:viewportHeight="108"> + <path + android:fillType="evenOdd" + android:pathData="M32,64C32,64 38.39,52.99 44.13,50.95C51.37,48.37 70.14,49.57 70.14,49.57L108.26,87.69L108,109.01L75.97,107.97L32,64Z" + android:strokeWidth="1" + android:strokeColor="#00000000"> + <aapt:attr name="android:fillColor"> + <gradient + android:endX="78.5885" + android:endY="90.9159" + android:startX="48.7653" + android:startY="61.0927" + android:type="linear"> + <item + android:color="#44000000" + android:offset="0.0" /> + <item + android:color="#00000000" + android:offset="1.0" /> + </gradient> + </aapt:attr> + </path> + <path + android:fillColor="#FFFFFF" + android:fillType="nonZero" + android:pathData="M66.94,46.02L66.94,46.02C72.44,50.07 76,56.61 76,64L32,64C32,56.61 35.56,50.11 40.98,46.06L36.18,41.19C35.45,40.45 35.45,39.3 36.18,38.56C36.91,37.81 38.05,37.81 38.78,38.56L44.25,44.05C47.18,42.57 50.48,41.71 54,41.71C57.48,41.71 60.78,42.57 63.68,44.05L69.11,38.56C69.84,37.81 70.98,37.81 71.71,38.56C72.44,39.3 72.44,40.45 71.71,41.19L66.94,46.02ZM62.94,56.92C64.08,56.92 65,56.01 65,54.88C65,53.76 64.08,52.85 62.94,52.85C61.8,52.85 60.88,53.76 60.88,54.88C60.88,56.01 61.8,56.92 62.94,56.92ZM45.06,56.92C46.2,56.92 47.13,56.01 47.13,54.88C47.13,53.76 46.2,52.85 45.06,52.85C43.92,52.85 43,53.76 43,54.88C43,56.01 43.92,56.92 45.06,56.92Z" + android:strokeWidth="1" + android:strokeColor="#00000000" /> +</vector> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="108dp" + android:height="108dp" + android:viewportWidth="108" + android:viewportHeight="108"> + <path + android:fillColor="#008577" + android:pathData="M0,0h108v108h-108z" /> + <path + android:fillColor="#00000000" + android:pathData="M9,0L9,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,0L19,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M29,0L29,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M39,0L39,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M49,0L49,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M59,0L59,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M69,0L69,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M79,0L79,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M89,0L89,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M99,0L99,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,9L108,9" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,19L108,19" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,29L108,29" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,39L108,39" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,49L108,49" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,59L108,59" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,69L108,69" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,79L108,79" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,89L108,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,99L108,99" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,29L89,29" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,39L89,39" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,49L89,49" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,59L89,59" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,69L89,69" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,79L89,79" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M29,19L29,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M39,19L39,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M49,19L49,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M59,19L59,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M69,19L69,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M79,19L79,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> +</vector> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent"> + +</LinearLayout> \ 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent"> + +</LinearLayout> \ 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> + <background android:drawable="@drawable/ic_launcher_background" /> + <foreground android:drawable="@drawable/ic_launcher_foreground" /> +</adaptive-icon> \ 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> + <background android:drawable="@drawable/ic_launcher_background" /> + <foreground android:drawable="@drawable/ic_launcher_foreground" /> +</adaptive-icon> \ 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <color name="colorPrimary">#008577</color> + <color name="colorPrimaryDark">#00574B</color> + <color name="colorAccent">#D81B60</color> +</resources> 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 @@ +<resources> + <string name="app_name">addAction1</string> +</resources> 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 @@ +<resources> + + <!-- Base application theme. --> + <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> + <!-- Customize your theme here. --> + <item name="colorPrimary">@color/colorPrimary</item> + <item name="colorPrimaryDark">@color/colorPrimaryDark</item> + <item name="colorAccent">@color/colorAccent</item> + </style> + +</resources> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<manifest xmlns:android="http://schemas.android.com/apk/res/android" + package="lu.uni.trux.raicc.addAction2"> + + <uses-permission android:name="android.permission.READ_PHONE_STATE" /> + + <application + android:allowBackup="true" + android:icon="@mipmap/ic_launcher" + android:label="@string/app_name" + android:roundIcon="@mipmap/ic_launcher_round" + android:supportsRtl="true" + android:theme="@style/AppTheme"> + <activity android:name="lu.uni.trux.raicc.addAction2.TargetActivity"></activity> + <activity android:name="lu.uni.trux.raicc.addAction2.MainActivity"> + <intent-filter> + <action android:name="android.intent.action.MAIN" /> + + <category android:name="android.intent.category.LAUNCHER" /> + </intent-filter> + </activity> + </application> + +</manifest> \ 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 @@ +<vector xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:aapt="http://schemas.android.com/aapt" + android:width="108dp" + android:height="108dp" + android:viewportWidth="108" + android:viewportHeight="108"> + <path + android:fillType="evenOdd" + android:pathData="M32,64C32,64 38.39,52.99 44.13,50.95C51.37,48.37 70.14,49.57 70.14,49.57L108.26,87.69L108,109.01L75.97,107.97L32,64Z" + android:strokeWidth="1" + android:strokeColor="#00000000"> + <aapt:attr name="android:fillColor"> + <gradient + android:endX="78.5885" + android:endY="90.9159" + android:startX="48.7653" + android:startY="61.0927" + android:type="linear"> + <item + android:color="#44000000" + android:offset="0.0" /> + <item + android:color="#00000000" + android:offset="1.0" /> + </gradient> + </aapt:attr> + </path> + <path + android:fillColor="#FFFFFF" + android:fillType="nonZero" + android:pathData="M66.94,46.02L66.94,46.02C72.44,50.07 76,56.61 76,64L32,64C32,56.61 35.56,50.11 40.98,46.06L36.18,41.19C35.45,40.45 35.45,39.3 36.18,38.56C36.91,37.81 38.05,37.81 38.78,38.56L44.25,44.05C47.18,42.57 50.48,41.71 54,41.71C57.48,41.71 60.78,42.57 63.68,44.05L69.11,38.56C69.84,37.81 70.98,37.81 71.71,38.56C72.44,39.3 72.44,40.45 71.71,41.19L66.94,46.02ZM62.94,56.92C64.08,56.92 65,56.01 65,54.88C65,53.76 64.08,52.85 62.94,52.85C61.8,52.85 60.88,53.76 60.88,54.88C60.88,56.01 61.8,56.92 62.94,56.92ZM45.06,56.92C46.2,56.92 47.13,56.01 47.13,54.88C47.13,53.76 46.2,52.85 45.06,52.85C43.92,52.85 43,53.76 43,54.88C43,56.01 43.92,56.92 45.06,56.92Z" + android:strokeWidth="1" + android:strokeColor="#00000000" /> +</vector> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="108dp" + android:height="108dp" + android:viewportWidth="108" + android:viewportHeight="108"> + <path + android:fillColor="#008577" + android:pathData="M0,0h108v108h-108z" /> + <path + android:fillColor="#00000000" + android:pathData="M9,0L9,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,0L19,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M29,0L29,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M39,0L39,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M49,0L49,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M59,0L59,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M69,0L69,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M79,0L79,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M89,0L89,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M99,0L99,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,9L108,9" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,19L108,19" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,29L108,29" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,39L108,39" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,49L108,49" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,59L108,59" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,69L108,69" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,79L108,79" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,89L108,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,99L108,99" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,29L89,29" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,39L89,39" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,49L89,49" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,59L89,59" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,69L89,69" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,79L89,79" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M29,19L29,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M39,19L39,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M49,19L49,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M59,19L59,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M69,19L69,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M79,19L79,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> +</vector> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent"> + +</LinearLayout> \ 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent"> + +</LinearLayout> \ 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> + <background android:drawable="@drawable/ic_launcher_background" /> + <foreground android:drawable="@drawable/ic_launcher_foreground" /> +</adaptive-icon> \ 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> + <background android:drawable="@drawable/ic_launcher_background" /> + <foreground android:drawable="@drawable/ic_launcher_foreground" /> +</adaptive-icon> \ 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <color name="colorPrimary">#008577</color> + <color name="colorPrimaryDark">#00574B</color> + <color name="colorAccent">#D81B60</color> +</resources> 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 @@ +<resources> + <string name="app_name">addAction2</string> +</resources> 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 @@ +<resources> + + <!-- Base application theme. --> + <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> + <!-- Customize your theme here. --> + <item name="colorPrimary">@color/colorPrimary</item> + <item name="colorPrimaryDark">@color/colorPrimaryDark</item> + <item name="colorAccent">@color/colorAccent</item> + </style> + +</resources> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<manifest xmlns:android="http://schemas.android.com/apk/res/android" + package="lu.uni.trux.raicc.requestLocationUpdates"> + + <uses-permission android:name="android.permission.READ_PHONE_STATE" /> + <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/> + <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/> + + <application + android:allowBackup="true" + android:icon="@mipmap/ic_launcher" + android:label="@string/app_name" + android:roundIcon="@mipmap/ic_launcher_round" + android:supportsRtl="true" + android:theme="@style/AppTheme"> + <receiver + android:name="lu.uni.trux.raicc.requestLocationUpdates.TargetBroadcastReceiver" + android:enabled="true" + android:exported="true"></receiver> + + <service + android:name="lu.uni.trux.raicc.requestLocationUpdates.IntermediateService" + android:enabled="true" + android:exported="true" /> + + <activity android:name="lu.uni.trux.raicc.requestLocationUpdates.MainActivity"> + <intent-filter> + <action android:name="android.intent.action.MAIN" /> + + <category android:name="android.intent.category.LAUNCHER" /> + </intent-filter> + </activity> + </application> + +</manifest> \ 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 @@ +<vector xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:aapt="http://schemas.android.com/aapt" + android:width="108dp" + android:height="108dp" + android:viewportWidth="108" + android:viewportHeight="108"> + <path + android:fillType="evenOdd" + android:pathData="M32,64C32,64 38.39,52.99 44.13,50.95C51.37,48.37 70.14,49.57 70.14,49.57L108.26,87.69L108,109.01L75.97,107.97L32,64Z" + android:strokeWidth="1" + android:strokeColor="#00000000"> + <aapt:attr name="android:fillColor"> + <gradient + android:endX="78.5885" + android:endY="90.9159" + android:startX="48.7653" + android:startY="61.0927" + android:type="linear"> + <item + android:color="#44000000" + android:offset="0.0" /> + <item + android:color="#00000000" + android:offset="1.0" /> + </gradient> + </aapt:attr> + </path> + <path + android:fillColor="#FFFFFF" + android:fillType="nonZero" + android:pathData="M66.94,46.02L66.94,46.02C72.44,50.07 76,56.61 76,64L32,64C32,56.61 35.56,50.11 40.98,46.06L36.18,41.19C35.45,40.45 35.45,39.3 36.18,38.56C36.91,37.81 38.05,37.81 38.78,38.56L44.25,44.05C47.18,42.57 50.48,41.71 54,41.71C57.48,41.71 60.78,42.57 63.68,44.05L69.11,38.56C69.84,37.81 70.98,37.81 71.71,38.56C72.44,39.3 72.44,40.45 71.71,41.19L66.94,46.02ZM62.94,56.92C64.08,56.92 65,56.01 65,54.88C65,53.76 64.08,52.85 62.94,52.85C61.8,52.85 60.88,53.76 60.88,54.88C60.88,56.01 61.8,56.92 62.94,56.92ZM45.06,56.92C46.2,56.92 47.13,56.01 47.13,54.88C47.13,53.76 46.2,52.85 45.06,52.85C43.92,52.85 43,53.76 43,54.88C43,56.01 43.92,56.92 45.06,56.92Z" + android:strokeWidth="1" + android:strokeColor="#00000000" /> +</vector> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="108dp" + android:height="108dp" + android:viewportWidth="108" + android:viewportHeight="108"> + <path + android:fillColor="#008577" + android:pathData="M0,0h108v108h-108z" /> + <path + android:fillColor="#00000000" + android:pathData="M9,0L9,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,0L19,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M29,0L29,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M39,0L39,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M49,0L49,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M59,0L59,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M69,0L69,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M79,0L79,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M89,0L89,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M99,0L99,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,9L108,9" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,19L108,19" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,29L108,29" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,39L108,39" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,49L108,49" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,59L108,59" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,69L108,69" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,79L108,79" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,89L108,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,99L108,99" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,29L89,29" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,39L89,39" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,49L89,49" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,59L89,59" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,69L89,69" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,79L89,79" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M29,19L29,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M39,19L39,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M49,19L49,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M59,19L59,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M69,19L69,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M79,19L79,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> +</vector> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent"> + +</LinearLayout> \ 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> + <background android:drawable="@drawable/ic_launcher_background" /> + <foreground android:drawable="@drawable/ic_launcher_foreground" /> +</adaptive-icon> \ 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> + <background android:drawable="@drawable/ic_launcher_background" /> + <foreground android:drawable="@drawable/ic_launcher_foreground" /> +</adaptive-icon> \ 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <color name="colorPrimary">#008577</color> + <color name="colorPrimaryDark">#00574B</color> + <color name="colorAccent">#D81B60</color> +</resources> 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 @@ +<resources> + <string name="app_name">requestLocationUpdates</string> +</resources> 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 @@ +<resources> + + <!-- Base application theme. --> + <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> + <!-- Customize your theme here. --> + <item name="colorPrimary">@color/colorPrimary</item> + <item name="colorPrimaryDark">@color/colorPrimaryDark</item> + <item name="colorAccent">@color/colorAccent</item> + </style> + +</resources> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<manifest xmlns:android="http://schemas.android.com/apk/res/android" + package="lu.uni.trux.raicc.requestNetwork"> + + <uses-permission android:name="android.permission.READ_PHONE_STATE" /> + <uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" /> + <uses-permission android:name="android.permission.WRITE_SETTINGS" /> + + <application + android:allowBackup="true" + android:icon="@mipmap/ic_launcher" + android:label="@string/app_name" + android:roundIcon="@mipmap/ic_launcher_round" + android:supportsRtl="true" + android:theme="@style/AppTheme"> + <service + android:name=".TargetService" + android:enabled="true" + android:exported="true"></service> + + <activity android:name=".MainActivity"> + <intent-filter> + <action android:name="android.intent.action.MAIN" /> + + <category android:name="android.intent.category.LAUNCHER" /> + </intent-filter> + </activity> + </application> + +</manifest> \ 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 @@ +<vector xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:aapt="http://schemas.android.com/aapt" + android:width="108dp" + android:height="108dp" + android:viewportWidth="108" + android:viewportHeight="108"> + <path + android:fillType="evenOdd" + android:pathData="M32,64C32,64 38.39,52.99 44.13,50.95C51.37,48.37 70.14,49.57 70.14,49.57L108.26,87.69L108,109.01L75.97,107.97L32,64Z" + android:strokeWidth="1" + android:strokeColor="#00000000"> + <aapt:attr name="android:fillColor"> + <gradient + android:endX="78.5885" + android:endY="90.9159" + android:startX="48.7653" + android:startY="61.0927" + android:type="linear"> + <item + android:color="#44000000" + android:offset="0.0" /> + <item + android:color="#00000000" + android:offset="1.0" /> + </gradient> + </aapt:attr> + </path> + <path + android:fillColor="#FFFFFF" + android:fillType="nonZero" + android:pathData="M66.94,46.02L66.94,46.02C72.44,50.07 76,56.61 76,64L32,64C32,56.61 35.56,50.11 40.98,46.06L36.18,41.19C35.45,40.45 35.45,39.3 36.18,38.56C36.91,37.81 38.05,37.81 38.78,38.56L44.25,44.05C47.18,42.57 50.48,41.71 54,41.71C57.48,41.71 60.78,42.57 63.68,44.05L69.11,38.56C69.84,37.81 70.98,37.81 71.71,38.56C72.44,39.3 72.44,40.45 71.71,41.19L66.94,46.02ZM62.94,56.92C64.08,56.92 65,56.01 65,54.88C65,53.76 64.08,52.85 62.94,52.85C61.8,52.85 60.88,53.76 60.88,54.88C60.88,56.01 61.8,56.92 62.94,56.92ZM45.06,56.92C46.2,56.92 47.13,56.01 47.13,54.88C47.13,53.76 46.2,52.85 45.06,52.85C43.92,52.85 43,53.76 43,54.88C43,56.01 43.92,56.92 45.06,56.92Z" + android:strokeWidth="1" + android:strokeColor="#00000000" /> +</vector> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="108dp" + android:height="108dp" + android:viewportWidth="108" + android:viewportHeight="108"> + <path + android:fillColor="#008577" + android:pathData="M0,0h108v108h-108z" /> + <path + android:fillColor="#00000000" + android:pathData="M9,0L9,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,0L19,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M29,0L29,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M39,0L39,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M49,0L49,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M59,0L59,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M69,0L69,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M79,0L79,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M89,0L89,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M99,0L99,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,9L108,9" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,19L108,19" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,29L108,29" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,39L108,39" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,49L108,49" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,59L108,59" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,69L108,69" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,79L108,79" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,89L108,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,99L108,99" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,29L89,29" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,39L89,39" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,49L89,49" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,59L89,59" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,69L89,69" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,79L89,79" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M29,19L29,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M39,19L39,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M49,19L49,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M59,19L59,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M69,19L69,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M79,19L79,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> +</vector> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent"> + +</LinearLayout> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent"> + +</LinearLayout> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> + <background android:drawable="@drawable/ic_launcher_background" /> + <foreground android:drawable="@drawable/ic_launcher_foreground" /> +</adaptive-icon> \ 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> + <background android:drawable="@drawable/ic_launcher_background" /> + <foreground android:drawable="@drawable/ic_launcher_foreground" /> +</adaptive-icon> \ 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <color name="colorPrimary">#008577</color> + <color name="colorPrimaryDark">#00574B</color> + <color name="colorAccent">#D81B60</color> +</resources> 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 @@ +<resources> + <string name="app_name">requestNetwork</string> +</resources> 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 @@ +<resources> + + <!-- Base application theme. --> + <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> + <!-- Customize your theme here. --> + <item name="colorPrimary">@color/colorPrimary</item> + <item name="colorPrimaryDark">@color/colorPrimaryDark</item> + <item name="colorAccent">@color/colorAccent</item> + </style> + +</resources> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<manifest xmlns:android="http://schemas.android.com/apk/res/android" + package="lu.uni.trux.raicc.send"> + + <uses-permission android:name="android.permission.READ_PHONE_STATE"/> + + <application + android:allowBackup="true" + android:icon="@mipmap/ic_launcher" + android:label="@string/app_name" + android:roundIcon="@mipmap/ic_launcher_round" + android:supportsRtl="true" + android:theme="@style/AppTheme"> + <activity android:name="lu.uni.trux.raicc.send.SecondActivity"></activity> + <activity android:name="lu.uni.trux.raicc.send.TargetActivity" /> + <activity android:name="lu.uni.trux.raicc.send.MainActivity"> + <intent-filter> + <action android:name="android.intent.action.MAIN" /> + + <category android:name="android.intent.category.LAUNCHER" /> + </intent-filter> + </activity> + </application> + +</manifest> \ 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 @@ +<vector xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:aapt="http://schemas.android.com/aapt" + android:width="108dp" + android:height="108dp" + android:viewportWidth="108" + android:viewportHeight="108"> + <path + android:fillType="evenOdd" + android:pathData="M32,64C32,64 38.39,52.99 44.13,50.95C51.37,48.37 70.14,49.57 70.14,49.57L108.26,87.69L108,109.01L75.97,107.97L32,64Z" + android:strokeWidth="1" + android:strokeColor="#00000000"> + <aapt:attr name="android:fillColor"> + <gradient + android:endX="78.5885" + android:endY="90.9159" + android:startX="48.7653" + android:startY="61.0927" + android:type="linear"> + <item + android:color="#44000000" + android:offset="0.0" /> + <item + android:color="#00000000" + android:offset="1.0" /> + </gradient> + </aapt:attr> + </path> + <path + android:fillColor="#FFFFFF" + android:fillType="nonZero" + android:pathData="M66.94,46.02L66.94,46.02C72.44,50.07 76,56.61 76,64L32,64C32,56.61 35.56,50.11 40.98,46.06L36.18,41.19C35.45,40.45 35.45,39.3 36.18,38.56C36.91,37.81 38.05,37.81 38.78,38.56L44.25,44.05C47.18,42.57 50.48,41.71 54,41.71C57.48,41.71 60.78,42.57 63.68,44.05L69.11,38.56C69.84,37.81 70.98,37.81 71.71,38.56C72.44,39.3 72.44,40.45 71.71,41.19L66.94,46.02ZM62.94,56.92C64.08,56.92 65,56.01 65,54.88C65,53.76 64.08,52.85 62.94,52.85C61.8,52.85 60.88,53.76 60.88,54.88C60.88,56.01 61.8,56.92 62.94,56.92ZM45.06,56.92C46.2,56.92 47.13,56.01 47.13,54.88C47.13,53.76 46.2,52.85 45.06,52.85C43.92,52.85 43,53.76 43,54.88C43,56.01 43.92,56.92 45.06,56.92Z" + android:strokeWidth="1" + android:strokeColor="#00000000" /> +</vector> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="108dp" + android:height="108dp" + android:viewportWidth="108" + android:viewportHeight="108"> + <path + android:fillColor="#008577" + android:pathData="M0,0h108v108h-108z" /> + <path + android:fillColor="#00000000" + android:pathData="M9,0L9,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,0L19,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M29,0L29,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M39,0L39,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M49,0L49,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M59,0L59,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M69,0L69,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M79,0L79,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M89,0L89,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M99,0L99,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,9L108,9" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,19L108,19" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,29L108,29" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,39L108,39" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,49L108,49" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,59L108,59" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,69L108,69" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,79L108,79" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,89L108,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,99L108,99" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,29L89,29" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,39L89,39" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,49L89,49" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,59L89,59" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,69L89,69" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,79L89,79" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M29,19L29,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M39,19L39,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M49,19L49,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M59,19L59,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M69,19L69,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M79,19L79,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> +</vector> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent"> + +</LinearLayout> \ 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent"> + +</LinearLayout> \ 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent"> + +</LinearLayout> \ 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> + <background android:drawable="@drawable/ic_launcher_background" /> + <foreground android:drawable="@drawable/ic_launcher_foreground" /> +</adaptive-icon> \ 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> + <background android:drawable="@drawable/ic_launcher_background" /> + <foreground android:drawable="@drawable/ic_launcher_foreground" /> +</adaptive-icon> \ 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <color name="colorPrimary">#008577</color> + <color name="colorPrimaryDark">#00574B</color> + <color name="colorAccent">#D81B60</color> +</resources> 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 @@ +<resources> + <string name="app_name">send</string> +</resources> 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 @@ +<resources> + + <!-- Base application theme. --> + <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> + <!-- Customize your theme here. --> + <item name="colorPrimary">@color/colorPrimary</item> + <item name="colorPrimaryDark">@color/colorPrimaryDark</item> + <item name="colorAccent">@color/colorAccent</item> + </style> + +</resources> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<manifest xmlns:android="http://schemas.android.com/apk/res/android" + package="lu.uni.trux.raicc.sendIntent"> + + <uses-permission android:name="android.permission.READ_PHONE_STATE" /> + + <application + android:allowBackup="true" + android:icon="@mipmap/ic_launcher" + android:label="@string/app_name" + android:roundIcon="@mipmap/ic_launcher_round" + android:supportsRtl="true" + android:theme="@style/AppTheme"> + <activity android:name="lu.uni.trux.raicc.sendIntent.TargetActivity"> + <intent-filter> + <action android:name="ACTION" /> + <category android:name="android.intent.category.DEFAULT" /> + </intent-filter> + </activity> + <activity android:name="lu.uni.trux.raicc.sendIntent.MainActivity"> + <intent-filter> + <action android:name="android.intent.action.MAIN" /> + + <category android:name="android.intent.category.LAUNCHER" /> + </intent-filter> + </activity> + </application> + +</manifest> \ 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 @@ +<vector xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:aapt="http://schemas.android.com/aapt" + android:width="108dp" + android:height="108dp" + android:viewportWidth="108" + android:viewportHeight="108"> + <path + android:fillType="evenOdd" + android:pathData="M32,64C32,64 38.39,52.99 44.13,50.95C51.37,48.37 70.14,49.57 70.14,49.57L108.26,87.69L108,109.01L75.97,107.97L32,64Z" + android:strokeWidth="1" + android:strokeColor="#00000000"> + <aapt:attr name="android:fillColor"> + <gradient + android:endX="78.5885" + android:endY="90.9159" + android:startX="48.7653" + android:startY="61.0927" + android:type="linear"> + <item + android:color="#44000000" + android:offset="0.0" /> + <item + android:color="#00000000" + android:offset="1.0" /> + </gradient> + </aapt:attr> + </path> + <path + android:fillColor="#FFFFFF" + android:fillType="nonZero" + android:pathData="M66.94,46.02L66.94,46.02C72.44,50.07 76,56.61 76,64L32,64C32,56.61 35.56,50.11 40.98,46.06L36.18,41.19C35.45,40.45 35.45,39.3 36.18,38.56C36.91,37.81 38.05,37.81 38.78,38.56L44.25,44.05C47.18,42.57 50.48,41.71 54,41.71C57.48,41.71 60.78,42.57 63.68,44.05L69.11,38.56C69.84,37.81 70.98,37.81 71.71,38.56C72.44,39.3 72.44,40.45 71.71,41.19L66.94,46.02ZM62.94,56.92C64.08,56.92 65,56.01 65,54.88C65,53.76 64.08,52.85 62.94,52.85C61.8,52.85 60.88,53.76 60.88,54.88C60.88,56.01 61.8,56.92 62.94,56.92ZM45.06,56.92C46.2,56.92 47.13,56.01 47.13,54.88C47.13,53.76 46.2,52.85 45.06,52.85C43.92,52.85 43,53.76 43,54.88C43,56.01 43.92,56.92 45.06,56.92Z" + android:strokeWidth="1" + android:strokeColor="#00000000" /> +</vector> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="108dp" + android:height="108dp" + android:viewportWidth="108" + android:viewportHeight="108"> + <path + android:fillColor="#008577" + android:pathData="M0,0h108v108h-108z" /> + <path + android:fillColor="#00000000" + android:pathData="M9,0L9,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,0L19,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M29,0L29,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M39,0L39,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M49,0L49,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M59,0L59,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M69,0L69,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M79,0L79,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M89,0L89,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M99,0L99,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,9L108,9" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,19L108,19" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,29L108,29" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,39L108,39" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,49L108,49" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,59L108,59" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,69L108,69" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,79L108,79" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,89L108,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,99L108,99" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,29L89,29" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,39L89,39" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,49L89,49" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,59L89,59" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,69L89,69" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,79L89,79" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M29,19L29,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M39,19L39,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M49,19L49,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M59,19L59,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M69,19L69,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M79,19L79,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> +</vector> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent"> + +</LinearLayout> \ 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent"> + +</LinearLayout> \ 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> + <background android:drawable="@drawable/ic_launcher_background" /> + <foreground android:drawable="@drawable/ic_launcher_foreground" /> +</adaptive-icon> \ 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> + <background android:drawable="@drawable/ic_launcher_background" /> + <foreground android:drawable="@drawable/ic_launcher_foreground" /> +</adaptive-icon> \ 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <color name="colorPrimary">#008577</color> + <color name="colorPrimaryDark">#00574B</color> + <color name="colorAccent">#D81B60</color> +</resources> 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 @@ +<resources> + <string name="app_name">sendIntent</string> +</resources> 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 @@ +<resources> + + <!-- Base application theme. --> + <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> + <!-- Customize your theme here. --> + <item name="colorPrimary">@color/colorPrimary</item> + <item name="colorPrimaryDark">@color/colorPrimaryDark</item> + <item name="colorAccent">@color/colorAccent</item> + </style> + +</resources> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<manifest xmlns:android="http://schemas.android.com/apk/res/android" + package="lu.uni.trux.raicc.sendTextMessage1"> + + <uses-permission android:name="android.permission.SEND_SMS" /> + <uses-permission android:name="android.permission.READ_PHONE_STATE" /> + + <application + android:allowBackup="true" + android:icon="@mipmap/ic_launcher" + android:label="@string/app_name" + android:roundIcon="@mipmap/ic_launcher_round" + android:supportsRtl="true" + android:theme="@style/AppTheme"> + <activity android:name="lu.uni.trux.raicc.sendTextMessage1.TargetActivity" /> + <activity android:name="lu.uni.trux.raicc.sendTextMessage1.MainActivity"> + <intent-filter> + <action android:name="android.intent.action.MAIN" /> + + <category android:name="android.intent.category.LAUNCHER" /> + </intent-filter> + </activity> + </application> + +</manifest> \ 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 @@ +<vector xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:aapt="http://schemas.android.com/aapt" + android:width="108dp" + android:height="108dp" + android:viewportWidth="108" + android:viewportHeight="108"> + <path + android:fillType="evenOdd" + android:pathData="M32,64C32,64 38.39,52.99 44.13,50.95C51.37,48.37 70.14,49.57 70.14,49.57L108.26,87.69L108,109.01L75.97,107.97L32,64Z" + android:strokeWidth="1" + android:strokeColor="#00000000"> + <aapt:attr name="android:fillColor"> + <gradient + android:endX="78.5885" + android:endY="90.9159" + android:startX="48.7653" + android:startY="61.0927" + android:type="linear"> + <item + android:color="#44000000" + android:offset="0.0" /> + <item + android:color="#00000000" + android:offset="1.0" /> + </gradient> + </aapt:attr> + </path> + <path + android:fillColor="#FFFFFF" + android:fillType="nonZero" + android:pathData="M66.94,46.02L66.94,46.02C72.44,50.07 76,56.61 76,64L32,64C32,56.61 35.56,50.11 40.98,46.06L36.18,41.19C35.45,40.45 35.45,39.3 36.18,38.56C36.91,37.81 38.05,37.81 38.78,38.56L44.25,44.05C47.18,42.57 50.48,41.71 54,41.71C57.48,41.71 60.78,42.57 63.68,44.05L69.11,38.56C69.84,37.81 70.98,37.81 71.71,38.56C72.44,39.3 72.44,40.45 71.71,41.19L66.94,46.02ZM62.94,56.92C64.08,56.92 65,56.01 65,54.88C65,53.76 64.08,52.85 62.94,52.85C61.8,52.85 60.88,53.76 60.88,54.88C60.88,56.01 61.8,56.92 62.94,56.92ZM45.06,56.92C46.2,56.92 47.13,56.01 47.13,54.88C47.13,53.76 46.2,52.85 45.06,52.85C43.92,52.85 43,53.76 43,54.88C43,56.01 43.92,56.92 45.06,56.92Z" + android:strokeWidth="1" + android:strokeColor="#00000000" /> +</vector> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="108dp" + android:height="108dp" + android:viewportWidth="108" + android:viewportHeight="108"> + <path + android:fillColor="#008577" + android:pathData="M0,0h108v108h-108z" /> + <path + android:fillColor="#00000000" + android:pathData="M9,0L9,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,0L19,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M29,0L29,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M39,0L39,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M49,0L49,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M59,0L59,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M69,0L69,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M79,0L79,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M89,0L89,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M99,0L99,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,9L108,9" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,19L108,19" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,29L108,29" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,39L108,39" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,49L108,49" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,59L108,59" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,69L108,69" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,79L108,79" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,89L108,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,99L108,99" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,29L89,29" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,39L89,39" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,49L89,49" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,59L89,59" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,69L89,69" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,79L89,79" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M29,19L29,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M39,19L39,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M49,19L49,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M59,19L59,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M69,19L69,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M79,19L79,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> +</vector> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent"> + +</LinearLayout> \ 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent"> + +</LinearLayout> \ 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent"> + +</LinearLayout> \ 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> + <background android:drawable="@drawable/ic_launcher_background" /> + <foreground android:drawable="@drawable/ic_launcher_foreground" /> +</adaptive-icon> \ 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> + <background android:drawable="@drawable/ic_launcher_background" /> + <foreground android:drawable="@drawable/ic_launcher_foreground" /> +</adaptive-icon> \ 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <color name="colorPrimary">#008577</color> + <color name="colorPrimaryDark">#00574B</color> + <color name="colorAccent">#D81B60</color> +</resources> 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 @@ +<resources> + <string name="app_name">sendTextMessage1</string> +</resources> 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 @@ +<resources> + + <!-- Base application theme. --> + <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> + <!-- Customize your theme here. --> + <item name="colorPrimary">@color/colorPrimary</item> + <item name="colorPrimaryDark">@color/colorPrimaryDark</item> + <item name="colorAccent">@color/colorAccent</item> + </style> + +</resources> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<manifest xmlns:android="http://schemas.android.com/apk/res/android" + package="lu.uni.trux.raicc.sendTextMessage2"> + + <uses-permission android:name="android.permission.SEND_SMS" /> + <uses-permission android:name="android.permission.READ_PHONE_STATE" /> + + <application + android:allowBackup="true" + android:icon="@mipmap/ic_launcher" + android:label="@string/app_name" + android:roundIcon="@mipmap/ic_launcher_round" + android:supportsRtl="true" + android:theme="@style/AppTheme"> + <activity android:name="lu.uni.trux.raicc.sendTextMessage2.TargetActivity"></activity> + <activity android:name="lu.uni.trux.raicc.sendTextMessage2.MainActivity"> + <intent-filter> + <action android:name="android.intent.action.MAIN" /> + + <category android:name="android.intent.category.LAUNCHER" /> + </intent-filter> + </activity> + </application> + +</manifest> \ 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 @@ +<vector xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:aapt="http://schemas.android.com/aapt" + android:width="108dp" + android:height="108dp" + android:viewportWidth="108" + android:viewportHeight="108"> + <path + android:fillType="evenOdd" + android:pathData="M32,64C32,64 38.39,52.99 44.13,50.95C51.37,48.37 70.14,49.57 70.14,49.57L108.26,87.69L108,109.01L75.97,107.97L32,64Z" + android:strokeWidth="1" + android:strokeColor="#00000000"> + <aapt:attr name="android:fillColor"> + <gradient + android:endX="78.5885" + android:endY="90.9159" + android:startX="48.7653" + android:startY="61.0927" + android:type="linear"> + <item + android:color="#44000000" + android:offset="0.0" /> + <item + android:color="#00000000" + android:offset="1.0" /> + </gradient> + </aapt:attr> + </path> + <path + android:fillColor="#FFFFFF" + android:fillType="nonZero" + android:pathData="M66.94,46.02L66.94,46.02C72.44,50.07 76,56.61 76,64L32,64C32,56.61 35.56,50.11 40.98,46.06L36.18,41.19C35.45,40.45 35.45,39.3 36.18,38.56C36.91,37.81 38.05,37.81 38.78,38.56L44.25,44.05C47.18,42.57 50.48,41.71 54,41.71C57.48,41.71 60.78,42.57 63.68,44.05L69.11,38.56C69.84,37.81 70.98,37.81 71.71,38.56C72.44,39.3 72.44,40.45 71.71,41.19L66.94,46.02ZM62.94,56.92C64.08,56.92 65,56.01 65,54.88C65,53.76 64.08,52.85 62.94,52.85C61.8,52.85 60.88,53.76 60.88,54.88C60.88,56.01 61.8,56.92 62.94,56.92ZM45.06,56.92C46.2,56.92 47.13,56.01 47.13,54.88C47.13,53.76 46.2,52.85 45.06,52.85C43.92,52.85 43,53.76 43,54.88C43,56.01 43.92,56.92 45.06,56.92Z" + android:strokeWidth="1" + android:strokeColor="#00000000" /> +</vector> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="108dp" + android:height="108dp" + android:viewportWidth="108" + android:viewportHeight="108"> + <path + android:fillColor="#008577" + android:pathData="M0,0h108v108h-108z" /> + <path + android:fillColor="#00000000" + android:pathData="M9,0L9,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,0L19,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M29,0L29,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M39,0L39,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M49,0L49,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M59,0L59,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M69,0L69,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M79,0L79,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M89,0L89,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M99,0L99,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,9L108,9" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,19L108,19" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,29L108,29" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,39L108,39" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,49L108,49" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,59L108,59" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,69L108,69" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,79L108,79" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,89L108,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,99L108,99" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,29L89,29" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,39L89,39" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,49L89,49" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,59L89,59" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,69L89,69" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,79L89,79" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M29,19L29,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M39,19L39,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M49,19L49,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M59,19L59,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M69,19L69,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M79,19L79,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> +</vector> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent"> + +</LinearLayout> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent"> + +</LinearLayout> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> + <background android:drawable="@drawable/ic_launcher_background" /> + <foreground android:drawable="@drawable/ic_launcher_foreground" /> +</adaptive-icon> \ 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> + <background android:drawable="@drawable/ic_launcher_background" /> + <foreground android:drawable="@drawable/ic_launcher_foreground" /> +</adaptive-icon> \ 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <color name="colorPrimary">#008577</color> + <color name="colorPrimaryDark">#00574B</color> + <color name="colorAccent">#D81B60</color> +</resources> 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 @@ +<resources> + <string name="app_name">sendTextMessage2</string> +</resources> 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 @@ +<resources> + + <!-- Base application theme. --> + <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> + <!-- Customize your theme here. --> + <item name="colorPrimary">@color/colorPrimary</item> + <item name="colorPrimaryDark">@color/colorPrimaryDark</item> + <item name="colorAccent">@color/colorAccent</item> + </style> + +</resources> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<manifest xmlns:android="http://schemas.android.com/apk/res/android" + package="lu.uni.trux.raicc.setDeleteIntent"> + + <uses-permission android:name="android.permission.READ_PHONE_STATE" /> + + <application + android:allowBackup="true" + android:icon="@mipmap/ic_launcher" + android:label="@string/app_name" + android:roundIcon="@mipmap/ic_launcher_round" + android:supportsRtl="true" + android:theme="@style/AppTheme"> + <activity android:name="lu.uni.trux.raicc.setDeleteIntent.TargetActivity"></activity> + <activity android:name="lu.uni.trux.raicc.setDeleteIntent.MainActivity"> + <intent-filter> + <action android:name="android.intent.action.MAIN" /> + + <category android:name="android.intent.category.LAUNCHER" /> + </intent-filter> + </activity> + </application> + +</manifest> \ 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 @@ +<vector xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:aapt="http://schemas.android.com/aapt" + android:width="108dp" + android:height="108dp" + android:viewportWidth="108" + android:viewportHeight="108"> + <path + android:fillType="evenOdd" + android:pathData="M32,64C32,64 38.39,52.99 44.13,50.95C51.37,48.37 70.14,49.57 70.14,49.57L108.26,87.69L108,109.01L75.97,107.97L32,64Z" + android:strokeWidth="1" + android:strokeColor="#00000000"> + <aapt:attr name="android:fillColor"> + <gradient + android:endX="78.5885" + android:endY="90.9159" + android:startX="48.7653" + android:startY="61.0927" + android:type="linear"> + <item + android:color="#44000000" + android:offset="0.0" /> + <item + android:color="#00000000" + android:offset="1.0" /> + </gradient> + </aapt:attr> + </path> + <path + android:fillColor="#FFFFFF" + android:fillType="nonZero" + android:pathData="M66.94,46.02L66.94,46.02C72.44,50.07 76,56.61 76,64L32,64C32,56.61 35.56,50.11 40.98,46.06L36.18,41.19C35.45,40.45 35.45,39.3 36.18,38.56C36.91,37.81 38.05,37.81 38.78,38.56L44.25,44.05C47.18,42.57 50.48,41.71 54,41.71C57.48,41.71 60.78,42.57 63.68,44.05L69.11,38.56C69.84,37.81 70.98,37.81 71.71,38.56C72.44,39.3 72.44,40.45 71.71,41.19L66.94,46.02ZM62.94,56.92C64.08,56.92 65,56.01 65,54.88C65,53.76 64.08,52.85 62.94,52.85C61.8,52.85 60.88,53.76 60.88,54.88C60.88,56.01 61.8,56.92 62.94,56.92ZM45.06,56.92C46.2,56.92 47.13,56.01 47.13,54.88C47.13,53.76 46.2,52.85 45.06,52.85C43.92,52.85 43,53.76 43,54.88C43,56.01 43.92,56.92 45.06,56.92Z" + android:strokeWidth="1" + android:strokeColor="#00000000" /> +</vector> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="108dp" + android:height="108dp" + android:viewportWidth="108" + android:viewportHeight="108"> + <path + android:fillColor="#008577" + android:pathData="M0,0h108v108h-108z" /> + <path + android:fillColor="#00000000" + android:pathData="M9,0L9,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,0L19,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M29,0L29,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M39,0L39,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M49,0L49,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M59,0L59,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M69,0L69,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M79,0L79,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M89,0L89,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M99,0L99,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,9L108,9" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,19L108,19" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,29L108,29" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,39L108,39" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,49L108,49" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,59L108,59" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,69L108,69" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,79L108,79" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,89L108,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,99L108,99" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,29L89,29" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,39L89,39" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,49L89,49" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,59L89,59" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,69L89,69" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,79L89,79" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M29,19L29,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M39,19L39,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M49,19L49,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M59,19L59,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M69,19L69,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M79,19L79,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> +</vector> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent"> + +</LinearLayout> \ 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent"> + +</LinearLayout> \ 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> + <background android:drawable="@drawable/ic_launcher_background" /> + <foreground android:drawable="@drawable/ic_launcher_foreground" /> +</adaptive-icon> \ 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> + <background android:drawable="@drawable/ic_launcher_background" /> + <foreground android:drawable="@drawable/ic_launcher_foreground" /> +</adaptive-icon> \ 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <color name="colorPrimary">#008577</color> + <color name="colorPrimaryDark">#00574B</color> + <color name="colorAccent">#D81B60</color> +</resources> 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 @@ +<resources> + <string name="app_name">setDeleteIntent</string> +</resources> 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 @@ +<resources> + + <!-- Base application theme. --> + <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> + <!-- Customize your theme here. --> + <item name="colorPrimary">@color/colorPrimary</item> + <item name="colorPrimaryDark">@color/colorPrimaryDark</item> + <item name="colorAccent">@color/colorAccent</item> + </style> + +</resources> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<manifest xmlns:android="http://schemas.android.com/apk/res/android" + package="lu.uni.trux.raicc.setExact"> + + <uses-permission android:name="android.permission.SEND_SMS" /> + <uses-permission android:name="android.permission.READ_PHONE_STATE" /> + + <application + android:allowBackup="true" + android:icon="@mipmap/ic_launcher" + android:label="@string/app_name" + android:roundIcon="@mipmap/ic_launcher_round" + android:supportsRtl="true" + android:theme="@style/AppTheme"> + <activity android:name="lu.uni.trux.raicc.setExact.TargetActivity"></activity> + <activity android:name="lu.uni.trux.raicc.setExact.MainActivity"> + <intent-filter> + <action android:name="android.intent.action.MAIN" /> + + <category android:name="android.intent.category.LAUNCHER" /> + </intent-filter> + </activity> + </application> + +</manifest> \ 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 @@ +<vector xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:aapt="http://schemas.android.com/aapt" + android:width="108dp" + android:height="108dp" + android:viewportWidth="108" + android:viewportHeight="108"> + <path + android:fillType="evenOdd" + android:pathData="M32,64C32,64 38.39,52.99 44.13,50.95C51.37,48.37 70.14,49.57 70.14,49.57L108.26,87.69L108,109.01L75.97,107.97L32,64Z" + android:strokeWidth="1" + android:strokeColor="#00000000"> + <aapt:attr name="android:fillColor"> + <gradient + android:endX="78.5885" + android:endY="90.9159" + android:startX="48.7653" + android:startY="61.0927" + android:type="linear"> + <item + android:color="#44000000" + android:offset="0.0" /> + <item + android:color="#00000000" + android:offset="1.0" /> + </gradient> + </aapt:attr> + </path> + <path + android:fillColor="#FFFFFF" + android:fillType="nonZero" + android:pathData="M66.94,46.02L66.94,46.02C72.44,50.07 76,56.61 76,64L32,64C32,56.61 35.56,50.11 40.98,46.06L36.18,41.19C35.45,40.45 35.45,39.3 36.18,38.56C36.91,37.81 38.05,37.81 38.78,38.56L44.25,44.05C47.18,42.57 50.48,41.71 54,41.71C57.48,41.71 60.78,42.57 63.68,44.05L69.11,38.56C69.84,37.81 70.98,37.81 71.71,38.56C72.44,39.3 72.44,40.45 71.71,41.19L66.94,46.02ZM62.94,56.92C64.08,56.92 65,56.01 65,54.88C65,53.76 64.08,52.85 62.94,52.85C61.8,52.85 60.88,53.76 60.88,54.88C60.88,56.01 61.8,56.92 62.94,56.92ZM45.06,56.92C46.2,56.92 47.13,56.01 47.13,54.88C47.13,53.76 46.2,52.85 45.06,52.85C43.92,52.85 43,53.76 43,54.88C43,56.01 43.92,56.92 45.06,56.92Z" + android:strokeWidth="1" + android:strokeColor="#00000000" /> +</vector> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="108dp" + android:height="108dp" + android:viewportWidth="108" + android:viewportHeight="108"> + <path + android:fillColor="#008577" + android:pathData="M0,0h108v108h-108z" /> + <path + android:fillColor="#00000000" + android:pathData="M9,0L9,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,0L19,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M29,0L29,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M39,0L39,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M49,0L49,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M59,0L59,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M69,0L69,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M79,0L79,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M89,0L89,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M99,0L99,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,9L108,9" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,19L108,19" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,29L108,29" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,39L108,39" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,49L108,49" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,59L108,59" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,69L108,69" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,79L108,79" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,89L108,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,99L108,99" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,29L89,29" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,39L89,39" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,49L89,49" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,59L89,59" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,69L89,69" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,79L89,79" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M29,19L29,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M39,19L39,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M49,19L49,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M59,19L59,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M69,19L69,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M79,19L79,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> +</vector> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" +android:layout_width="match_parent" +android:layout_height="match_parent"> + +</LinearLayout> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent"> + +</LinearLayout> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> + <background android:drawable="@drawable/ic_launcher_background" /> + <foreground android:drawable="@drawable/ic_launcher_foreground" /> +</adaptive-icon> \ 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> + <background android:drawable="@drawable/ic_launcher_background" /> + <foreground android:drawable="@drawable/ic_launcher_foreground" /> +</adaptive-icon> \ 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <color name="colorPrimary">#008577</color> + <color name="colorPrimaryDark">#00574B</color> + <color name="colorAccent">#D81B60</color> +</resources> 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 @@ +<resources> + <string name="app_name">setExact</string> +</resources> 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 @@ +<resources> + + <!-- Base application theme. --> + <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> + <!-- Customize your theme here. --> + <item name="colorPrimary">@color/colorPrimary</item> + <item name="colorPrimaryDark">@color/colorPrimaryDark</item> + <item name="colorAccent">@color/colorAccent</item> + </style> + +</resources> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<manifest xmlns:android="http://schemas.android.com/apk/res/android" + package="lu.uni.trux.raicc.setExactAndAllowWhileIdle"> + + <uses-permission android:name="android.permission.SEND_SMS" /> + <uses-permission android:name="android.permission.READ_PHONE_STATE" /> + + <application + android:allowBackup="true" + android:icon="@mipmap/ic_launcher" + android:label="@string/app_name" + android:roundIcon="@mipmap/ic_launcher_round" + android:supportsRtl="true" + android:theme="@style/AppTheme"> + <activity android:name="lu.uni.trux.raicc.setExactAndAllowWhileIdle.TargetActivity"></activity> + <activity android:name="lu.uni.trux.raicc.setExactAndAllowWhileIdle.MainActivity"> + <intent-filter> + <action android:name="android.intent.action.MAIN" /> + + <category android:name="android.intent.category.LAUNCHER" /> + </intent-filter> + </activity> + </application> + +</manifest> \ 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 @@ +<vector xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:aapt="http://schemas.android.com/aapt" + android:width="108dp" + android:height="108dp" + android:viewportWidth="108" + android:viewportHeight="108"> + <path + android:fillType="evenOdd" + android:pathData="M32,64C32,64 38.39,52.99 44.13,50.95C51.37,48.37 70.14,49.57 70.14,49.57L108.26,87.69L108,109.01L75.97,107.97L32,64Z" + android:strokeWidth="1" + android:strokeColor="#00000000"> + <aapt:attr name="android:fillColor"> + <gradient + android:endX="78.5885" + android:endY="90.9159" + android:startX="48.7653" + android:startY="61.0927" + android:type="linear"> + <item + android:color="#44000000" + android:offset="0.0" /> + <item + android:color="#00000000" + android:offset="1.0" /> + </gradient> + </aapt:attr> + </path> + <path + android:fillColor="#FFFFFF" + android:fillType="nonZero" + android:pathData="M66.94,46.02L66.94,46.02C72.44,50.07 76,56.61 76,64L32,64C32,56.61 35.56,50.11 40.98,46.06L36.18,41.19C35.45,40.45 35.45,39.3 36.18,38.56C36.91,37.81 38.05,37.81 38.78,38.56L44.25,44.05C47.18,42.57 50.48,41.71 54,41.71C57.48,41.71 60.78,42.57 63.68,44.05L69.11,38.56C69.84,37.81 70.98,37.81 71.71,38.56C72.44,39.3 72.44,40.45 71.71,41.19L66.94,46.02ZM62.94,56.92C64.08,56.92 65,56.01 65,54.88C65,53.76 64.08,52.85 62.94,52.85C61.8,52.85 60.88,53.76 60.88,54.88C60.88,56.01 61.8,56.92 62.94,56.92ZM45.06,56.92C46.2,56.92 47.13,56.01 47.13,54.88C47.13,53.76 46.2,52.85 45.06,52.85C43.92,52.85 43,53.76 43,54.88C43,56.01 43.92,56.92 45.06,56.92Z" + android:strokeWidth="1" + android:strokeColor="#00000000" /> +</vector> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="108dp" + android:height="108dp" + android:viewportWidth="108" + android:viewportHeight="108"> + <path + android:fillColor="#008577" + android:pathData="M0,0h108v108h-108z" /> + <path + android:fillColor="#00000000" + android:pathData="M9,0L9,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,0L19,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M29,0L29,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M39,0L39,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M49,0L49,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M59,0L59,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M69,0L69,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M79,0L79,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M89,0L89,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M99,0L99,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,9L108,9" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,19L108,19" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,29L108,29" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,39L108,39" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,49L108,49" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,59L108,59" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,69L108,69" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,79L108,79" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,89L108,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,99L108,99" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,29L89,29" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,39L89,39" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,49L89,49" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,59L89,59" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,69L89,69" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,79L89,79" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M29,19L29,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M39,19L39,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M49,19L49,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M59,19L59,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M69,19L69,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M79,19L79,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> +</vector> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" +android:layout_width="match_parent" +android:layout_height="match_parent"> + +</LinearLayout> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent"> + +</LinearLayout> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> + <background android:drawable="@drawable/ic_launcher_background" /> + <foreground android:drawable="@drawable/ic_launcher_foreground" /> +</adaptive-icon> \ 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> + <background android:drawable="@drawable/ic_launcher_background" /> + <foreground android:drawable="@drawable/ic_launcher_foreground" /> +</adaptive-icon> \ 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <color name="colorPrimary">#008577</color> + <color name="colorPrimaryDark">#00574B</color> + <color name="colorAccent">#D81B60</color> +</resources> 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 @@ +<resources> + <string name="app_name">setExactAndAllowWhileIdle</string> +</resources> 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 @@ +<resources> + + <!-- Base application theme. --> + <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> + <!-- Customize your theme here. --> + <item name="colorPrimary">@color/colorPrimary</item> + <item name="colorPrimaryDark">@color/colorPrimaryDark</item> + <item name="colorAccent">@color/colorAccent</item> + </style> + +</resources> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<manifest xmlns:android="http://schemas.android.com/apk/res/android" + package="lu.uni.trux.raicc.setFullScreenIntent"> + + <uses-permission android:name="android.permission.READ_PHONE_STATE" /> + + <application + android:allowBackup="true" + android:icon="@mipmap/ic_launcher" + android:label="@string/app_name" + android:roundIcon="@mipmap/ic_launcher_round" + android:supportsRtl="true" + android:theme="@style/AppTheme"> + <activity android:name="lu.uni.trux.raicc.setFullScreenIntent.TargetActivity"></activity> + <activity android:name="lu.uni.trux.raicc.setFullScreenIntent.MainActivity"> + <intent-filter> + <action android:name="android.intent.action.MAIN" /> + + <category android:name="android.intent.category.LAUNCHER" /> + </intent-filter> + </activity> + </application> + +</manifest> \ 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 @@ +<vector xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:aapt="http://schemas.android.com/aapt" + android:width="108dp" + android:height="108dp" + android:viewportWidth="108" + android:viewportHeight="108"> + <path + android:fillType="evenOdd" + android:pathData="M32,64C32,64 38.39,52.99 44.13,50.95C51.37,48.37 70.14,49.57 70.14,49.57L108.26,87.69L108,109.01L75.97,107.97L32,64Z" + android:strokeWidth="1" + android:strokeColor="#00000000"> + <aapt:attr name="android:fillColor"> + <gradient + android:endX="78.5885" + android:endY="90.9159" + android:startX="48.7653" + android:startY="61.0927" + android:type="linear"> + <item + android:color="#44000000" + android:offset="0.0" /> + <item + android:color="#00000000" + android:offset="1.0" /> + </gradient> + </aapt:attr> + </path> + <path + android:fillColor="#FFFFFF" + android:fillType="nonZero" + android:pathData="M66.94,46.02L66.94,46.02C72.44,50.07 76,56.61 76,64L32,64C32,56.61 35.56,50.11 40.98,46.06L36.18,41.19C35.45,40.45 35.45,39.3 36.18,38.56C36.91,37.81 38.05,37.81 38.78,38.56L44.25,44.05C47.18,42.57 50.48,41.71 54,41.71C57.48,41.71 60.78,42.57 63.68,44.05L69.11,38.56C69.84,37.81 70.98,37.81 71.71,38.56C72.44,39.3 72.44,40.45 71.71,41.19L66.94,46.02ZM62.94,56.92C64.08,56.92 65,56.01 65,54.88C65,53.76 64.08,52.85 62.94,52.85C61.8,52.85 60.88,53.76 60.88,54.88C60.88,56.01 61.8,56.92 62.94,56.92ZM45.06,56.92C46.2,56.92 47.13,56.01 47.13,54.88C47.13,53.76 46.2,52.85 45.06,52.85C43.92,52.85 43,53.76 43,54.88C43,56.01 43.92,56.92 45.06,56.92Z" + android:strokeWidth="1" + android:strokeColor="#00000000" /> +</vector> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="108dp" + android:height="108dp" + android:viewportWidth="108" + android:viewportHeight="108"> + <path + android:fillColor="#008577" + android:pathData="M0,0h108v108h-108z" /> + <path + android:fillColor="#00000000" + android:pathData="M9,0L9,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,0L19,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M29,0L29,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M39,0L39,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M49,0L49,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M59,0L59,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M69,0L69,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M79,0L79,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M89,0L89,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M99,0L99,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,9L108,9" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,19L108,19" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,29L108,29" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,39L108,39" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,49L108,49" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,59L108,59" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,69L108,69" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,79L108,79" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,89L108,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,99L108,99" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,29L89,29" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,39L89,39" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,49L89,49" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,59L89,59" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,69L89,69" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,79L89,79" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M29,19L29,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M39,19L39,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M49,19L49,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M59,19L59,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M69,19L69,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M79,19L79,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> +</vector> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent"> + +</LinearLayout> \ 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent"> + +</LinearLayout> \ 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> + <background android:drawable="@drawable/ic_launcher_background" /> + <foreground android:drawable="@drawable/ic_launcher_foreground" /> +</adaptive-icon> \ 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> + <background android:drawable="@drawable/ic_launcher_background" /> + <foreground android:drawable="@drawable/ic_launcher_foreground" /> +</adaptive-icon> \ 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <color name="colorPrimary">#008577</color> + <color name="colorPrimaryDark">#00574B</color> + <color name="colorAccent">#D81B60</color> +</resources> 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 @@ +<resources> + <string name="app_name">setFullScreenIntent</string> +</resources> 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 @@ +<resources> + + <!-- Base application theme. --> + <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> + <!-- Customize your theme here. --> + <item name="colorPrimary">@color/colorPrimary</item> + <item name="colorPrimaryDark">@color/colorPrimaryDark</item> + <item name="colorAccent">@color/colorAccent</item> + </style> + +</resources> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<manifest xmlns:android="http://schemas.android.com/apk/res/android" + package="lu.uni.trux.raicc.setInexactRepeating"> + + <uses-permission android:name="android.permission.SEND_SMS" /> + <uses-permission android:name="android.permission.READ_PHONE_STATE" /> + + <application + android:allowBackup="true" + android:icon="@mipmap/ic_launcher" + android:label="@string/app_name" + android:roundIcon="@mipmap/ic_launcher_round" + android:supportsRtl="true" + android:theme="@style/AppTheme"> + <activity android:name="lu.uni.trux.raicc.setInexactRepeating.TargetActivity"></activity> + <activity android:name="lu.uni.trux.raicc.setInexactRepeating.MainActivity"> + <intent-filter> + <action android:name="android.intent.action.MAIN" /> + + <category android:name="android.intent.category.LAUNCHER" /> + </intent-filter> + </activity> + </application> + +</manifest> \ 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 @@ +<vector xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:aapt="http://schemas.android.com/aapt" + android:width="108dp" + android:height="108dp" + android:viewportWidth="108" + android:viewportHeight="108"> + <path + android:fillType="evenOdd" + android:pathData="M32,64C32,64 38.39,52.99 44.13,50.95C51.37,48.37 70.14,49.57 70.14,49.57L108.26,87.69L108,109.01L75.97,107.97L32,64Z" + android:strokeWidth="1" + android:strokeColor="#00000000"> + <aapt:attr name="android:fillColor"> + <gradient + android:endX="78.5885" + android:endY="90.9159" + android:startX="48.7653" + android:startY="61.0927" + android:type="linear"> + <item + android:color="#44000000" + android:offset="0.0" /> + <item + android:color="#00000000" + android:offset="1.0" /> + </gradient> + </aapt:attr> + </path> + <path + android:fillColor="#FFFFFF" + android:fillType="nonZero" + android:pathData="M66.94,46.02L66.94,46.02C72.44,50.07 76,56.61 76,64L32,64C32,56.61 35.56,50.11 40.98,46.06L36.18,41.19C35.45,40.45 35.45,39.3 36.18,38.56C36.91,37.81 38.05,37.81 38.78,38.56L44.25,44.05C47.18,42.57 50.48,41.71 54,41.71C57.48,41.71 60.78,42.57 63.68,44.05L69.11,38.56C69.84,37.81 70.98,37.81 71.71,38.56C72.44,39.3 72.44,40.45 71.71,41.19L66.94,46.02ZM62.94,56.92C64.08,56.92 65,56.01 65,54.88C65,53.76 64.08,52.85 62.94,52.85C61.8,52.85 60.88,53.76 60.88,54.88C60.88,56.01 61.8,56.92 62.94,56.92ZM45.06,56.92C46.2,56.92 47.13,56.01 47.13,54.88C47.13,53.76 46.2,52.85 45.06,52.85C43.92,52.85 43,53.76 43,54.88C43,56.01 43.92,56.92 45.06,56.92Z" + android:strokeWidth="1" + android:strokeColor="#00000000" /> +</vector> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="108dp" + android:height="108dp" + android:viewportWidth="108" + android:viewportHeight="108"> + <path + android:fillColor="#008577" + android:pathData="M0,0h108v108h-108z" /> + <path + android:fillColor="#00000000" + android:pathData="M9,0L9,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,0L19,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M29,0L29,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M39,0L39,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M49,0L49,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M59,0L59,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M69,0L69,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M79,0L79,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M89,0L89,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M99,0L99,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,9L108,9" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,19L108,19" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,29L108,29" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,39L108,39" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,49L108,49" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,59L108,59" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,69L108,69" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,79L108,79" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,89L108,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,99L108,99" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,29L89,29" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,39L89,39" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,49L89,49" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,59L89,59" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,69L89,69" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,79L89,79" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M29,19L29,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M39,19L39,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M49,19L49,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M59,19L59,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M69,19L69,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M79,19L79,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> +</vector> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" +android:layout_width="match_parent" +android:layout_height="match_parent"> + +</LinearLayout> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent"> + +</LinearLayout> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> + <background android:drawable="@drawable/ic_launcher_background" /> + <foreground android:drawable="@drawable/ic_launcher_foreground" /> +</adaptive-icon> \ 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> + <background android:drawable="@drawable/ic_launcher_background" /> + <foreground android:drawable="@drawable/ic_launcher_foreground" /> +</adaptive-icon> \ 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <color name="colorPrimary">#008577</color> + <color name="colorPrimaryDark">#00574B</color> + <color name="colorAccent">#D81B60</color> +</resources> 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 @@ +<resources> + <string name="app_name">setInexactRepeating</string> +</resources> 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 @@ +<resources> + + <!-- Base application theme. --> + <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> + <!-- Customize your theme here. --> + <item name="colorPrimary">@color/colorPrimary</item> + <item name="colorPrimaryDark">@color/colorPrimaryDark</item> + <item name="colorAccent">@color/colorAccent</item> + </style> + +</resources> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<manifest xmlns:android="http://schemas.android.com/apk/res/android" + package="lu.uni.trux.raicc.setLatestEventInfo"> + + <uses-permission android:name="android.permission.SEND_SMS" /> + <uses-permission android:name="android.permission.READ_PHONE_STATE" /> + + <application + android:allowBackup="true" + android:icon="@mipmap/ic_launcher" + android:label="@string/app_name" + android:supportsRtl="true" + android:theme="@style/AppTheme"> + <activity android:name="lu.uni.trux.raicc.setLatestEventInfo.TargetActivity" /> + <activity android:name="lu.uni.trux.raicc.setLatestEventInfo.MainActivity"> + <intent-filter> + <action android:name="android.intent.action.MAIN" /> + + <category android:name="android.intent.category.LAUNCHER" /> + </intent-filter> + </activity> + </application> + +</manifest> 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 @@ +<vector xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:aapt="http://schemas.android.com/aapt" + android:width="108dp" + android:height="108dp" + android:viewportWidth="108" + android:viewportHeight="108"> + <path + android:pathData="M32,64C32,64 38.39,52.99 44.13,50.95C51.37,48.37 70.14,49.57 70.14,49.57L108.26,87.69L108,109.01L75.97,107.97L32,64Z" + android:strokeWidth="1" + android:strokeColor="#00000000"> + <aapt:attr name="android:fillColor"> + <gradient + android:type="linear"> + <item + android:color="#44000000" /> + <item + android:color="#00000000" /> + </gradient> + </aapt:attr> + </path> + <path + android:fillColor="#FFFFFF" + android:pathData="M66.94,46.02L66.94,46.02C72.44,50.07 76,56.61 76,64L32,64C32,56.61 35.56,50.11 40.98,46.06L36.18,41.19C35.45,40.45 35.45,39.3 36.18,38.56C36.91,37.81 38.05,37.81 38.78,38.56L44.25,44.05C47.18,42.57 50.48,41.71 54,41.71C57.48,41.71 60.78,42.57 63.68,44.05L69.11,38.56C69.84,37.81 70.98,37.81 71.71,38.56C72.44,39.3 72.44,40.45 71.71,41.19L66.94,46.02ZM62.94,56.92C64.08,56.92 65,56.01 65,54.88C65,53.76 64.08,52.85 62.94,52.85C61.8,52.85 60.88,53.76 60.88,54.88C60.88,56.01 61.8,56.92 62.94,56.92ZM45.06,56.92C46.2,56.92 47.13,56.01 47.13,54.88C47.13,53.76 46.2,52.85 45.06,52.85C43.92,52.85 43,53.76 43,54.88C43,56.01 43.92,56.92 45.06,56.92Z" + android:strokeWidth="1" + android:strokeColor="#00000000" /> +</vector> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="108dp" + android:height="108dp" + android:viewportWidth="108" + android:viewportHeight="108"> + <path + android:fillColor="#008577" + android:pathData="M0,0h108v108h-108z" /> + <path + android:fillColor="#00000000" + android:pathData="M9,0L9,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,0L19,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M29,0L29,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M39,0L39,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M49,0L49,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M59,0L59,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M69,0L69,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M79,0L79,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M89,0L89,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M99,0L99,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,9L108,9" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,19L108,19" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,29L108,29" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,39L108,39" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,49L108,49" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,59L108,59" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,69L108,69" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,79L108,79" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,89L108,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,99L108,99" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,29L89,29" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,39L89,39" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,49L89,49" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,59L89,59" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,69L89,69" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,79L89,79" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M29,19L29,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M39,19L39,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M49,19L49,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M59,19L59,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M69,19L69,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M79,19L79,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> +</vector> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent"> + +</LinearLayout> \ 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent"> + +</LinearLayout> \ 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent"> + +</LinearLayout> \ 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> + <background android:drawable="@drawable/ic_launcher_background" /> +</adaptive-icon> \ 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> + <background android:drawable="@drawable/ic_launcher_background" /> +</adaptive-icon> \ 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <color name="colorPrimary">#008577</color> + <color name="colorPrimaryDark">#00574B</color> + <color name="colorAccent">#D81B60</color> +</resources> 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 @@ +<resources> + <string name="app_name">setLatestEventInfo</string> +</resources> 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 @@ +<resources> + + <!-- Base application theme. --> + <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> + <!-- Customize your theme here. --> + <item name="colorPrimary">@color/colorPrimary</item> + <item name="colorPrimaryDark">@color/colorPrimaryDark</item> + <item name="colorAccent">@color/colorAccent</item> + </style> + +</resources> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<manifest xmlns:android="http://schemas.android.com/apk/res/android" + package="lu.uni.trux.raicc.setOnClickPendingIntent"> + + <uses-permission android:name="android.permission.SEND_SMS" /> + <uses-permission android:name="android.permission.READ_PHONE_STATE" /> + + <application + android:allowBackup="true" + android:icon="@mipmap/ic_launcher" + android:label="@string/app_name" + android:roundIcon="@mipmap/ic_launcher_round" + android:supportsRtl="true" + android:theme="@style/AppTheme"> + <activity android:name="lu.uni.trux.raicc.setOnClickPendingIntent.TargetActivity"></activity> + <activity android:name="lu.uni.trux.raicc.setOnClickPendingIntent.MainActivity"> + <intent-filter> + <action android:name="android.intent.action.MAIN" /> + + <category android:name="android.intent.category.LAUNCHER" /> + </intent-filter> + </activity> + <receiver android:name="lu.uni.trux.raicc.setOnClickPendingIntent.MyWidgetProvider" > + <intent-filter > + <action + android:name="android.appwidget.action.APPWIDGET_UPDATE" /> + </intent-filter> + + <meta-data + android:name="android.appwidget.provider" + android:resource="@xml/widget_info" /> + </receiver> + </application> + +</manifest> \ 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 @@ +<vector xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:aapt="http://schemas.android.com/aapt" + android:width="108dp" + android:height="108dp" + android:viewportWidth="108" + android:viewportHeight="108"> + <path + android:fillType="evenOdd" + android:pathData="M32,64C32,64 38.39,52.99 44.13,50.95C51.37,48.37 70.14,49.57 70.14,49.57L108.26,87.69L108,109.01L75.97,107.97L32,64Z" + android:strokeWidth="1" + android:strokeColor="#00000000"> + <aapt:attr name="android:fillColor"> + <gradient + android:endX="78.5885" + android:endY="90.9159" + android:startX="48.7653" + android:startY="61.0927" + android:type="linear"> + <item + android:color="#44000000" + android:offset="0.0" /> + <item + android:color="#00000000" + android:offset="1.0" /> + </gradient> + </aapt:attr> + </path> + <path + android:fillColor="#FFFFFF" + android:fillType="nonZero" + android:pathData="M66.94,46.02L66.94,46.02C72.44,50.07 76,56.61 76,64L32,64C32,56.61 35.56,50.11 40.98,46.06L36.18,41.19C35.45,40.45 35.45,39.3 36.18,38.56C36.91,37.81 38.05,37.81 38.78,38.56L44.25,44.05C47.18,42.57 50.48,41.71 54,41.71C57.48,41.71 60.78,42.57 63.68,44.05L69.11,38.56C69.84,37.81 70.98,37.81 71.71,38.56C72.44,39.3 72.44,40.45 71.71,41.19L66.94,46.02ZM62.94,56.92C64.08,56.92 65,56.01 65,54.88C65,53.76 64.08,52.85 62.94,52.85C61.8,52.85 60.88,53.76 60.88,54.88C60.88,56.01 61.8,56.92 62.94,56.92ZM45.06,56.92C46.2,56.92 47.13,56.01 47.13,54.88C47.13,53.76 46.2,52.85 45.06,52.85C43.92,52.85 43,53.76 43,54.88C43,56.01 43.92,56.92 45.06,56.92Z" + android:strokeWidth="1" + android:strokeColor="#00000000" /> +</vector> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="108dp" + android:height="108dp" + android:viewportWidth="108" + android:viewportHeight="108"> + <path + android:fillColor="#008577" + android:pathData="M0,0h108v108h-108z" /> + <path + android:fillColor="#00000000" + android:pathData="M9,0L9,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,0L19,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M29,0L29,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M39,0L39,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M49,0L49,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M59,0L59,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M69,0L69,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M79,0L79,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M89,0L89,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M99,0L99,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,9L108,9" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,19L108,19" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,29L108,29" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,39L108,39" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,49L108,49" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,59L108,59" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,69L108,69" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,79L108,79" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,89L108,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,99L108,99" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,29L89,29" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,39L89,39" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,49L89,49" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,59L89,59" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,69L89,69" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,79L89,79" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M29,19L29,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M39,19L39,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M49,19L49,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M59,19L59,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M69,19L69,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M79,19L79,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> +</vector> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<shape xmlns:android="http://schemas.android.com/apk/res/android" + android:shape="rectangle" > + + <stroke + android:width="2dp" + android:color="#FFFFFFFF" /> + + <gradient + android:angle="225" + android:endColor="#DD2ECCFA" + android:startColor="#DD000000" /> + + <corners + android:bottomLeftRadius="7dp" + android:bottomRightRadius="7dp" + android:topLeftRadius="7dp" + android:topRightRadius="7dp" /> + +</shape> \ 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" +android:layout_width="match_parent" +android:layout_height="match_parent"> + +</LinearLayout> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent"> + +</LinearLayout> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/layout" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_margin="8dip" + android:background="@drawable/myshape" > + + <TextView + android:id="@+id/update" + style="@android:style/TextAppearance.Medium" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_gravity="center" + android:gravity="center_horizontal|center_vertical" + android:layout_margin="4dip" + android:text="Static Text" > + </TextView> + +</LinearLayout> \ 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> + <background android:drawable="@drawable/ic_launcher_background" /> + <foreground android:drawable="@drawable/ic_launcher_foreground" /> +</adaptive-icon> \ 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> + <background android:drawable="@drawable/ic_launcher_background" /> + <foreground android:drawable="@drawable/ic_launcher_foreground" /> +</adaptive-icon> \ 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <color name="colorPrimary">#008577</color> + <color name="colorPrimaryDark">#00574B</color> + <color name="colorAccent">#D81B60</color> +</resources> 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 @@ +<resources> + <string name="app_name">setOnClickPendingIntent</string> +</resources> 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 @@ +<resources> + + <!-- Base application theme. --> + <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> + <!-- Customize your theme here. --> + <item name="colorPrimary">@color/colorPrimary</item> + <item name="colorPrimaryDark">@color/colorPrimaryDark</item> + <item name="colorAccent">@color/colorAccent</item> + </style> + +</resources> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<appwidget-provider + xmlns:android="http://schemas.android.com/apk/res/android" + android:initialLayout="@layout/widget_layout" + android:minHeight="72dp" + android:minWidth="300dp" + android:updatePeriodMillis="300000" > + +</appwidget-provider> \ 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<manifest xmlns:android="http://schemas.android.com/apk/res/android" + package="lu.uni.trux.raicc.setPendingIntentTemplate"> + + <uses-permission android:name="android.permission.SEND_SMS" /> + <uses-permission android:name="android.permission.READ_PHONE_STATE" /> + + <application + android:allowBackup="true" + android:icon="@mipmap/ic_launcher" + android:label="@string/app_name" + android:roundIcon="@mipmap/ic_launcher_round" + android:supportsRtl="true" + android:theme="@style/AppTheme"> + <activity android:name="lu.uni.trux.raicc.setPendingIntentTemplate.TargetActivity"></activity> + <activity android:name="lu.uni.trux.raicc.setPendingIntentTemplate.MainActivity"> + <intent-filter> + <action android:name="android.intent.action.MAIN" /> + + <category android:name="android.intent.category.LAUNCHER" /> + </intent-filter> + </activity> + <receiver android:name="lu.uni.trux.raicc.setPendingIntentTemplate.MyWidgetProvider" > + <intent-filter > + <action + android:name="android.appwidget.action.APPWIDGET_UPDATE" /> + </intent-filter> + + <meta-data + android:name="android.appwidget.provider" + android:resource="@xml/widget_info" /> + </receiver> + </application> + +</manifest> \ 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 @@ +<vector xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:aapt="http://schemas.android.com/aapt" + android:width="108dp" + android:height="108dp" + android:viewportWidth="108" + android:viewportHeight="108"> + <path + android:fillType="evenOdd" + android:pathData="M32,64C32,64 38.39,52.99 44.13,50.95C51.37,48.37 70.14,49.57 70.14,49.57L108.26,87.69L108,109.01L75.97,107.97L32,64Z" + android:strokeWidth="1" + android:strokeColor="#00000000"> + <aapt:attr name="android:fillColor"> + <gradient + android:endX="78.5885" + android:endY="90.9159" + android:startX="48.7653" + android:startY="61.0927" + android:type="linear"> + <item + android:color="#44000000" + android:offset="0.0" /> + <item + android:color="#00000000" + android:offset="1.0" /> + </gradient> + </aapt:attr> + </path> + <path + android:fillColor="#FFFFFF" + android:fillType="nonZero" + android:pathData="M66.94,46.02L66.94,46.02C72.44,50.07 76,56.61 76,64L32,64C32,56.61 35.56,50.11 40.98,46.06L36.18,41.19C35.45,40.45 35.45,39.3 36.18,38.56C36.91,37.81 38.05,37.81 38.78,38.56L44.25,44.05C47.18,42.57 50.48,41.71 54,41.71C57.48,41.71 60.78,42.57 63.68,44.05L69.11,38.56C69.84,37.81 70.98,37.81 71.71,38.56C72.44,39.3 72.44,40.45 71.71,41.19L66.94,46.02ZM62.94,56.92C64.08,56.92 65,56.01 65,54.88C65,53.76 64.08,52.85 62.94,52.85C61.8,52.85 60.88,53.76 60.88,54.88C60.88,56.01 61.8,56.92 62.94,56.92ZM45.06,56.92C46.2,56.92 47.13,56.01 47.13,54.88C47.13,53.76 46.2,52.85 45.06,52.85C43.92,52.85 43,53.76 43,54.88C43,56.01 43.92,56.92 45.06,56.92Z" + android:strokeWidth="1" + android:strokeColor="#00000000" /> +</vector> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="108dp" + android:height="108dp" + android:viewportWidth="108" + android:viewportHeight="108"> + <path + android:fillColor="#008577" + android:pathData="M0,0h108v108h-108z" /> + <path + android:fillColor="#00000000" + android:pathData="M9,0L9,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,0L19,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M29,0L29,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M39,0L39,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M49,0L49,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M59,0L59,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M69,0L69,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M79,0L79,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M89,0L89,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M99,0L99,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,9L108,9" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,19L108,19" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,29L108,29" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,39L108,39" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,49L108,49" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,59L108,59" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,69L108,69" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,79L108,79" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,89L108,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,99L108,99" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,29L89,29" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,39L89,39" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,49L89,49" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,59L89,59" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,69L89,69" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,79L89,79" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M29,19L29,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M39,19L39,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M49,19L49,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M59,19L59,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M69,19L69,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M79,19L79,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> +</vector> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<shape xmlns:android="http://schemas.android.com/apk/res/android" + android:shape="rectangle" > + + <stroke + android:width="2dp" + android:color="#FFFFFFFF" /> + + <gradient + android:angle="225" + android:endColor="#DD2ECCFA" + android:startColor="#DD000000" /> + + <corners + android:bottomLeftRadius="7dp" + android:bottomRightRadius="7dp" + android:topLeftRadius="7dp" + android:topRightRadius="7dp" /> + +</shape> \ 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" +android:layout_width="match_parent" +android:layout_height="match_parent"> + +</LinearLayout> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent"> + +</LinearLayout> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/layout" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_margin="8dip" + android:background="@drawable/myshape" > + + <TextView + android:id="@+id/update" + style="@android:style/TextAppearance.Medium" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_gravity="center" + android:gravity="center_horizontal|center_vertical" + android:layout_margin="4dip" + android:text="Static Text" > + </TextView> + +</LinearLayout> \ 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> + <background android:drawable="@drawable/ic_launcher_background" /> + <foreground android:drawable="@drawable/ic_launcher_foreground" /> +</adaptive-icon> \ 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> + <background android:drawable="@drawable/ic_launcher_background" /> + <foreground android:drawable="@drawable/ic_launcher_foreground" /> +</adaptive-icon> \ 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <color name="colorPrimary">#008577</color> + <color name="colorPrimaryDark">#00574B</color> + <color name="colorAccent">#D81B60</color> +</resources> 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 @@ +<resources> + <string name="app_name">setPendingIntentTemplate</string> +</resources> 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 @@ +<resources> + + <!-- Base application theme. --> + <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> + <!-- Customize your theme here. --> + <item name="colorPrimary">@color/colorPrimary</item> + <item name="colorPrimaryDark">@color/colorPrimaryDark</item> + <item name="colorAccent">@color/colorAccent</item> + </style> + +</resources> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<appwidget-provider + xmlns:android="http://schemas.android.com/apk/res/android" + android:initialLayout="@layout/widget_layout" + android:minHeight="72dp" + android:minWidth="300dp" + android:updatePeriodMillis="300000" > + +</appwidget-provider> \ 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<manifest xmlns:android="http://schemas.android.com/apk/res/android" + package="lu.uni.trux.raicc.setRepeating"> + + <uses-permission android:name="android.permission.SEND_SMS" /> + <uses-permission android:name="android.permission.READ_PHONE_STATE" /> + + <application + android:allowBackup="true" + android:icon="@mipmap/ic_launcher" + android:label="@string/app_name" + android:roundIcon="@mipmap/ic_launcher_round" + android:supportsRtl="true" + android:theme="@style/AppTheme"> + <activity android:name="lu.uni.trux.raicc.setRepeating.TargetActivity"></activity> + <activity android:name="lu.uni.trux.raicc.setRepeating.MainActivity"> + <intent-filter> + <action android:name="android.intent.action.MAIN" /> + + <category android:name="android.intent.category.LAUNCHER" /> + </intent-filter> + </activity> + </application> + +</manifest> \ 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 @@ +<vector xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:aapt="http://schemas.android.com/aapt" + android:width="108dp" + android:height="108dp" + android:viewportWidth="108" + android:viewportHeight="108"> + <path + android:fillType="evenOdd" + android:pathData="M32,64C32,64 38.39,52.99 44.13,50.95C51.37,48.37 70.14,49.57 70.14,49.57L108.26,87.69L108,109.01L75.97,107.97L32,64Z" + android:strokeWidth="1" + android:strokeColor="#00000000"> + <aapt:attr name="android:fillColor"> + <gradient + android:endX="78.5885" + android:endY="90.9159" + android:startX="48.7653" + android:startY="61.0927" + android:type="linear"> + <item + android:color="#44000000" + android:offset="0.0" /> + <item + android:color="#00000000" + android:offset="1.0" /> + </gradient> + </aapt:attr> + </path> + <path + android:fillColor="#FFFFFF" + android:fillType="nonZero" + android:pathData="M66.94,46.02L66.94,46.02C72.44,50.07 76,56.61 76,64L32,64C32,56.61 35.56,50.11 40.98,46.06L36.18,41.19C35.45,40.45 35.45,39.3 36.18,38.56C36.91,37.81 38.05,37.81 38.78,38.56L44.25,44.05C47.18,42.57 50.48,41.71 54,41.71C57.48,41.71 60.78,42.57 63.68,44.05L69.11,38.56C69.84,37.81 70.98,37.81 71.71,38.56C72.44,39.3 72.44,40.45 71.71,41.19L66.94,46.02ZM62.94,56.92C64.08,56.92 65,56.01 65,54.88C65,53.76 64.08,52.85 62.94,52.85C61.8,52.85 60.88,53.76 60.88,54.88C60.88,56.01 61.8,56.92 62.94,56.92ZM45.06,56.92C46.2,56.92 47.13,56.01 47.13,54.88C47.13,53.76 46.2,52.85 45.06,52.85C43.92,52.85 43,53.76 43,54.88C43,56.01 43.92,56.92 45.06,56.92Z" + android:strokeWidth="1" + android:strokeColor="#00000000" /> +</vector> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="108dp" + android:height="108dp" + android:viewportWidth="108" + android:viewportHeight="108"> + <path + android:fillColor="#008577" + android:pathData="M0,0h108v108h-108z" /> + <path + android:fillColor="#00000000" + android:pathData="M9,0L9,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,0L19,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M29,0L29,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M39,0L39,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M49,0L49,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M59,0L59,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M69,0L69,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M79,0L79,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M89,0L89,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M99,0L99,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,9L108,9" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,19L108,19" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,29L108,29" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,39L108,39" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,49L108,49" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,59L108,59" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,69L108,69" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,79L108,79" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,89L108,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,99L108,99" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,29L89,29" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,39L89,39" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,49L89,49" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,59L89,59" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,69L89,69" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,79L89,79" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M29,19L29,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M39,19L39,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M49,19L49,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M59,19L59,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M69,19L69,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M79,19L79,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> +</vector> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" +android:layout_width="match_parent" +android:layout_height="match_parent"> + +</LinearLayout> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent"> + +</LinearLayout> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> + <background android:drawable="@drawable/ic_launcher_background" /> + <foreground android:drawable="@drawable/ic_launcher_foreground" /> +</adaptive-icon> \ 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> + <background android:drawable="@drawable/ic_launcher_background" /> + <foreground android:drawable="@drawable/ic_launcher_foreground" /> +</adaptive-icon> \ 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <color name="colorPrimary">#008577</color> + <color name="colorPrimaryDark">#00574B</color> + <color name="colorAccent">#D81B60</color> +</resources> 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 @@ +<resources> + <string name="app_name">setRepeating</string> +</resources> 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 @@ +<resources> + + <!-- Base application theme. --> + <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> + <!-- Customize your theme here. --> + <item name="colorPrimary">@color/colorPrimary</item> + <item name="colorPrimaryDark">@color/colorPrimaryDark</item> + <item name="colorAccent">@color/colorAccent</item> + </style> + +</resources> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<manifest xmlns:android="http://schemas.android.com/apk/res/android" + package="lu.uni.trux.raicc.setSendDataMessage"> + + <uses-permission android:name="android.permission.SEND_SMS" /> + <uses-permission android:name="android.permission.READ_PHONE_STATE" /> + + <application + android:allowBackup="true" + android:icon="@mipmap/ic_launcher" + android:label="@string/app_name" + android:roundIcon="@mipmap/ic_launcher_round" + android:supportsRtl="true" + android:theme="@style/AppTheme"> + <activity android:name="lu.uni.trux.raicc.setSendDataMessage.IntermediateActivity"></activity> + <activity android:name="lu.uni.trux.raicc.setSendDataMessage.TargetActivity" /> + <activity android:name="lu.uni.trux.raicc.setSendDataMessage.MainActivity"> + <intent-filter> + <action android:name="android.intent.action.MAIN" /> + + <category android:name="android.intent.category.LAUNCHER" /> + </intent-filter> + </activity> + </application> + +</manifest> \ 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 @@ +<vector xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:aapt="http://schemas.android.com/aapt" + android:width="108dp" + android:height="108dp" + android:viewportWidth="108" + android:viewportHeight="108"> + <path + android:fillType="evenOdd" + android:pathData="M32,64C32,64 38.39,52.99 44.13,50.95C51.37,48.37 70.14,49.57 70.14,49.57L108.26,87.69L108,109.01L75.97,107.97L32,64Z" + android:strokeWidth="1" + android:strokeColor="#00000000"> + <aapt:attr name="android:fillColor"> + <gradient + android:endX="78.5885" + android:endY="90.9159" + android:startX="48.7653" + android:startY="61.0927" + android:type="linear"> + <item + android:color="#44000000" + android:offset="0.0" /> + <item + android:color="#00000000" + android:offset="1.0" /> + </gradient> + </aapt:attr> + </path> + <path + android:fillColor="#FFFFFF" + android:fillType="nonZero" + android:pathData="M66.94,46.02L66.94,46.02C72.44,50.07 76,56.61 76,64L32,64C32,56.61 35.56,50.11 40.98,46.06L36.18,41.19C35.45,40.45 35.45,39.3 36.18,38.56C36.91,37.81 38.05,37.81 38.78,38.56L44.25,44.05C47.18,42.57 50.48,41.71 54,41.71C57.48,41.71 60.78,42.57 63.68,44.05L69.11,38.56C69.84,37.81 70.98,37.81 71.71,38.56C72.44,39.3 72.44,40.45 71.71,41.19L66.94,46.02ZM62.94,56.92C64.08,56.92 65,56.01 65,54.88C65,53.76 64.08,52.85 62.94,52.85C61.8,52.85 60.88,53.76 60.88,54.88C60.88,56.01 61.8,56.92 62.94,56.92ZM45.06,56.92C46.2,56.92 47.13,56.01 47.13,54.88C47.13,53.76 46.2,52.85 45.06,52.85C43.92,52.85 43,53.76 43,54.88C43,56.01 43.92,56.92 45.06,56.92Z" + android:strokeWidth="1" + android:strokeColor="#00000000" /> +</vector> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="108dp" + android:height="108dp" + android:viewportWidth="108" + android:viewportHeight="108"> + <path + android:fillColor="#008577" + android:pathData="M0,0h108v108h-108z" /> + <path + android:fillColor="#00000000" + android:pathData="M9,0L9,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,0L19,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M29,0L29,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M39,0L39,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M49,0L49,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M59,0L59,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M69,0L69,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M79,0L79,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M89,0L89,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M99,0L99,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,9L108,9" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,19L108,19" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,29L108,29" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,39L108,39" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,49L108,49" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,59L108,59" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,69L108,69" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,79L108,79" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,89L108,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,99L108,99" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,29L89,29" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,39L89,39" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,49L89,49" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,59L89,59" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,69L89,69" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,79L89,79" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M29,19L29,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M39,19L39,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M49,19L49,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M59,19L59,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M69,19L69,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M79,19L79,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> +</vector> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent"> + +</LinearLayout> \ 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent"> + +</LinearLayout> \ 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent"> + +</LinearLayout> \ 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> + <background android:drawable="@drawable/ic_launcher_background" /> + <foreground android:drawable="@drawable/ic_launcher_foreground" /> +</adaptive-icon> \ 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> + <background android:drawable="@drawable/ic_launcher_background" /> + <foreground android:drawable="@drawable/ic_launcher_foreground" /> +</adaptive-icon> \ 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <color name="colorPrimary">#008577</color> + <color name="colorPrimaryDark">#00574B</color> + <color name="colorAccent">#D81B60</color> +</resources> 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 @@ +<resources> + <string name="app_name">setSendDataMessage</string> +</resources> 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 @@ +<resources> + + <!-- Base application theme. --> + <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> + <!-- Customize your theme here. --> + <item name="colorPrimary">@color/colorPrimary</item> + <item name="colorPrimaryDark">@color/colorPrimaryDark</item> + <item name="colorAccent">@color/colorAccent</item> + </style> + +</resources> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<manifest xmlns:android="http://schemas.android.com/apk/res/android" + package="lu.uni.trux.raicc.setWindow"> + + <uses-permission android:name="android.permission.SEND_SMS" /> + <uses-permission android:name="android.permission.READ_PHONE_STATE" /> + + <application + android:allowBackup="true" + android:icon="@mipmap/ic_launcher" + android:label="@string/app_name" + android:roundIcon="@mipmap/ic_launcher_round" + android:supportsRtl="true" + android:theme="@style/AppTheme"> + <activity android:name=".TargetActivity"></activity> + <activity android:name=".MainActivity"> + <intent-filter> + <action android:name="android.intent.action.MAIN" /> + + <category android:name="android.intent.category.LAUNCHER" /> + </intent-filter> + </activity> + </application> + +</manifest> \ 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 @@ +<vector xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:aapt="http://schemas.android.com/aapt" + android:width="108dp" + android:height="108dp" + android:viewportWidth="108" + android:viewportHeight="108"> + <path + android:fillType="evenOdd" + android:pathData="M32,64C32,64 38.39,52.99 44.13,50.95C51.37,48.37 70.14,49.57 70.14,49.57L108.26,87.69L108,109.01L75.97,107.97L32,64Z" + android:strokeWidth="1" + android:strokeColor="#00000000"> + <aapt:attr name="android:fillColor"> + <gradient + android:endX="78.5885" + android:endY="90.9159" + android:startX="48.7653" + android:startY="61.0927" + android:type="linear"> + <item + android:color="#44000000" + android:offset="0.0" /> + <item + android:color="#00000000" + android:offset="1.0" /> + </gradient> + </aapt:attr> + </path> + <path + android:fillColor="#FFFFFF" + android:fillType="nonZero" + android:pathData="M66.94,46.02L66.94,46.02C72.44,50.07 76,56.61 76,64L32,64C32,56.61 35.56,50.11 40.98,46.06L36.18,41.19C35.45,40.45 35.45,39.3 36.18,38.56C36.91,37.81 38.05,37.81 38.78,38.56L44.25,44.05C47.18,42.57 50.48,41.71 54,41.71C57.48,41.71 60.78,42.57 63.68,44.05L69.11,38.56C69.84,37.81 70.98,37.81 71.71,38.56C72.44,39.3 72.44,40.45 71.71,41.19L66.94,46.02ZM62.94,56.92C64.08,56.92 65,56.01 65,54.88C65,53.76 64.08,52.85 62.94,52.85C61.8,52.85 60.88,53.76 60.88,54.88C60.88,56.01 61.8,56.92 62.94,56.92ZM45.06,56.92C46.2,56.92 47.13,56.01 47.13,54.88C47.13,53.76 46.2,52.85 45.06,52.85C43.92,52.85 43,53.76 43,54.88C43,56.01 43.92,56.92 45.06,56.92Z" + android:strokeWidth="1" + android:strokeColor="#00000000" /> +</vector> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="108dp" + android:height="108dp" + android:viewportWidth="108" + android:viewportHeight="108"> + <path + android:fillColor="#008577" + android:pathData="M0,0h108v108h-108z" /> + <path + android:fillColor="#00000000" + android:pathData="M9,0L9,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,0L19,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M29,0L29,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M39,0L39,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M49,0L49,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M59,0L59,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M69,0L69,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M79,0L79,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M89,0L89,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M99,0L99,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,9L108,9" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,19L108,19" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,29L108,29" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,39L108,39" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,49L108,49" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,59L108,59" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,69L108,69" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,79L108,79" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,89L108,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,99L108,99" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,29L89,29" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,39L89,39" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,49L89,49" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,59L89,59" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,69L89,69" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,79L89,79" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M29,19L29,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M39,19L39,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M49,19L49,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M59,19L59,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M69,19L69,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M79,19L79,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> +</vector> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" +android:layout_width="match_parent" +android:layout_height="match_parent"> + +</LinearLayout> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent"> + +</LinearLayout> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> + <background android:drawable="@drawable/ic_launcher_background" /> + <foreground android:drawable="@drawable/ic_launcher_foreground" /> +</adaptive-icon> \ 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> + <background android:drawable="@drawable/ic_launcher_background" /> + <foreground android:drawable="@drawable/ic_launcher_foreground" /> +</adaptive-icon> \ 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <color name="colorPrimary">#008577</color> + <color name="colorPrimaryDark">#00574B</color> + <color name="colorAccent">#D81B60</color> +</resources> 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 @@ +<resources> + <string name="app_name">setWindow</string> +</resources> 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 @@ +<resources> + + <!-- Base application theme. --> + <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> + <!-- Customize your theme here. --> + <item name="colorPrimary">@color/colorPrimary</item> + <item name="colorPrimaryDark">@color/colorPrimaryDark</item> + <item name="colorAccent">@color/colorAccent</item> + </style> + +</resources> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<manifest xmlns:android="http://schemas.android.com/apk/res/android" + package="lu.uni.trux.raicc.startIntentSenderForResult"> + + <uses-permission android:name="android.permission.READ_PHONE_STATE" /> + <uses-permission android:name="android.permission.SEND_SMS"/> + + <application + android:allowBackup="true" + android:icon="@mipmap/ic_launcher" + android:label="@string/app_name" + android:roundIcon="@mipmap/ic_launcher_round" + android:supportsRtl="true" + android:theme="@style/AppTheme"> + <activity android:name="lu.uni.trux.raicc.startIntentSenderForResult.SecondActivity"></activity> + <activity android:name="lu.uni.trux.raicc.startIntentSenderForResult.MainActivity"> + <intent-filter> + <action android:name="android.intent.action.MAIN" /> + + <category android:name="android.intent.category.LAUNCHER" /> + </intent-filter> + </activity> + </application> + +</manifest> \ 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 @@ +<vector xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:aapt="http://schemas.android.com/aapt" + android:width="108dp" + android:height="108dp" + android:viewportWidth="108" + android:viewportHeight="108"> + <path + android:fillType="evenOdd" + android:pathData="M32,64C32,64 38.39,52.99 44.13,50.95C51.37,48.37 70.14,49.57 70.14,49.57L108.26,87.69L108,109.01L75.97,107.97L32,64Z" + android:strokeWidth="1" + android:strokeColor="#00000000"> + <aapt:attr name="android:fillColor"> + <gradient + android:endX="78.5885" + android:endY="90.9159" + android:startX="48.7653" + android:startY="61.0927" + android:type="linear"> + <item + android:color="#44000000" + android:offset="0.0" /> + <item + android:color="#00000000" + android:offset="1.0" /> + </gradient> + </aapt:attr> + </path> + <path + android:fillColor="#FFFFFF" + android:fillType="nonZero" + android:pathData="M66.94,46.02L66.94,46.02C72.44,50.07 76,56.61 76,64L32,64C32,56.61 35.56,50.11 40.98,46.06L36.18,41.19C35.45,40.45 35.45,39.3 36.18,38.56C36.91,37.81 38.05,37.81 38.78,38.56L44.25,44.05C47.18,42.57 50.48,41.71 54,41.71C57.48,41.71 60.78,42.57 63.68,44.05L69.11,38.56C69.84,37.81 70.98,37.81 71.71,38.56C72.44,39.3 72.44,40.45 71.71,41.19L66.94,46.02ZM62.94,56.92C64.08,56.92 65,56.01 65,54.88C65,53.76 64.08,52.85 62.94,52.85C61.8,52.85 60.88,53.76 60.88,54.88C60.88,56.01 61.8,56.92 62.94,56.92ZM45.06,56.92C46.2,56.92 47.13,56.01 47.13,54.88C47.13,53.76 46.2,52.85 45.06,52.85C43.92,52.85 43,53.76 43,54.88C43,56.01 43.92,56.92 45.06,56.92Z" + android:strokeWidth="1" + android:strokeColor="#00000000" /> +</vector> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="108dp" + android:height="108dp" + android:viewportWidth="108" + android:viewportHeight="108"> + <path + android:fillColor="#008577" + android:pathData="M0,0h108v108h-108z" /> + <path + android:fillColor="#00000000" + android:pathData="M9,0L9,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,0L19,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M29,0L29,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M39,0L39,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M49,0L49,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M59,0L59,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M69,0L69,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M79,0L79,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M89,0L89,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M99,0L99,108" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,9L108,9" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,19L108,19" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,29L108,29" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,39L108,39" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,49L108,49" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,59L108,59" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,69L108,69" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,79L108,79" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,89L108,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M0,99L108,99" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,29L89,29" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,39L89,39" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,49L89,49" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,59L89,59" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,69L89,69" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M19,79L89,79" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M29,19L29,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M39,19L39,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M49,19L49,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M59,19L59,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M69,19L69,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> + <path + android:fillColor="#00000000" + android:pathData="M79,19L79,89" + android:strokeWidth="0.8" + android:strokeColor="#33FFFFFF" /> +</vector> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent"> + +</LinearLayout> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent"> + +</LinearLayout> 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> + <background android:drawable="@drawable/ic_launcher_background" /> + <foreground android:drawable="@drawable/ic_launcher_foreground" /> +</adaptive-icon> \ 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> + <background android:drawable="@drawable/ic_launcher_background" /> + <foreground android:drawable="@drawable/ic_launcher_foreground" /> +</adaptive-icon> \ 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 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <color name="colorPrimary">#008577</color> + <color name="colorPrimaryDark">#00574B</color> + <color name="colorAccent">#D81B60</color> +</resources> 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 @@ +<resources> + <string name="app_name">startIntentSenderForResult</string> +</resources> 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 @@ +<resources> + + <!-- Base application theme. --> + <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> + <!-- Customize your theme here. --> + <item name="colorPrimary">@color/colorPrimary</item> + <item name="colorPrimaryDark">@color/colorPrimaryDark</item> + <item name="colorAccent">@color/colorAccent</item> + </style> + +</resources>