Save a media file
Media files such as images and videos created by users should be stored in the external storage directory (SD card) of the device to save system space, and allow users to access these files outside of the device. There are many
Background: when developing enterprise applications using android, it is found that the code structure developed in the traditional mode is relatively poor. The business logic processing and Activity are processed together, and the structure is
The advantages of the flight mode are:
1. You can have a quiet rest time
2. Reduce radiation to the body
3. Saving Power
4. Do not close the alarm
Therefore, it is very useful to set the flight mode.
The following is an example:
Set the required
I have always wanted to write something, but I don't know what to write. I have been learning Android development. I just took this opportunity to practice writing. Well, let's say, today I want to learn about the Android Button control and TextView
In this chapter, we will learn the application of Notification. Many people ask what Notification is? Let me give it an analogy. for travel to the West, Tang Miao is caught by monsters. Then Wukong needs to know which monster has caught his master.
In many cases, some applications that seldom need to interact with users can be run in the background, and we can still run other applications while they are running.
To process this background process, Android introduces the concept of Service.
SeekBar is a child of ProgressBar. Unlike ProgressBar, SeekBar adds a slide that can be dragged. You can move the slider left and right to set the current value for SeekBar, therefore, it is best not to place other controls that can obtain the focus
In android development, layout files are usually described in xml format. Currently, few people are familiar with android layout and beautification, and serious faults have occurred. In most enterprises, programmers are still working on their own.
The result is as follows: I think you have already seen it in many applications. Next let's take a look at how to achieve the sliding drawer effect using SlidingDrawer.
Android. widget. SlidingDrawer class has been added since Android1.5.
Some
In the Android system, the ContextMenu (context menu) is similar to the right-click pop-up menu in the PC. When a view is registered to a context menu, a "Long press" action on the object is executed, A floating menu that provides relevant functions
Notification is the SystemUI part, and the status of notification control is in the following file:
Frameworks \ base \ packages \ SystemUI \ src \ com \ android \ systemui \ statusbar \ tablet \ TabletStatusBar. java
The disable () method in the
We plan to use the interfaces used in the test code as the points, and take the call relationship between interfaces as the lines to gradually crack the Audio veil in Android.
**************************************** * Source Code *******************
Bluetooth permission
To use the BLUETOOTH function in your application, you must declare at least one of two BLUETOOTH permissions (BLUETOOTH and th_admin.
To perform any BLUETOOTH communication (such as requesting a connection, receiving a
Automatic screen brightness adjustment:It is mainly to separate the LIGHT Sensor from the Sensor analysis, so we can analyze the automatic adjustment of the screen brightness (the mobile phone adjusts itself with the LIGHT intensity, that is, when
Write an Acitivity, as shown below:Key Aspect 1: block the HOME button and set FLAG_HOMEKEY_DISPATCHED in onAttachedToWindow.Key Aspect 2: shield the buttons except Power and Home, overwrite the dispatchKeyEvent method, and return true.Public class
Ichartjs is an HTML5-based graphics library. Use the pure javascript language and the canvas label of html5. Ichartjs provides simple, intuitive, and Interactive Graphic components for web applications. Is a web Chart solution. I recently learned
Hosts is a system file without an extension. It can be opened using notepad and other tools. Its function is to associate some common website domain names with their corresponding IP addresses to a "Database ", when a user enters a URL in the
Two programs A and B, and program A have two classes. One inherits Activity, and the other inherits ContentProviderB. The other inherits Activity and creates A database in program, create two tables in the database to enable program B to access the
In order to facilitate the study of the source code on the arm of giants, I specially confuse the source code and compare it with the source code. Use the obfuscation method to add the [plain proguard. config = proguard. cfg] code to the project.
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