Android移动设备连接与PC应用程序编写VB NET [英] Android Mobile Device Connection with PC Application written VB NET

查看:74
本文介绍了Android移动设备连接与PC应用程序编写VB NET的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Sir



我开发了一个android移动应用程序,其中sms是主要的通信基础,我也在VB NET中开发了一个应用程序,现在我希望同步这些两个应用程序是否有可能当一个Android设备接收短信然后我通过vb网络以编程方式阅读它是否有可能然后我回复我的方法它是如何...



感谢regerds ..



Om Parkash Kaushik

Hello Sir

I have developed an android mobile applicaton in which sms is main communication fundamental and I also developed an application in VB NET now I wish to sync these two application Is it possible that when an android device receving sms then I read it via the vb net programmatically is it possible then pl revert me the method how it can be..

thanks an regerds..

Om Parkash Kaushik

推荐答案

你不能这样做但是那里是处理这种情况的一种方式。



你需要的是编写一个与同一个数据库通信的Web服务或WCF,VB.NET会谈。现在,当你收到短信,打电话给网络服务,做你的同步。



这是唯一的方法,我认为你可以同步vb.net和设备。



欢呼
You cannot to do this but there is a way round to handle this kind of situation.

What you need is to write a Web Service or WCF which talks to the same database, VB.NET talks. Now when you receive a SMS, call the webservice, do your sync stuff.

That''s the only way, I think you can sync vb.net and device.

cheers


在你的Android应用程序上创建一个监听器



下面是一个示例代码: http://davanum.wordpress。 com / 2007/12/15 / android-listen-for-incoming-sms-messages / [ ^ ]



编写VB.NET Web服务或WCF服务,下面是一个WCF服务示例:

http://fszlin.dymetis.com/post/2010/05/10/Comsuming-WCF-Services-With-Android.aspx [ ^ ]



将消息发布到示例中概述的WCF服务..(按将收到的短信转换成一个对象,即在示例中概述的车辆类中的相同工作机制)



你应该没事......



如果你在谈论与本地VB.net应用程序进行通信是不可能的,它只能通过Web服务



祝你好运:)
Create a Listener on your android application

Heres an example code: http://davanum.wordpress.com/2007/12/15/android-listen-for-incoming-sms-messages/[^]

Write VB.NET Web Service or WCF Service, Below is a WCF Service example:
http://fszlin.dymetis.com/post/2010/05/10/Comsuming-WCF-Services-With-Android.aspx[^]

Post the message to the WCF Service as outlined in the example.. (By converting the received sms into an object i.e. the same working mechanism in the Vehicle class outlined in the example)

And you should be fine..

If you are talking about communicating to a native VB.net Application it is impossible, it is only possible via Web Services

Good luck :)


Class.forName(driver).newInstance();



未找到例外





如果你加上你确定这个工作

感谢任何帮助
Class.forName(driver).newInstance();

NOT FOUND EXCEPTION


HOW YOU ADDED ARE YOU SURE THIS WORK
THANKS FOR ANY HELP


这篇关于Android移动设备连接与PC应用程序编写VB NET的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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