Android Blog

Provides Information on Android

Monday, 15 October 2012

android: can't call String.isEmpty()


Use String.length() == 0 instead. It is backwards compatible all the way back to JDK 1.0 ... and with J2ME as well.
String.equals("") is another alternative.
Posted by Unknown at 23:51
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: Android

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

About Me

Unknown
View my complete profile

Pages

  • Home

Blog Archive

  • ►  2014 (1)
    • ►  May (1)
  • ►  2013 (47)
    • ►  September (5)
    • ►  August (4)
    • ►  July (1)
    • ►  June (6)
    • ►  May (6)
    • ►  April (4)
    • ►  March (11)
    • ►  February (4)
    • ►  January (6)
  • ▼  2012 (41)
    • ►  December (14)
    • ►  November (7)
    • ▼  October (7)
      • android: toggle and switch buttons
      • android: Long string in ListView's items
      • android: How to make keypad hidden when the activi...
      • android: How to erase Activity stack in Android?
      • android: can't call String.isEmpty()
      • android: Develop Android's application for all the...
      • android: Manually Select the Spinner Item
    • ►  September (13)
Simple theme. Theme images by luoman. Powered by Blogger.