Layout_width or layout_height in the layout file of Android may sometimes specify a specific unit, such as PX, dip, or sp. Android123 briefly introduces common units, for example
Px (pixels) pixels-generally, we use hvga to represent 320x480 pixels,
Read the SD card file information and add it to the listview to display it:
Listview obtains the information of the SD FileCode:
List List = new arraylist (); string sdstatestring = environment. getexternalstoragestate (); If
From: http://www.r-base.net/archives/442
In Android UI development, if you use XML to configure layout, we can easily implement compatibility issues with different resolutions (using dip units ). however, if you cannot use XML to configure layout in
The sample code is as follows:
Frameworks \ base \ Services \ surfaceflinger \ tests \ screencap. cpp
/* * Copyright (C) 2010 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this
what is wi-fi?
Wi-Fi is a technology that can connect PCs, handheld devices (such as PDAs and mobile phones) to each other wirelessly. Wi-Fi is a brand of wireless network communication technology, held by the Wi-Fi Alliance.
Wi-Fi was originally
Recently, we have a project requirement to achieve horizontal slide view switching (display by PAGE)
The first thing that comes to mind is imageswitcher + viewfilpper. I don't want to use this effect, let alone the customer's feeling: The sliding
For example, if you want to force the software display to change the software interface as the device turns, you can use Android: screenorientation to force the software screen display direction.Note that the red part is modified.
Exception scenarios:
It is often necessary to process time-consuming work in applications, such as reading large files and accessing network resources. In order to avoid poor user experience caused by program death, we can solve this problem through
Yes, although I have been developing Android for almost two years, I am ashamed to tell the truth that I really don't know what intent-filter is.
Today, I finally looked at the action in intent-filter.
Before talking about action, I would like to
How to read the source code of other android projects?I joined a company through an interview some time ago and began to read the source code of the project they had worked on. So I have some feelings. I would like to share with you here. It may be
These two methods are not invented by me. They are all public debugging methods provided by some experts on the Internet, but cannot find the source. So let's sum up here to facilitate debugging in Android:
Brief description:
It is very easy to
The volume service of Android is mainly used to manage external storage devices such as USB/SD card. The platform can perform operations and polling on external storage devices. When the status of the external storage device changes, the volume
If you only use services locally in an application and do not need to work across processes, You can implement your own binder class, use it to directly provide your client with the ability to access public methods in the service.
Note:Generally,
This article translated from: http://developer.android.com/training/basics/activity-lifecycle/pausing.html#Pause
During application use, the foreground activity sometimes occupies the display position of other visual components, leading to the
Since the broad application of the framework, we do not have to deal with naked mobile phone operating system APIs and do repetitive, complex, and meaningless things. However, there is no free lunch in the world. We still need to learn how to use
Http://rayleeya.javaeye.com/blog/727074
The memory leakage in Java development often brings us a lot of troubles. Especially for some new users, if you do not pay attention to some details at ordinary times, it is likely to cause very serious
Google has long been demonstrating its ambition to the mobile communication market. After seeing the brilliant test of iOS, the emergence of its Android system attracted a large number of hardware manufacturers and developers.
Nokia's tragedy began
JNI is used in the android project. When proguard is used, it is found that many variables cannot be found in the native method. It was originally optimized by produard. Therefore, use progurad with caution in JNI applications.
Solution:1. Add a
Original article: http://cyher.net/gnulinux/android/android-driver-jogball
1 OverviewJogball is the first Android phone-The trackball pulley attached to HTC Dream. Through jogball, users can easily perform webpage flip and map flip operations,
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.