Questions tagged [textutils]
28 questions
0
votes
0 answers
TextUtil.isEmpty() is always returning empty, even when the field is filled in the Android
TextUtil.isEmpty() is always returning empty, even when the field is filled in the Android.
Code snippet:
if (TextUtils.isEmpty(name.getText().toString())) {
completeNameEditText.setError("Empty field);
…

Carl
- 23
- 5
0
votes
1 answer
Adding 2 variables in a single TextUtils
I have this problem in which I have two variables - 'mobile_input' & 'mobile_input_login'. I also have 2 TextUtils also.
Instead of making two different TextUtils, I want to make one TextUtils. I have searched on the web but there is no relevant…
user14355661
0
votes
1 answer
Are there any advantages of using TextUtil class over String class in Android?
I was reading the Android documentation and saw some familiar methods in TextUtils which i normally use in String class, and I also discovered that the method String.split(String regex) was removed, but is present in TexUtils class. So i started to…

user241802
- 1
- 1
0
votes
1 answer
Argument list too long for textutil conversion
I am trying to convert all the .docx files in a folder into .txt files.
I use textutil.
textutil -convert txt filepath/*.docx
I tried this and got an "Argument list too long" error.

hy9fesh
- 589
- 2
- 15
0
votes
1 answer
Nothing happens when I run HTMLdecode on a variable of a dataset
I want to decode some vectors with HTMLdecode but it does not work in some cases. I read in data from an excel sheet and I want to decode a variable and it does not work. If I manually set up these variable it works for some reason and I really…

TobiSonne
- 1,044
- 7
- 22
0
votes
1 answer
TextUtils.join returns NULL on Unit Test
I'm joining a list of strings by using TextUtils.join but it's returning NULL. I'm doing this on a simple unit test.
Here's the code in question:
@Test
public void testJoinText(){
List letters = Lists.newArrayList();
…

Kim Montano
- 2,185
- 4
- 26
- 39
0
votes
1 answer
Split Strings based on white spaces
(The title may be misleading. I always though the hard part is finding the proper title :D)
Well, sentences are just (long) strings. I want to display these sentences but in a reversed way. Example: "StackOverflow is a community of awesome…

esQmo_
- 1,464
- 3
- 18
- 43
0
votes
2 answers
tcl length in variable
how can splitt a text in variables always after 50 characters?
so is splitt only in a new line after 50 charachters
set length [::textutil::adjust $text -length 50 -strictlength true]
Regards
edit:
input is this text in variable $Plot
LaRochelle, a…

revoque
- 15
- 3
0
votes
2 answers
I have two EditText entries, one for a name and the other for an age receive errors for TextUtils on the second
I have two EditText fields in an app. The first EditText is set up to accept strings, in my case a name:
EditText nameField = (EditText) findViewById(R.id.nameOfCustomer);
String name = nameField.getText().toString();
I have two EditText…
user7644379
0
votes
2 answers
Checking empty textEdit
I'm trying to program a simple register application, the user have to fill some fields, where some of them are obligatory. So, I need to check if the user write the info there. I'm doing this:
for(RequireFields r : RequireFields.values()){
…

Josete Manu
- 187
- 2
- 16
0
votes
1 answer
How to validate edit text input in Android?
I've added input validation to a set of edit texts in a dialog message using the setError method in Android.
But when I test it by leaving some of the edit texts blank and clicking "ok" on the dialog, the dialog closes without triggering a prompt to…

Brian Var
- 6,029
- 25
- 114
- 212
0
votes
1 answer
Separating Numeric values from Text Values
I am retrieving information from a REST API and it displays:
"Per 78g - Calories: 221kcal | Fat: 12.65g | Carbs: 16.20g | Protein: 10.88g"
I have imported the items into a ListView and when a user clicks an item I would like to string each numeric…

Eugene H
- 3,520
- 3
- 22
- 39
0
votes
2 answers
I am validationg a form using textutils
i am validating a registration form using textutils class which contains Name , City, Phone, Email,User ID,Password. But its showing only on the first edittext which is name. I also wanna validate email format how to do it?

user3853169
- 209
- 3
- 14