If you want to deliver a web application (or just a web page) as a part of a client application, you can do it using WebView. The WebView class is an extension of Android's View class that allows you to display web pages as a part of your activity layout. It does not include any features of a fully developed web browser, such as navigation controls or an address bar. All that WebView does, by default, is show a web page.
In order to import Web App Boilerplate properly, consider the following steps:
-
Clone project:
git clone https://github.com/brenopolanski/webapp-boilerplate
-
Import the project to Eclipse.
-
Open the
WebAppActivity.java
file and edit the following line of code with the link to your web page:/* Constant that represents the web address that will be loaded in WebView */ private final String URL = "http://www.your-page.com";
-
Navigate to paste values/ and edit the file
strings.xml
to add a name for your app:res/ │ ├── values/ │ ├── strings.xml
Rename webapp_boilerplate to the name of your app.
-
Navigate to paste drawable-hdpi/ and add the icon from your web page in your project:
res/ │ ├── drawable-hdpi/ │ ├── icon.png
Obs: Icon (.png) size 72x72 pixels.
- Building and Running the project for Android and view in your SDK.
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -m "Add some feature"
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :)
English is the universal language nowadays, so please don't create or comment on issues using another language.
For detailed changelog, see Releases.