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. SharedPreferences not persisting

I've been trying to save some state variables in the SharedPrefs, this
seems to work fine when onPause, and onStop are called but not when
OnDestroy() is called. When that happens the next time my activity
loads the preference values have disappeared.

Here is the code I use to save the variables:

SharedPreferences settings = getSharedPreferences("PrivateVariables",
MODE_PRIVATE);
SharedPreferences.Editor prefEditor = settings.edit();
prefEditor.putBoolean("playingState", playingState);
prefEditor.putString("songInfo", songInfo);
prefEditor.commit();

and here is how I retrieve them:

prefs = PreferenceManager.getDefaultSharedPreferences(context);
playingState = prefs.getBoolean("playingState", true);
songInfo = prefs.getString("songInfo", " No Value ");

Is anything I'm doing obviously wrong?

-- 

2. What is the best phone for a beginning developer?

About me: Ubuntu 10.10, proficient in python, know a little shell
scripting.

I currently have an Acer S100, which I can't get adb to work with. I
am sick of the phone not doing the stuff I want it to, like run python
and interface with Ubuntu. I want to get a new phone for this reason,
and because my screen is cracked to bits. Without considering cost,
what phone do you recommend? I'm not necessarily looking to do
{*filter*} app development, just want something that works well where I
can easily customise the OS and run my own programs (Isn't that the
point of android, afterall?). A physical keyboard is preferred but not
necessary. Thanks!

-- 

3. What's the general consensus on the non-Android affiliated app stores?

4. ADB Failed - Dalvik Debug Monitor

5. Unable to ever see SCAN_RESULTS_AVAILABLE_ACTION

6. GLIBC 2.11 needed for emulator in SDK 2.3 Problem on Fedora 9

7. Android Get Source bugs JDK + Repo