Requirements:Use bitly to compress the URL
Official documentation:Http://dev.bitly.com/links.html#v3_shorten
Notes:1. encode the original URL (longurl) to be compressedThat is, edcodelongurl = urlencoder. encode (longurl, "UTF-8 ");
2. The data
1. Use the transparent effect resources provided by the Android system Android: Background = "@ Android: color/transparent" /> 2. Use argb for control Translucent Transparent 3. Set alpha View v = findviewbyid (R. Id. content ); //
I have been very busy recently, busy writing iPhone and AndroidProgram. Finally, I can take a rest. The iPhone version of the alumni association designed for the Department of Water Conservancy of Tsinghua University has been completed,
The Android
Some placeholders in the string file can be used to combine the text to be displayed in the application.
String File
title (string) % 1 $ S, author (string) % 2 $ s, number (integer) % 3 $ D, price (floating point type): % 4 $. 2f
Code:
// Use BitmapFactory to generate Bitmap// Note that this method only generates Bitmap, so the returned value is a Bitmap.// Operations on Bitmap objects are not involved, such as rotating and compressing Bitmap objects.// The following are four
Usage:
Add the animation definition to a textview, so the work to be done is simple:
Animation mAnimation ; mAnimation = AnimationUtils.loadAnimation(this, R.anim.anim); TextView text = (TextView)findViewById(R.id.textview00);
Train of Thought: record the time of the last click. Compared with the time of this click, exit when the two time intervals are less than a certain value; otherwise, the system prompts "exit the program again ", update the last click time at the
I have previously reproduced an article about data transmission between activities. I always feel that I have not gained much from copying and pasting and it seems quite uncomfortable. I am determined to rewrite it. The previous article will be
Today, the Android simulator has inexplicably encountered the following error:
Emulator: ERROR: the user data image is used by another emulator. aborting
After the restart, I still have it. I don't know what's going on, so I searched the internet.
1.3 processes and threads
When the first component of an application needs to run, Android starts a Linux Process and a single execution thread for it. By default, all components of the application run in this process and thread.
However, you can
1. Source
Service does not have a message queue and cannot be toast.
2. Solution
There are many methods. Here is a simple method.
Public static void showtoastinservice (final context, final int ID, final Boolean longtoast) {handler = new
Although the slidingdrawer class is no longer recommended, sometimes it can be used if the effect is simple. Anyway, I may miss it, mainly because it is easy to use and can only slide up or down or left or right, in addition, the direction cannot be
I forgot how it came from. Today I saw such a notebook with full permissions on my computer. I felt that such a good thing could not be kept in private. I put it up to let people with poor English look at it.
Android. permission.
Although it is estimated that this will not be used in the future, I still feel that it should be stored.
From http://blog.csdn.net/jasonzhou613/article/details/9194597
Simple and traditional conversion, first we want to introduce a package:
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