Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/231.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
从我的android活动中通过Google Hangout发送消息_Android_Android Intent - Fatal编程技术网

从我的android活动中通过Google Hangout发送消息

从我的android活动中通过Google Hangout发送消息,android,android-intent,Android,Android Intent,我正在开发一个应用程序,其中Google Hangout应用程序在我的活动中点击一个按钮即可打开。它工作正常,但当我在新的Hangout intent中按后退键时,它只是关闭整个应用程序,我希望它启动我开始Hangout intent的上一个活动,我该怎么办 我使用的启动“闲逛意图”的代码如下 Intent hng = new Intent(Intent.ACTION_SEND); hng.setType("text/plain"); St

我正在开发一个应用程序,其中Google Hangout应用程序在我的活动中点击一个按钮即可打开。它工作正常,但当我在新的Hangout intent中按后退键时,它只是关闭整个应用程序,我希望它启动我开始Hangout intent的上一个活动,我该怎么办

我使用的启动“闲逛意图”的代码如下

Intent hng = new Intent(Intent.ACTION_SEND);
              hng.setType("text/plain");
              String message = code+" "+number+" "+amount;
              hng.putExtra(Intent.EXTRA_TEXT, message);
              hng.setPackage("com.google.android.talk");
              startActivity(hng);