Merge "Fixed wrong package names in samples hello-jni and two-libs"
This commit is contained in:
@@ -21,7 +21,7 @@
|
|||||||
* to return a new VM String. See the corresponding Java source
|
* to return a new VM String. See the corresponding Java source
|
||||||
* file located at:
|
* file located at:
|
||||||
*
|
*
|
||||||
* apps/samples/hello-jni/project/src/com/example/HelloJni/HelloJni.java
|
* apps/samples/hello-jni/project/src/com/example/hellojni/HelloJni.java
|
||||||
*/
|
*/
|
||||||
jstring
|
jstring
|
||||||
Java_com_example_hellojni_HelloJni_stringFromJNI( JNIEnv* env,
|
Java_com_example_hellojni_HelloJni_stringFromJNI( JNIEnv* env,
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ public class HelloJni extends Activity
|
|||||||
|
|
||||||
/* this is used to load the 'hello-jni' library on application
|
/* this is used to load the 'hello-jni' library on application
|
||||||
* startup. The library has already been unpacked into
|
* startup. The library has already been unpacked into
|
||||||
* /data/data/com.example.HelloJni/lib/libhello-jni.so at
|
* /data/data/com.example.hellojni/lib/libhello-jni.so at
|
||||||
* installation time by the package manager.
|
* installation time by the package manager.
|
||||||
*/
|
*/
|
||||||
static {
|
static {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<!-- package name must be unique so suffix with "tests" so package loader doesn't ignore us -->
|
<!-- package name must be unique so suffix with "tests" so package loader doesn't ignore us -->
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
package="com.example.HelloJni.tests"
|
package="com.example.hellojni.tests"
|
||||||
android:versionCode="1"
|
android:versionCode="1"
|
||||||
android:versionName="1.0">
|
android:versionName="1.0">
|
||||||
<!-- We add an application tag here just so that we can indicate that
|
<!-- We add an application tag here just so that we can indicate that
|
||||||
@@ -12,10 +12,10 @@
|
|||||||
</application>
|
</application>
|
||||||
<!--
|
<!--
|
||||||
This declares that this application uses the instrumentation test runner targeting
|
This declares that this application uses the instrumentation test runner targeting
|
||||||
the package of com.example.HelloJni. To run the tests use the command:
|
the package of com.example.hellojni. To run the tests use the command:
|
||||||
"adb shell am instrument -w com.example.HelloJni.tests/android.test.InstrumentationTestRunner"
|
"adb shell am instrument -w com.example.hellojni.tests/android.test.InstrumentationTestRunner"
|
||||||
-->
|
-->
|
||||||
<instrumentation android:name="android.test.InstrumentationTestRunner"
|
<instrumentation android:name="android.test.InstrumentationTestRunner"
|
||||||
android:targetPackage="com.example.HelloJni"
|
android:targetPackage="com.example.hellojni"
|
||||||
android:label="Tests for HelloJni"/>
|
android:label="Tests for HelloJni"/>
|
||||||
</manifest>
|
</manifest>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
package com.example.HelloJni;
|
package com.example.hellojni;
|
||||||
|
|
||||||
import android.test.ActivityInstrumentationTestCase;
|
import android.test.ActivityInstrumentationTestCase;
|
||||||
|
|
||||||
@@ -9,13 +9,13 @@ import android.test.ActivityInstrumentationTestCase;
|
|||||||
* <p/>
|
* <p/>
|
||||||
* To run this test, you can type:
|
* To run this test, you can type:
|
||||||
* adb shell am instrument -w \
|
* adb shell am instrument -w \
|
||||||
* -e class com.example.HelloJni.HelloJniTest \
|
* -e class com.example.hellojni.HelloJniTest \
|
||||||
* com.example.HelloJni.tests/android.test.InstrumentationTestRunner
|
* com.example.hellojni.tests/android.test.InstrumentationTestRunner
|
||||||
*/
|
*/
|
||||||
public class HelloJniTest extends ActivityInstrumentationTestCase<HelloJni> {
|
public class HelloJniTest extends ActivityInstrumentationTestCase<HelloJni> {
|
||||||
|
|
||||||
public HelloJniTest() {
|
public HelloJniTest() {
|
||||||
super("com.example.HelloJni", HelloJni.class);
|
super("com.example.hellojni", HelloJni.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources>
|
<resources>
|
||||||
<string name="app_name">TwoLib</string>
|
<string name="app_name">TwoLibs</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<!-- package name must be unique so suffix with "tests" so package loader doesn't ignore us -->
|
<!-- package name must be unique so suffix with "tests" so package loader doesn't ignore us -->
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
package="com.example.TwoLib.tests"
|
package="com.example.twolibs.tests"
|
||||||
android:versionCode="1"
|
android:versionCode="1"
|
||||||
android:versionName="1.0">
|
android:versionName="1.0">
|
||||||
<!-- We add an application tag here just so that we can indicate that
|
<!-- We add an application tag here just so that we can indicate that
|
||||||
@@ -12,10 +12,10 @@
|
|||||||
</application>
|
</application>
|
||||||
<!--
|
<!--
|
||||||
This declares that this application uses the instrumentation test runner targeting
|
This declares that this application uses the instrumentation test runner targeting
|
||||||
the package of com.example.TwoLib. To run the tests use the command:
|
the package of com.example.twolibs. To run the tests use the command:
|
||||||
"adb shell am instrument -w com.example.TwoLib.tests/android.test.InstrumentationTestRunner"
|
"adb shell am instrument -w com.example.twolibs.tests/android.test.InstrumentationTestRunner"
|
||||||
-->
|
-->
|
||||||
<instrumentation android:name="android.test.InstrumentationTestRunner"
|
<instrumentation android:name="android.test.InstrumentationTestRunner"
|
||||||
android:targetPackage="com.example.TwoLib"
|
android:targetPackage="com.example.twolibs"
|
||||||
android:label="Tests for TwoLib"/>
|
android:label="Tests for TwoLibs"/>
|
||||||
</manifest>
|
</manifest>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
package com.example.TwoLib;
|
package com.example.twolibs;
|
||||||
|
|
||||||
import android.test.ActivityInstrumentationTestCase;
|
import android.test.ActivityInstrumentationTestCase;
|
||||||
|
|
||||||
@@ -9,13 +9,13 @@ import android.test.ActivityInstrumentationTestCase;
|
|||||||
* <p/>
|
* <p/>
|
||||||
* To run this test, you can type:
|
* To run this test, you can type:
|
||||||
* adb shell am instrument -w \
|
* adb shell am instrument -w \
|
||||||
* -e class com.example.TwoLib.TwoLibTest \
|
* -e class com.example.twolibs.TwoLibsTest \
|
||||||
* com.example.TwoLib.tests/android.test.InstrumentationTestRunner
|
* com.example.twolibs.tests/android.test.InstrumentationTestRunner
|
||||||
*/
|
*/
|
||||||
public class TwoLibTest extends ActivityInstrumentationTestCase<TwoLib> {
|
public class TwoLibsTest extends ActivityInstrumentationTestCase<TwoLibs> {
|
||||||
|
|
||||||
public TwoLibTest() {
|
public TwoLibsTest() {
|
||||||
super("com.example.TwoLib", TwoLib.class);
|
super("com.example.twolibs", TwoLibs.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user