如何在应用程序发明者中创建后台活动
我想在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
这是应用程序发明者的问题
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
您肯定知道,标准的 Application Inventor 2 网站是:
但是,还有另一种,它允许使用后台线程(服务):
它具有标准上不可用的功能(官方)AI2 网站,添加任务功能,允许添加即使在屏幕关闭后仍会继续运行的任务。
不过,由于它是一个不受支持的版本,其上一次发布已经是近一年前的事了,所以我没有花时间做实验,但这可能会满足你的需求:
The standard Application Inventor 2 website, as you surely know, is this one:
However, there is another one, which allows using background threads (services):
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:
该网站将被关闭,但之前运行得非常顺利。
整个概念基于硕士论文: 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.