美文网首页
oschina学习笔记(03) -- 清单文件分析

oschina学习笔记(03) -- 清单文件分析

作者: 小剑哥 | 来源:发表于2016-09-20 00:17 被阅读26次
    <?xml version="1.0" encoding="utf-8"?>
    <manifest xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
        package="net.oschina.app">
    
    
        <!-- 权限 -->
        <uses-permission android:name="android.permission.INTERNET" />
        <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
        <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
        <uses-permission android:name="android.permission.READ_PHONE_STATE" />
        <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
        <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
        <!--suppress DeprecatedClassUsageInspection -->
        <uses-permission android:name="android.permission.RESTART_PACKAGES" />
        <uses-permission android:name="android.permission.CAMERA" />
        <uses-permission android:name="android.permission.FLASHLIGHT" />
        <uses-permission android:name="android.permission.VIBRATE" />
        <uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS" />
        <uses-permission android:name="android.permission.RECORD_AUDIO" />
        <uses-permission android:name="android.permission.GET_ACCOUNTS" />
        <uses-permission android:name="android.permission.USE_CREDENTIALS" />
        <uses-permission android:name="android.permission.MANAGE_ACCOUNTS" />
        <uses-permission android:name="android.permission.AUTHENTICATE_ACCOUNTS" />
        <uses-permission android:name="com.android.launcher.permission.READ_SETTINGS" />
        <uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
        <uses-permission android:name="android.permission.BROADCAST_STICKY" />
        <uses-permission android:name="android.permission.WRITE_SETTINGS" />
        <uses-permission android:name="android.permission.CALL_PHONE" />
        <uses-permission android:name="com.android.launcher.permission.READ_SETTINGS" />
        <uses-permission android:name="android.permission.WAKE_LOCK" />
    
    
        <!--  -->
        <!--suppress DeprecatedClassUsageInspection -->
        <uses-permission android:name="android.permission.GET_TASKS" />
        <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    
        <uses-feature android:name="android.hardware.camera" />
        <uses-feature android:name="android.hardware.camera.autofocus" />
    
    
        <!-- 屏幕支持的尺寸,都是一些默认值,猜测应该是给应用市场过滤屏幕大小 -->
        <supports-screens
            android:anyDensity="true"
            android:largeScreens="true"
            android:normalScreens="true"
            android:smallScreens="true"
            android:xlargeScreens="true" />
    
        <!-- app级入口,允许备份设为false,降低数据暴露风险 -->
        <application
            android:name=".AppContext"
            android:allowBackup="false"
            android:icon="@drawable/ic_launcher"
            android:label="@string/app_name"
            android:theme="@style/AppBaseTheme_Light"
            tools:replace="android:allowBackup">
    
            <!-- activity入口,闪屏页,屏幕方向是竖向 -->
            <activity
                android:name=".AppStart"
                android:label="@string/app_name"
                android:screenOrientation="portrait"
                android:theme="@style/Theme.AppStartLoad">
                <intent-filter>
                    <action android:name="android.intent.action.MAIN" />
    
                    <category android:name="android.intent.category.LAUNCHER" />
                </intent-filter>
            </activity>
    
            <!-- 主页,单任务栈(如果不在栈顶,被调用时杀死上面的?);当别人发起隐式的oschina.net调用浏览器时,会出现在调用面板上 -->
            <activity
                android:name=".ui.MainActivity"
                android:launchMode="singleTask"
                android:screenOrientation="portrait">
                <intent-filter>
                    <action android:name="android.intent.action.VIEW" />
    
                    <category android:name="android.intent.category.BROWSABLE" />
                    <category android:name="android.intent.category.DEFAULT" />
    
                    <data
                        android:host="www.oschina.net"
                        android:scheme="http" />
                </intent-filter>
                <intent-filter>
                    <action android:name="android.intent.action.VIEW" />
    
                    <category android:name="android.intent.category.BROWSABLE" />
                    <category android:name="android.intent.category.DEFAULT" />
    
                    <data
                        android:host="www.oschina.net"
                        android:scheme="https" />
                </intent-filter>
                <intent-filter>
                    <action android:name="android.intent.action.VIEW" />
    
                    <category android:name="android.intent.category.BROWSABLE" />
                    <category android:name="android.intent.category.DEFAULT" />
    
                    <data
                        android:host="my.oschina.net"
                        android:scheme="http" />
                </intent-filter>
                <intent-filter>
                    <action android:name="android.intent.action.VIEW" />
    
                    <category android:name="android.intent.category.BROWSABLE" />
                    <category android:name="android.intent.category.DEFAULT" />
    
                    <data
                        android:host="my.oschina.net"
                        android:scheme="https" />
                </intent-filter>
            </activity>
            <activity
                android:name=".ui.TweetPubActivity"
                android:label="弹一弹"
                android:screenOrientation="portrait">
                <intent-filter>
                    <action android:name="android.intent.action.SEND" />
    
                    <category android:name="android.intent.category.DEFAULT" />
    
                    <data android:mimeType="image/*" />
                </intent-filter>
                <intent-filter>
                    <action android:name="android.intent.action.SEND" />
    
                    <category android:name="android.intent.category.DEFAULT" />
    
                    <data android:mimeType="text/plain" />
                </intent-filter>
                <intent-filter>
                    <action android:name="android.intent.action.SEND_MULTIPLE" />
    
                    <category android:name="android.intent.category.DEFAULT" />
    
                    <data android:mimeType="image/*" />
                </intent-filter>
            </activity>
            <activity
                android:name=".ui.FindUserActivity"
                android:screenOrientation="portrait" />
            <activity
                android:name=".ui.LoginActivity"
                android:configChanges="keyboardHidden|orientation"
                android:label="登录"
                android:screenOrientation="portrait" />
            <activity
                android:name=".ui.LoginBindActivityChooseActivity"
                android:label="登录"
                android:screenOrientation="portrait" />
            <activity
                android:name=".ui.LoginAccountBindOpenIdActivity"
                android:label="账号绑定"
                android:screenOrientation="portrait" />
            <activity
                android:name=".ui.DetailActivity"
                android:configChanges="keyboardHidden|orientation"
                android:screenOrientation="portrait"
                android:windowSoftInputMode="stateHidden|adjustResize" />
            <activity
                android:name=".ui.SimpleBackActivity"
                android:configChanges="keyboardHidden|orientation"
                android:screenOrientation="portrait"
                android:windowSoftInputMode="stateHidden|stateUnchanged" />
            <activity
                android:name=".team.ui.TeamMainActivity"
                android:screenOrientation="portrait" />
            <activity
                android:name=".team.ui.TeamNewActiveActivity"
                android:configChanges="keyboardHidden|orientation"
                android:screenOrientation="portrait"
                android:windowSoftInputMode="stateHidden|adjustResize" />
            <activity
                android:name=".team.ui.TeamNewIssueActivity"
                android:configChanges="keyboardHidden|orientation"
                android:label="新团队任务"
                android:screenOrientation="portrait"
                android:windowSoftInputMode="stateHidden|adjustResize" />
            <activity
                android:name="com.dtr.zxing.activity.CaptureActivity"
                android:label="@string/actionbar_title_qr_scan"
                android:screenOrientation="portrait" />
            <activity
                android:name=".ui.ShakeActivity"
                android:label="@string/actionbar_title_shake"
                android:screenOrientation="portrait" />
            <activity
                android:name=".ui.SelectFriendsActivity"
                android:label="@string/actionbar_title_select_friends"
                android:screenOrientation="portrait"
                android:windowSoftInputMode="stateAlwaysHidden" />
            <activity
                android:name=".ui.OSCPhotosActivity"
                android:label=""
                android:launchMode="singleTop"
                android:screenOrientation="portrait"
                android:theme="@style/ThemePhotoBrowse" />
    
            <service android:name=".LogUploadService" />
            <service android:name=".service.ServerTaskService">
                <intent-filter>
                    <action android:name="net.oschina.app.ACTION_PUB_BLOG_COMMENT" />
                </intent-filter>
                <intent-filter>
                    <action android:name="net.oschina.app.ACTION_PUB_COMMENT" />
                </intent-filter>
                <intent-filter>
                    <action android:name="net.oschina.app.ACTION_PUB_POST" />
                </intent-filter>
                <intent-filter>
                    <action android:name="net.oschina.app.ACTION_PUB_TWEET" />
                </intent-filter>
                <intent-filter>
                    <action android:name="net.oschina.app.ACTION_PUB_SOFTWARE_TWEET" />
                </intent-filter>
            </service>
    
            <receiver android:name=".broadcast.AlarmReceiver" />
    
            <service
                android:name=".service.NoticeService"
                android:process=":notice" />
            <service android:name=".service.DownloadService" />
    
            <meta-data
                android:name="UMENG_APPKEY"
                android:value="53cb520c56240bbd7d076ce5" />
            <meta-data
                android:name="com.baidu.lbsapi.API_KEY"
                android:value="pIbgtjFevz8LlkbNsYUNl4Qp" />
    
            <service
                android:name="com.baidu.location.f"
                android:enabled="true"
                android:process=":remote" />
    
            <!-- ############ QQ空间和QQ SSO授权的Activity注册 ############ -->
            <activity
                android:name="com.tencent.tauth.AuthActivity"
                android:launchMode="singleTask"
                android:noHistory="true">
                <intent-filter>
                    <action android:name="android.intent.action.VIEW" />
    
                    <category android:name="android.intent.category.DEFAULT" />
                    <category android:name="android.intent.category.BROWSABLE" />
                    <!-- 100424468,如果你使用的公用账号,则不需要修改;否则修改成你在QQ开放平台申请的 APP ID -->
                    <data android:scheme="tencent100424468" />
                </intent-filter>
            </activity>
            <activity
                android:name="com.tencent.connect.common.AssistActivity"
                android:configChanges="orientation|keyboardHidden|screenSize"
                android:theme="@android:style/Theme.Translucent.NoTitleBar" />
            <activity
                android:name=".wxapi.WXEntryActivity"
                android:configChanges="keyboardHidden|orientation|screenSize"
                android:exported="true"
                android:screenOrientation="portrait"
                android:theme="@style/Theme.Transparent" />
            <activity
                android:name=".improve.detail.activities.BlogDetailActivity"
                android:configChanges="keyboardHidden|orientation"
                android:label="博客详情"
                android:screenOrientation="portrait"
                android:windowSoftInputMode="stateHidden|adjustResize" />
            <activity
                android:name=".improve.detail.activities.QuestionDetailActivity"
                android:configChanges="keyboardHidden|orientation"
                android:label="问答详情"
                android:screenOrientation="portrait"
                android:windowSoftInputMode="stateHidden|adjustResize" />
            <activity
                android:name=".improve.activities.TweetDetailActivity"
                android:configChanges="keyboardHidden|orientation"
                android:label="动弹详情"
                android:screenOrientation="portrait"
                android:windowSoftInputMode="stateHidden|adjustResize" />
            <activity
                android:name=".improve.detail.activities.EventDetailActivity"
                android:configChanges="keyboardHidden|orientation"
                android:label="活动详情"
                android:screenOrientation="portrait"
                android:windowSoftInputMode="stateHidden|adjustResize" />
            <activity
                android:name=".improve.detail.activities.NewsDetailActivity"
                android:configChanges="keyboardHidden|orientation"
                android:label="资讯详情"
                android:screenOrientation="portrait"
                android:windowSoftInputMode="stateHidden|adjustResize" />
            <activity
                android:name=".improve.detail.activities.SoftwareDetailActivity"
                android:configChanges="keyboardHidden|orientation"
                android:label="软件详情"
                android:screenOrientation="portrait"
                android:windowSoftInputMode="stateHidden|adjustResize" />
    
            <activity
                android:name=".improve.detail.activities.TranslateDetailActivity"
                android:configChanges="keyboardHidden|orientation"
                android:label="翻译详情"
                android:screenOrientation="portrait"
                android:windowSoftInputMode="stateHidden|adjustResize" />
            <activity
                android:name=".improve.comment.QuestionAnswerDetailActivity"
                android:configChanges="keyboardHidden|orientation"
                android:label="问答答案详情"
                android:screenOrientation="portrait"
                android:windowSoftInputMode="stateHidden|adjustResize" />
            <activity
                android:name=".improve.comment.CommentsActivity"
                android:configChanges="keyboardHidden|orientation"
                android:label="评论列表"
                android:screenOrientation="portrait"
                android:windowSoftInputMode="stateHidden|adjustResize" />
            <activity
                android:name=".improve.comment.CommentExsActivity"
                android:configChanges="keyboardHidden|orientation"
                android:label="评论列表"
                android:screenOrientation="portrait"
                android:windowSoftInputMode="stateHidden|adjustResize" />
        </application>
    
    </manifest>
    
    
    

    相关文章

      网友评论

          本文标题:oschina学习笔记(03) -- 清单文件分析

          本文链接:https://www.haomeiwen.com/subject/mtnnettx.html