Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在MI 3C手机上系统默认的分享会失败,提示 应用未安装 #20

Open
totzcc opened this issue Apr 6, 2017 · 0 comments
Open

Comments

@totzcc
Copy link

totzcc commented Apr 6, 2017

04-06 14:11:08.850 4452-4452/my.com.bit.jpjjr.android E/gold: 分享失败
                                                              java.lang.Exception: The application is not install
                                                                  at me.shaohui.shareutil.ShareUtil.action(ShareUtil.java:70)
                                                                  at me.shaohui.shareutil._ShareActivity.onCreate(_ShareActivity.java:43)
                                                                  at android.app.Activity.performCreate(Activity.java:6251)
                                                                  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1108)
                                                                  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2403)
                                                                  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2510)
                                                                  at android.app.ActivityThread.-wrap11(ActivityThread.java)
                                                                  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1363)
                                                                  at android.os.Handler.dispatchMessage(Handler.java:102)
                                                                  at android.os.Looper.loop(Looper.java:148)
                                                                  at android.app.ActivityThread.main(ActivityThread.java:5461)
                                                                  at java.lang.reflect.Method.invoke(Native Method)
                                                                  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
                                                                  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

修改如下代码暂时解决

DefaultShareInstance.java

    @Override
    public boolean isInstall(Context context) {
//        Intent shareIntent = new Intent();
//        shareIntent.setAction(Intent.ACTION_SEND);
//        return context.getPackageManager()
//                .resolveActivity(shareIntent, PackageManager.MATCH_DEFAULT_ONLY) != null;
        return true;
    }
@totzcc totzcc changed the title 在小米3 手机上系统默认的分享会失败,提示 应用未安装 MI 3C 在MI 3C手机上系统默认的分享会失败,提示 应用未安装 MI 3C Apr 6, 2017
@totzcc totzcc changed the title 在MI 3C手机上系统默认的分享会失败,提示 应用未安装 MI 3C 在MI 3C手机上系统默认的分享会失败,提示 应用未安装 Apr 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant