简体   繁体   English

Java侦听器,用于从手机发送到Java应用程序的数据

[英]Java Listener for data sent from my mobile to a java application

So here' my basic idea: 所以这是我的基本想法:

I have an android application which will read a barcode and generate an equivalent string. 我有一个可读取条形码并生成等效字符串的android应用程序。 That string will be sent to my PC. 该字符串将发送到我的电脑。

I have a java GUI application which has a TextField which will be automatically filled with that string whenever it is sent from my mobile to my PC. 我有一个Java GUI应用程序,该应用程序具有一个TextField ,每当它从我的手机发送到PC时,它将自动用该字符串填充。

So how do I do this and what will I require. 因此,我该怎么做以及我需要什么。

Try the following: 请尝试以下操作:

  1. Create a web application to receive input from the phone. 创建一个Web应用程序以接收来自电话的输入。 The location of this application at run time is not important; 该应用程序在运行时的位置并不重要。 you will only need to know the URL to access it. 您只需要知道URL即可访问它。
  2. Post the information from your phone to the web application using an HTTP Post Request. 使用HTTP发布请求将信息从手机发布到Web应用程序。
  3. there is no next step. 没有下一步。

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

相关问题 通过套接字将数据从Android Mobile传输到Java应用程序 - Data from Android Mobile to Java Application through Socket 无法在Spring应用程序中接收其他Java应用程序发送的表单数据 - Cannot receive form data in Spring application sent from another java application 将数据从PHP发送到Java TCP侦听器 - Send data from PHP to Java tcp listener 如何使用Hibernate更新应用程序Java中数据库中的数据? - How update the data from my database in my application java with Hibernate? 如何将数据从表单发送到后端? 【JAVA] - How to sent data from form to backend? [Java] Java移动应用程序的地理位置? - Geographical position from Java mobile application? Java:如何让监听器从Java中的表中获取特定数据? - Java: How to make a listener get specific data from a table in Java? 在 Java Swing 中激活应用程序的监听器 - Listener for activate application in Java Swing 适用于移动应用程序的Java服务器 - Java server for mobile application Java代码将我的Web应用程序发送短信发送到印度的任何移动设备 - Java Code to send SMS from my Web Application to any Mobile in India
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM