如何在应用程序发明者中创建后台活动

发布于 2024-10-16 08:02:34 字数 210 浏览 4 评论 0原文

我想在 appinventor 中创建一个应用程序,它可以根据解锁时晃动手机的哪一侧来左右切换屏幕。但无法弄清楚: 一个。如何让应用程序在后台运行。 b.我要买什么房产。就像当手指在屏幕上滑动时告诉手机屏幕向左或向右滚动一样。叫什么方法。我认为视图类必须用它做一些事情。没有java经验,我无法理解sdk、参考、资源等。

请帮助我,我会给你信用。 哦,我也想我可能还必须包括“活动启动器”。

I wanted to create an app in appinventor that would switch screen right/left depending on what side the phone is shaken while unlocked. But couldnt figure out:
a. how to make application run in background.
b. what property i am going for. Like what tells phone's screen to scroll left or right when finger slides across the screen. What method is called. I figured view class would have to do something with it. Having no java experience i couldn't make much sense out of sdk,refernce,resources etc.

Please help me out, i will give you credit for it.
Oh also i think i might have to include "activity starter" too.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

征棹 2024-10-23 08:02:34

这是应用程序发明者的问题
http://code.google.com/p /app-inventor-for-android/issues/detail?id=32

为其加注星标以表明您感兴趣

It's an issue for app inventor
http://code.google.com/p/app-inventor-for-android/issues/detail?id=32

star it to show you are interested

依 靠 2024-10-23 08:02:34

您肯定知道,标准的 Application Inventor 2 网站是:

http://ai2.appinventor.mit.edu/

但是,还有另一种,它允许使用后台线程(服务):

http://services.appinventor.mit.edu/

它具有标准上不可用的功能(官方)AI2 网站,添加任务功能,允许添加即使在屏幕关闭后仍会继续运行的任务。

不过,由于它是一个不受支持的版本,其上一次发布已经是近一年前的事了,所以我没有花时间做实验,但这可能会满足你的需求:

在此处输入图像描述

The standard Application Inventor 2 website, as you surely know, is this one:

http://ai2.appinventor.mit.edu/

However, there is another one, which allows using background threads (services):

http://services.appinventor.mit.edu/

It has a feature not available on the standard (official) AI2 website, the Add Task functionality, which allows adding tasks that will keep running even after a screen have been closed.

However, since it is an unsupported version, whose last release is dated from almost 1 year ago, I did not spent time making experiments, but this migh meet what you need:

enter image description here

脸赞 2024-10-23 08:02:34

该网站将被关闭,但之前运行得非常顺利。
整个概念基于硕士论文: https://dspace.mit.edu/bitstream/handle/1721.1/100626/932752939-MIT.pdf;sequence=1

该网站的最后一条消息类似于:谷歌改变了后台服务架构的概念,导致“任务”概念过时并妨碍其在未来发挥作用。

The website will turn down, but worked like a charm before.
The whole concept was based on a Master Thesis: https://dspace.mit.edu/bitstream/handle/1721.1/100626/932752939-MIT.pdf;sequence=1

The last message from the site was something like: Google change the concept of background service architecture which cause the 'taks' concept to obsolate and prevent to work in the future.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文