wood burning stoves 2.0*
The moose likes Android and the fly likes Reading special Chars from EditText Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "Reading special Chars from EditText" Watch "Reading special Chars from EditText" New topic
Author

Reading special Chars from EditText

Mukesh Sheran
Greenhorn

Joined: Jun 25, 2010
Posts: 1
Hi All,

I am trying to build sample Browser application in Aandroid where I am having an EditText field to enter the URL and a Go button.
If I am hard coding the URL to "http://www.google.co.in/", it i working fine. But if I enter the same URL using EditText, I am getting "http://www。google。co。in/" as url by using method url.getText().toString() where url is the EditText object. cause of this I am getting IllegalStateException. Log is attached.

Code I am using is




Please help me out to get the correct URL.
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9293
    
  17

Mukesh please check your private messages for some administrative matter.

Also please Use Code Tags when you post a source code...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Reading special Chars from EditText