Android的HP ePrint的活动响应code [英] Android HP ePrint activity response code

查看:83
本文介绍了Android的HP ePrint的活动响应code的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我工作的一个Android应用程序,可以在HP ePrint的应用程序调用进行无线打印。打印功能已测试工作。然而,用户preSS打印按钮后,我想我的应用程序来住在ePrint的应用程序前,而不是它,为此我需要从应用程序ePrint的响应code。

I'm working on an android app that can call upon HP ePrint app to perform printing wirelessly. The printing function have been tested working. However, after the user press the print button, i would like my app to come to the front instead of it staying at the ePrint app, and for that I'll need the response code from the ePrint app.

我GOOGLE了一个办法做到这一点是通过调用startActivityForResult的意图,因为:

I googled that one way to do it is by calling the intent with startActivityForResult, as:

startActivityForResult(intent, REQUEST_CODE_PRINT_FILE);

不过,我没能找到变量REQUEST_ code_PRINT_FILE值。我需要知道变量的值或者我根本就在我的情况下使用RESULT_OK?

however i failed to find the value for the variable REQUEST_CODE_PRINT_FILE. Do i need to know the value of the variable or i can simply use RESULT_OK in my case?

感谢名单。

推荐答案

REQUEST_ code_PRINT_FILE可以是任何int值> = 0时,该值将被返回到您的onActivityResult()参数一旦打印机的活动破坏了。

REQUEST_CODE_PRINT_FILE can be a any int value >= 0 , this value will be returned back to you onActivityResult() arguments once the printer Activity destroyed.

请检查文档。

<一个href=\"http://developer.android.com/reference/android/app/Activity.html#startActivityForResult%28android.content.Intent,%20int%29\" rel=\"nofollow\">http://developer.android.com/reference/android/app/Activity.html#startActivityForResult%28android.content.Intent,%20int%29

这篇关于Android的HP ePrint的活动响应code的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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