I am a beginner in Android. I want to combine phone gap and native java android. I want to use sqlitedatabase from assets and copy to android data/data/packagename/databases with phonegap. Can I do that? Please help with example.
As far as combining native Java and PhoneGap, what you are looking to do is develop a plugin:
Is it possible to interacte between native iphone app and PhoneGap app?
As for the sqlite database, PhoneGap has a File() API for doing these kinds of things:
http://docs.phonegap.com/phonegap_file_file.md.html#FileEntry
(see copyTo and moveTo).
Related
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/
Is it possible to embed android source code (native app) on phonegap app?
in this case, I want to embed a part from the source code.
If it's possible, is the a tutorial about it?
I know that android use java and phonegap based on html5, and javascript.
or maybe Is it possible if i reverse the condition, embed phonegap into native app?
It's possible to use native code of choosen platform via plugins. Also in case of building native app you can create a WebView and work with web technology inside it.
If you want to build your own plugin, start with something simple: https://cordova.apache.org/docs/en/latest/guide/hybrid/plugins/
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.
Maybe someone knows, if phoneGap has a native database which could be use for Android/iOS?
I'm trying to choose which way is the best to write a data-driven app, in PhoneGap or native Android?
I am developing an android application using phonegap and i came across some things which are quite easy to implement in android native code when compare to phonegap. So i want to know is there any way in which i can make use of android code by not changing my phonegap cross platform?
Similar question: How can I call native functions in Phonegap through Javascript?
You can write phonegap plugin
http://docs.phonegap.com/en/2.0.0/guide_plugin-development_index.md.html