How to launch my app if some one browses any xml file

by Dianne Hackborn » Thu, 18 Jun 2009 16:39:29 GMT


Sponsored Links
 I don't think you can do this because the initial URL interception happens
when the browser is processing the URI, before it has a MIME type.  If it
doesn't find an external activity to handle the raw URI, it will at that
point see if it can handle it internally.  At that point either it will do
so, or only if it can't handle it internally will it start retrieving it (at
which point it finds out its MIME type) and if there is an activity that
contains that MIME type it will hand it off.






-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

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



How to launch my app if some one browses any xml file

by Sujay Krishna Suresh » Thu, 24 Sep 2009 20:34:29 GMT


 


I think wat u r speakin abt is wat a plugin can do.
I'm not sure if plugin development is even possible for android's browser.
But wat u can try is have an intent-filer in your manifest consisting of
action ACTION_VIEW and content-type application/xml.
But 'm not very sure tat it'd work.
U could chk its workin by using a file-browser(like the OI file manager)
app, trying to view a xml/rss file stored in ur phone/sdcard.



-- 
Regards,
Sujay
Jonathan Swift< http://www.brainyquote.com/quotes/authors/j/jonathan_swift.html> ;
- "May you live every day of your life."

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


Sponsored Links


Other Threads

1. How to make the background of ListView transparent

I want to overlay a listView on a map view,

but in my current code ListView overlaps with the background,

is there any way i can make it transparent, so all the text will
appear well formatted and on the map?

Thanks !
--~--~---------~--~----~------------~-------~--~----~

2. Access other variable from other class in the same package !

Dear Pepel !

I am even beginner in Java and thank you very much. I get well your
instruction. I still need your help, please see :

In Cau_1, I set instance like this :
...
    char Cau_1_Answer;


    protected char getCau_1_Answer() {
        return Cau_1_Answer;
    }
    protected void setCau_1_Answer(char cau_1_Answer) {
        Cau_1_Answer = cau_1_Answer;
    }
....

In the class that access :

    char[] AnswerList = new char[10];
...// (1)
     protected void onCreate(Bundle icicle)
    {
        super.onCreate(icicle);
        setContentView(R.layout.result_grammar);
        AnswerList[0] = Cau_1_grammar.getCau_1_Answer; // AnswerList[0]
assignment
...

The error is Cau_1_grammar.getCau_1_Answer cannot be resolved

If I place AnswerList[0] assignment at (1) , the error is Syntax error on
token ";", { expected after this token after the array initialization.

How can I fix it ?










-- 
Many thanks and regards
L THANH TNG
Da Nang, Vietnam

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

3. unable to use eclipse plugin

4. Foreign keys in SQLite tables

5. Eclipse debugger stops at DexFile.defineClass on startup?

6. How can I figure out what I selected from a dynamically populated listview?

7. 0 bytes written when copying a file, why?