Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Activity doesn't open when clicking button ?

 
vinoth vino
Ranch Hand
Posts: 67
Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello friends, I've code for simple app that contains two activity. In main Activity i've created one button with Listener and calling intent object with other activity(WebViewActivity). The issue is when i click the button it'll take me to default webBrowser but i expected to open that url in my WebViewActivity. Please you people want to solve my problem.. Thanks in Advance

AndroidManifest


MainLayout


WebView Layout


MainActivity


WebViewActivity
 
Keith Lynn
Ranch Hand
Posts: 2409
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I created an app with your code and when I click the button, it loaded www.google.com in the WebView
 
vinoth vino
Ranch Hand
Posts: 67
Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
should i wanna use webViewClient to use web content in current activity ? I think this one i'm looking for...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic