Building Plug-in for Android's default browser or Chrome - android

Is this possible?
There is very little documentation available and the one useful post I have found has an expired link.
Anyone?

The two plugin systems are completely different. Chrome extensions are far more mature and developer friendly. Bottom line is you'd need to write two different plugins.
Possibly useful links:
SO post about developing Android browser plugins
Getting started with Chrome extension development

I think this question has been discussed and answered in following QA :
How to develop plugins for the native Android browser
Android browser plugin
Write browser plugin for a personal web application

Related

Polymer 1.x: Going from web to mobile

I have a Polymer web app. I need to deploy it to mobile Android and iOS devices.
I have my vulcanized dist directory after running gulp.
I have a hosted URL.
Question
Now what do I do? What steps do I need to take? (And where is the documentation?)
I tried using PhoneGap Build but encountered compatibility issues.
This SO answer pretty well documents that PhoneGap Build does not support Polymer at this time.
There is article written by Eric Bidelman on
Using Polymer in a WebView. How to setup Polymer in an Android WebView app.
Here is the link.
https://www.polymer-project.org/0.5/articles/webview.html
We have built an in-house mobile applications with Polymer and Cordova.
It generally works with android 4.4 onwards since WebView for android 4.4 onwards is based on the chromium project.
As for iOS 8.1 onwards, we thus far have not encountered any issue. Note that Polymer will not work on iOS7 & below.
Should you need more modern web API, you can include Crosswalk for Cordova.
Hope that helps.
That's me. I look further into that.
I talked to my friends in that group, they know of no such projects.
However, they did express that it was possible, IF the web library supported ECMA5 (the Javascript standard). I looked into it and found that potentially there is support
However, I do not have any evidence that this will or will not work. The best I can say is to try the following.
Build the library on a local machine (your PC) to make sure you understand it.
Build a Cordova/Phonegap Application with the new Crosswalk Webview Library.
Find a very simple Webcomponent you can test with. Something equivalent to "hello world".
Test
Please let me know how this works out.
Best of Luck,
Jesse
Can't say I've found good documentation on this apart from this tutorial on using Apache Cordova with Polymer (though this is Polymer 0.5):
https://blog.nraboy.com/2014/07/use-polymer-apache-cordova/
I've been successful (so far) in using Cordova to build my polymer app and it runs successfully in a browser and on Android (haven't tried iOS yet).
I put all of my html and css in the 'www' directory of my Cordova project and have had no issues with build.
For android the simplest approach would be to create a webView and load your url to it. This kills most of the compatibility issues.
As rendering engine of chrome and web-view are both webkit based, most of thing that runs in chrome,will run in webview as well.
For details
https://developer.android.com/reference/android/webkit/WebView.html
how to display progress while loading a url to webview in android?
Similar thing can be done at IOS as well..
iOS: WebView Loading a url
It will definitely going to increase your workload a bit, however it does give you presence in both app stores.

How to build a cross-platform html5 application for android

I'm new to android development and after scanning the web for this particular issue i'm still confused about how to develop an html5 cross-platform application? Can i do it using eclipse? What are my possibilities? Could you inform me what should I go through and where exactly?
You can use PhoneGap. Visit http://phonegap.com/. It will let you develop cross platform applications using html, css and javasccript.
Also this is the "getting started" page of PhoneGap API.
http://docs.phonegap.com/en/2.4.0/guide_getting-started_android_index.md.html#Getting%20Started%20with%20Android
Cordova plugin:
http://cordova.apache.org/
Happy coding :D
Yes, Eclipse is fine; Google provides an all-in-one package, see http://developer.android.com/sdk/index.html#download; for a HTML/JavaScript app your could have a look at PhoneGap (http://phonegap.com/). They have really good tutorials for beginners. Check http://en.wikipedia.org/wiki/PhoneGap for an overview of features. There are others e.g. Titanium or Appcelerator (see http://developer.appcelerator.com/blog/2012/05/comparing-titanium-and-phonegap.html)

Code generation for iOS and android

I'm searching for a framework to create apps for both Android and iOS from one codebase. I'm aware of Appcelarator and PhoneGap etc. However I need a different kind of product. I'm not sure if it exists. I can't find it here or on google.
We are a team of Android and iOS developers and aren't afraid to build natively. What I want is a tool to help me jumpstart development. Preferably a tool where I can create the basic UI and Models and generate native code to use as basis for further development.
Does such a tool exist?
Have you seen Mono??
iOS
Note: Make sure you following the instructions on the MonoTouch website re installation
Development tools (Free): XCode + Interface Builder (http://developer.apple.com/devcenter/ios)
MonoTouch ($399USD): http://monotouch.net/
Register for developer program/app store ($99USD): Register
Android
Note: Make sure you following the instructions on the MonoDroid website re installation
Development tools (Free): Java JDK, Android SDK
MonoDroid (public beta): monodroid-download
Register for developer program/market ($25USD): Register
Don’t forget for the iOS component you’re going to need to go buy a Mac to use.
Have a look at LiveCode 5 from RunRev.
http://www.runrev.com/
Have you checked out DAPP? I like it quite a bit.
http://dapp.kerofrog.com.au/
Yes you can Generate the code for both Android/ios and many more languages using the Tool Swagger
Please Check the tool,this tool gives the basic UI and Models and generate native code to just like your Requirement.
But You have to right the Swaggger Specification file(it will be on Json or Yaml) for that. And after Writing Swagger Specification file You can downlaod the code for Android/ios and other language as well. So kindly follow the document of swagger. You will get clear idea about that.
Here i list down usefull links of swagger :
https://swagger.io/
https://github.com/swagger-api/swagger-codegen
https://editor.swagger.io/
https://swagger.io/docs/
There's a tool called Genexus for Smart Devices, which is a code generator that supports iOS, Android, Blackberry and Windows 8.
However, you need to learn the tool, and I've found it useful only for simple CRUD apps. It does enable extremely fast development of said apps, it's a good fit for simple LOB apps. I've tried it and deployed to Android (haven't tested on iOS or other platforms).
http://www.genexus.com/SD/mobile-application-development?en
If you're experienced with iOS and Android, you'll probably get frustrated though (and I'm sure the code it generates isn't pretty).
I've used the generator for desktop and web .NET and Java, and works reasonably well (with those caveats), so I'm sure the Smart Devices generator will continue evolving.
Take a look at Flutter, from their docs:
Flutter transforms the app development process. Build, test, and deploy beautiful mobile, web, desktop, and embedded apps from a single codebase.

Offline Web Application HTML5 on Android

I want to develop a HTML5 Web App.
I read that in HTML5, you can use the new feature "Offline Web Applications"
With the *.manifest file
I read an article from november 2010, that this feature only works on the iOS platform.
Does it work on Android now?
Yes. It works on Android as well as iOS and most desktop browsers. You don't need PhoneGap unless you want to access native features or deploy to the App store.
UPDATE:
Check out this chapter from Jonathan Stark's book: Building Android Apps with HTML, CSS, and JavaScript.
In general, http://mobilehtml5.org/ provides nice mobile compatibility tables to answer this and other similar questions.
Yes it can. Here's an example for an offline game:
http://www.davidgranado.com/2010/11/make-a-set-mobile/
The one thing that sucks is that iOS generates a nice icon automatically. However, android doesn't. Also, I noticed that on random versions of android, it will display an error popup about the fact that it can't connect to the internet, but still runs fine after that.

How develop Android applications?

I'm really new with this thing of "Android development" and I was really excited when I found Appcelerator Titanium, but now I got the big surprise, it doesn't work on my computer. What other alternatives are there for Android development specially if they include HTML, JavaScript and CSS for creating such applications?
Everything you need to know is on the official site http://developer.android.com/
There is a very popular alternative for making Android and iOS apps with only HTML and JavaScript. It is called PhoneGap:
http://www.phonegap.com/
I think it is exactly what your looking for.
I hope this helps.
My first port of call would be to try and get on the trial of Google App Inventor. It's a really neat way of making Android apps. You can find out more here: http://appinventor.googlelabs.com/about/
A list of various alternative web-tech-based development frameworks is here
http://en.wikipedia.org/wiki/Multiple_phone_web_based_application_framework
having said that, I have succeeded in running Titanium on Vista and Ubuntu, so if you post the error you are getting someone might be able to help.
App Inventor is fun, although it isn't Javascript based.
You may want to try out Unify, a framework for developing web apps for major platforms (in the moment iOS, Android, webOS - more coming in the future). It is open source and has been released a few days ago. :-)
http://www.unify-project.org/
http://www.unify-training.com/
Get the SL4A app for android. It lets you run python scripts on your android.
Also, look into webview. It let's you load html.

Categories

Resources