Skip to content

Commit b295cc0

Browse files
committed
Initial commit
0 parents  commit b295cc0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+1294
-0
lines changed

AndroidManifest.xml

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
package="org.spoofer.techinc"
4+
5+
android:versionCode="1"
6+
android:versionName="1.0" >
7+
8+
<uses-permission android:name="android.permission.INTERNET" />
9+
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
10+
<uses-sdk android:targetSdkVersion="10" android:minSdkVersion="10"/>
11+
12+
<application
13+
android:icon="@drawable/ic_launcher"
14+
android:label="@string/app_name" >
15+
16+
<receiver android:name="BootClass">
17+
<intent-filter>
18+
<action android:name="android.intent.action.BOOT_COMPLETED" />
19+
</intent-filter>
20+
</receiver>
21+
<activity
22+
android:name=".PreferenceSettings"
23+
android:icon="@drawable/techinclogo"
24+
android:label="@string/app_name" >
25+
<intent-filter>
26+
<action android:name="android.intent.action.MAIN" />
27+
28+
<category android:name="android.intent.category.LAUNCHER" />
29+
</intent-filter>
30+
</activity>
31+
<service
32+
android:name=".state.StateEngine"
33+
android:icon="@drawable/techinclogo"
34+
android:label="@string/app_name"
35+
>
36+
<intent-filter>
37+
<action android:name="org.spoofer.hackerspace.StateEngine" />
38+
</intent-filter>
39+
</service>
40+
41+
</application>
42+
43+
44+
</manifest>
45+

README

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Techinc, Amsterdam Hackspace.
2+
Android Notification App.
3+
4+
The space broadcasts its current status in terms of open and closed.
5+
When this status changes, the notification app will place a notification on the Android status bar.
6+
7+

bin/.DS_Store

6 KB
Binary file not shown.

bin/HackerSpace.apk

61.3 KB
Binary file not shown.

bin/classes.dex

24.8 KB
Binary file not shown.
1.36 KB
Binary file not shown.
347 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
343 Bytes
Binary file not shown.
485 Bytes
Binary file not shown.
886 Bytes
Binary file not shown.
397 Bytes
Binary file not shown.
1010 Bytes
Binary file not shown.
538 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

bin/jarlist.cache

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# cache for current jar dependecy. DO NOT EDIT.
2+
# format is <lastModified> <length> <SHA-1> <path>
3+
# Encoding is UTF-8

bin/res/drawable-hdpi/ic_launcher.png

8.98 KB

bin/res/drawable-ldpi/ic_launcher.png

2.6 KB

bin/res/drawable-mdpi/ic_launcher.png

4.94 KB

bin/res/drawable-mdpi/techinclogo.png

4.54 KB
2.25 KB
13.7 KB
1.94 KB
1.59 KB

bin/resources.ap_

47.6 KB
Binary file not shown.
+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/** Automatically generated file. DO NOT MODIFY */
2+
package org.spoofer.techinc;
3+
4+
public final class BuildConfig {
5+
public final static boolean DEBUG = true;
6+
}

gen/org/spoofer/techinc/R.java

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
/* AUTO-GENERATED FILE. DO NOT MODIFY.
2+
*
3+
* This class was automatically generated by the
4+
* aapt tool from the resource data it found. It
5+
* should not be modified by hand.
6+
*/
7+
8+
package org.spoofer.techinc;
9+
10+
public final class R {
11+
public static final class attr {
12+
}
13+
public static final class drawable {
14+
public static final int ic_launcher=0x7f020000;
15+
public static final int techinclogo=0x7f020001;
16+
public static final int techinclogo_mono=0x7f020002;
17+
}
18+
public static final class id {
19+
public static final int apply=0x7f05000e;
20+
public static final int boot_start=0x7f050002;
21+
public static final int butn_browse_sound=0x7f050006;
22+
public static final int label_open_url=0x7f050000;
23+
public static final int label_pref_notify_sound=0x7f050004;
24+
public static final int label_pref_update_freq=0x7f050007;
25+
public static final int label_update_url=0x7f050009;
26+
public static final int notify_sound=0x7f050005;
27+
public static final int open_url=0x7f050001;
28+
public static final int reset=0x7f05000d;
29+
public static final int start=0x7f05000b;
30+
public static final int stop=0x7f05000c;
31+
public static final int update_freq=0x7f050008;
32+
public static final int update_url=0x7f05000a;
33+
public static final int vibrate=0x7f050003;
34+
}
35+
public static final class layout {
36+
public static final int main=0x7f030000;
37+
}
38+
public static final class string {
39+
public static final int app_name=0x7f040000;
40+
public static final int button_browse=0x7f04000d;
41+
public static final int button_start_service=0x7f04000b;
42+
public static final int button_stop_service=0x7f04000c;
43+
public static final int confirm_no=0x7f040010;
44+
public static final int confirm_reset=0x7f04000e;
45+
public static final int confirm_yes=0x7f04000f;
46+
public static final int notify_closed=0x7f040002;
47+
public static final int notify_open=0x7f040001;
48+
public static final int pref_apply=0x7f040008;
49+
public static final int pref_boot_start=0x7f04000a;
50+
public static final int pref_notify_sound=0x7f040009;
51+
public static final int pref_notify_vibrate=0x7f040005;
52+
public static final int pref_open_url=0x7f040007;
53+
public static final int pref_reset=0x7f040006;
54+
public static final int pref_update_freq=0x7f040003;
55+
public static final int pref_update_url=0x7f040004;
56+
}
57+
}

