// Use openrawresource to obtain an inputstream object inputstream = getresources (). openrawresource (R. drawable. temp); // create a bitmapdrawable object bitmapdrawable drawable = new bitmapdrawable (inputstream) through an inputstream; // obtain
2013-03-6
Miscellaneous:I haven't updated eclipse and Android for a long time. I tried to update it over the past few days and found that the third-party packages imported in the Project reported an error.
Content Description:Previously, all of
The following sectionCodeThe execution principle is to send a restarted broadcast to the system. The system restarts after receiving the broadcast.Intent intent= NewIntent(Intent.Action_reboot); Intent .Putextra("Nowait",1); Intent
Chinese people are happy to use software. A lot of software that requires payment can be used. When it reaches the magical land of China, it is cracked and then spread.
PairProgramPersonnel, this is not a good thing. After all, it is a
During Android Application Development, exceptions may occur for the application being used due to exceptions and force shutdown. This will lead to unfriendly user experience. To solve this problem, we need to capture and handle exceptions. There
Original article, if reproduced, please indicate the source: http://blog.csdn.net/yihui823/article/details/6833067
Bad code:
Int [] iarray = {12,122,123,124, 1,}; // sorts the iarray int Imin = 999999; int indexmin = 0; int itmp = 0; For (INT I = 0
Address: http://blog.csdn.net/you_and_me12/article/details/7245786
The border size of the image is not changed when the image is zoomed in and out on the canvas in Android!
The source image is as follows:
After the image is zoomed in, the
Address: http://blog.csdn.net/you_and_me12/article/details/7262988
Obtain image resources from the SD card or take a new image.
Post Code first
Get image:
Note: You can specify the address to save the image when taking the photo.
Charsequence []
Address: http://blog.csdn.net/you_and_me12/article/details/8297048
2012-12-14
Miscellaneous:I have read a lot of programmers who have the habit of writing blogs. It seems that I also have to practice. No matter what the writing is, I want to write
This article from: http://heweiya.javaeye.com/blog/521598 so the link and download can go to this link
1) download the SDK,
1.1) download android-sdk_r3-windows,
1.2) Then decompress and put it in a directory such as: C:/android-sdk_r3-windows
1.3)
The development framework includes basic application function development, data storage, and network access:I. ApplicationGenerally, a standard Android program consists of the following four parts: Activity, broadcast intent receiver er, service,
Read all the address books, but filter out the existing records in the blacklist. The filtering condition must be set to people. _ id. Otherwise, an error is returned:
03-22 14:37:51. 951: Error/databaseutils (108): Android. database. SQLite.
You can get the resources () handle through getresources () of Android. content. context.Then you can useThe resources () handle function obtains various resources:For exampleDrawable:Getresources (). getdrawable (R. drawable. pbook_tab_groups ))For
To facilitate the description, we will start the activity of another activity.It is called the main activity, and the started activity is called a child activity.
Main activity and sub-acitivityThere are many ways to communicate between them.
In this example, a custom view can accept the touch action, and then instantly display the touch track on the screen, similar to the graffiti of the line. This example demonstrates how to use ontouchevent with draw. On this basis, you can do a lot
Refer to the online article and make two color selectors.
One is a fixed-color selector. This is very simple. You only need to draw various color areas and select which one you choose.
The other is the universal color selector, which has some
You can create and edit a preferences in an application and read it from another application. Of course, the premise is thatPreferencesThe permission must be at least context. mode_world_readable.For example. in teleca application A, the name is com.
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