Android Mainfests Notebooks

Source: Internet
Author: User

#Mainfests常用手记一, common permissions
<!-- 允许程序打开网络套接字 --><uses-permission android:name="android.permission.INTERNET" /><!-- 允许程序设置内置sd卡的写权限 --><uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /><!-- 允许程序获取网络状态 --><uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /><!-- 允许程序访问WiFi网络信息 --><uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /><!-- 允许程序读写手机状态和身份 --><uses-permission android:name="android.permission.READ_PHONE_STATE" /><!-- 允许程序访问CellID或WiFi热点来获取粗略的位置 --><uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
Second, splash full-screen styles
<style name="Fullscreen"  parent="Theme.AppCompat.Light.NoActionBar">        <item name="windowNoTitle">true</item>        <item name="android:windowFullscreen">true</item></style>
Handler delay Start
new Handler().postDelayed(new Runnable() {            @Override            public void run() {                startActivity(new Intent(SplashActivity.this,MainActivity.class));            }        },200);                //ms

Android Mainfests Notebooks

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.