Android determines the current network status of the mobile phone
Code:
Public void Network () {connectivitymanager CM = (connectivitymanager) This. getsystemservice (context. connectivity_service); networkinfo WiFi = cm. getnetworkinfo
I have never studied Linux. Recently, I learned how to configure the android environment on ubuntu11.10 64bit, and encountered some problems.
1) install software
Install software on Ubuntu. Pay attention to the two key points.
A. change to the
Original address (http://blog.csdn.net/caoxinst/article/details/8091678)
Recently, I am working on a demo that includes multi-touch processing, socket communication, and collision detection! The completeCodePublished! We encountered some
Steps for downloading Android source code
Download and install the GIT tool in windows.Http://code.google.com/p/msysgit/downloads/list
Run the following command to check the number of Android git source code libraries:
Git
1. When the project contains a large number of images or the picture is too largeMethod 1: proportional reduction of images
Bitmapfactory. Options = new bitmapfactory. Options (); options. insamplesize = 4
Method 2: Use soft references to images
I. sending MMS:
MMS is much more troublesome than SMS. It can be seen from the parameters of the sendmmsworker function: (Conv, mmsuri, persister, slideshow, sendreq) Context, Uri, pdupersister (PDU is used for MMS ), slideshow contains all the MMS
When HTML is displayed in webview, a blank area appears on the right, as shown in:
At the beginning, we thought it was a blank page. later, I found that there was no problem with the webpage itself, and the blank area was consistent with the
The following analysis is based on the four main components (Activity, broadcastreceiver, service, contentprovider) Is also the core part of MMS:
I. Activity
1, Conversationlist dialog list interface, which is the main interface to enter the
In Android Application Development, preferences, which are used as the configuration environment, are widely used. I will introduce the usage of sharedpreferences in Android in detail. Let's take a look at the effect of the configuration screen.
Is
1) sorting
Listview obtains the content data through the adapter. You can sort the data list before providing it to listview:
Private list getdata (){
List List = new arraylist ();
// Add data...
// Sort the list
If (! List. isempty
Listview obtains the content data through the adapter. You can sort the data list before providing it to listview:
Private list getdata (){
List List = new arraylist ();
// Add data...
// Sort the list
If (! List. isempty ()){
Chrome for Android contentshell
Currently, there are two ways to compile chrome for Android. One is to compile libchromeview In the Rom compiling environment. so, the second is to use the code of the chromium trunk to compile the contentshell (a
In the next version of Android, I think it is 4.3. What improvements will be made to the graphic performance? Chet Haase and Romain guy, graphics experts from the android team, gave us some information on the performance of Android graphics in the
To facilitate the debugging of the android4.1 System Browser code on a mobile phone (Galaxy Note with cm10) and conduct code research, I compiled the system browser into an independent application, it will not conflict with the original system
From: http://my.oschina.net/mybug/blog/59984
Object conditions:
First, the object to be transferred must: Implements serializable
Second, do not include bitmap in the object, or an error will be reported:
Third: At the transfer end:
Intent
Li huaming himiOriginal, reprinted must be explicitly noted:Reprinted from[Heimi gamedev block]Link: http://www.himigame.com/android-game/374.html
Listview: it is one of the most commonly used system components in the Android Application
This article is selected from the android Development Authority guide.
In section 4.5.6, we introduced a label that can reference another layout file in the layout file and overwrite all Layout-related attributes of the root node of the referenced
Android drivers are similar to Linux drivers, but JNI technology is required to call open, close, read, write, and other functions in C language. In this experiment, a data transmission driver is used as an exercise. Describe the problems
In the official documentation released by androidsdk, the concepts of important States contained in the activity and conversion between them have been described in detail, however, the taste of Liko is always profound only when I have tasted it
I collected some good Android learning websites and hope to help you:
1. http://developer.android.com/
The official Android website is blocked, and the wall flip software is required.
2. http://www.eoeandroid.com/index.php
Largest Android
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