Skip to content

Commit

Permalink
Tutorial 49
Browse files Browse the repository at this point in the history
  • Loading branch information
shantanu authored and shantanu committed Feb 29, 2012
1 parent 5bb6360 commit 730385c
Show file tree
Hide file tree
Showing 19 changed files with 802 additions and 790 deletions.
16 changes: 8 additions & 8 deletions .classpath
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>
66 changes: 33 additions & 33 deletions .project
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>The New Boston</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.ApkBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>The New Boston</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.ApkBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
10 changes: 5 additions & 5 deletions .settings/org.eclipse.jdt.core.prefs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#Wed Feb 15 14:52:16 BDT 2012
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
org.eclipse.jdt.core.compiler.compliance=1.5
org.eclipse.jdt.core.compiler.source=1.5
#Wed Feb 15 14:52:16 BDT 2012
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
org.eclipse.jdt.core.compiler.compliance=1.5
org.eclipse.jdt.core.compiler.source=1.5
138 changes: 69 additions & 69 deletions AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,71 +1,71 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="net.sourceforge.users.shafiul"
android:versionCode="1"
android:versionName="1.0" >

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="net.sourceforge.users.shafiul"
android:versionCode="1"
android:versionName="1.0" >

<uses-sdk android:minSdkVersion="8" />
<uses-permission android:name="android.permission.SET_WALLPAPER"/>

<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<activity
android:name=".Splash"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>

<activity
android:name=".startPoint"
android:label="@string/app_name" >
<intent-filter>
<action android:name="net.sourceforge.users.shafiul.STARTPOINT" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>

<activity
android:name=".Menu"
android:label="@string/app_name" >
<intent-filter>
<action android:name="net.sourceforge.users.shafiul.MENU" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>


<activity
android:name=".TextPlay"
android:label="@string/app_name" >
</activity>

<activity
android:name=".Email"
android:label="@string/app_name" >
</activity>

<activity
android:name=".Camera"
android:label="Camera application"
android:screenOrientation="portrait"
>
</activity>

<activity
android:name=".Data"
android:label="@string/app_name" >
</activity>


<activity
android:name=".OpenedClass"
android:label="@string/app_name" >
</activity>

</application>

<uses-permission android:name="android.permission.SET_WALLPAPER"/>

<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<activity
android:name=".Splash"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>

<activity
android:name=".startPoint"
android:label="Hello, World!" >
<intent-filter>
<action android:name="net.sourceforge.users.shafiul.STARTPOINT" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>

<activity
android:name=".Menu"
android:label="@string/app_name" >
<intent-filter>
<action android:name="net.sourceforge.users.shafiul.MENU" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>


<activity
android:name=".TextPlay"
android:label="@string/app_name" >
</activity>

<activity
android:name=".Email"
android:label="@string/app_name" >
</activity>

<activity
android:name=".Camera"
android:label="Camera application"
android:screenOrientation="portrait"
>
</activity>

<activity
android:name=".Data"
android:label="@string/app_name" >
</activity>


<activity
android:name=".OpenedClass"
android:label="@string/app_name" >
</activity>

</application>

</manifest>
24 changes: 12 additions & 12 deletions README.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
Hi all,

I'm just learning android from the awesome tutorials made by Travis (available for FREE at http://thenewboston.org/list.php?cat=6) and decided to code them in hand. Just pushing them to this repo if anyone needs them.

One interesting point, I'll make a commit after every tutorial! So you can browse the snapsot of each tutorial by selecting a download from https://github.com/shafiul/theNewBoston_android_tutorial/tags

Cool, huh? (The initial commit begins with Tutorial 10, though).

You can also browse-through the codes of different tutorials online.

