In the past, Corba can call cross-process requests. In Java, RMI can also call cross-process requests; in Android, The AIDL Service can be used to call services across processes.
Android remote Service calls are similar to Java's RMI. In the same
Screen Size1. Different layout
The screen sizes of Android mobile phones vary by 480x320,640x360,800 x. How can an App automatically adapt to different screens? In fact, it is very simple, just need to create different layout folder under the res
Effect
When you click the Home key, it will pop up to select one of the two luncher items ~ LuncherTest is our custom
It is okay to add three lines of code in the center of the started activity. You can set the specific content of LuncherTest
I will not talk about how to listen for device plugging and obtain Device Permissions. You can search for many articles on the Internet. Here I will talk about how to read and write data.
USB interface = USB device. getInterface (0); //
Retrieve the Status Bar Height
1. Traditional Method: Sometimes the value is 0. solution 2:
CodeRect frame = new Rect ();GetWindow (). getDecorView (). getWindowVisibleDisplayFrame (frame );Int statusBarHeight = frame. top;
II. The value may be 0
Whether to select round-robin or push based on actual business needs, such as the demand for high real-time messaging, for example, micro-blog notifications or news, it is best to use push. However, if only common message detection such as update
Public class CircleView extends View { Private int maxProgress = 100;Private int progress = 30;Private int progressStrokeWidth = 4;// The area of the circular areaRectF oval;Paint paint; Public CircleView (Context context, AttributeSet attrs ){Super
Main involved classes: MediaPlayer(1) When a MediaPlayer object is created or the reset () method is called, it is idle and ended after the release () method is called.1. After a MediaPlayer object calls the reset () method, calling other methods
Android sound SoundPool: soundpool 1 not retry
SoundPool is used in development today. When soundpool 1 not retry cannot play the sound, MediaPlay can
After some research, we found that:
Unable to play the sound because of the soundpool 1 not
In android development, especially in development related to network access, you must determine whether the mobile phone is connected to the network. Is the following a clip that determines whether the mobile phone is connected to the
It feels good to log on to a logon interface on the Internet. Let's share it with you ~ First look:
In addition to buttons, cats, and logos, this Demo uses code to implement other UIS.
I. background
The background blue gradient is set
The SlideMenu project depends on the ActionBarSherlock open-source project, so you need to download two open-source projects to study it.
Use Git:
SlideMenu: https://github.com/jfeinstein10/SlidingMenu.git
ActionBarSherlock:
This article describes how to change the background when a Button is pressed or not pressed without using java code.
First, prepare two images: button-pressed and button-not-pressed.
Create a button_selector.xml file in the res/drawable
Recently, when I was reading some android audio code, I had a new idea about getMinBufferSize, and the previous Code finally got rid of it.I would also like to thank my brother ldh_123456 for his reply and help me understand this.The detailed call
The usage of progress bars and tabs in android briefly introduces the use of progress bars, but this article only introduces the use of general progress bars (including the title bar progress bars and horizontal progress bars, in this article, we
The Android SDK provides three types of animations: Compensation animation, frame-by-frame animation, and interpolation attribute animation. Next we will first introduce the first animation effect-the animation of the population.
The compensation
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