Skip to content

Commit f41cc5a

Browse files
author
Carles Sentis
committed
Move to Github
1 parent bb01287 commit f41cc5a

Some content is hidden

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

43 files changed

+1437
-0
lines changed

.classpath

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="src" path="src"/>
4+
<classpathentry kind="src" path="gen"/>
5+
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
6+
<classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
7+
<classpathentry kind="output" path="bin/classes"/>
8+
</classpath>

.project

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>Talarkam</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
<buildCommand>
14+
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
15+
<arguments>
16+
</arguments>
17+
</buildCommand>
18+
<buildCommand>
19+
<name>org.eclipse.jdt.core.javabuilder</name>
20+
<arguments>
21+
</arguments>
22+
</buildCommand>
23+
<buildCommand>
24+
<name>com.android.ide.eclipse.adt.ApkBuilder</name>
25+
<arguments>
26+
</arguments>
27+
</buildCommand>
28+
</buildSpec>
29+
<natures>
30+
<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
31+
<nature>org.eclipse.jdt.core.javanature</nature>
32+
</natures>
33+
</projectDescription>

AndroidManifest.xml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
package="com.codeskraps.talarkam"
4+
android:versionCode="1"
5+
android:versionName="1.0" >
6+
7+
<uses-sdk
8+
android:minSdkVersion="7"
9+
android:targetSdkVersion="10" />
10+
11+
<application
12+
android:icon="@drawable/ic_launcher"
13+
android:label="@string/app_name"
14+
android:theme="@android:style/Theme.Black.NoTitleBar" >
15+
<activity
16+
android:name=".TalarkamActivity"
17+
android:label="@string/app_name" >
18+
<intent-filter>
19+
<action android:name="android.intent.action.MAIN" />
20+
21+
<category android:name="android.intent.category.LAUNCHER" />
22+
</intent-filter>
23+
</activity>
24+
<activity
25+
android:name=".AlarmActivity"
26+
android:launchMode="singleTop" />
27+
<activity android:name=".PrefsActivity" />
28+
<activity android:name=".DonationActivity" />
29+
30+
<receiver android:name=".AlarmReceiver" >
31+
<intent-filter android:priority="100" />
32+
</receiver>
33+
</application>
34+
35+
</manifest>

build.xml

+83
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project name="TalarkamActivity" default="help">
3+
4+
<!-- The local.properties file is created and updated by the 'android' tool.
5+
It contains the path to the SDK. It should *NOT* be checked into
6+
Version Control Systems. -->
7+
<property file="local.properties" />
8+
9+
<!-- The ant.properties file can be created by you. It is only edited by the
10+
'android' tool to add properties to it.
11+
This is the place to change some Ant specific build properties.
12+
Here are some properties you may want to change/update:
13+
14+
source.dir
15+
The name of the source directory. Default is 'src'.
16+
out.dir
17+
The name of the output directory. Default is 'bin'.
18+
19+
For other overridable properties, look at the beginning of the rules
20+
files in the SDK, at tools/ant/build.xml
21+
22+
Properties related to the SDK location or the project target should
23+
be updated using the 'android' tool with the 'update' action.
24+
25+
This file is an integral part of the build system for your
26+
application and should be checked into Version Control Systems.
27+
28+
-->
29+
<property file="ant.properties" />
30+
31+
<!-- The project.properties file is created and updated by the 'android'
32+
tool, as well as ADT.
33+
34+
This contains project specific properties such as project target, and library
35+
dependencies. Lower level build properties are stored in ant.properties
36+
(or in .classpath for Eclipse projects).
37+
38+
This file is an integral part of the build system for your
39+
application and should be checked into Version Control Systems. -->
40+
<loadproperties srcFile="project.properties" />
41+
42+
<!-- quick check on sdk.dir -->
43+
<fail
44+
message="sdk.dir is missing. Make sure to generate local.properties using 'android update project' or to inject it through an env var"
45+
unless="sdk.dir"
46+
/>
47+
48+
<!--
49+
Import per project custom build rules if present at the root of the project.
50+
This is the place to put custom intermediary targets such as:
51+
-pre-build
52+
-pre-compile
53+
-post-compile (This is typically used for code obfuscation.
54+
Compiled code location: ${out.classes.absolute.dir}
55+
If this is not done in place, override ${out.dex.input.absolute.dir})
56+
-post-package
57+
-post-build
58+
-pre-clean
59+
-->
60+
<import file="custom_rules.xml" optional="true" />
61+
62+
<!-- Import the actual build file.
63+
64+
To customize existing targets, there are two options:
65+
- Customize only one target:
66+
- copy/paste the target into this file, *before* the
67+
<import> task.
68+
- customize it to your needs.
69+
- Customize the whole content of build.xml
70+
- copy/paste the content of the rules files (minus the top node)
71+
into this file, replacing the <import> task.
72+
- customize to your needs.
73+
74+
***********************
75+
****** IMPORTANT ******
76+
***********************
77+
In all cases you must update the value of version-tag below to read 'custom' instead of an integer,
78+
in order to avoid having your file be overridden by tools such as "android update project"
79+
-->
80+
<!-- version-tag: 1 -->
81+
<import file="${sdk.dir}/tools/ant/build.xml" />
82+
83+
</project>

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-7

