arr = result.toString().trim().split("\\|");
the param of String.split accept a regular expression.
More Related Contents:
- How to change the activity background from fragment inside it [closed]
- How to check visibility of software keyboard in Android?
- Reading a simple text file
- Move to another EditText when Soft Keyboard Next is clicked on Android
- How to use SearchView in Toolbar Android
- Set selected item of spinner programmatically
- How can I tell if Android app is running in the foreground?
- PendingIntent works correctly for the first notification but incorrectly for the rest
- SQLite Android Database Cursor window allocation of 2048 kb failed
- Opening Android Settings programmatically
- Importing google-play-services lib into Intellij IDEA 12 (and 13)
- android progressBar does not update progress view/drawable
- changing screen brightness programmatically in android
- Bitmap, Bitmap.recycle(), WeakReferences, and Garbage Collection
- Android: my application is too large and gives “Unable to execute dex: method ID not in [0, 0xffff]: 65536”?
- How to use Parcel in Android?
- Android Install on Device Failure [INSTALL_CANCELED_BY_USER]
- Adding watermark bitmap over video in android: 4.3’s MediaMuxer or ffmpeg
- Error: cannot find symbol method getDownloadUrl() of type com.google.firebase.storage.UploadTask.TaskSnapshot
- Keep Service running
- ACCESS_COARSE_LOCATION permission gives a cell tower precision on Android
- Widget not updated on launcher restart
- Set starting height of CollapsingToolbarLayout
- How to replace a string for a buildvariant with gradle in android studio?
- ListView without ListActivity
- android live wallpaper rescaling
- Post UTF-8 encoded data to server loses certain characters
- Error after updating the Android.Support Library v7 AppCompat to the 21.0.3 version
- java.lang.illegalstateexception could not find a method (view) in the activity class android fragment
- How to use setOutlineProvider instead of setOutline in Lollipop