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
The Audiomanager class is located on Android. Media package, this class provides access to control volume and sound mode operation
The following are the Audiomanager ways to set the sound mode and adjust the sound size.
How to get the Sound manager:
The code is as follows
Copy Code
Audiomanager Audiomanager = (audiomanager) getsystemservice (Audio_service);
The Main method inside:
A, set the sound mode
Introduction to Android Development (20) content provider 20.3 predefined query characters
Introduction to Android Development (20) content provider 20.2 ContentProvider use
Getting Started with Android development (20) content provider 20.1 data sharing
Getting Started with Android development (19) database 19.3 pr
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
[Android Wear] android wearable device Moto 360 evaluation and development analysis, Android androidPreface:
I just bought Moto 360 yesterday. This is the best Android wearable device that the landlord has seen so far, a round watch:
BesBuy and the official website are all sold out .. This is what I heard from the auth
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
[1] Android learning notes [the first android program], Android android
1. java JDK configure java System Variables
Java JDK
Please install it on Baidu
Configure java System Variables
1. Open my computer -- properties -- Advanced -- Environment Variables
2. Create System variables JAVA_HOME and CLASSPATH
Variable name
Android-the first Android program, android-android
Directory structure and functions of Android Projects
Directory
Function
Gen
Do not modify automatically generated files
Assets
Resources needed for custom projects, which canno
Android [android] edition Air Video remote playback of computer videos, Android android
In Apple's iOS, there is an application of Air Video, which can remotely play videos in the computer on iOS through Wifi without copying the Video to the mobile phone. Very easy to use! I recently used my
Wang Wenjun, chief architect of Xiaomi technology miui, confirmed the topic of his speech: compilation, installation and operation of Android programs.
Lecturer profile: Wang Wenjun, Master of Science and Technology University of China, formerly IBM system engineer, is now the chief architect of Xiaomi technology miui and author of The Open Source C compiler project UCC.
Topic Introduction: compile, install, and run
Tutorial Index
Android drag and drop tutorial
Android plotting (drawables) Tutorial
Android styles and themes tutorial
Live wallpaper tutorial
Homescreen widgets tutorial
Custom views for Android (M m views) Tutorial
Android supports support for different screen siz
First, build the Android development environmentGetting ready: Download Eclipse, JDK, Android SDK, ADT Plugin: eclipse:http://www.eclipse.org/downloads/Jdk:http://www.oracle.com/technetwork/java/javase/downloads/jdk7u9-downloads-1859576.htmlAndroid sdk:http://developer.android.com/sdk/index.htmlAdt:http://developer.android.com/tools/sdk/eclipse-adt.html1. Install and configure the Java Development environme
I. Differences between Android: gravity and Android: layout_gravity
Android; gravity is the position of its content relative to its own control, while Android: layout_gravity is its position relative to its parent class.
For example, if there is an edittext file, one sets Android
Android app source code is based on android's campus second-hand Transaction System Client + SERVER + database, Android android
The source code is a campus second-hand transaction system application with a server, and is also a campus second-hand Transaction System Based on Android and javaweb, including
The Android NDK is preceded by the "native" word in the SDK, native Development Kit, which Google calls "NDK".
As we all know, the Android program runs in the Dalvik virtual machine, NDK allows users to perform part of the program using native code languages such as C + +.
The NDK includes:
The tools and build files needed to generate a native code base from C + +.
Embed a consistent native library in a
Welcome to Android Studio (Meet Android Studio) 1, prefaceAndroid Studio is an Android application development environment based on IntelliJ idea under the official whole. Based on IntelliJ's powerful code editor and development tools, Android Studio offers more features to increase your efficiency in developing
Android development interview post-3. common Android advanced pen questions, android advanced
Follow finddreams blog: http://blog.csdn.net/finddreams/article/details/44301359In the previous article, we have learned some basic questions about the Android test. Android develo
Android android source code case when adding the volume plus/minus button in the navigation bar, Android android
Some Android devices do not have a volume adjustment button for the entity, or you need to add a volume addition or subtraction button to the virtual buttons in t
Android android APK decompilation reverse, Android android apk
The reverse of the android APK program is much easier than that of the WindowsPE file.1. the android APK program is actually a zip file that can be opened with winrar
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.