Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nealrs/foohacks-mobile
just a prototype for now.
https://github.com/nealrs/foohacks-mobile
Last synced: 1 day ago
JSON representation
just a prototype for now.
- Host: GitHub
- URL: https://github.com/nealrs/foohacks-mobile
- Owner: nealrs
- Created: 2015-08-07T02:14:20.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-08-07T02:17:37.000Z (over 9 years ago)
- Last Synced: 2023-07-31T17:25:58.445Z (over 1 year ago)
- Language: Java
- Homepage: http://foo.hacks
- Size: 500 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple Webview Boilerplate for Android Studio
This is an Android Studio project that allows you to wrap your website or web app in a super simple Android app.
I wanted a boilerplate that was literally "drag and drop" - I'm pretty happy with this result. Originally, I forked slymax's webview repo but I ended up deleting all the code and making a new branch. I got inspiration from him though so thanks!
It is compatible with Android devices running Ice Cream Sandwich and higher (API 22).
# Setup
- Clone this repo, or hit "Download ZIP" in the Github sidebar.### Local mode (recommended)
- Replace the stuff in `app/src/main/assets/web_content` with your own mobile website.
- Hit Run!### Internet mode
- In `MainActivity.java` (see below screenshot), switch around the commented out URL lines.
- Set your URL...
- Hit Run!### Bonus settings
There are some extra settings in `MainActivity.java` too. They're all code commented so check out the file!
- Toggle Javascript
- Toggle the opening of a full browser when a user clicks a link.# Why?
So you can easily build an Android app in HTML/CSS/JS without using Cordova. And, as awesome as the Chrome home screen bookmark stuff is, for certain projects it might make a lot more sense if people can search through the Google Play / Amazon store.
HTML web apps are totally awesome for layout content and typography. Tons of big apps like Instagram use HTML layouts and CSS styling for parts of their apps.
If you are a web developer who wants to release an Android app, this should help you cut some corners when it comes to learning Java.
# Ideal use
Single page web app with on-screen/no navigation. For example, a game, interactive page, web based slideshow, etc.