Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Apress
committed
Oct 16, 2016
0 parents
commit 7a43802
Showing
1,013 changed files
with
113,022 additions
and
0 deletions.
There are no files selected for viewing
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
Freeware License, some rights reserved | ||
|
||
Copyright (c) 2011 Pieter Greyling and Lucas Jordan | ||
|
||
Permission is hereby granted, free of charge, to anyone obtaining a copy | ||
of this software and associated documentation files (the "Software"), | ||
to work with the Software within the limits of freeware distribution and fair use. | ||
This includes the rights to use, copy, and modify the Software for personal use. | ||
Users are also allowed and encouraged to submit corrections and modifications | ||
to the Software for the benefit of other users. | ||
|
||
It is not allowed to reuse, modify, or redistribute the Software for | ||
commercial use in any way, or for a user�s educational materials such as books | ||
or blog articles without prior permission from the copyright holder. | ||
|
||
The above copyright notice and this permission notice need to be included | ||
in all copies or substantial portions of the software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS OR APRESS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
|
||
|
Binary file not shown.
15 changes: 15 additions & 0 deletions
15
...ceCode/Projects/02_DevelopmentToolsInPractice/MyAndroidSdkAppProject2/AndroidManifest.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="com.example.myandroid" | ||
android:versionCode="1" | ||
android:versionName="1.0"> | ||
<application android:label="@string/app_name" android:icon="@drawable/icon"> | ||
<activity android:name="MyAndroidSdkAppActivity2" | ||
android:label="@string/app_name"> | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN" /> | ||
<category android:name="android.intent.category.LAUNCHER" /> | ||
</intent-filter> | ||
</activity> | ||
</application> | ||
</manifest> |
Binary file added
BIN
+19.1 KB
...velopmentToolsInPractice/MyAndroidSdkAppProject2/bin/MyAndroidSdkApp2-debug-unaligned.apk
Binary file not shown.
Binary file added
BIN
+19.1 KB
...ects/02_DevelopmentToolsInPractice/MyAndroidSdkAppProject2/bin/MyAndroidSdkApp2-debug.apk
Binary file not shown.
Binary file added
BIN
+11.3 KB
...e/Projects/02_DevelopmentToolsInPractice/MyAndroidSdkAppProject2/bin/MyAndroidSdkApp2.ap_
Binary file not shown.
Binary file added
BIN
+13.1 KB
...SourceCode/Projects/02_DevelopmentToolsInPractice/MyAndroidSdkAppProject2/bin/classes.dex
Binary file not shown.
Binary file added
BIN
+1.22 KB
...yAndroidSdkAppProject2/bin/classes/com/example/myandroid/MyAndroidSdkAppActivity2$1.class
Binary file not shown.
Binary file added
BIN
+1.86 KB
...yAndroidSdkAppProject2/bin/classes/com/example/myandroid/MyAndroidSdkAppActivity2$2.class
Binary file not shown.
Binary file added
BIN
+1.76 KB
...yAndroidSdkAppProject2/bin/classes/com/example/myandroid/MyAndroidSdkAppActivity2$3.class
Binary file not shown.
Binary file added
BIN
+1.22 KB
...yAndroidSdkAppProject2/bin/classes/com/example/myandroid/MyAndroidSdkAppActivity2$4.class
Binary file not shown.
Binary file added
BIN
+2.27 KB
...yAndroidSdkAppProject2/bin/classes/com/example/myandroid/MyAndroidSdkAppActivity2$5.class
Binary file not shown.
Binary file added
BIN
+922 Bytes
...Project2/bin/classes/com/example/myandroid/MyAndroidSdkAppActivity2$MyButtonTagData.class
Binary file not shown.
Binary file added
BIN
+10.2 KB
.../MyAndroidSdkAppProject2/bin/classes/com/example/myandroid/MyAndroidSdkAppActivity2.class
Binary file not shown.
Binary file added
BIN
+349 Bytes
...entToolsInPractice/MyAndroidSdkAppProject2/bin/classes/com/example/myandroid/R$attr.class
Binary file not shown.
Binary file added
BIN
+409 Bytes
...oolsInPractice/MyAndroidSdkAppProject2/bin/classes/com/example/myandroid/R$drawable.class
Binary file not shown.
Binary file added
BIN
+557 Bytes
...pmentToolsInPractice/MyAndroidSdkAppProject2/bin/classes/com/example/myandroid/R$id.class
Binary file not shown.
Binary file added
BIN
+403 Bytes
...tToolsInPractice/MyAndroidSdkAppProject2/bin/classes/com/example/myandroid/R$layout.class
Binary file not shown.
Binary file added
BIN
+554 Bytes
...tToolsInPractice/MyAndroidSdkAppProject2/bin/classes/com/example/myandroid/R$string.class
Binary file not shown.
Binary file added
BIN
+556 Bytes
...elopmentToolsInPractice/MyAndroidSdkAppProject2/bin/classes/com/example/myandroid/R.class
Binary file not shown.
17 changes: 17 additions & 0 deletions
17
...ourceCode/Projects/02_DevelopmentToolsInPractice/MyAndroidSdkAppProject2/build.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# This file is used to override default values used by the Ant build system. | ||
# | ||
# This file must be checked in Version Control Systems, as it is | ||
# integral to the build system of your project. | ||
|
||
# This file is only used by the Ant script. | ||
|
||
# You can use this to override default values such as | ||
# 'source.dir' for the location of your java source folder and | ||
# 'out.dir' for the location of your output folder. | ||
|
||
# You can also use it define how the release builds are signed by declaring | ||
# the following properties: | ||
# 'key.store' for the location of your keystore and | ||
# 'key.alias' for the name of the key to use. | ||
# The password will be asked during the build when you use the 'release' target. | ||
|
84 changes: 84 additions & 0 deletions
84
...ojectsSourceCode/Projects/02_DevelopmentToolsInPractice/MyAndroidSdkAppProject2/build.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project name="MyAndroidSdkApp2" default="help"> | ||
|
||
<!-- The local.properties file is created and updated by the 'android' | ||
tool. | ||
It contains the path to the SDK. It should *NOT* be checked into | ||
Version Control Systems. --> | ||
<property file="local.properties" /> | ||
|
||
<!-- The build.properties file can be created by you and is never touched | ||
by the 'android' tool. This is the place to change some of the | ||
default property values used by the Ant rules. | ||
Here are some properties you may want to change/update: | ||
source.dir | ||
The name of the source directory. Default is 'src'. | ||
out.dir | ||
The name of the output directory. Default is 'bin'. | ||
Properties related to the SDK location or the project target should | ||
be updated using the 'android' tool with the 'update' action. | ||
This file is an integral part of the build system for your | ||
application and should be checked into Version Control Systems. | ||
--> | ||
<property file="build.properties" /> | ||
|
||
<!-- The default.properties file is created and updated by the 'android' | ||
tool, as well as ADT. | ||
This file is an integral part of the build system for your | ||
application and should be checked into Version Control Systems. --> | ||
<property file="default.properties" /> | ||
|
||
<!-- Custom Android task to deal with the project target, and import the | ||
proper rules. | ||
This requires ant 1.6.0 or above. --> | ||
<path id="android.antlibs"> | ||
<pathelement path="${sdk.dir}/tools/lib/anttasks.jar" /> | ||
<pathelement path="${sdk.dir}/tools/lib/sdklib.jar" /> | ||
<pathelement path="${sdk.dir}/tools/lib/androidprefs.jar" /> | ||
</path> | ||
|
||
<taskdef name="setup" | ||
classname="com.android.ant.SetupTask" | ||
classpathref="android.antlibs" /> | ||
|
||
<!-- extension targets. Uncomment the ones where you want to do custom work | ||
in between standard targets --> | ||
<!-- | ||
<target name="-pre-build"> | ||
</target> | ||
<target name="-pre-compile"> | ||
</target> | ||
[This is typically used for code obfuscation. | ||
Compiled code location: ${out.classes.absolute.dir} | ||
If this is not done in place, override ${out.dex.input.absolute.dir}] | ||
<target name="-post-compile"> | ||
</target> | ||
--> | ||
|
||
|
||
<!-- Execute the Android Setup task that will setup some properties | ||
specific to the target, and import the build rules files. | ||
The rules file is imported from | ||
<SDK>/platforms/<target_platform>/ant/ant_rules_r#.xml | ||
To customize existing targets, there are two options: | ||
- Customize only one target: | ||
- copy/paste the target into this file, *before* the | ||
<setup> task. | ||
- customize it to your needs. | ||
- Customize the whole script. | ||
- copy/paste the content of the rules files (minus the top node) | ||
into this file, *after* the <setup> task | ||
- disable the import of the rules by changing the setup task | ||
below to <setup import="false" />. | ||
- customize to your needs. | ||
--> | ||
<setup /> | ||
|
||
</project> |
11 changes: 11 additions & 0 deletions
11
...rceCode/Projects/02_DevelopmentToolsInPractice/MyAndroidSdkAppProject2/default.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# This file is automatically generated by Android Tools. | ||
# Do not modify this file -- YOUR CHANGES WILL BE ERASED! | ||
# | ||
# This file must be checked in Version Control Systems. | ||
# | ||
# To customize properties used by the Ant build system use, | ||
# "build.properties", and override values to adapt the script to your | ||
# project structure. | ||
|
||
# Project target. | ||
target=android-9 |
33 changes: 33 additions & 0 deletions
33
...ts/02_DevelopmentToolsInPractice/MyAndroidSdkAppProject2/gen/com/example/myandroid/R.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* AUTO-GENERATED FILE. DO NOT MODIFY. | ||
* | ||
* This class was automatically generated by the | ||
* aapt tool from the resource data it found. It | ||
* should not be modified by hand. | ||
*/ | ||
|
||
package com.example.myandroid; | ||
|
||
public final class R { | ||
public static final class attr { | ||
} | ||
public static final class drawable { | ||
public static final int icon=0x7f020000; | ||
} | ||
public static final class id { | ||
public static final int cmd_make_button=0x7f050004; | ||
public static final int cmd_save_message=0x7f050002; | ||
public static final int cmd_silly_exit_button=0x7f050001; | ||
public static final int layout_main=0x7f050000; | ||
public static final int txt_message=0x7f050003; | ||
} | ||
public static final class layout { | ||
public static final int main=0x7f030000; | ||
} | ||
public static final class string { | ||
public static final int app_name=0x7f040000; | ||
public static final int default_message=0x7f040001; | ||
public static final int label_alerts=0x7f040003; | ||
public static final int label_notify=0x7f040004; | ||
public static final int label_toasts=0x7f040002; | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
...ourceCode/Projects/02_DevelopmentToolsInPractice/MyAndroidSdkAppProject2/local.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# This file is automatically generated by Android Tools. | ||
# Do not modify this file -- YOUR CHANGES WILL BE ERASED! | ||
# | ||
# This file must *NOT* be checked in Version Control Systems, | ||
# as it contains information specific to your local configuration. | ||
|
||
# location of the SDK. This is only used by Ant | ||
# For customization when using a Version Control System, please read the | ||
# header note. | ||
sdk.dir=C:\\_dev_\\android-sdk-windows |
34 changes: 34 additions & 0 deletions
34
...ctsSourceCode/Projects/02_DevelopmentToolsInPractice/MyAndroidSdkAppProject2/proguard.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
-optimizationpasses 5 | ||
-dontusemixedcaseclassnames | ||
-dontskipnonpubliclibraryclasses | ||
-dontpreverify | ||
-verbose | ||
-optimizations !code/simplification/arithmetic,!field/*,!class/merging/* | ||
|
||
-keep public class * extends android.app.Activity | ||
-keep public class * extends android.app.Application | ||
-keep public class * extends android.app.Service | ||
-keep public class * extends android.content.BroadcastReceiver | ||
-keep public class * extends android.content.ContentProvider | ||
-keep public class com.android.vending.licensing.ILicensingService | ||
|
||
-keepclasseswithmembernames class * { | ||
native <methods>; | ||
} | ||
|
||
-keepclasseswithmembernames class * { | ||
public <init>(android.content.Context, android.util.AttributeSet); | ||
} | ||
|
||
-keepclasseswithmembernames class * { | ||
public <init>(android.content.Context, android.util.AttributeSet, int); | ||
} | ||
|
||
-keepclassmembers enum * { | ||
public static **[] values(); | ||
public static ** valueOf(java.lang.String); | ||
} | ||
|
||
-keep class * implements android.os.Parcelable { | ||
public static final android.os.Parcelable$Creator *; | ||
} |
Binary file added
BIN
+4.05 KB
...2_DevelopmentToolsInPractice/MyAndroidSdkAppProject2/res/drawable-hdpi/icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.68 KB
...2_DevelopmentToolsInPractice/MyAndroidSdkAppProject2/res/drawable-ldpi/icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.51 KB
...2_DevelopmentToolsInPractice/MyAndroidSdkAppProject2/res/drawable-mdpi/icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 35 additions & 0 deletions
35
...ceCode/Projects/02_DevelopmentToolsInPractice/MyAndroidSdkAppProject2/res/layout/main.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:id="@+id/layout_main" | ||
android:orientation="vertical" | ||
android:layout_width="fill_parent" | ||
android:layout_height="fill_parent"> | ||
<TextView | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
android:text="Howdy Android World! Nice to see you!" | ||
/> | ||
<Button | ||
android:id="@+id/cmd_silly_exit_button" | ||
android:layout_width="96px" | ||
android:layout_height="wrap_content" | ||
android:text="Silly Exit Button" | ||
/> | ||
<Button | ||
android:id="@+id/cmd_save_message" | ||
android:layout_width="96px" | ||
android:layout_height="wrap_content" | ||
android:text="Save Message" | ||
/> | ||
<EditText | ||
android:id="@+id/txt_message" | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" > | ||
</EditText> | ||
<Button | ||
android:id="@+id/cmd_make_button" | ||
android:layout_width="192px" | ||
android:layout_height="wrap_content" | ||
android:text="Button Maker Button" | ||
/> | ||
</LinearLayout> |
8 changes: 8 additions & 0 deletions
8
...ode/Projects/02_DevelopmentToolsInPractice/MyAndroidSdkAppProject2/res/values/strings.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string name="app_name">MyAndroidSdkAppActivity2</string> | ||
<string name="default_message">Please enter a message and save it.</string> | ||
<string name="label_toasts">I make Toasts!</string> | ||
<string name="label_alerts">I make Alerts!</string> | ||
<string name="label_notify">I just Notify!</string> | ||
</resources> |
Oops, something went wrong.