简体   繁体   English

Android Phone上的iGoogle小工具,作为APP或Widget

[英]iGoogle Gadget on Android Phone as APP or Widget

I have added a gadget in my iGoogle to display orders from our e-commerce shopping cart. 我在iGoogle中添加了一个小工具,以显示来自电子商务购物车的订单。 I would like to have it as a Widget for our Android phones. 我希望将其作为我们Android手机的小部件。 Anyone know where to start and what needs to be done? 任何人都知道从哪里开始以及需要做什么? Link To iGoogle Gadget 链接到iGoogle小工具

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? 我发现我可以将html嵌入网页,这对创建将出现在手机上的内容有用吗?

That depends on what you mean by "widget" or by "APP". 这取决于您所说的“小部件”或“ 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 of WebView 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. 如果用“小部件”来表示“小部件”(一个活动的元素, android.view.View子类),则可以创建一个WebView的自定义子类,该子类知道小工具的URL并安排加载任何其他HTML / JS要在iGoogle外部的浏览器中显示该小工具,必须使用/ CSS。

If by "APP" you mean "Android native application", you could look at PhoneGap . 如果通过“ APP”表示“ Android本机应用程序”,则可以查看PhoneGap You would still need to identify whatever extra HTML/JS/CSS is necessary to display that gadget in a browser outside of iGoogle. 您仍然需要确定在iGoogle外部的浏览器中显示该小工具所需的任何其他HTML / JS / CSS。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM