Comments (3)
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.
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.
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)
- Change string "app_name" to something like "app_name_aboutbox" HOT 2
- Theme support HOT 2
- Add Guide as an option first item on the menu
- Force close on launching AboutActivity HOT 3
- Remove dependancy on Branch.io
- Copyright & Author & About Company HOT 2
- Update to latest Materal About Library HOT 3
- Which activity to add in launch()? HOT 2
- Open about box with a button HOT 9
- Twitter profile doesn't opens HOT 2
- Remove cards from About Activity HOT 3
- Privacy policy is not shown HOT 1
- Facebook link do not open HOT 5
- Web link is opened in general browser intent HOT 10
- Check for leaks
- Add accessibility labels
- Fix "show publisher" for Amazon
- Fix crash for Facebook link
- Fix email subject line
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-about-box.