Use phonegap features in an existing android application - android

I am new to Phonegap. I need to use cordova webview in my existing application.
Can someone help me out, if I can use it in my existing android application by adding jar files.
I have checked these in Phonegap/cordova tutorial pages, but it didn't gave me much satisfaction. Also, if someone can provide the steps, it would be much appreciated.
Appreciate your help!!!

Use this guide
http://docs.phonegap.com/en/3.5.0/guide_hybrid_webviews_index.md.html#Embedding%20WebViews
and let us know where you have the problem.
You can also follow this blog post from one of the cordova team
https://web.archive.org/web/20140514125044/http://www.infil00p.org/advanced-tutorial-using-cordovawebview-on-android/

This would be a good resource. Complete step by step guide.
Embedding a Cordova WebView into an Android fragment
This tutorial demonstrates how to embed a Cordova WebView into an
Android fragment. The Phonegap documentation already provides a good
overview on how to embed a Cordova WebView in an activity however
there are some key differences when using Fragments.
www.youtube.com/watch?v=sQXHDIe7bVU
and check this.
How to implement phonegap/cordova in android webview?

Related

using loadUrl()

It's been a few years since I've tried to create an Android application and since everything has moved away from Eclipse and now onto AS my old templates no longer work. I'm looking for tutorials that allow me to use my own custom html, css and Jquery, seeing as stuff like super.loadUrl("file:///android_asset/www/index.html"); don't seem to work anymore.
Are there any links or anything anyone can provide to get me started on creating non java dependant application?
If you want to make an app without using java you can start learning ionic framework https://ionicframework.com/
You can also go through Apache Cordova. It allows you to use standard web technologies such as HTML5, CSS3, and JavaScript for cross-platform development and you can also go with Xamarin that uses C# for cross-platform development.
You can also go through this tutorial for better understanding and for start learning from fresh :
Ionic tutorial https://www.youtube.com/watch?v=0jamhGf-8ww&list=PLYxzS__5yYQljbuGjaeugpqs9U07gS5P5
Cordova Tutorial https://www.youtube.com/watch?v=kqWZuEpHoSw&list=PLReL099Y5nRd9BNsMZwXvTDeqnfRMiGJy
Hope this will be helpful!!

A few questions about webRTC on android

I have a few questions about webRTC on android. I can say I'm new about android and webRTC but I can also say I made tooo much research about webRTC on android. But still have a few questions. (some of them because of I'm new, and some of them because of I'm okey but not fully)
I'm trying to make an android app which is going to communicate between web browser (first choice is chrome) and android device directly (p2p we can say). So I made too much research and I found webRTC is good for me. Do you advise me something other or is it okey you think? (also I am going to code a plugin for chrome).
Nearly every document says 'android is not directly support webRTC'. So I need something to provide me webRTC on android. What it is? Is it native android that I have to code? Is it native (NDK) library that I have to include my project? Or is it a java lib? Or should I go for cordova/crosswalk or sth like that? I researched all but didn't find something can help me. Yeah there are documents about it but not enough..
Some of documents says, I need chromium. But why and how? They show me lots of linux terminal commands and even there is no a line java or C or C++ code. Even some terminal commands and links that they give is not working.
I read/found/tried these things as a result of my research:
Apache cordova
Crosswalk
http://www.webrtc.org/
https://github.com/webrtc
http://webrtc.github.io/samples/
http://simonguest.com/2013/08/06/bui...t-for-android/
http://orcaman.blogspot.com.tr/2014/...tc-source.html
https://github.com/pchab/ProjectRTC
https://github.com/pchab/AndroidRTC
and something more..
in a nutshell I need help. Please give me your hand. Thank you. (because I'm really very helpless and tried to do my best)
Thank you.
As others have suggested, I recommend checking out g.co/webrtc. As I understand it, your goal is to make Android connect to a web browser using WebRTC. There are two (three) ways you can achieve that.
You can just use Chrome, Opera or Firefox for Android. All these browsers support WebRTC, and it allows you to use the same code for your web app, as for your Android app. With the new Add to homescreen support, as well as support for push notifications from web apps on Android, this could be a very good solution for you.
You can use the Android native WebRTC library, available from WebRTC.org. As mentioned in my article, I recommend using the pristine.io compiled library, available from MavenCentral.
If you can limit your application to Lollipop, you can use WebView, which support WebRTC now iirc. I don't know much about it though.
And the best resource for getting help is discuss-webrtc. It's a lot more active than StackOverflow.

Oxyplot for Xamarin Android

I have plotted a graph in Xamarin Android using the trial Library of TreeChart. But the full version is expensive. I now want to use something that is free. I thought of using Oxyplot.
I added a reference to the NuGet package of Oxyplot.Android in Xamarin to my project. But I dont know how to use it.
There is no documentation for the same on their official website. Can anyone let me know of any tutorial or Demo project which I can refer.
Thanks
On Github you can find these documentation or examples for android,iOS,Xamarin,WP,silverlight,.NEt.
Also this link give full documentation...

what tasks can not be done using phonegap for android

I just started learning Phonegap.
I went through this tutorials .
Now I got one question in my little mind..
I just want to know what are the tasks can not be done using phonegap for Android.
I searched a lot on this question but I found this kind solutions on pros and cons of phonegap, and those are not answers to satisfy my mind.
please anybody provide relevant solution.
Thank you in advance :)
In very simple words PhoneGap based on a native WebView with some Cordova API (A javascript bridge).
That means that you can call functions from the WebView to your native code and in oposite direction.So that means that you can do anything that the native can do.
Because you question is too abstract I would say again that you can do anything like native, but for functionality that is not appear in Cordova API you will need to implement buy yourself (native) using Javascript bridge (for Android and IOS).
I hope that satisfy your mind.

Can we use native code as plugin in Rhomobile?

I need to run a java code for Android inside Rhomobile app. Is there any way i can call the java code. I have seen some of the plugins to interact with native codes for Android.
I tried searching and i did get to this url http://docs.rhomobile.com/rhoconnect/plugin-intro.
But i guess this is not for Rhomobile if i'm not wrong.
I have a library file for my requirement. Is there any way i can use it ?
Yes you can. Have a look at this http://docs.rhomobile.com/rhodes/extensions#native-extensions
The link you get is for RhoConnect ( basically meant for sync operation). You need to look into the native extension for Android : Rewriting the Generated Native Extension Source Code for Android
If you need some more help and support, you can go over
https://developer.motorolasolutions.com/‎
https://groups.google.com/forum/#!forum/rhomobile
You can also simply post you query here and tag Rhomobile & Rhodes.
Hope this might help you.

Categories

Resources