Git Product home page Git Product logo

Comments (3)

mikemee avatar mikemee commented on July 18, 2024 1

The readme has an example of this, as you likely noticed:

        // app publisher for "Try Other Apps" item
        aboutConfig.appPublisher = APP_PUBLISHER;

        // if pages are stored locally, then you need to override aboutConfig.dialog to be able use custom WebView
        aboutConfig.companyHtmlPath = COMPANY_HTML_PATH;
        aboutConfig.privacyHtmlPath = PRIVACY_HTML_PATH;
        aboutConfig.acknowledgmentHtmlPath = ACKNOWLEDGMENT_HTML_PATH;

However, to make this more explicit, here are some of the constants we've defined for our Logic Puzzles app:

    public static final String EMAIL_ADDRESS = "[email protected]";

    private static final String LOG_UI_EVENT_NAME = "About";
    private static final String FACEBOOK_USER_NAME = "EggheadGames";
    private static final String TWITTER_USER_NAME = "eggheadgamesllc";
    private static final String WEB_HOME_PAGE = "https://eggheadgames.com/";
    private static final String APP_PUBLISHER = "\"Egghead Games\"";

    public static final String GUIDE_HTML_PATH = "file:///android_asset/html/help.html";
    public static final String COMPANY_HTML_PATH = "file:///android_asset/html/company.html";
    public static final String PRIVACY_HTML_PATH = "file:///android_asset/html/privacy.html";
    public static final String ACKNOWLEDGMENT_HTML_PATH = "file:///android_asset/html/acknowledgment.html";

I.e., so create a new folder html in the Android Assets location, put some html files there, and you should be ready to go. The APP_PUBLISHER is something you get from Google Play.

Hope this helps! Please re-open if you have more questions!

from android-about-box.

mikemee avatar mikemee commented on July 18, 2024 1

What about Leave Review?

If you set aboutConfig.appPublisher then it should be automatically added.

when I tap on Privacy Policy/About/Acknowledgement nothing happens

Did you provide the HTML files in your app? It is not designed to get them from the internet. See example above.

from android-about-box.

Kvaibhav01 avatar Kvaibhav01 commented on July 18, 2024

What about Leave Review? How to implement that?

Also, when I tap on Privacy Policy/About/Acknowledgement nothing happens. Can you tell me more clearly what code should go inside:

 public void open(AppCompatActivity appCompatActivity, String url, String tag) {
               // handle custom implementations of WebView. It will be called when user click to web items. (Example: "Privacy", "Acknowledgments" and "About")
            }

I want to open some HTML files from internet (browser).

from android-about-box.

Related Issues (20)

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.