如何从外部来源通知桌面应用程序事件? [英] How to notify a Desktop application of events from outside sources?

查看:94
本文介绍了如何从外部来源通知桌面应用程序事件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有哪些方法可以通知Windows桌面应用程序由各种来源(如Android应用程序,Web应用程序等)生成的事件?


实现此目的的最佳方法是什么,因此不需要用户交互,桌面上运行的应用程序可以处理随事件发送的数据?


我有一个非常简单的移动应用程序(目前只在Android上运行) - 它有一个时间输入字段和一个按钮。单击该按钮时,我希望将通知发送到桌面应用程序。桌面应用程序将使用通知
中包含的数据执行某些操作。


此外,我希望最终跟踪数据库中的所有事件以供日后查看。

解决方案

我有一个非常简单的移动应用程序(目前只在Android上运行) - 它有一个时间输入字段和一个按钮。点击
按钮后,我希望将通知发送到桌面应用。 


桌面Windows具有非常丰富的API - 很多方法可以获取外部事件。但是 你需要以某种方式为Android设备和Windows PC提供
进行通信。比如,例如,
这个


- pa




What are some ways to notify a Windows Desktop application of events that are generated by various sources, such as an Android app, a Web app, etc.?

What is the best way to accomplish this so there is no user interaction required and the app running on the desktop can handle the data sent with the event(s)?

I have a mobile app (currently only running on Android) that is very simple - it has a time entry field and a button. When the button is clicked, I want a notification to be sent to the desktop app. The desktop app will use the data contained in the notification to perform some action.

In addition, I want to eventually track all events in a database for later review.

解决方案

I have a mobile app (currently only running on Android) that is very simple - it has a time entry field and a button. When the button is clicked, I want a notification to be sent to the desktop app. 

Desktop Windows has very rich API - lots and lots of ways to get external events. But you need to provide some way for the Android device and the Windows PC to communicate. Like, for example, this.

-- pa


这篇关于如何从外部来源通知桌面应用程序事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