This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "Reading special Chars from EditText" Watch "Reading special Chars from EditText" New topic

Reading special Chars from EditText

Mukesh Sheran

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 "", 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

Joined: Aug 03, 2008
Posts: 9453

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
I agree. Here's the link:
subject: Reading special Chars from EditText
It's not a secret anymore!