// Obtain the image from the cache if it exists. Otherwise, the network retrieves the image and returns the drawable object public static drawable loadimagefromnetwork (context, string imageurl) {drawable = NULL; if (imageurl = NULL) return NULL;
// The action of the system email system is Android. content. Intent. action_send.Intent email = new intent (Android. content. Intent. action_send );Email. settype ("plain/text ");Emailreciver = new string [] {"zhouyongyang122@gmail.com", "421134693@
Install cygwin on Windows
Set windows path: \ cygwin \ bin; \ Android-SDK-Windows \ platform-tools; \ Android-SDK-Windows \ tools; \ android-ndk-r6; \ android-ndk-r6 \ toolchains \ x86-4.4.3 \ prebuilt \ windows \ bin
Set Windows user variable
1. the OOM error occurs when an image is displayed every MS in imageview. solution:
Bitmapdrawable = (bitmapdrawable) image. getdrawable ();// If the image has not been recycled, forcibly recycle the image first.If (bitmapdrawable! = NULL &&!
"Second sessionGoogle summer College Students' blog sharing competition-2011 Android into a long article"
In some application scenarios, we need to make the background of the activity transparent. For example, when developing a prank application,
Android: drawselectofftop In the android listview component
When set to true, the selector will be drawn over the selecteditem. Otherwise the selector is drawn behind the selected item. thedefault value is false.
Android: drawselectid Top = "
1. simpleadapter
Simpleadapter is a simple adapter that maps static data to a view defined in an XML file. You can specify a list supported by data, such as a map composed of arraylist. Each entry in the arraylist corresponds to a row in the list.
The Network Module written in the project is a bit messy: two sets of Code-simulators and real machines, which are very troublesome to maintain.
Solution: the code automatically checks the network environment and calls different networking
Android intermediate multi-thread download
15:50:49
If multi-thread download is required, the same file must be written to any location. in Java, such a class can be written to randomaccessfile.. Multi-threading allows you to split a file into
This article implements a simple phone listener that uses toast to indicate the different statuses of incoming calls;
Figure:
Main Code:
Package COM. yin. telephony; Import android. app. activity; Import android. OS. bundle; Import android.
12:51:55
The relationship between expandablelistactivity and expandablelistview always appears together with listactivity and listview.
First
1. First add expandablelistview in Main. xml
Android:
2011-04-25
11:00:04
Autocompletetextview
It is the input prompt box in Android. Although the input method is becoming more and more powerful, it makes the input easier and better.
Next let's take a look at the code
1. Create one in Main.
From: http://www.oschina.net/code/snippet_4873_4437
1. You have saved the image to the drawable directory and obtained the drawable using the image ID.
Resource res = gerresource ();Drawable = res. getdrawable (ID); // ID is R. drawable. Image name
2
Problem: there is now a background control AA (such as imageview, linearlayout, viewgroup, or other controls ), now, if you want to place another control BB on this control to display the current status (for example, the screen indicator in launcher)
How to compile Tess in Tess git, But I encountered a problem during the compilation process. Let's talk about my environment first. I used cygwin for ndk development on win7, it's still a little white.
Git clone git: //
Some time ago, I wrote a code to read the webpage and return the JSON array. Here, I will sort it out for future rapid development of similar programs.
Define a data object class:
package com.example.jsonreadtest;public class MessageItemData {public
Before reading this blog post, you need a little bit of Basic Java knowledge.
1. The role of referencequeue is explained in depth in my previous blog.
2. A brief introduction to the LRU algorithm. Here I recommend two blog posts to quickly
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