Skip to content

Commit 27a8e84

Browse files
committed
new Android test examples
1 parent 86aa515 commit 27a8e84

107 files changed

Lines changed: 2140 additions & 19 deletions

File tree

Some content is hidden

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

com.example.android.rssfeed/AndroidManifest.xml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,29 +7,30 @@
77
android:minSdkVersion="16"
88
android:targetSdkVersion="19" />
99
j
10-
<uses-permission android:name="android.permission.INTERNET"/>
11-
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
10+
<uses-permission android:name="android.permission.INTERNET" />
11+
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
1212

1313
<application
14+
android:name="RssApplication"
15+
android:allowBackup="false"
1416
android:icon="@drawable/ic_launcher"
1517
android:label="@string/app_name"
16-
android:name="MyApplication"
1718
android:theme="@style/AppTheme" >
1819
<activity
1920
android:name="RssfeedActivity"
20-
android:label="@string/title_activity_main"
21-
>
21+
android:label="@string/title_activity_main" >
2222
<intent-filter>
2323
<action android:name="android.intent.action.MAIN" />
2424

2525
<category android:name="android.intent.category.LAUNCHER" />
2626
</intent-filter>
27-
</activity>
27+
</activity>
2828
<activity
2929
android:name=".DetailActivity"
3030
android:label="Details" >
3131
</activity>
32-
<activity android:name="MyPreferenceActivity"></activity>
32+
<activity android:name="MyPreferenceActivity" >
33+
</activity>
3334
</application>
3435

3536
</manifest>

com.example.android.rssfeed/src/com/example/android/rssfeed/MyApplication.java renamed to com.example.android.rssfeed/src/com/example/android/rssfeed/RssApplication.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77

88
import com.example.android.rssfeedlibrary.RssItem;
99

10-
public class MyApplication extends Application {
10+
public class RssApplication extends Application {
1111
public static List<RssItem> list = new ArrayList<RssItem>();
1212
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
eclipse.preferences.version=1
2+
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
3+
org.eclipse.jdt.core.compiler.compliance=1.6
4+
org.eclipse.jdt.core.compiler.source=1.6
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
package="com.vogella.android.intent.simple.test"
4+
android:versionCode="1"
5+
android:versionName="1.0" >
6+
7+
<uses-sdk android:minSdkVersion="19" />
8+
9+
<instrumentation
10+
android:name="android.test.InstrumentationTestRunner"
11+
android:targetPackage="com.vogella.android.intent.simple" />
12+
13+
<application
14+
android:icon="@drawable/ic_launcher"
15+
android:label="@string/app_name" >
16+
<uses-library android:name="android.test.runner" />
17+
</application>
18+
19+
</manifest>
Lines changed: 20 additions & 0 deletions
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+
#}
Lines changed: 14 additions & 0 deletions
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-19
9.18 KB
Loading
2.67 KB
Loading
5.11 KB
Loading
14 KB
Loading

0 commit comments

Comments
 (0)