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. What's the little clock by one of my contacts mean?

One contact always shows a little green clock by their name - this is
in every app like messaging, dialler etc. What's this mean? This is on
my N1. It looks like the time is either 9 oclock or quarter to 12.

--

2. Problem with AlertDialog.Builder

Hi everyone.
I'm having problem with creating AlertDialog. I would like that
AlertDialog appears when i click on one button, so i put all code for
creating dialog in that button listener...the same code works outside
that listener but inside listener doesn't work...it doesn't call any
errors but when i start emulator written is something about this:
Aplication has terminater unexpected"....

This is my code for that:

btsenddata.setOnClickListener(new Button.OnClickListener() {


                public void onClick (View v){

                                AlertDialog.Builder alt_bld = new
AlertDialog.Builder(getApplicationContext() );
                                alt_bld.setMessage("Do you want to close this 
window ?")
                                .setCancelable(false)
                                .setPositiveButton("Yes", new
DialogInterface.OnClickListener() {
                                public void onClick(DialogInterface dialog, int 
id) {
                                // Action for 'Yes' Button
                                }
                                })
                                .setNegativeButton("No", new 
DialogInterface.OnClickListener()
{
                                public void onClick(DialogInterface dialog, int 
id) {
                                // &nbsp;Action for 'NO' Button
                                dialog.cancel();
                                }
                                });
                                AlertDialog alert = alt_bld.create();
                                // Title for AlertDialog
                                alert.setTitle("Title");
                                // Icon for AlertDialog
                                alert.setIcon(R.drawable.icon);
                                alert.show();
                }});


.... i've heard that method getApplicationContext() is creating some
problems but i've tried replace it with activity.this and it doesn't
work anyway...

--

3. Problem playing audio on android

4. (Update) Talking to wpa_supplicant for TTLS / PEAP / TLS (Runtime+wpa_cli / JNI / LocalSocket(Unix domain socket) / wpa_supplicant.conf?)

5. how to convert mp3to PCM format in android

6. Create a log screen with a dialog!

7. Rogers Rockin鈥?Acer Liquid e With 2.1