Android的光束 - 回退时未安装我的应用程序 [英] Android Beam - fallback when my app is not installed

查看:215
本文介绍了Android的光束 - 回退时未安装我的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经与<一个戏href="http://developer.android.com/resources/samples/AndroidBeamDemo/src/com/example/android/beam/Beam.html"相对=nofollow> Android的光束样品code ,并用两个设备的工作,发送文本字符串。但是,如果收件人没有安装该应用程序,我的标签简单地收集,用于在稍后的日期。

I've had a play with the Android Beam sample code and have it working with two devices, sending a string of text. However, if the recipient doesn't have the app installed, my tag is simply collected for use at a later date.

有可能以某种方式将用户带到Android市场如果没有安装我的应用程序,以及处理数据的意图,如果它的的安装?

It is possible in some way to take the user to the Android Market if my app is not installed, and to process the data in the intent if it is installed?

推荐答案

有一段评论code光束样品已经有应用的记录设置为你进来。只需取消其注释,看看是否是你想要的行为。

There is a piece of commented code in the Beam sample that already has the application record set up for you. Just uncomment it and see if that is the behavior you want.

这篇关于Android的光束 - 回退时未安装我的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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