Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Activity doesn't open when clicking button ?

 
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
 
Ranch Hand
Posts: 2410
  • 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...
 
    Bookmark Topic Watch Topic
  • New Topic