Phonegap with Android XML - android

I'm working on a android application
I would like to create a application for android using phone gap.
Is this possible? can I create a front end design in Android XML and back end controller functions in phonegap and make it an app in android studio ?
Any thoughts / experiences?

YOu can use cordova/phone gap to develop mobile apps. But these framework uses HTML5/css/JS technologies to do so. Sn android.xml would not work. You need to create your UI using HTML+CSS and code your business lodic in JS.

Related

Can we integrate Android Screens with React Native?

I am developing an application using react.i designed UI screens for my app using android studio. My question is can i use this screens in my React-native app? is there any possibility that using android screens as UI and coding part for my application using ReactNative?
You can use React-Natvie along with native Android code in same project. But for your use, the simple answer is no. You can't use Android XML layout with React-native, because Android leverages the lucid nature of XML to develop view layouts, while React Native uses JSX, a coupler of business logic and UI.

Project structure of react-native application

I am starting working over react-native for development of android application. I am quite familiar with android studio structure. In android sdk to create view XML is present and for controller java is present. But in react-native how to create view and controller for android application ?
But in react-native how to create view and controller for android application ?
This question is like given an apple but analyze as an orange.
For react-native, exactly for React part, we don't explicitly manage it as view and controller as we did for android or ios.
I suggest you read about React first. It is the core idea. The Native part is just meaning build the native mobile app by React way (you have totally 100% ways to touch the native part - android/ios code - without any restriction as you want).

Using Highcharts JS in native mobile application

so i started to look into building android application that would mirror some stuff i use on a webpage. Namely weather meteograms that are built with Highcharts.
Since i am using angular 2 i thought it would be logical to go angular 2 + nativeScript way. And i cant seem easilly find information about using Highcharts within native application.
Does anyone has examples or knows some page with information about this subject.
Worst case - what would be a good alternative to highcharts to use in mobile app built with angular2 and NativeScript?
Please dont suggest paid librarys/packages.
Add a WebView to the XML file and load a local HTML containing the charts.
There is a paid plugin for creating charts in nativeScript aclled telerik-ui-pro.
More about it here
Demonstration application can be found here
high charts uses the DOM to generate the charts, nativescript doesn't use the DOM for rendering so is a no go..
i was able to generate a bar chart (on android) by creating a small plugin out of this android library https://github.com/PhilJay/MPAndroidChart

Does Android Studio supports AngularJS for Android UI design?

I have a question about Android Studio: Does AS supports AngularJS code while designing XML files, e.g. for small animations or effects?
SUMMARY : NO
There is no way you can write Angular JS code while developing Android Native app. You can use Angular in a WebView (using js/html so), that's all.
AngularJS is a completely different technology than what is used in native Android apps. Native Android apps use Java and/or C for their code, which is compiled when you build the app. AngularJS is a framework for web development, running specifically on Javascript (a completely different technology than Java).
You can build apps without using native Java or C code, but there are tradeoffs. As noted in other answers, you can display webpage views as apps (using technologies like Cordova]), or use frameworks like React Native to write code in Javascript that then gets compiled to a native app. You could use AngluarJS in the webview instance, since it just displays a webpage, however not in something like React Native. I highly encourage you to check both of these (and other options) out, but keep in mind that they have their own limitations and tradeoffs – no one way is the "right" way to build an app.
In summary: No, AngularJS is a web technology, not a native app technology.
new answer = Yes... Sort of, you can do it with:
https://www.nativescript.org/
It translates javascript, angular and typescript code into native components!
Apparantly it's possible to use nativescript in Android Studio with:
https://docs.nativescript.org/runtimes/android/getting-started/hello-world
Android Does not support AngularJs. but still if you want to use you can use it in webview.

Is it possible to use the Android NDK for Android Wear apps?

I look forward to create an android wear application with some 3d content. That for I like to reuse libraries written in C/C++. Is it generally possible to create an Wear APP with the NDK? Do you know about any primer or example code which does so?
I just tried it, and can confirm that is possible to call native code through JNI on Android Wear. It works exactly the same as it does on regular Android.

Categories

Resources