Git Product home page Git Product logo

web-mobile-app-sample's Introduction

Web to Android Mobile App

This is simple webview application with basic functionalities

Demo

Download here : Demo Apk

Screenshots

ANDROID WEBVIEW ANDROID NAVIGATION DRAWER

Configurations

Change Package name

  • Change package name in app/build.gradle
applicationId "murait.the.android.mania"

Replace with your package name

applicationId "your.package.name"

Replace Logo

  • Replace logo logo.png in app/src/main/res/drawable/ directory

Website URL

  • Change url variable in app/src/main/java/murait/the/android/mania/HomeActivity.java
private String url = "https://www.theandroid-mania.com/";

App Credentials

  • Change App Name and Other Credentials app/src/main/res/values/strings.xml
<string name="app_name">The Android Mania</string>
<string name="header_title">Murait Technologies</string>
<string name="title_activity_home">The Android Mania</string>
<string name="email">[email protected]</string>
<string name="phone">+919999998888</string>

Push Notifications

  • First thing you need to do is go to (https://firebase.google.com/) and make an account to gain access to their console. After you gain access to the console you can start by creating your first project.

  • Give the package name of your project (mine is murait.the.android.mania) in which you are going to integrate the Firebase. Here the google-services.json file will be downloaded when you press add app button. FIREBASE NEW PROJECTS FIREBASE NEW ANDROID APP FIREBASE NEW ANDROID APP FIREBASE NEW ANDROID APP

  • Copy this Server Key and Sender ID and paste it in Onesignal Account Onesignal Project

AdMob Integration

  • Replace your ads id in app/src/main/res/values/strings.xml
<!-- AdMob ad unit IDs -->
    <string name="admob_app_id">ca-app-pub-XXXXXXXX~XXXXXXXXXXX</string>
    <string name="banner_home_footer">ca-app-pub-3940256099942544/6300978111</string>
    <string name="interstitial_full_screen">ca-app-pub-3940256099942544/1033173712</string>

No Action Bar WebView

Change intent filter in AndroidManifest.xml

    <activity
    android:name=".NoActionBarActivity"
    android:theme="@style/AppTheme.NoActionBar">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
    <activity
    android:name=".SplashActivity"
    android:theme="@style/AppTheme.NoActionBar">
    </activity>

WebView With Navigation Drawer

Change intent filter in AndroidManifest.xml

    <activity
    android:name=".SplashActivity"
    android:theme="@style/AppTheme.NoActionBar">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>

You Are DONE

Blog

Hire Me

Network Profiles

Contact Me

License

GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. https://fsf.org/ Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.

Buy a cup of coffee

If you found this project helpful or you learned something from the source code and want to thank me, consider buying me a cup of โ˜•๏ธ Buy Me a Coffee

Do not forget to give star If its useful to you. :)

๐Ÿ‘ Happy Coding!!!

web-mobile-app-sample's People

Contributors

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