What type of help file. If it's an HTML based file, then what else *could* you use besides a WebView?
Alternatively you could just display it in a regular layout with some nice styling, and make it a bit more native within your app, why not just do that? kris On Sat, Feb 4, 2012 at 3:57 PM, Julian Bunn <[email protected]> wrote: > Thanks, Mark - now I understand what is going wrong. I suppose if the > help file were on the > sdcard it would work. > > Is there a recommended way of showing a help file in assets from > within an app - I've searched around and can't find anything > appropriate. Using WebView seems like overkill. > > Julian > > On Feb 4, 3:54 am, Mark Murphy <[email protected]> wrote: > > You have two problems. > > > > First, you are using setClassName() with packages and classes that are > > not your own. > > > > Second, you are telling the opened activity to find a help.html file > > in its own application assets. file:///android_asset/help.html will be > > interpreted in the context of the app trying to use it. > > > > I am not aware of a Uri syntax that will work to have files in one > > app's assets be addressable by another app. > > > > > > > > > > > > > > > > > > > > On Fri, Feb 3, 2012 at 9:45 PM, Julian Bunn <[email protected]> wrote: > > > I am trying to launch the browser to show an HTML help file that is in > > > the assets directory of my .apk. > > > > > My code is: > > > > > Uri uri = > Uri.parse("file:///android_asset/help.html"); > > > Intent intent = new Intent(Intent.ACTION_VIEW, > uri); > > > > > > intent.setClassName("com.android.browser","com.android.browser.BrowserActivity"); > > > startActivity(intent); > > > > > The browser starts up and displays the error message that it can't > > > find the help.html file. I've run out of ideas as to what may be wrong > > > - can anyone please point out where I'm doing this incorrectly? > > > > > Thanks! > > > Julian > > > > > -- > > > You received this message because you are subscribed to the Google > > > Groups "Android Developers" group. > > > To post to this group, send email to > [email protected] > > > To unsubscribe from this group, send email to > > > [email protected] > > > For more options, visit this group at > > >http://groups.google.com/group/android-developers?hl=en > > > > -- > > Mark Murphy (a Commons Guy)http://commonsware.com| > http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy > > > > Android Training in NYC:http://marakana.com/training/android/ > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