res/drawable-hdpi/barrel_beer.png

7.18 KB
Loading

res/drawable-hdpi/glass_beer.png

6.27 KB
Loading

res/drawable-hdpi/ic_launcher.png

4.27 KB
Loading

res/drawable-hdpi/mug_beer.png

7.4 KB
Loading

res/drawable-hdpi/mug_bw.png

5.35 KB
Loading

res/drawable-hdpi/pint_beer.png

6.5 KB
Loading

res/drawable-ldpi/barrel_beer.png

2.42 KB
Loading

res/drawable-ldpi/glass_beer.png

2.31 KB
Loading

res/drawable-ldpi/ic_launcher.png

1.64 KB
Loading

res/drawable-ldpi/mug_beer.png

2.61 KB
Loading

res/drawable-ldpi/mug_bw.png

2.02 KB
Loading

res/drawable-ldpi/pint_beer.png

2.32 KB
Loading

res/drawable-mdpi/barrel_beer.png

3.84 KB
Loading

res/drawable-mdpi/glass_beer.png

3.41 KB
Loading

res/drawable-mdpi/ic_launcher.png

2.55 KB
Loading

res/drawable-mdpi/mug_beer.png

3.92 KB
Loading

res/drawable-mdpi/mug_bw.png

3 KB
Loading

res/drawable-mdpi/pint_beer.png

3.49 KB
Loading

res/drawable-xhdpi/barrel_beer.png

11 KB
Loading

res/drawable-xhdpi/glass_beer.png

9.63 KB
Loading

res/drawable-xhdpi/ic_launcher.png

7.27 KB
Loading

res/drawable-xhdpi/mug_beer.png

11.4 KB
Loading

res/drawable-xhdpi/mug_bw.png

7.79 KB
Loading

res/drawable-xhdpi/pint_beer.png

9.87 KB
Loading

res/layout/alarm_controller.xml

