Giter Club home page Giter Club logo

android-universal-web-content-loader's Introduction

Android-Universal-Web-Content-Loader(UWCL)

###WHAT IS THIS :-

Universal Web Content loader is Native in App brower which help developers to embed web contents in there apps with just one line of code. Web contents can we of any type - youtube playlist, Facebook page, in App Google search or payUMoney payment trannsactions.

WHEN TO USE :-

If your app requires loading of web contents in your app and you dont want to waste your timing embedding webviews and writing webview and chrome clients.

###HOW TO USE :-

Usin this project is very simple :-

  • Drop this fragment in your UI package along with universal_web_view.xml and video_progress.xml.
  • Load web contents in your application with the help of just single line of code.
  • This Fragment class supports all type of web content & can be used in many scenarios such as :-
  1. you can embed youtube playlist in your App. The UniversalWebContentLoader(UWCL) allow user to play Videos in portrait mode as well.

     		getSupportFragmentManager()
     				.beginTransaction()
     				.add(R.id.frag_root,
     						UniversalWebViewFragment.newInstance(
     								YOU_TUBE_DEMO_URL, false)).commit();
    
  2. You can use this fragment for payment gateway like PayUMoney.(*just a word of warning WebViews are not very secure ,feel free to share wisdom and make code better) )

     	getSupportFragmentManager()
     						.beginTransaction()
     						.add(R.id.frag_root,
     								UniversalWebViewFragment.newInstance(
     										PAYU_MONEY_URL, false))
     						.commit();
    
  3. Display your Facebook page in the App for latest news or load your twitter page for latest tweets.

    getSupportFragmentManager() .beginTransaction() .add(R.id.frag_root, UniversalWebViewFragment.newInstance( FACEBOOK_DEMO_URL, false)).commit();

  4. It also allow you to search contents in Google in your App.Just pass searchQuery and true in arguments to load search results.as shown in code below

     				getSupportFragmentManager()
     						.beginTransaction()
     						.add(R.id.frag_root,
     								UniversalWebViewFragment
     										.newInstance(
     												((EditText) findViewById(R.id.serach_edt))
     														.getText()
     														.toString(),
     												true)).commit();
    

Attached sample will demostarte some of above use cases :-

###Android Studio Project Screenshots

Alt text Alt text Alt text Alt text Alt text

###Eclipse Project Screenshots

Eclipse project is depricated

Copyright 2015 Hitesh Kumar Sahu

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

android-universal-web-content-loader's People

Contributors

hiteshsahu avatar

Watchers

 avatar  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.