lint.xml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<lint>
3+
</lint>

proguard-project.txt

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# To enable ProGuard in your project, edit project.properties
2+
# to define the proguard.config property as described in that file.
3+
#
4+
# Add project specific ProGuard rules here.
5+
# By default, the flags in this file are appended to flags specified
6+
# in ${sdk.dir}/tools/proguard/proguard-android.txt
7+
# You can edit the include path and order by changing the ProGuard
8+
# include property in project.properties.
9+
#
10+
# For more details, see
11+
# http://developer.android.com/guide/developing/tools/proguard.html
12+
13+
# Add any project specific keep options here:
14+
15+
# If your project uses WebView with JS, uncomment the following
16+
# and specify the fully qualified class name to the JavaScript interface
17+
# class:
18+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
19+
# public *;
20+
#}

project.properties

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# This file is automatically generated by Android Tools.
2+
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
3+
#
4+
# This file must be checked in Version Control Systems.
5+
#
6+
# To customize properties used by the Ant build system edit
7+
# "ant.properties", and override values to adapt the script to your
8+
# project structure.
9+
#
10+
# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
11+
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
12+
13+
# Project target.
14+
target=android-10

res/.DS_Store

6 KB
Binary file not shown.

res/drawable-hdpi/ic_launcher.png

9.18 KB

res/drawable-ldpi/ic_launcher.png

2.67 KB

res/drawable-mdpi/ic_launcher.png

5.11 KB

res/drawable-mdpi/techinclogo.png

4.61 KB
2.28 KB

res/drawable-xhdpi/ic_launcher.png

14 KB

res/drawable-xhdpi/techinclogo.png

2 KB
1.61 KB

res/layout/main.xml

+136
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3+
android:layout_width="fill_parent"
4+
android:layout_height="fill_parent"
5+
android:padding="10dp" >
6+
7+
<TextView
8+
android:id="@+id/label_open_url"
9+
android:layout_width="fill_parent"
10+
android:layout_height="wrap_content"
11+
android:text="@string/pref_open_url" />
12+
13+
14+
<EditText
15+
android:id="@+id/open_url"
16+
android:layout_width="fill_parent"
17+
android:layout_height="wrap_content"
18+
android:layout_below="@+id/label_open_url"
19+
android:inputType="textUri"
20+
android:singleLine="true" />
21+
22+
23+
<CheckBox
24+
android:id="@+id/boot_start"
25+
android:layout_width="wrap_content"
26+
android:layout_height="wrap_content"
27+
android:layout_below="@+id/open_url"
28+
android:text="@string/pref_boot_start"
29+
/>
30+
31+
<CheckBox
32+
android:id="@+id/vibrate"
33+
android:layout_width="fill_parent"
34+
android:layout_height="wrap_content"
35+
android:layout_below="@+id/boot_start"
36+
android:text="@string/pref_notify_vibrate" />
37+
38+
39+
<TextView
40+
android:id="@+id/label_pref_notify_sound"
41+
android:layout_width="wrap_content"
42+
android:layout_height="wrap_content"
43+
android:layout_below="@+id/vibrate"
44+
android:text="@string/pref_notify_sound" />
45+
46+
47+
<EditText
48+
android:id="@+id/notify_sound"
49+
android:layout_width="fill_parent"
50+
android:layout_height="wrap_content"
51+
android:layout_alignParentLeft="true"
52+
android:layout_below="@+id/label_pref_notify_sound"
53+
android:layout_toLeftOf="@+id/butn_browse_sound"
54+
android:inputType="text"
55+
android:singleLine="true" />
56+
57+
58+
<Button
59+
android:id="@+id/butn_browse_sound"
60+
android:layout_width="wrap_content"
61+
android:layout_height="wrap_content"
62+
android:layout_alignParentRight="true"
63+
android:layout_below="@+id/label_pref_notify_sound"
64+
android:text="@string/button_browse"
65+
/>
66+
67+
68+
69+
<TextView
70+
android:id="@+id/label_pref_update_freq"
71+
android:layout_width="wrap_content"
72+
android:layout_height="wrap_content"
73+
android:layout_below="@+id/notify_sound"
74+
android:text="@string/pref_update_freq" />
75+
76+
<EditText
77+
android:id="@+id/update_freq"
78+
android:layout_width="60dp"
79+
android:layout_height="wrap_content"
80+
android:layout_toRightOf="@+id/label_pref_update_freq"
81+
android:layout_below="@+id/notify_sound"
82+
android:inputType="number"
83+
android:singleLine="true" />
84+
85+
86+
87+
<TextView
88+
android:id="@+id/label_update_url"
89+
android:layout_width="fill_parent"
90+
android:layout_height="wrap_content"
91+
android:layout_below="@+id/update_freq"
92+
android:text="@string/pref_update_url" />
93+
94+
<EditText
95+
android:id="@+id/update_url"
96+
android:layout_width="fill_parent"
97+
android:layout_height="wrap_content"
98+
android:layout_below="@+id/label_update_url"
99+
android:inputType="textUri"
100+
android:singleLine="true" />
101+
102+
103+
104+
<Button
105+
android:id="@+id/start"
106+
android:layout_width="wrap_content"
107+
android:layout_height="wrap_content"
108+
android:layout_alignParentLeft="true"
109+
android:layout_alignParentBottom="true"
110+
android:text="@string/button_start_service" />
111+
112+
<Button
113+
android:id="@+id/stop"
114+
android:layout_width="wrap_content"
115+
android:layout_height="wrap_content"
116+
android:layout_toRightOf="@+id/start"
117+
android:layout_alignParentBottom="true"
118+
android:text="@string/button_stop_service" />
119+
120+
<Button
121+
android:id="@+id/reset"
122+
android:layout_width="wrap_content"
123+
android:layout_height="wrap_content"
124+
android:layout_alignParentRight="true"
125+
android:layout_alignParentBottom="true"
126+
android:text="@string/pref_reset" />
127+
128+
<Button
129+
android:id="@+id/apply"
130+
android:layout_width="wrap_content"
131+
android:layout_height="wrap_content"
132+
android:layout_toLeftOf="@+id/reset"
133+
android:layout_alignParentBottom="true"
134+
android:text="@string/pref_apply" />
135+
136+
</RelativeLayout>

res/values-nl/strings.xml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
4+
<string name="app_name">Techinc</string>
5+
6+
<string name="notify_open">De ruimte is geopend</string>
7+
<string name="notify_closed">De ruimte is momenteel gesloten</string>
8+
9+
<string name="pref_update_freq">Update Frequency (seconden)</string>
10+
<string name="pref_update_url">Update URL</string>
11+
12+
<string name="pref_notify_vibrate">Trillen wanneer het open is</string>
13+
<string name="pref_reset">Reset</string>
14+
15+
<string name="pref_open_url">Ga naar URL</string>
16+
<string name="pref_apply">Toepassen</string>
17+
<string name="pref_notify_sound">Houd geluid</string>
18+
<string name="pref_boot_start">Begin bij boot tijd</string>
19+
<string name="button_start_service">Starten</string>
20+
<string name="button_stop_service">Stop</string>
21+
<string name="button_browse">...</string>
22+
<string name="confirm_reset">Weet je zeker dat je echter ook weer Zet alle instellingen op standaard?</string>
23+
<string name="confirm_yes">Ja zeker, blazen ze weg.</string>
24+
<string name="confirm_no">Shit nee!!</string>
25+
26+
27+
28+
29+
30+
31+
</resources>

res/values/strings.xml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
4+
<string name="app_name">Techinc</string>
5+
6+
<string name="notify_open">The space is currently open</string>
7+
<string name="notify_closed">The space is now closed</string>
8+
9+
<string name="pref_update_freq">Update Frequency (Seconds)</string>
10+
<string name="pref_update_url">Update URL</string>
11+
<string name="pref_notify_vibrate">Vibrate when open</string>
12+
<string name="pref_reset">Reset</string>
13+
14+
<string name="pref_open_url">Browse to URL</string>
15+
<string name="pref_apply">Apply</string><string name="pref_notify_sound">Notify sound</string>
16+
<string name="pref_boot_start">Start at boot time</string><string name="button_start_service">Start</string>
17+
<string name="button_stop_service">Stop</string>
18+
<string name="button_browse">...</string>
19+
<string name="confirm_reset">Are you sure you wish to reset ALL the settings back to default?</string>
20+
<string name="confirm_yes">Yes sure, blow them away.</string>
21+
<string name="confirm_no">Shit no!!</string>
22+
23+
24+
25+
26+
27+
28+
</resources>

0 commit comments

Comments
 (0)