Android 手机上的 iGoogle Gadget 作为应用程序或小部件
我在 iGoogle 中添加了一个小工具来显示电子商务购物车中的订单。我想将它作为我们 Android 手机的小部件。有人知道从哪里开始以及需要做什么吗? 链接到 iGoogle 小工具
我发现我可以将 html 嵌入到网页中,这对于创建出现在我手机上的内容有用吗?
I have added a gadget in my iGoogle to display orders from our e-commerce shopping cart. I would like to have it as a Widget for our Android phones. Anyone know where to start and what needs to be done? Link To iGoogle Gadget
I have found that I can EMBED the html to a webpage, could this be useful in creating something that would appear on my phone?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这取决于您所说的“小部件”或“应用程序”的含义。
如果“小部件”指的是“应用程序小部件”(主屏幕的交互式元素),那么您想要的东西是不可能的,除非您编写自己的主屏幕应用程序。
如果“widget”是指“widget”(活动的元素,
android.view.View
的子类),您可以创建一个WebView
的自定义子类,它知道您的小工具的 URL,并安排加载在 iGoogle 之外的浏览器中显示该小工具所需的任何额外 HTML/JS/CSS。如果“APP”指的是“Android 本机应用程序”,您可以查看 PhoneGap。您仍然需要确定在 iGoogle 之外的浏览器中显示该小工具所需的任何额外 HTML/JS/CSS。
That depends on what you mean by "widget" or by "APP".
If by "widget" you mean "app widget" (interactive element of a home screen), what you want is not possible, unless you write your own home screen application.
If by "widget" you mean "widget" (element of an activity, subclass of
android.view.View
), you could create a custom subclass ofWebView
that knows the URL to your gadget and arranges to load in whatever extra HTML/JS/CSS is necessary to display that gadget in a browser outside of iGoogle.If by "APP" you mean "Android native application", you could look at PhoneGap. You would still need to identify whatever extra HTML/JS/CSS is necessary to display that gadget in a browser outside of iGoogle.