打开谷歌从我的应用程序播放退出应用程序崩溃 [英] Opening my application from Google Play App crashes on exit

查看:261
本文介绍了打开谷歌从我的应用程序播放退出应用程序崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有选项可以打开我的应用程序谷歌播放我的应用程序内页。当在谷歌点击打开按钮播放我的应用程序再次启动。 (摘自闪屏)

I have option to open my app Google Play page inside my app. When clicking open button in Google Play My app launches again. (From Splash screen)

当我离开我的应用程序坠毁。我试图把singleTask标志,以我的家庭活动。它实际上工作得很好。但相比发生另一个<一个href=\"http://stackoverflow.com/questions/10174892/extended-application-class-force-close-on-restart-android\">crash.所以,我需要知道的是:

When I am exiting my app it crashed. I tried put singleTask flag to my Home activity. It actually worked fine. But arised another crash. So I need to know is:

是否有任何选项把国旗在我的市场呼唤意向通知应用程序已经启动,只是把它前面上单击打开按钮?

Is there any option to put flag in my Market calling Intent to notify that the app is already launched and just bring it front on clicking Open button?

下面我怎么打电话GOOGLEPLAY应用程序。

Here how am I calling GooglePlay app.

Intent intent = new Intent(Intent.ACTION_VIEW);
            intent.setData(Uri.parse(marketUrl));
            try {
                startActivity(intent);
            } catch (ActivityNotFoundException e) {
                Toast.makeText(this, "Cannot find Android Market",
                        Toast.LENGTH_LONG).show();
            } 

修改

我的市场网址:市场://详细信息的id = com.foo.bar

这将直接重定向到我的应用程序安装页面。

This will directly redirect to my apps Installation page.

推荐答案

使用code ..

Uri uri = Uri.parse(https://play.google.com/store);
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
startActivity(intent);

这篇关于打开谷歌从我的应用程序播放退出应用程序崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