Skip to content

是否安装了某个应用 #20

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

Closed
wants to merge 1 commit into from

Conversation

XunMengWinter
Copy link
Contributor

使用场景:在启动地图App时,需要判断用户是否安装了高德地图,如果安装了就启动,没安装再判断是否安装了百度地图...

使用场景:在启动地图App时,需要判断用户是否安装了高德地图,如果安装了就启动,没安装再判断是否安装了百度地图...
@Blankj
Copy link
Owner

Blankj commented Aug 8, 2016

openAppByPackageName 这个已经有了哦

@XunMengWinter
Copy link
Contributor Author

soga~~

@XunMengWinter
Copy link
Contributor Author

建议改一下,因为那个打开太局限了,一般打开app是要带数据的intent,这样才能具体到页面或者操作。

@XunMengWinter XunMengWinter reopened this Aug 8, 2016
@Blankj
Copy link
Owner

Blankj commented Aug 8, 2016

这样就不好写喽,数据什么类型都不知道,方法要简单单一的职责,如果那样搞下去其他所有交互的方法都要加了

@XunMengWinter
Copy link
Contributor Author

不用加数据,只告诉用户是否有就好,另一个方法负责启动,将二者绑定起来不灵活。

@Blankj
Copy link
Owner

Blankj commented Aug 8, 2016

已改

@Blankj Blankj closed this Aug 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants