1. What is density
1) Density
Density represents the number of display points per inch (logical value), its unit is DPI:DOT/inch, usually large screen, density large, screen hours, density small, usually
When the actual screen resolution is 240
Preface
Come to a new company, write code before, I usually find the leader to develop norms. However, many companies do not have any development specifications, or the development of specifications is really very simple, only to modify the
Most of the time, we'll go through the ADB to view SQLite database and table creation
But today I used the "ls" command to view the file, but reported the "Opendir failed, Permission denied" error.
The reason for this error is that the program did
/********************************************************************************************* author:conowen@ Big Bell* e-mail:conowen@hotmail.com* Http://blog.csdn.net/conowen* Note: This article for the original, only as a learning exchange use,
In the startthreadpool () function of frameworks/base/libs/binder/processstate. cpp,
The function was declared at the beginning:
Automutex _ L (mlock );
It's not complicated, but I feel very thoughtful.
In frameworks/base/include/utils/Threads.
/*************************************** **************************************** ************** Author: conowen @ Dazhong* E-mail: conowen@hotmail.com* Http://blog.csdn.net/conowen* Note: This article is original and only used for learning and
Due to xxxx's browser business customization requirements, secondary development is required based on the android browser application. The following section uses the browser source code to share some problems and experiences encountered during the
Some ADB commands are often used in my work. Today I have summarized some common commands of Android ADB, hoping to help you a bit:
1. Install the APK package: Tools> ADB install xxx.apk enter
2. Uninstall the APK package: Tools> ADB uninstall
Message Processing Mechanism in Android Development (II) -- message loop
/*
* Message Processing Mechanism developed by Android (2)-message loop
* Beijing Android Club group: 167839253
* Created on: 2011-9-1
* Author: blueeagle
* Email: liujiaxiang@
Exploration of positioning service (GPS) on Android platform)
Note: Do not forget to add permissions for all of the following operations:
Locationmanager
You can use locationmanager to locate, track, and approaching devices. It
Create a content provider
The content provider Manages access to the central data warehouse. You implement a provider that implements one or more classes in an android application, and adds some elements in the manifest file. You implement a
There are very few BT drivers on the Internet, so I recorded the steps during the development process. For mutual learning and discussion.
1. Migration of Bt DRIVER:
1. enableeffectch in boadconfig. mk
Board_have_bluetooth: = true
2. Implement
Bitmap rotation can also be achieved through matrix or canvas.
The postrotate method is used to set the rotation angle. Then, the createbitmap method is used to create a bitmap object that has been rotated. Finally, the drawbitmap method is used to
Bus Transfer Route Search and transitoverlay
Here, only Java code is provided. For XML code, refer to: learning notes for Android and learning Baidu Map
Important code:
Mkplannode start = new mkplannode (); // start point: Tiananmen start.pt = new
If you want to implement a download function, of course, the ideal function must support multi-task simultaneous download and resumable download, I want to step by step, first of all, the difficulty lies in the multi-task here.
My idea is to start
Recently, for project reasons, we need to implement an incoming call listener and generate a floating window to prompt relevant information (which is inconvenient to disclose ).
Now let me give a rough picture of my ideas and implementation
Telephonymanager is a telephone function-related class in Android, which defines many constants.
To obtain the following information, you must specify the permission in androidmanifest. xml.
I. Data Connection status
Get data connection status: int
Here is a simple source code for making a flashlight:
1. xml layout:
2. actity code:
Package COM. diecolor; import android. app. activity; import android. hardware. camera; import android. hardware. camera. parameters; import android. OS.
Due to limitation of Android tab component I created a custom tabwidget that I am using in couple different projects already. the widget allows us to add custom background and use custom icons, tabs can be top/bottom aligned.
Currently tabs can
Iv. Android-layer source code parsing
On Linux, Android software stacks are encapsulated and used in the upper-layer Java applications. Sleep wake-up is also a command issued from the top layer. Then, the parameter is parsed layer by layer, passed
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.