android tcp/ip client using phonegap - android

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

Related

Can we convert existing android project to ios using cordova or phonegap?

I need help with some information which I couldn't find anywhere online. is it possible to convert my existing android app to ios using PhoneGap/Cordova? if it is yes, could u guys send me any link to do it. if its no, can I know why? please...
No, you can not convert it. Code base and frameworks are to different. For making cross platform app you can use Flutter, Xamarin or others...
Only if your android app is already a web application. Cordova and phonegap are a set of libraries for extending mobile web applications with native functionalities.
Apache Cordova is an open-source mobile development framework. It allows you to use standard web technologies - HTML5, CSS3, and JavaScript for cross-platform development. If your current Android application is a Native application; you cant convert application to iOS.
For more details : https://cordova.apache.org/docs/en/latest/guide/overview/

Converting iOS app to Android

I am developing an iOS application on swift and I was wondering is it possible to convert the code to run on android devices or I have to develop a new application. I have experience only with writing application on swift and I do not know how to create an android application. If it is possible to convert it it will be great.
If you do not want to write different code for ios and android. Check if Hybrid app fits your requirements. Check out Apache Cordova (Adobe phonegap). You will be coding your application as a web app using HTML Css Js. Please be aware of its own pro's and con's of going with hybrid app.
If you are looking for truly native alternatives, Check out Xamarin which gives you native application's UI, Performance and access to low level API's. You need to code your app in C#
You cannot directly convert swift code to make it work on Android.

is it possbile to run local server on mobile device using phonegap?

I want to create client/server offline application. Server should be hosted on a mobile device. Other devices throught a browser should get some content from serrver. Is it possible at all? Is it possible using phonegap? Could anyone give me advice about it?
I use this chrome plugin in a couple of enterprise apps:
https://www.npmjs.com/package/cordova-plugin-chrome-apps-socket
It works on Android and iOS, is very stable, and you can use it as socket server/client and also as webserver.
Update:
First: If you are developing Cordova-Apps, then make a decision what you want to use (Cordova, Phonegap, Ionic, …). Don't mix things and read the documentations.
Second: If you want to install a Cordova plugin from npm, the syntax is:
cordova plugin add [npm-name]
For installing the chrome-sockets-plugin, use:
cordova plugin add cordova-plugin-chrome-apps-socket
Before you start writing a server-client-socket app with this plugin, read the full documentation from Google. It is not a task which works out of the box and needs some lines of code and some experience in Javascript.

Cordova app with angularjs

I am trying to make android mobile app using cordova. I have created an application in MEAN.js framework and it is working properly and now i am trying to convert this application into an android mobile application so i tried a lot but could not find a proper solution. Please help me to find the way for creating android mobile app using cordova.
Thankyou.
Cordova is just a layer which converts HTML5 to native mobile app code. The thing to understand is that, although Cordova is extremely strong, it's quite low level. I would recommend you try to use Ionic. It's a framework which allows you to write HTML5 code (which then gets converted to native) but it also provides a layer of Angular. So, basically porting what you have in MEAN to Ionic should be straightforward

Android apps with Dojo and geodjango

I am trying to make a android apps using Dojo toolkit and GeoDjango. Its a project based on GPS work. Can anyone help in this issue? I want to have the staring steps? I have some source code and SDK installed in my computer. But still confused about the staring. can Anyone help?
How I will make it possible to create the apps. Steps plz?
I suggest to take a look at PhoneGap. I use it to embed JQuery mobile inside a Android application. PhoneGap makes it easy to embed javascript inside an Android application. Just try the PhoneGap tutorial.
Edit: PhoneGap let u use the GPS sensor through javascript

Categories

Resources