diff options
author | Kjetil Ørbekk <kjetil.orbekk@gmail.com> | 2012-02-13 19:30:23 +0100 |
---|---|---|
committer | Kjetil Ørbekk <kjetil.orbekk@gmail.com> | 2012-02-13 19:30:23 +0100 |
commit | 1df218cb0cb92ac8374241f342b1b6a0a5fe9e01 (patch) | |
tree | 36ceb8fe534dce7b71e967ef35b099d5b73f7d51 /same-android/src/main/java/com/orbekk/same | |
parent | 45390a10a599275a0a7e185d294879138b74c2a3 (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.java | 20 |
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); + } + +} |