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. building to support both contacts 1.6 and 2.0 apis




I am reasonably certain that if you compile the app for 1.6 but run on 2.0, the 
contacts code will work.  The caveat here is that you will only get the raw 
contacts from the master account, rather than the combined contacts from all 
active accounts; the older API just doesn't have the functionality needed to 
handle combined accounts.

I think the 1.x contacts code is *supposed* to work when targeting 2.0, but 
most people seem to use private contacts API (often without knowing this), and 
/that/ breaks in 2.0.  From what the Google folks have said on list, however, 
I'm fairly sure the core, public, authorized and official 1.x API still works 
even if you target 2.0, albeit with the same caveats as above.

If I'm wrong on that, no doubt one of the Google folks can correct.

-- 

2. Undur diri dulu

Dear master dan sifu ..
Mohon maaf 
Per hari ini saya undur dulu dari milis ini {*filter*}tara

Cuman no-mail.

Karena robot ijo-nya dah dipiara temen disini juga.

Dan mau keluar kota sebulan,
Jadi gak sempet ngoprek si ijo..

Thanks buat ilmunya.
Nanti join lagi someday

Ciao
Ids

www.indraracing.com


--~--~---------~--~----~------------~-------~--~----~
=========================
Google Groups "Indonesian Android Community [id-android]" group.

To post to this group, send email to id-android@googlegroups.com

To request to subscribe to this group:

Click   http://www.***.com/ 
          Choice Apply for Group Membership

or 

 Please visit the following page:
  http://www.***.com/ 

To send a message to the owner, visit the following page:

  http://www.***.com/ ;hl=en-GB    or  
 
    id.andr...@gmail.com

For more options, visit this group at
 http://www.***.com/ 

To unsubscribe from this group, send email to
id-android+unsubscr...@googlegroups.com

Indonesian Android Community on Facebook

 http://www.***.com/ 

=========================
-~----------~----~----~----~------~----~------~--~---

3. what happened to my application's statistics?

4. Weird EditText behavior in Android 2.0

5. Network File Transfer Android Apps

6. Overriding onPrepareOptionsMenu

7. getting error while importing com.google.googlenav.map.MapPoint; ..........