Foreword: I've worked through different group archives, as well as
stackoverflow, but did not find a working solution. I also read
through the sources for Intent.java, IntentFilter.java, and
Uri.java ... yet also no clue why my filters do not work out.

Okay, now for what I intent to do ... (pun intent-ed, so this is a
meta-pun?)

I'm developing an open source application manual app. The basic idea
is that the manual itself is a TiddlyWiki running inside an adapted
WebView. Users should be able to install manuals separate from the
corresponding application (so that they are available offline), yet
the manual is also an ordinary app. The original app shall be able to
launch the manual app and this should work even under different
localisation (localized manuals, device settings).

To avoid any URI clashes I want to use my own URI scheme -- and yes,
I've read the posts about that on stackoverflow. I now this discussion
and do not want to engage into religious wars.

In my AndroidManifest.xml I've specified my activity and the filter
for it:
                <activity android:configChanges="keyboard|keyboardHidden|
orientation"
                        android:name="AppManualViewerActivity" 
android:description="@string/
intent_view_manual">
                        <intent-filter 
android:label="@string/intent_view_manual">
                                <action 
android:name="android.intent.action.VIEW"></action>
                                <category 
android:name="android.intend.category.DEFAULT"></
category>
                                <data android:mimeType="text/manual"></data>
                        </intent-filter>
                </activity>

I know that a more specific host or path is missing, but so far I did
not manage to get the whole thing triggering, albeit it should (at
least in my opinion *grin*).

In my code I'm doing the following in order to trigger my activity
through an implicit Intent (this is necessary as later this "client"
will be separate from the manual app):

Intent intent = new Intent(Intent.ACTION_VIEW);
Uri uri = Uri.parse("appmanual:mymanual#topic");
intent.setDataAndType(uri, AppManualMimeType);
startActivity(intent);

And kabush: ActivityNotFoundException. To make this worse: I've set up
an IntentFilter in code and do a match(... intent ...) which returns a
positive match!

I'm totally clueless as to what I'm doing wrong here. Any help deeply
appreciated!

Thanks,
Andro Id

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

Reply via email to