I am new to mobile development and I would like to write a TCP/IP client to run on android using phonegap, can anyone tell me where to开发者_开发知识库 start?
I was thinking of writing a class for this in java using the Android SDK and invoking it using javascript through the _android.webkit.WebView.addJavascriptInterface(Object, String)_
method but I do not know if this is the best way to achieve this.
take a look at how to write phonegap plugins: http://wiki.phonegap.com/w/page/36752779/PhoneGap-Plugins
精彩评论