Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Reading special Chars from EditText

 
Mukesh Sheran
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9519
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mukesh please check your private messages for some administrative matter.

Also please Use Code Tags when you post a source code...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic