Android Question Warning #26 (add android:targetSdkVersion="19")

davemorris

Active Member
Licensed User
Longtime User
Hi
Just started with B4A (so sorry if I am making a fundamental error).
I working with sockets and found an example on the forum see
www.b4x.com/android/forum/threads/b4x-help-viewer.46969

It works great - however I get the following warning
Add android:targetSdkVersion="19" to the manifest editor (after minSdkVersion). (warning #26)

I modify the manifest file and the warning goes away.
Unfortunately the UI also changes (for the worst) and when I attempt to enter characters on the (on screen keyboard they are not echoed in the EditText box.
Can someone help?
Dave
 

mangojack

Well-Known Member
Licensed User
Longtime User
Did you manually set Text Colour property ? If so change it back to Default.
 
Upvote 0

davemorris

Active Member
Licensed User
Longtime User
Did you manually set Text Colour property ? If so change it back to Default.
Hi Mj Thanks for quick response.
I am new to B4A - sorry which text colour property are we talk about - (for a particular view(control) or for all?)
Regards
Dave
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Text Color in the designer:

SS-2017-08-07_17.18.48.png
 
Upvote 0

mangojack

Well-Known Member
Licensed User
Longtime User
they are not echoed in the EditText box.
More precisely .. did you set the Text Color property of the EditText box .. if so reset it to Default
 
Upvote 0

davemorris

Active Member
Licensed User
Longtime User
More precisely .. did you set the Text Color property of the EditText box .. if so reset it to Default
Hi, That has done the trick - I can now see the text.
Another question I am afraid - to do with edittext background. Can you change the background colour at design time? Currently, I am having insert into the initialisation code
edittext_name.Color = Colors.White (or whatever colour I want the background - is this normal or am I missing something?)

Kind regards
Dave
 
Upvote 0

mangojack

Well-Known Member
Licensed User
Longtime User
A few things .. Always start a new thread for a new question.

A Search for 'change edittext color' resulted in some good reading material .. https://www.b4x.com/android/forum/pages/results/?query=change+edittext+color

You can change its color.. EditText.Color = Colors.White . But it is probably best to leave it as Default.
see this .. https://www.b4x.com/android/forum/t...background-color-edit-text.40491/#post-242118

I am having insert into the initialisation code
I am unsure what you mean .. there is no initialize method that calls for edittext color.
If you have added EditText to a Layout in Designer .. there is no need to initialize the view.

Have you downloaded and had a look at B4A Beginners and Users Guide ? .. https://www.b4x.com/b4a.html#documentation
 
Upvote 0
Top