无法下载未知扩展 [英] Cannot download unknown extensions

查看:120
本文介绍了无法下载未知扩展的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法下载(从网络和放大器;从电子邮件)unkwown一些推广,如(* .INI,* .zip文件,* .ddd)
除非存在一个应用程序,可以理解延伸。

例如,我无法下载从浏览器* .ini文件(或电子邮件),直到我下载了'天文'的应用程序。


  1. 你怎么能旁路,使他们可下载?

  2. 您如何注册您的应用程序understan一定的延伸,这样它可以下载?


解决方案

 <活动
        机器人:主NAME =
        机器人:标签=@字符串/ APP_NAME>        &所述;意图滤光器>
            <作用
                机器人:名字=android.intent.action.MAIN/>
            <类别
                机器人:名字=android.intent.category.LAUNCHER/>
                <类别
                机器人:名字=android.intent.category.DEFAULT/>
            <类别
                机器人:名字=android.intent.category.BROWSABLE/>
            <数据
                机器人:计划=文件/>
            <数据
                。* \\\\ INI:机器人pathPattern = />
            <数据
                机器人:主机=*/>        &所述; /意图滤光器>
    < /活性GT;

以上code允许我下载* .ini文件。
谢谢你的帮助。

I cannot download (from web & from e-mail) unkwown extentions such as (*.ini, *.zip, *.ddd) unless there exists an app that can understand the extention.

For example, I couldn't download *.ini file from the browser (or email) until I downloaded 'Astro' app.

  1. How can you by pass so that they are downloadable?
  2. How can you register your app to understan certain extention so that it can be downloadable?

解决方案

    <activity
        android:name=".Main"
        android:label="@string/app_name">

        <intent-filter>
            <action
                android:name="android.intent.action.MAIN" />
            <category
                android:name="android.intent.category.LAUNCHER" />
                <category
                android:name="android.intent.category.DEFAULT" />
            <category
                android:name="android.intent.category.BROWSABLE" />
            <data
                android:scheme="file" />
            <data
                android:pathPattern=".*\\.ini" />
            <data
                android:host="*" />

        </intent-filter>
    </activity>

Above code allowed me to download *.ini files. Thank you for your help.

这篇关于无法下载未知扩展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