Preface
Here we have accumulated some uncommon and practical code, which is collected every seven updates, hoping to be useful to everyone.
Statement
You are welcome to repost, but please keep the original source of the article :)Blog: http://www.cnblogs.com
Farmer's uncle: http://over140.cnblogs.com
Body
1. Precisely obtain the screen size (for example, 3.5, 4.0, 5.0)
Public static double getScreenPhysicalSize (Activity ctx ){
DisplayMetrics dm = n
I believe that there are a lot of problems during the installation of Android studio, especially when the SDK is not downloaded for the first time. It's depressing.You can go to the official website to download it, or click here to download Android studio and SDK.First, do not down
Common Intent usage in Android-Part 1 (source code download)
Send SMS
When sending a text message, the action we want to use isIntent.ACTION_SENDTOAnd the URI issmsto:Protocol to ensure that the SMS application receives and processes our intent objects, rather than other applications, so as to accurately send SMS messages. If our action is notIntent.ACTION_SENDT
GPB1;Control LEDs need to be completed by 3 registers;Each register can use 4 bytes;Use the low 16 bits of the Gpmcon register to set the two port properties of the LEDs to output;Low 4-bit control LED is illuminated using the GPMDAT register;Use the low 8 bits of the GPMPUD register to turn on the LED light's pull-up circuit respectively.Control LEDControlling LEDs by string: Using the command line or through the Write functionControl led via I/O command: via the IOCTL functionModule parameter
Download Manager was introduced in Android 2.3. As a service to optimize the processing of long-time download operations. Download Manager ensures that every download succeeds by handling HTTP links, monitoring link changes, and system startup.Download the file;public void F
Android Deep Explore ( vol. 1) HAL with Driver Development Learning notes (7)The seventh chapter controls the light emitting diode
LED Driver Implementation principle
2. writing LED Drivers* Create LED -driven device files• Initialize cdev with the cdev_init function• Specify the device number• Use
Implementation of Camera Real-Time Filter on Android platform (7) -- Basic filter creation method (1)
Regarding how to make filters, zhihu's top ticket in this Q A gave a professional answer
In addition, InstagramFilters, an open-source project of githunb, once provided some filter code of the first version of Instagram, which is less than 20 types. GPUImage als
Because the Ubuntu linux12.04 virtual environment on the disc requires the CPU to support virtualization, some PCs may not be able to successfully open the virtualization environment, and AMD's CPU may not. But it doesn't matter. The disc containsSource code(Sources directory ). You only needCodeIn the/root/DRIVERS directory of Ubuntu Linux, open the common. Sh file in the source code root directory, and find the following line.
Ubuntu_kernel_path =/usr/src/linux-headers-3.2.0-29-generic
C
Yong Chuang Tian Ta (TOTEM) game released Game Introduction"Yong Chuang Tian Tower Chinese version" is a fun puzzle game, drawing wind design is very retro, players in the game in addition to collecting hidden scrolls to solve puzzles, play a relatively simple way up the ladder to go up, but the operation is not so easy oh, come download the challenge! "Introduction to the game""Yong Chuang Tian Ta" This is a 3D of agile puzzle Hand tour. In the game,
Note Here is the Thunderbolt 7, not Thunder 6 Oh, so we should see their own version of the Thunderbolt.
1, we must be members only, otherwise can not support offline download function.
2, our members then click on "New", successfully entered the download interface, we will have an offline
Android multi-thread download tool core code sharing, android download Tool
First, we will share with you the core multi-thread download class:Press Ctrl + C to copy the code
Press Ctrl + C to copy the code
The following is the logic code of the interface:
This is my collection of the classic books on Android development, high-definition PDF electronic version, can be downloaded in my Baidu network free of charge, I hope that the need for friends to help. Directory:Android 4 Advanced Programming (full source code included)"Crazy Android Handout""Android App Development (Guo Hongzhi)""
PL/SQL Developer's experience in connecting to Oaracle11g64-bit System in 64-bit Windows 7, download from Windows 7
PL/SQL Developer's experience in connecting to Oaracle11g64-bit System in 64-bit Windows 7I. Problem phenomena and SolutionsSymptom:1. PL/SQL cannot log on to the 64-bit Database2. Enter Chinese in PL/SQL
://github.com/android?page=N
where n means "page", like the second page, is https://github.com/android?page=2
As a result, you can use a bash script to easily write code that crawls the 5 pages (you can execute the following commands directly in the terminal):
for ((I=1; i
there's a shortcut.
Looking at the
Downloading resources offline on the Thunder Dog
Small Tips
★ If you do not have Reyou account number, you can click on the "Login" button on the page of the 1 "registration" buttons to register the Reyou, and then through the following methods to upgrade to membership.
★ As an important value-added services, to use offline download, must be a member of the Thunderbolt. If you are not, you can click the
1, we just open the Thunderbolt, and then find to download the BT seed file, and then we directly copy the address to the Thunderbolt 7 to download the seed file, very simple bar.
2, another way is to copy the address in the Thunderbolt click "New"
3, and then click on the following "Open BT seed file" Af
Multi-thread breakpoint download in Android and android breakpoint download
First, let's take a look at the principle of multi-threaded download. Multi-threaded download is to divide the original files on the same network into equ
that some of the Android SDK's command tools are available directly to the terminal, such as the ADB command.
The code is as follows:
Android_home= $HOME/android-sdk-linux
Export path= "$PATH: $ANDROID _home/tools: $ANDROID _home/platform-tools"
Exprot Android_home
Make environment variables effective
The code i
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.