Old Deng's android Study Notes (2)-Android gets screen resolutions in N ways, android-android
Android gets the screen resolution
Method 1: the simplest method
12
intscreenWidth=getWindowManager().getDefaultDisplay().getWidth();intscreenHeight=getWindowManager().g
Android development, permission acquisition, and android Development Permission
Turn: http://blog.csdn.net/yawinstake/article/details/6748897
Access registration attributes
Android. permission. ACCESS_CHECKIN_PROPERTIES, read or write the permission to register the check-in database Attribute Table
Get error location
Source Library
BitmapmeshA library that implements the curtain effect.
AndroidindicatorsOne can give the title animation effect of the library, has realized the effect has left and right switch, up and down switch and 3D switching effect.
Zhihu-parallax-animationAware of the Parallax animation effect of the Android client launch page.
TutorialviewA library that allows you to add feature descriptions to your activity.
Access registration attributes
Android. Permission. access_checkin_properties, read or write the permission to register the check-in database Attribute Table
Get error location
Android. Permission. access_coarse_location, which uses WIFI or mobile base stations to obtain the user's incorrect latitude and longitude information. The positioning accuracy is roughly 30 ~ 1500 meters
Get
For the development platform, if the data storage has good support, then the development of the application will have a great role in promoting.
In general, there are three ways to store data: One is a file, one is a database, and the other is a network. Where files and databases may be used a little more, the file is easy to use, the program can define its own format; The database used a bit annoying lock some, but it has its advantages, such as in the massive data performance is superior, the
Frame Android Studio Downloads installation and configuration development environment tutorialHttp://www.111cn.net/sj/android/74261.htm
Win7x64 Android Stuido installation and building development environment problem solvingHttp://www.111cn.net/sj/android/74265.htm
Mac Download install
The number of rows of tablelayout is directly specified by the developer, that is, the number of tablerow objects (or view controls.
The number of columns in tablelayout is equal to the number of columns in tablerow with the maximum number of child controls. For example, if the first tablerow contains two sub-controls, the second tablerow contains three, and the third tablerow contains four, the number of columns of the tablelayout is 4.
Attributes that can be set for tablelayout include gl
Android Lollipop Key Features for developers
Material Design
Focus on performance
Notice
Present on a large screen
Document-centric
Connection performance up to a second level
High-performance graphics
Enhanced audio processing capabilities
Camera and video processing further improved
The application of Android in office
Screens and sharing
New sensor
Author: Zambia chicks
Since its launch, Android has been favored and sought after by developers as an open source. Developers of most Android applications will refer to Dev guide. If you want to gain an in-depth understanding of Android, you must refer to the underlying source code to make it more straightforward.The Androi
Android: gravity and android: layout_Gravity attributes may be frequently used during UI layout.
Many people have explained the differences between these two attributes on the Internet. (Materials are from the Internet)
LinearLayout has two very similar attributes:
Android: gravity and android: layout_gravity.
Their di
[Development Diary of Android in a row from scratch] (8) -- Android data storage (II) and android Data StorageLet's talk about database operations. Come On!When talking about data storage, databases have to be mentioned. Databases are the best tool for storing relational data. Android provides powerful database support
Travel to Android 16th use of various resources in android and travel to android
Use of various resources in android:
In android development, reasonable use of various resources should be defined in their respective xml for reuse;
String Resource: strings. xml, referenced in
Revealing the layout of Android and revealing the secrets of androidPreface
Today, I will write down some understanding of the layout. The main content includes the inheritance relationship between the control attributes, the relationship between the control attributes and the container attributes, and the use of various types of attributes.Property type of the control
Generally speaking, when assigning values to attributes of a control, there are gen
Objective:
Today it's still a hot topic around the recent interview. Android 6.0 right fit to sum up learning, in fact, Android 6.0 rights matching our company is only started this May, is relatively late, but now Android more than 6.0 devices more and more, So the Android 6.0 privilege is essential, and here's how ou
Windows XP-android environment setup-[Comprehensive tutorials on Tanzhou android development], xp-android
Recently, many people in our class won't build the environment. Today, our Tanzhou android teacher talked about how to build the Windows XP-android environment. I secret
The source code of the Android example imitates the animation effects of android and Alibaba Cloud broadcast radar scanning.
This project is a small example of imitating the Android and cloud play radar scanning animation effects. Click the black circle in the middle to start scanning the animation, and click reset again, if you need this effect, you can downloa
Android development will bring about a new wave of popularity. Many developers have invested in this wave and created many excellent applications. Many developers provide open-source applications and contribute their wisdom and creativity. Learning open source code is the best way to master the technology. Several open-source application projects are recommended below. These projects not only provide excellent ideas, but can also be directly mastered.
Objective:
File storage is pretty familiar to us in the process of doing app development, but since the Android 6.0 release, access to external sdcard based on runtime permissions is required to dynamically request permissions, So the previous direct SDcard root directory directly created a xxx/cache/directory to do file storage is not so easy to control, so it is necessary to rethink the knowledge of the Android
[Android development experience] Use Android Studio for unit testing and android unit testing
Reprinted please indicate the source: http://blog.csdn.net/zhaokaiqiang1992
Android Studio has reached version 1.2, and developers in China are basically switching from Eclipse to Andr
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.