How to use browser to show help delivered in apk
I would like to use browser to show html help for my application.
I was planning to send intent like this: How to launch browser to open local fileHere are my approaches I have considered:
Copy files to sdcard at installation
-I don't know. Is it even possible?Store files to assests
-I don't think browser can access my apps assetsStore files to assets and copy them to sdcard when application is started
-Uggly and no-pro
Any ideas how this should be done right?
- You can't copy files at installation but you can do it when help button is clicked. But help will be loaded in other application and it may be not very convenient.
- You can put help into
assets
folder but other application will not be able to access until you implement your ownContentProvider
. But in this case you can show help in your ownActivity
with aWebView
inside. - This approach is equal to and more correct than the first one.
精彩评论