Debug Intent Filter?

by djking » Thu, 02 Sep 2010 01:58:51 GMT


Sponsored Links
 Trying to launch my app via the Intent Filter, I've read, and re read
the guide
 http://developer.android.com/guide/topics/intents/intents-filters.html 
but no luck.

Is there anyway to watch how the browser is doing the matching and see
why my filter fails?

I have two filters for my main activity.  The first one works.

           <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category
android:name="android.intent.category.LAUNCHER" />
                        </intent-filter>
                <intent-filter>
                        <action 
android:name="android.intent.action.MAIN"></action>
                                <category 
android:name="android.intent.category.BROWSABLE"></
category>
                                <category 
android:name="android.intent.category.DEFAULT"></
category>
                                <data android:scheme="http" 
android:mimeType="application/
liveurl"></data>
               </intent-filter>

I have a simple servlet that sets the mime type to application/
liveurl, the emulator's browser tries to download the content and then
says there is no support of the content on the phone.  I'm stuck on
what could be wrong.  Can an activity not be both a main and a
browsable?  Is the code I'm missing in the activity to respond to
being browsable that's causing this to fail?

Any help?

- Peace
Dave

--



Other Threads

1. REG: Xml to Wbxml using EAS.

Dear friends,

I need to convert from Xml to Wbxml for Client-Server Communication
using AirSynC (Microsoft Exchange Active Sync Protocol).

I found XML to WBXML parsers available in  ../dalvik/libcore/xml/src/
main/java/org/kxml2 but there was no official documentation regarding
these apis.

Inbuilt Google IM Application available in ../packages/apps/IM makes
use of separate XML<-->WBXML parsers instead of using existing
org.kxml2 package listed above

and makes use of Native call for SynCML Tag Table mapping.

My doubts are as follows:

1.      Why ../dalvik/libcore/xml/src/main/java/org/kxml2 docs aren
available, is it still in development stage?
2.      Why Inbuilt IM Application has gone for Native Code and own Parsers
instead of using ../dalvik/libcore/xml/src/main/java/org/kxml2 apis?
3.      In ../dalvik/libcore/xml/src/main/java/org/ package, Support for
SynCML, WV & WML. Could I get the sample Codes using these apis?

Once I get the sample for SyncML , I need to change the XML<-->WBXML
mapping based on AirSync(EAS) instead of XML.

Please guide me.

--~--~---------~--~----~------------~-------~--~----~

2. How to get the ADT plugin source code?

Hi,all
I want to know the ADT plugin whether open source  and How to get the ADT
plugin source code ?

thanks lots!

-- 
Boern Parx

--~--~---------~--~----~------------~-------~--~----~

3. Image display from a url

4. OnClickListener problem with ArrayList in onCreate

5. Items in ListView don't get selected using touch

6. Android @ Open Source Bridge conference

7. Google Maps callout box