We are building a new proof of concept application which will utilise the device's camera, and I was wondering if we built this using phonegap, could we then integrate this into existing native apps ?
i.e. can you build phonegap screens, and then interact with native UI screens in Android and IOS
many thanks
Add to your native
New Cordova-based applications created using the Xcode template provided in Cordova 1.4 or greater use Cleaver, and this template is considered the reference implementation for Cleaver.
also please follow : http://devgirl.org/2012/11/15/embed-cordovaphonegap-in-your-native-ios-app/
Related
So I created an app on android studio and now my boss wants me to get it to work on Apple devices.
Is there a short cut to get an Android App to work on Apple devices ie iPhones, iPads and so on.
I really don't wanna create a whole other version for Apple devices.
Impossible. An option is to create hybrid application using Xamarin or Flutter which will run on both iOS and Android. That means you need to migrate you current implementation to hybrid app.
There are several options to do it and each of them has pros and cons so choose wisely.
Hybrid App
A hybrid app allows you to build a cross-platform mobile application with web technology. There are plenty of options you can use like Ionic, PhoneGap or React Native. But since you have built an Android app with the native code I assume, those existent features need to be rewritten in order to run on an iOS device.
Xamarin/Flutter
They are both create a native-like experience. The advantage of them comparing with hybrid app technology is the performance would be better in general. But again, it doesn't mean that you can just create an iOS app without changing any code, you'll still need to rewrite most of part in your app.
Kotlin Native
As an android developer, you're probably familiar with Kotlin. It's officially supported by Android team and It's 100% interoperable with Java. Kotlin can also be compiled to run on multiplatform including iOS. By this way, you'll be able to reuse a lot of existing Kotlin code on both Android and iOS so you don't need to use a new language to rewrite all the functionalities you had done on Android. The cons are It's an experimental feature so It's young and could change on the future and the reusability doesn't mean that you don't need to learn iOS platform.
Google Polymer looks like a simple way to make material designed web pages. I am developing a native Android application and would like to make it material designed. My question is, can I use Polymer for native Android applications?
No, you cannot use Polymer to build a truly "native" Android app. Although there are frameworks such as Phonegap which would allow you to build an app using web technologies and then compile into an Android app.
If your goal is to make an app that follows material design patterns, I suggest you get started by reading the official documentation on the subject: Creating Apps with Material Design
Polymer is a JavaScript Framework that implements web-specific standards for the front-end.
And JavaScript is not the native language of Android so Polymer cannot be used to build Native Apps (using Java) using Meterial Design.
But on the other hand you can build entire applications using HTML5 with the help of some technologies like Cordova and PhoneGap.
Yes, you can make native mobile apps with Polymer, thanks to Polymer Native.
If you are into native Android then you should use Android Official Appcompat Library(which is default) but it lacks backport of some Mateial elements and features( Official Tutorial). if you really need to implement the elements which Appcompat lacks you can use any third party librarie like MaterialEverywhere or this or you can find here if something is really availabe in the world.
Yes we cannot create pure native apps, But we can convert web apps developed in HTML, CSS, JS which is to run in a browser. Cordrava helps to convert the web app source to an apk file which can be installed in an Android devices as a native app. Cordrava makes the web app to run in the web view of android.
A good example tutorial below provided by Ashraff Hathibelagal
http://code.tutsplus.com/tutorials/how-to-create-a-to-do-list-app-with-polymer-and-cordova--cms-25434
I am supporting a legacy Android app that was written in Xamarin. That Xamarin app will be replaced by a Cordova app. During a transition period I will need a solution that will support both. My high level thoughts are that after the user logs in to the app, I will send them to to what is applicable for them (legacy Xamarin or new Cordova). The app would effectively contain the code-base for both apps.
Is this sort of thing possible with Cordova - i.e. can I 'wrap' an exising Xamarin application inside of a Cordova one?
Thanks.
The short answer is "no." Xamarin generates an executable binary, not a collection of HTML or JS files thus Cordova/PhoneGap cannot "wrap" it. With that said, you can probably do a couple of things:
1) Have your Cordova app open the original Xamarin.Android app via app url:
Android Custom URL to open App like in iOS
2) In your legacy Xamarin.Android app create a WebView that loads the HTML/JS that your Cordova/PhoneGap would've. Basically, in a way, you'd be recreating the functionality of Cordova with Xamarin.
http://developer.xamarin.com/recipes/android/controls/webview/call_csharp_from_javascript/
http://developer.xamarin.com/recipes/android/controls/webview/load_a_web_page/
http://developer.xamarin.com/recipes/android/controls/webview/load_local_content/
I've found this link about using phonegap on monotouch apps:
http://scott.blomqui.st/2012/08/embedding-cordova-phonegap-in-monotouch-apps/
I developed an android application with Phonegap and I want to convert it to iOS as well. Before starting my project I heard that we are able to convert same project with multiple platforms using phone gap. But now I don't know how to convert my project to IOS. Can any one suggest good tutorial OR examples to do it.
And also mention what are all prerequisites to convert my android application to IOS using phone gap.
Suggest me some tutorials with examples.
With phongap you can target all platforms including iOS, android and windows etc. using HTML 5, avoiding each mobile platforms' native development language. Code base remains same for every platform. Applications execute within wrappers targeted to each platform, and rely on standards-compliant API bindings to access each device's sensors, data, and network status. refer docs http://docs.phonegap.com/en/3.2.0/guide_overview_index.md.html#Overview
Phonegap is not for converting one build to another.. Using phonegap you can develope for all platforms using phonegap framework, you can generate .apk,.ipa,ota, etc as you wish using sdk in your pc or using phonegap build service. You can read here(phonegap authentic doc) how can you do it for different plaforms.
Nb:Phonegap provides complete documents in their site itself, you can go through and understand, it is helpfull.
You can build on each platform. If you don't want to do that, they offer a Build service that build your app on each platform for you. See https://build.phonegap.com/ for more info.
With phonegap you can create all platform application with same package just you need to clear yourself that for IOS you need certificates to build it. Otherwise same package you are using for android can use for IOS also.
I am hoping to develop a cross-platform image manipulation application for Android and iOS. I was thinking of using a development framework such as titanium mobile or Cordova but i was unable to find any image manipulation / processing library for them
I just want to know the possibility of developing the core image manipulation part using Java/ObjectiveC for the specific platforms and develop a common crossplatform front end using Titanium/Cordova
Is it possible to develop Hybrid Mobile applications using development frameworks such as titanium or cordova(phoneGap) while still having a part of code written in Java
Yes. its possible. if you are going the PhoneGap route, you need to create a PhoneGap plugin for this: http://cordova.apache.org/docs/en/2.4.0/guide_plugin-development_index.md.html
Once you create the plugin, you can invoke your native methods using Javascript.
Creating plugin for Android: http://cordova.apache.org/docs/en/2.4.0/guide_plugin-development_android_index.md.html#Developing%20a%20Plugin%20on%20Android
Creating Plugin for iOS: http://cordova.apache.org/docs/en/2.4.0/guide_plugin-development_ios_index.md.html#Developing%20a%20Plugin%20on%20iOS
Both PhoneGap and Titanium let you do this. The title of this question seems to imply you want to do JAVA development for iOS, which isn't possible (at least not with Titanium or PhoneGap).
Titanium has a development guide on how to extend the platform:
http://docs.appcelerator.com/titanium/3.0/#!/guide/Extending_Titanium_Mobile
It links to articles particular to iOS and Android.