Android远程(客户端和服务器) [英] Android remote (client and server)

查看:110
本文介绍了Android远程(客户端和服务器)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



是否可以使用vb.net在Android遥控器上制作服务器?

谢谢!!

Hi All,

Is it possible to use vb.net to make a server in a android remote?
Thanks!!

推荐答案

答案:一切皆有可能,你只需要工作。



真实答案P1 :你不能使用VB.Net - 这完全是微软的技术!

真实答案P2:是的,你可以做一个服务器/客户端。我做到了遗憾的是,我不能在一篇文章中发布我的Java代码,因为它被用于付费项目,因此我无法开源。嗯...或许应该告诉你一些事情 - 这是很多工作!我将我的Java网络库建立在我的C#one背面:http://networkinglibrary.codeplex.com/(另请参阅我的CP文章)。也许我的2篇文章和CodePlex项目将为您自己做一些事情提供足够的灵感。注意:Java代码与C#代码非常相似。



Ed



编辑:您可能(需要付出很多努力),编写VB.Net代码,将其编译为汇编程序,然后将Windows / Intel汇编程序代码转换为Android / ARM汇编程序,然后反编译为Java,然后将Java捆绑到一个apk,但这将是一个可怕和混乱的过程,几乎可以保证在某个地方崩溃。



编辑2:如果你想创建一个VB.Net Windows Server并将Android手机作为客户端连接,这当然是可行的,也可以用我的库(C#.Net但C#.Net和VB.Net几乎可以互换使用)(加上你'') d需要做一些代码来做Java到.Net int的转换,即big-endian到little-endian和visa-verse。
Answer: Anything is possible, you just need to work at it.

Real Answer P1: You can''t use VB.Net - that''s an entirely Microsoft technology!
Real Answer P2: Yes you can do a server/client. I''ve done it. Sadly, I can''t post my Java code in an article because it''s being used in a paid-for project so I can''t open source it. Hmm...perhaps that should tell you something - it''s a lot of work! I based my Java Networking Library on the back of my C# one: http://networkinglibrary.codeplex.com/ (also, see my CP articles). Perhaps my 2 articles and CodePlex project will be enough inspiration for you to do something yourself. Note: The Java code is Very similar to the C# code.

Ed

You could probably (with a lot of effort), write the VB.Net code, compile it to assembler, convert the Windows/Intel assembler code to Android/ARM assembler then, decompile to Java then bundle the Java into an apk but that would be a horrendous and messy process which is almost guaranteed to break down somewhere.

Edit 2: If you wanted to create a VB.Net Windows Server and connect the Android phone as a client, that is certainly possible and doable with my libraries (which are C#.Net but C#.Net and VB.Net can be used almost interchangeably) (plus you''d need to do a little bit of code to do Java to .Net int conversion i.e. big-endian to little-endian and visa-verse .


这篇关于Android远程(客户端和服务器)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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