Skip to content

Commit 7a79182

Browse files
author
River
committed
Fix not found error
1 parent 16427e5 commit 7a79182

File tree

4 files changed

+22
-7
lines changed

4 files changed

+22
-7
lines changed

app/src/main/java/org/qpython/sample/MainActivity.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public boolean onCreateOptionsMenu(Menu menu) {
4444
*
4545
*/
4646
private final int SCRIPT_EXEC_PY = 40001;
47-
private final String extPlgPlusName = "com.hipipal.qpyplus";
47+
private final String extPlgPlusName = "org.qpython.qpy";
4848
public static boolean checkAppInstalledByName(Context context, String packageName) {
4949
if (packageName == null || "".equals(packageName))
5050
return false;
@@ -67,7 +67,7 @@ public void onQPyExec(View v) {
6767
Toast.makeText(this, "Sample of calling QPython API", Toast.LENGTH_SHORT).show();
6868

6969
Intent intent = new Intent();
70-
intent.setClassName(extPlgPlusName, extPlgPlusName+".MPyApi");
70+
intent.setClassName(extPlgPlusName, "org.qpython.qpylib.MPyApi");
7171
intent.setAction(extPlgPlusName + ".action.MPyApi");
7272

7373
Bundle mBundle = new Bundle();

build.gradle

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// Top-level build file where you can add configuration options common to all sub-projects/modules.
2+
buildscript {
3+
repositories {
4+
jcenter()
5+
}
6+
7+
dependencies {
8+
classpath 'com.android.tools.build:gradle:2.2.2'
9+
}
10+
}
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Wed Oct 21 11:34:03 PDT 2015
1+
#Fri Dec 02 23:18:22 CST 2016
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-2.8-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip

local.properties

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1-
## This file must *NOT* be checked into Version Control Systems,
1+
## This file is automatically generated by Android Studio.
2+
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
3+
#
4+
# This file must *NOT* be checked into Version Control Systems,
25
# as it contains information specific to your local configuration.
36
#
47
# Location of the SDK. This is only used by Gradle.
5-
#
6-
#Tue Dec 29 14:46:32 GMT+08:00 2015
8+
# For customization when using a Version Control System, please read the
9+
# header note.
10+
#Fri Dec 02 16:35:32 CST 2016
11+
ndk.dir=/Users/yhc/Library/Android/sdk/ndk-bundle
712
sdk.dir=/Users/yhc/Library/Android/sdk

0 commit comments

Comments
 (0)