Regards,
Shafiul
Hi all,
I'm just learning android from the awesome tutorials made by Travis (available for FREE at http://thenewboston.org/list.php?cat=6) and decided to code them in hand. Just pushing them to this repo if anyone needs them.
One interesting point, I'll make a commit after every tutorial! So you can browse the snapsot of each tutorial by selecting a download from https://github.com/shafiul/theNewBoston_android_tutorial/tags
Cool, huh? (The initial commit begins with Tutorial 10, though).
You can also browse-through the codes of different tutorials online.
Regards,
Shafiul
http://shafiul.users.sf.net
94 changes: 47 additions & 47 deletions res/layout/email.xml
Original file line number Diff line number Diff line change
@@ -1,48 +1,48 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:weightSum="100" android:layout_height="match_parent">
<ScrollView android:layout_weight="30" android:layout_width="fill_parent"
android:layout_height="fill_parent">
<LinearLayout android:orientation="vertical"
android:layout_width="match_parent" android:layout_height="match_parent">
<TextView android:text="Email address(es):"
android:layout_width="wrap_content" android:layout_height="wrap_content"></TextView>
<EditText android:layout_height="wrap_content"
android:layout_width="match_parent" android:id="@+id/etEmails">
</EditText>
<TextView android:text="Hateful Intro:"
android:layout_width="wrap_content" android:layout_height="wrap_content"></TextView>
<EditText android:layout_height="wrap_content"
android:layout_width="match_parent" android:id="@+id/etIntro"></EditText>
<TextView android:text="Person's name" android:layout_width="wrap_content"
android:layout_height="wrap_content"></TextView>
<EditText android:layout_height="wrap_content"
android:layout_width="match_parent" android:id="@+id/etName"></EditText>
<TextView android:text="Stupid Things that this Person does"
android:layout_width="wrap_content" android:layout_height="wrap_content"></TextView>
<EditText android:layout_height="wrap_content"
android:layout_width="match_parent" android:id="@+id/etThings"></EditText>
<TextView android:text="What you want to do to this person:"
android:layout_width="wrap_content" android:layout_height="wrap_content"></TextView>
<EditText android:layout_height="wrap_content"
android:layout_width="match_parent" android:id="@+id/etAction"></EditText>
<TextView android:text="Hateful Outro" android:layout_width="wrap_content"
android:layout_height="wrap_content"></TextView>
<EditText android:layout_height="wrap_content"
android:layout_width="match_parent" android:id="@+id/etOutro"></EditText>
</LinearLayout>
</ScrollView>
<LinearLayout android:orientation="vertical"
android:layout_width="match_parent" android:layout_weight="40"
android:layout_height="fill_parent">
<Button android:text="Send Email" android:id="@+id/bSentEmail"
android:layout_width="fill_parent" android:layout_height="fill_parent"></Button>
</LinearLayout>
<LinearLayout android:orientation="vertical"
android:layout_width="match_parent" android:layout_weight="30"
android:layout_height="fill_parent">
<AnalogClock android:id="@+id/analogClock1"
android:layout_width="fill_parent" android:layout_height="fill_parent"></AnalogClock>
</LinearLayout>
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:weightSum="100" android:layout_height="match_parent">
<ScrollView android:layout_weight="30" android:layout_width="fill_parent"
android:layout_height="fill_parent">
<LinearLayout android:orientation="vertical"
android:layout_width="match_parent" android:layout_height="match_parent">
<TextView android:text="Email address(es):"
android:layout_width="wrap_content" android:layout_height="wrap_content"></TextView>
<EditText android:layout_height="wrap_content"
android:layout_width="match_parent" android:id="@+id/etEmails">
</EditText>
<TextView android:text="Hateful Intro:"
android:layout_width="wrap_content" android:layout_height="wrap_content"></TextView>
<EditText android:layout_height="wrap_content"
android:layout_width="match_parent" android:id="@+id/etIntro"></EditText>
<TextView android:text="Person's name" android:layout_width="wrap_content"
android:layout_height="wrap_content"></TextView>
<EditText android:layout_height="wrap_content"
android:layout_width="match_parent" android:id="@+id/etName"></EditText>
<TextView android:text="Stupid Things that this Person does"
android:layout_width="wrap_content" android:layout_height="wrap_content"></TextView>
<EditText android:layout_height="wrap_content"
android:layout_width="match_parent" android:id="@+id/etThings"></EditText>
<TextView android:text="What you want to do to this person:"
android:layout_width="wrap_content" android:layout_height="wrap_content"></TextView>
<EditText android:layout_height="wrap_content"
android:layout_width="match_parent" android:id="@+id/etAction"></EditText>
<TextView android:text="Hateful Outro" android:layout_width="wrap_content"
android:layout_height="wrap_content"></TextView>
<EditText android:layout_height="wrap_content"
android:layout_width="match_parent" android:id="@+id/etOutro"></EditText>
</LinearLayout>
</ScrollView>
<LinearLayout android:orientation="vertical"
android:layout_width="match_parent" android:layout_weight="40"
android:layout_height="fill_parent">
<Button android:text="Send Email" android:id="@+id/bSentEmail"
android:layout_width="fill_parent" android:layout_height="fill_parent"></Button>
</LinearLayout>
<LinearLayout android:orientation="vertical"
android:layout_width="match_parent" android:layout_weight="30"
android:layout_height="fill_parent">
<AnalogClock android:id="@+id/analogClock1"
android:layout_width="fill_parent" android:layout_height="fill_parent"></AnalogClock>
</LinearLayout>
</LinearLayout>
Loading

0 comments on commit 730385c

Please sign in to comment.