You could write an intent filter in the following way: <activity android:name=".MyActivity" android:label="@string/ app_name"> <intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" /> <data android:scheme="http" /> <data android:mimeType="?????"/> </intent-filter> </activity>
Here you have to replace "?????" by the mime-type you intend to handle. Then your activity will be called by the browser, and you can use getIntent() ( http://code.google.com/android/reference/android/app/Activity.html#getIntent() ) to get more information about the intent. Peli www.openintents.org On Sep 4, 11:12 am, szeldon <[EMAIL PROTECTED]> wrote: > Hi, > > Currently I'm working on a program that needs to download files using > default browser, saving them somewhere (it may be a mobile/emulator or > SD card on one of them) and then using my program with them. It would > be great if my program could react on specific filetype opened by a > browser, but if that's not possible, I'd at least like save to them. > Opening could be done in my application. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---