Android code reference

Source: Internet
Author: User

Common string operations have been written in Android. Text. textutils. Java, for example:

/**
* Returns true if the string is null or 0-length.
* @ Param STR the string to be examined
* @ Return true if STR is null or zero length
*/
Public static Boolean isempty (charsequence Str ){
If (STR = NULL | Str. Length () = 0)
Return true;
Else
Return false;
}

Similar Tools include Android. Media. thumbnailutils, which is used to generate thumbnails.

For more information, see/frameworks/base/CORE/Java/Android/util.

You can also referMany packages under/frameworks/base/CORE/Java/Android/Code, Such

Accessibilityservice animation app blcr content DDM emoji hardware net OS PIM Provider Service speech text util WebKit
Accounts annotation appwidget Bluetooth database debug gesture inputmethodservice NFC package.html preference server SIM test theme view widget

For example, under the animation package:

Animatorinflater. Java animatorset. Java floatkeyframeset. Java keyframe. Java objectanimator. Java timeanimator. Java valueanimator. Java
Animator. Java argbevaluator. Java intevaluator. Java keyframeset. Java package.html timeinterpolator. Java
Animatorlisteneradapter. Java floatevaluator. Java intkeyframeset. Java layouttransition. Java propertyvaluesholder. Java typeevaluator. Java

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.