gpt4 book ai didi

java - 从 Eclipse 应用程序中的 App Inventor 应用程序获取数据

转载 作者:行者123 更新时间:2023-11-29 21:54:00 24 4
gpt4 key购买 nike

有没有人知道如何从 App Inventor 应用程序发送数据并在 Eclipse 制作的应用程序中接收数据。

我需要从 App inventor 中启动该应用程序(这部分已经完成)并将一串数据从 app inventor 发送到另一个应用程序,然后在另一个应用程序中操作数据。

非常感谢任何帮助

谢谢帕特里克

最佳答案

所以我终于想通了。

这是我在这两个应用程序中的代码:

应用发明家:在 Activity Starter 设置中,您需要以下内容:

ActivityPackage: something.something.Packagename 
ActivityClass: something.something.Packagename.classname
ExtraKey: APP_INVENTOR_START
ExtraValue: Value that you would like to send.

这是您在 Eclipse 应用程序中接收值的方式:

Bundle extras = getIntent().getExtras();
String ReceivedValue = extras.getString("APP_INVENTOR_START");

是的。真的就这么简单!

关于java - 从 Eclipse 应用程序中的 App Inventor 应用程序获取数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13718453/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com