summaryrefslogtreecommitdiff
path: root/same-android/src/main/java/com/orbekk/same
diff options
context:
space:
mode:
authorKjetil Ørbekk <kjetil.orbekk@gmail.com>2012-02-13 19:30:23 +0100
committerKjetil Ørbekk <kjetil.orbekk@gmail.com>2012-02-13 19:30:23 +0100
commit1df218cb0cb92ac8374241f342b1b6a0a5fe9e01 (patch)
tree36ceb8fe534dce7b71e967ef35b099d5b73f7d51 /same-android/src/main/java/com/orbekk/same
parent45390a10a599275a0a7e185d294879138b74c2a3 (diff)
Use special broadcast in android program.
Diffstat (limited to 'same-android/src/main/java/com/orbekk/same')
-rw-r--r--same-android/src/main/java/com/orbekk/same/android/net/AndroidBroadcasterFactory.java20
1 files changed, 20 insertions, 0 deletions
diff --git a/same-android/src/main/java/com/orbekk/same/android/net/AndroidBroadcasterFactory.java b/same-android/src/main/java/com/orbekk/same/android/net/AndroidBroadcasterFactory.java
new file mode 100644
index 0000000..3d2bdef
--- /dev/null
+++ b/same-android/src/main/java/com/orbekk/same/android/net/AndroidBroadcasterFactory.java
@@ -0,0 +1,20 @@
+package com.orbekk.same.android.net;
+
+import android.content.Context;
+
+import com.orbekk.net.BroadcasterFactory;
+import com.orbekk.net.BroadcasterInterface;
+
+public class AndroidBroadcasterFactory implements BroadcasterFactory {
+ Context context;
+
+ public AndroidBroadcasterFactory(Context context) {
+ this.context = context;
+ }
+
+ @Override
+ public BroadcasterInterface create() {
+ return new Broadcaster(context);
+ }
+
+}