如何将数据从Android应用程序发送到C#windows应用程序 [英] How to send data from android application to C# windows application

查看:113
本文介绍了如何将数据从Android应用程序发送到C#windows应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发了一个Windows应用程序和一个Android应用程序。

我想将两个应用程序相互链接,以便我可以将从Android设备获取的订单传输到我的Windows应用程序计费屏幕。

有没有办法做到这一点。我使用sharp develop作为前端,MariaDB作为我的Windows应用程序的后端,Android应用程序android studio和数据库是在SQLite中。







我该怎么做?请帮帮我。



我尝试了什么:



我尝试使用TCP / IP连接,但它是用于控制台应用程序,我不知道如何使用c#为Windows应用程序执行此操作。

解决方案

创建Web服务,使用此Web服务将数据传输到Windows应用程序以及Android应用程序


这是我们被问到的最常见的问题之一:与.NET应用程序的Android通信。哦,来吧,一个简单的HTTP通信绰绰有余,甚至给你一个更好的提示,你需要放松,让你的思想 REST



没得到它?我的意思是,您可以在.NET服务器端代码中使用REST API,然后从Android的HTTP客户端发送请求并进行操作。有超过50个答案和至少5篇涉及此主题的文章请使用右上角的搜索框并搜索内容。 : - )

I have developed one windows application and one Android application.
I want to link both the applications with each other so that I can transfer the order taken from android device to my windows applications billing screen.
is there any way to do this.i am using sharp develop as a front end and MariaDB as a backend for my windows application and for Android application android studio and database is in SQLite.



how can I do this? help me, please.

What I have tried:

I have tried using TCP/IP Connection but it is for console application and I don't know how to do this for windows application using c#.

解决方案

Create web service , using this web service transfer data to windows application and also to android application


This is one of the most common questions we are asked: Android communication with a .NET application. Oh c'mon, a simple HTTP communication is more than enough, to even give you a better hint, you need to relax and let your mind REST.

Didn't get it? I mean, you can use REST API in your .NET server-side code, and then send requests from Android's HTTP client, and operate. There are more than 50 answers and at least 5 articles covering this topic please use top-right search box and search for the content. :-)


这篇关于如何将数据从Android应用程序发送到C#windows应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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