+116
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3+
android:layout_width="fill_parent"
4+
android:layout_height="fill_parent"
5+
android:orientation="vertical" >
6+
7+
<LinearLayout
8+
android:layout_width="fill_parent"
9+
android:layout_height="wrap_content"
10+
android:background="#222222"
11+
android:orientation="horizontal" >
12+
13+
<ImageView
14+
android:layout_width="wrap_content"
15+
android:layout_height="wrap_content"
16+
android:layout_margin="5dp"
17+
android:background="@drawable/ic_launcher"
18+
android:contentDescription="@string/imageDescp" />
19+
20+
<TextView
21+
android:layout_width="wrap_content"
22+
android:layout_height="wrap_content"
23+
android:layout_marginTop="15dp"
24+
android:text="@string/app_name"
25+
android:textColor="#666666"
26+
android:textSize="25dp"
27+
android:typeface="normal" />
28+
</LinearLayout>
29+
30+
<LinearLayout
31+
android:layout_width="fill_parent"
32+
android:layout_height="1dp"
33+
android:background="#666666"
34+
android:orientation="horizontal" />
35+
36+
<ScrollView
37+
android:layout_width="fill_parent"
38+
android:layout_height="0dp"
39+
android:layout_weight="0.9" >
40+
41+
<LinearLayout
42+
android:layout_width="fill_parent"
43+
android:layout_height="wrap_content"
44+
android:gravity="center_horizontal"
45+
android:orientation="vertical" >
46+
47+
<TimePicker
48+
android:id="@+id/tpAlarm"
49+
android:layout_width="wrap_content"
50+
android:layout_height="wrap_content"
51+
android:layout_margin="15dip" >
52+
53+
<requestFocus />
54+
</TimePicker>
55+
56+
<LinearLayout
57+
android:layout_width="fill_parent"
58+
android:layout_height="wrap_content"
59+
android:orientation="horizontal" >
60+
61+
<CheckBox
62+
android:id="@+id/chkSnooze"
63+
android:layout_width="wrap_content"
64+
android:layout_height="wrap_content"
65+
android:layout_marginLeft="10dip"
66+
android:layout_marginTop="10dip"
67+
android:text="@string/ac_chksnooze"
68+
android:textSize="20dip" />
69+
70+
<EditText
71+
android:id="@+id/etxtSnoozeMin"
72+
android:layout_width="50dip"
73+
android:layout_height="wrap_content"
74+
android:layout_margin="10dip"
75+
android:ems="10"
76+
android:inputType="number" />
77+
78+
<TextView
79+
android:layout_width="wrap_content"
80+
android:layout_height="wrap_content"
81+
android:layout_marginTop="10dip"
82+
android:text="@string/txt_minutes"
83+
android:textSize="20dip" />
84+
</LinearLayout>
85+
86+
<Button
87+
android:id="@+id/btnSetTone"
88+
android:layout_width="fill_parent"
89+
android:layout_height="wrap_content"
90+
android:layout_margin="10dip"
91+
android:text="@string/btn_SetAlarmTone" />
92+
</LinearLayout>
93+
</ScrollView>
94+
95+
<LinearLayout
96+
android:layout_width="fill_parent"
97+
android:layout_height="1dp"
98+
android:layout_marginTop="10dp"
99+
android:background="#666666"
100+
android:orientation="horizontal" />
101+
102+
<LinearLayout
103+
android:layout_width="fill_parent"
104+
android:layout_height="wrap_content"
105+
android:orientation="vertical" >
106+
107+
<Button
108+
android:id="@+id/btnSetAlarm"
109+
android:layout_width="fill_parent"
110+
android:layout_height="0dp"
111+
android:layout_margin="10dip"
112+
android:layout_weight="0.1"
113+
android:text="@string/btn_setAlarm" />
114+
</LinearLayout>
115+
116+
</LinearLayout>

res/layout/alarm_off.xml

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3+
android:layout_width="fill_parent"
4+
android:layout_height="fill_parent"
5+
android:orientation="vertical" >
6+
7+
<LinearLayout
8+
android:layout_width="fill_parent"
9+
android:layout_height="wrap_content"
10+
android:background="#222222"
11+
android:orientation="horizontal" >
12+
13+
<ImageView
14+
android:layout_width="wrap_content"
15+
android:layout_height="wrap_content"
16+
android:layout_margin="5dp"
17+
android:background="@drawable/ic_launcher"
18+
android:contentDescription="@string/imageDescp" />
19+
20+
<TextView
21+
android:layout_width="wrap_content"
22+
android:layout_height="wrap_content"
23+
android:layout_marginTop="15dp"
24+
android:text="@string/app_name"
25+
android:textColor="#666666"
26+
android:textSize="25dp"
27+
android:typeface="normal" />
28+
</LinearLayout>
29+
30+
<LinearLayout
31+
android:layout_width="fill_parent"
32+
android:layout_height="1dp"
33+
android:background="#666666"
34+
android:orientation="horizontal" />
35+
36+
<Button
37+
android:id="@+id/txtTime"
38+
android:layout_width="fill_parent"
39+
android:layout_height="0dip"
40+
android:layout_margin="15dip"
41+
android:layout_weight="0.8"
42+
android:textSize="100sp" />
43+
44+
<Button
45+
android:id="@+id/btnStop"
46+
android:layout_width="fill_parent"
47+
android:layout_height="0dip"
48+
android:layout_marginLeft="15dip"
49+
android:layout_marginRight="15dip"
50+
android:layout_marginBottom="15dip"
51+
android:layout_weight="0.1"
52+
android:text="@string/ao_btnStop" />
53+
54+
</LinearLayout>

0 commit comments

Comments
 (0)