在 Windows 应用程序中自动执行 Chrome 到手机/ Android Intent C2DM 功能
我有一部安卓手机。我的笔记本电脑上也运行着一个应用程序。它是一个 Windows 应用程序。我的笔记本电脑中安装了 chrome,并且已经安装了 chrome 到手机的扩展程序。现在,当我在浏览器中打开链接并单击扩展程序时,我会收到 Android 意图或通知到我的手机。现在我想自动化这个。
我的意思是说我用.net编写的Windows应用程序必须能够为我完成这个操作。我的意思是,在完成一些验证后,我需要向我的手机发送通知或某种意图。如果这必须手动进行,应用程序就会发出消息框警报。一旦我看到警报消息,我就会打开 chrome(或已经打开),然后打开一个链接“www.google.com”,然后单击“chrome 到手机”扩展程序。我希望这可以自动完成。这可能吗?如果是这样怎么办?
如果有任何其他想法或调整可以实现类似的操作,请告诉我。基本上我试图从我的 Windows 应用程序到我的 Android 手机获取警报。任何形式的帮助表示赞赏。谢谢。
I have a Android mobile. I also have a application running on my laptop. Its a windows application. I have chrome installed in my laptop with chrome to phone extension already installed. Now When I open a link in the browser and click on the extension I get a android intent or a notification to my mobile. Now I want to automate this.
I mean to say that my windows application written in .net must be able to do this operation for me. I mean on some validations done I need to get a notification or some kind of intent to my mobile. If this has to be dome manually, it is like application will give a message box alert. As soon as I see the alert message i open chrome (or already opened) and then open up a link say "www.google.com" and then click on "chrome to phone" extension. I want this to be done automatically. Is this possible? If so how?
Please let me know if there are any other ideas or tweaks that can be done to achieve a similar operation. Basically i am trying to get a alert from my windows application to my android mobile. Any kind of help is appreciated. Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Chrome to Phone 的工作方式是通过中间层提供商。在本例中,它是 AppEngine。
如果分析源代码,扩展程序所做的唯一事情就是发布到服务 (http://chrometophone.appspot.com/_ah/channel/jsapi)。因此,如果您想在 Windows 应用程序中模仿相同的功能,则可以执行相同的请求。
源代码是开放的,不要害怕窥探:)源代码位于此处 http:// code.google.com/p/chrometophone/。
The way Chrome to Phone works is through a mid tier provider. In this case it is AppEngine.
If you analyse the source code, the only thing the extension does is post to a service (http://chrometophone.appspot.com/_ah/channel/jsapi). So if you want to imitate the same thing to your windows application, you do the same request.
Source code is open, don't be afraid snooping around :) The source code is located here http://code.google.com/p/chrometophone/.