Giter Club home page Giter Club logo

Comments (10)

TonnyL avatar TonnyL commented on May 18, 2024

你好,这个坑我也遇到过,在官方的pixel launcher上表现正常,但是到了Nova launcher上,有的shortcut就不能正常显示了。后来我发现貌似是因为intent 和 categories等需要配置完全。可以参考这个:

 <intent
            android:action="com.marktony.zhihudaily.homepage"
            android:targetPackage="com.marktony.zhihudaily"
            android:targetClass="com.marktony.zhihudaily.homepage.MainActivity" />

        <categories android:name="android.shortcut.conversation" />

可以参考我的文章: 老司机带你吃牛轧糖--适配Android 7.1 Nougat新特性

希望对你有所帮助,如果有任何问题,请不要犹豫,直接在issue里面说明,我们一起解决。

@woofww

from paperplane.

woofww avatar woofww commented on May 18, 2024

不知道是什么原因,写Shortcut测试Demo的时候显示完全没问题,但是用同样的方法集成到项目中就是说啥也显示不出来,手头还没有7.0的机器,真是不知道怎么回事了

from paperplane.

TonnyL avatar TonnyL commented on May 18, 2024

Manifest注册了吗?

可以的话可以给我发个Apk,我现在手头有7.1的设备

from paperplane.

woofww avatar woofww commented on May 18, 2024

感谢感谢,也找朋友借了一台设备,虽然7.0设备上 Shortcut 可以显示,但是又开始报 App isn't installed 应该可能这个问题。我再去 Google 研究研究

from paperplane.

woofww avatar woofww commented on May 18, 2024

7.0及以上工作没问题了,就是这Nova一直不成,真是诡异

from paperplane.

TonnyL avatar TonnyL commented on May 18, 2024

貌似nova和pixel launcher解析的方式不同😂

from paperplane.

woofww avatar woofww commented on May 18, 2024

好吧,我最近再研究研究,也非常感谢哈,以后有问题还会多多交流

from paperplane.

TonnyL avatar TonnyL commented on May 18, 2024

ok,请问还有别的问题吗?没有的话我就把这个issue关掉 了。

from paperplane.

woofww avatar woofww commented on May 18, 2024

没有了,请关闭吧

from paperplane.

TonnyL avatar TonnyL commented on May 18, 2024

ok,有什么问题的话,不要犹豫,开一个issue,我们一起讨论。😉

from paperplane.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.