Coder Social home page Coder Social logo

federico779 / android-smartwebview Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mgks/android-smartwebview

0.0 0.0 0.0 291 KB

Integrated native features to help create most advanced hybrid applications.

Home Page: http://infd.in/490O9

License: MIT License

Java 98.24% HTML 1.76%

android-smartwebview's Introduction

Java

MIT Licence

Android Smart WebView

This project is developed to help you create Hybrid Android applications with just webview. Hybrid app comes in between webview and native forms, with this project you can embed any existing webpage or setup an Offline HTML/CSS/Javascript based project.

Android Smart WebView gathers all necessary information needed to make any simple app as powerful as a native Android app. This project takes only required data from device to obtain information, including, GPS Location, File Manager, Camera for Processing Images, Custom Dialogues, Notifications and more with clean minimal design.

Getting Started

These instructions will help you get your Smart WebView copy up and running on your local machine for development and testing purposes.

Requirement

The project requires minimum Android API 19+ (4.4 KitKat) SDK to test [API 16+ in previous version]. You can use any IDE according to your comfort, I used Android Studio (latest version by the project publish time) for this.

Test Run

Try rebuilding the project in your programming environment, once you are done fixing any error (incase if one comes up), you'll be ready to look into the project.

Permissions

You can remove any of the following requests if you do not need them or you can disable any feature using easy setup variables. Currently, these permissions are must for default variables to work properly.

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.CAMERA"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.VIBRATE" />

INTERNET permission is required if you are requesting a weburl or webpage. WRITE_EXTERNAL_STORAGE is required for camera photo creation, if you have enabled ASWP_FUPLOAD and ASWP_CAMUPLOAD to upload image files.

Easy Setup

Once your project is ready here are some static variables you can change as per your app requirements.

Permission variables

static boolean ASWP_JSCRIPT     = true;     //enable JavaScript for webview
static boolean ASWP_FUPLOAD     = true;     //upload file from webview
static boolean ASWP_CAMUPLOAD   = true;     //enable upload from camera for photos
static boolean ASWP_ONLYCAM		= false;	//incase you want only camera files to upload
static boolean ASWP_MULFILE     = false;    //upload multiple files in webview
static boolean ASWP_LOCATION    = true;     //track GPS locations
static boolean ASWP_RATINGS     = true;     //show ratings dialog; auto configured, edit method get_rating() for customizations
static boolean ASWP_PBAR        = true;     //show progress bar in app
static boolean ASWP_ZOOM        = false;    //zoom control for webpages view
static boolean ASWP_SFORM       = false;    //save form cache and auto-fill information
static boolean ASWP_OFFLINE     = false;    //whether the loading webpages are offline or online
static boolean ASWP_EXTURL      = true;     //open external url with default browser instead of app webview

Configuration variables

Complete URL of your website, landing page or local file as (file:///android_res/dir/file.html)

ASWV_URL      = "https://github.com/mgks";	//domain, or directory or locating to any root file

If file upload enabled, you can define its extention type, default is "*/*" for all file types;

Use "image/*" for image types; check file type references on web for custom file type

ASWV_F_TYPE   = "*/*";

Getting GPS Location

If ASWP_LOCATION = true then the app will start requesting GPS locations of the device on regular basis and all of the recorded data will be sent to the webpage in form of cookies, with updated live GPS locations.

COOKIE "lat" for latitude
COOKIE "long" for longitude

License

This project is licensed under the MIT License - see LICENSE.md file for details or read MIT license.

Get Android Smart WebView Pro

ADDITIONAL FEATURES:
- Firebase Push Notifications
- AdMob
- Navigation Drawer
- Search Bar
- Action Menu
- Chrome Tab for External URLs
- And more

Or need a Custom and Smarter WebView for your Business? Contact me at - [email protected]

Acknowledgment

Rating method (Android-Rate) used in this app is developed by hotchemi and thanks to other programmers who contributed to this project.

Post in Github Repo issues section if you got any problem handling the project and if you want to contribute, you're most welcome to help me make a smarter project than what it is. Just drop me a mail at: [email protected]

This project on Infeeds - Android Smart WebView open source to upload files, get GPS locations and more advanced features

A personal note: You all must keep up with programming. It's sometimes difficult and sometimes easy but fun afterall, you can create your own world with programming and that's the beauty of it. So, all the best for your next creation.

This project is initially developed by Ghazi Khan.

Profile

android-smartwebview's People

Contributors

mgks avatar es-que avatar will-ks avatar starman1108 avatar timhj avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.