WebView in Android with Fixed Back Button & Link | Android App from Responsive Website - 4

WebView in Android with Fixed Back Button & Link | Android App from Responsive Website - 4

Techcybo.com

8 лет назад

44,054 Просмотров

Creating Android App from Responsive Website with WebView

In this video i will explain about WebView, Load WebSite in WebVIew
Fixed Back Button and Links Open in External Browser

Download Source Code :
https://github.com/TechCybo/Android-App-From-Responsive-Website-NavDrawer

VISIT us:
-- http://www.techcybo.com
LIKE us on FACEBOOK:
-- http://www.facebook.com/techcybo
JOIN our circle on GOOGLE PLUS:
-- http://www.google.com/+techcybo







________________________________________________

Music Used : Itro & Kontinuum - Alive [NCS Release]
? Connect with NCS
Facebook http://facebook.com/NoCopyrightSounds
Twitch http://twitch.tv/nocopyrightsounds
Twitter http://twitter.com/NCSounds
Spotify http://bit.ly/SpotifyNCS
SoundCloud http://soundcloud.com/nocopyrightsounds
Google+ http://google.com/+nocopyrightsounds
Instagram http://instagram.com/nocopyrightsounds_

? Follow Itro
SoundCloud https://soundcloud.com/itro
Facebook https://www.facebook.com/officialitro
Twitter https://twitter.com/itromsc
YouTube http://www.youtube.com/user/officialitro
Website http://www.itromusic.com/
Instagram http://instagram.com/itromusic/

? Follow Kontinuum
SoundCloud https://soundcloud.com/kontinuum
Facebook https://www.facebook.com/itsKontinuum
Twitter https://twitter.com/itsKontinuum
Instagram https://instagram.com/itskontinuum

Тэги:

#WebView #Android_(Operating_System) #Mobile_Application_Software_(Industry) #Responsive_Web_Design_(Industry)
Ссылки и html тэги не поддерживаются


Комментарии:

Mohamed OMARI
Mohamed OMARI - 11.05.2020 07:38

Thank you for this video, i am looking for the opposite of your solution, par example when a user clicks on an external link inside my app, i want to check if the links is in my website if its external so force to open on system browser, i am waiting for any kind of help thank you so much.

Ответить
Himanshu Goel
Himanshu Goel - 03.04.2020 17:36

Awesome, it helped me a lot and after surfing so much on internet found a piece of code I needed for my project. Thanks A Lot.

Ответить
Imran Sefat
Imran Sefat - 18.07.2019 08:41

Thanks a lot man!

Ответить
Mohammad Nadeem
Mohammad Nadeem - 23.04.2019 19:41

cannot resolve method ''canGoBack'' in android studio.. Please Help me anybody..

Ответить
Raquel Asirit
Raquel Asirit - 01.04.2019 11:12

nice video


but sir when i click alt + insert and type onkeydown and pres enter the code override methos shows


"override fun onKeyDown(keyCode: Int, event: KeyEvent?): Boolean {
return super.onKeyDown(keyCode, event)
}"




and when i continue to code like youre's there is an error
please help me sir

Ответить
Raquel Asirit
Raquel Asirit - 01.04.2019 11:11

nice video


but sir when i click alt + insert and type onkeydown and pres enter the code override methos shows


override fun onKeyDown(keyCode: Int, event: KeyEvent?): Boolean {
return super.onKeyDown(keyCode, event)
}




and when i continue to code like youre's there is an error
please help me sir

Ответить
oshara oshara
oshara oshara - 15.02.2019 15:50

Thank you verymuch.... greate video..................

Ответить
madhuka melan
madhuka melan - 15.02.2019 14:57

Thank you.. you solved my problem. Thank you..

Ответить
Devaka Dabare
Devaka Dabare - 17.12.2018 08:03

Great video and it worked for me.. thank you ... <3

Ответить
Tech GeekBoy
Tech GeekBoy - 18.09.2018 00:32

The loading text isn't showing when the page is loading, how to fix this? Thanks!

Ответить
Jazz theChamp
Jazz theChamp - 11.08.2018 18:17

What if we have multiple fragments?? Please tell

Ответить
Kayiranga Eric
Kayiranga Eric - 16.04.2018 09:32

hi i follow your tutorial but i have problem ;geolocation is not working;can you please do a tutorial how it can work with html5 geolocation

Ответить
Md. Shoriful hasan
Md. Shoriful hasan - 18.01.2018 20:37

Thanks

Ответить
Girish arun
Girish arun - 19.12.2017 18:49

i had tried the same code in my app abt no affect it exit the app while clicking the back button

Ответить
Jason N
Jason N - 21.08.2017 13:21

Help, igot Error:Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details. error and a few more even tho i had copied and pasted your GitHub file's

EDIT : FIXED, THANKS A LOT!
SUBSCRIBED

Ответить
Android Developer
Android Developer - 27.06.2017 08:54

but the app is not quite. it just go previous page. How can fix it?

Ответить
Bilal Khan
Bilal Khan - 23.05.2017 19:09

how to load desktop view...
plzz help..

Ответить
Pia Nila
Pia Nila - 25.04.2017 04:02

Hello , I tried and follow the tutorial but when I run the webpage doesnt show just gives me this message "Web page not available" Can anyone suggest a solution thanks

Ответить
robert chisholm
robert chisholm - 05.04.2017 17:46

great tutorials, got an issue on the external links in webview states onKeyDown is invalid using the code as follows can you advise please. @Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
if (event.getAction()== KeyEvent.ACTION_DOWN) {
switch (keyCode) {
case KeyEvent.KEYCODE_BACK;
if (mwebView.canGoBack()){
mwebView.goBack();
}
else {
finish();
}
return true;
}
}
return super.onKeyDown(keyCode, event);


error states cannot resolve. many thanks

Ответить
Ashim
Ashim - 16.03.2017 05:22

how to set two websites using navigation drawer activity???please make a tutorial on it

Ответить
Saif Ur Rehman
Saif Ur Rehman - 03.03.2017 19:41

ummm :/ the method with String is deprecated and instead of that string type of url , this ,,,, public boolean shouldOverrideUrlLoading(WebView view, WebResourceRequest request) , is appears and having error on url field please help

Ответить
Alejandro Olaria
Alejandro Olaria - 22.02.2017 15:20

got a problem mate.. I did everything step by step just exactly the same but.. when I built the apk and installed in my phone it shows off an message saying "unfortunately the app has stopped" can you help me with this?

Ответить
Danny Keeley
Danny Keeley - 06.01.2017 17:02

i dont have the webview widget, how did you get it ?

Ответить
Santunu Nag Chowdhury
Santunu Nag Chowdhury - 30.12.2016 10:48

Thank you sir . It is a great tutorial which can help convert successfully from responsive website to android applications .

Ответить
Ionut Iacob
Ionut Iacob - 23.12.2016 11:03

after i press to test
App crashing
And in log have an cause : Attempt to invoke virtual method 'android.webkit.WebSettings android.webkit.WebView.getSettings()' on a null object reference

Ответить
Technical Dragons
Technical Dragons - 18.12.2016 21:12

"canGoBack" not working please Help me

Ответить
Ganesh Shankar
Ganesh Shankar - 18.12.2016 15:59

Great video. I found it very useful and pls also do videos on creating buttons and menu options like a android browser like tabs and downloading list etc

Ответить
Juan Carlos
Juan Carlos - 17.12.2016 03:21

Great video :) thanks

Ответить
News21 საინფორმაციო სააგენტო
News21 საინფორმაციო სააგენტო - 23.09.2016 17:22

thanx
how make in floatting button direct share action?

Ответить
The Gorillenger
The Gorillenger - 22.09.2016 02:47

Hi, now im using AS 2.2 and still have a problem with switching to browser after clicking a link - i did every single step like You, please help, i am complete noob :)

Ответить
LEONARDO VITURINO
LEONARDO VITURINO - 11.09.2016 20:08

but the site has not updated

Ответить
Arvind Sharma
Arvind Sharma - 07.09.2016 03:00

Issue: While rotating screen every time loading website and exiting app. How to fix this problem.

Ответить
Aprian
Aprian - 31.08.2016 20:42

How to delete the message button...?

Ответить
Daryl Ico
Daryl Ico - 11.08.2016 02:30

The way how you teach on this video is good. Keep it up! More lessons in Android to come :)

Ответить
Creativera
Creativera - 25.07.2016 12:22

which layout did you choose in startup screen?

Ответить
Roshan Singh
Roshan Singh - 21.04.2016 10:03

A hundred thanks to you mahn!!!!! Helped Alot!!!!!!!!!

Ответить
majeedk100
majeedk100 - 21.04.2016 02:20

hello my dear very nice tutorial thank u ...
i have error back page creating eroor
Error:(63, 43) error: : expected
Error:Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

Ответить
Pannam
Pannam - 15.04.2016 14:02

how to save and load html file in webview ?

Ответить
Creativity Mania
Creativity Mania - 19.03.2016 16:14

another things user cannot able to see proper coding if this is a tutorial. Poor video

Ответить
Creativity Mania
Creativity Mania - 19.03.2016 16:13

why are moving so fast even users cannot see which file you are opening

Ответить
James
James - 28.02.2016 22:04

Thank you

Ответить
James
James - 28.02.2016 22:03

thank you mate, this is amazing. very helpful.... Love your channel, please keep creating.

Ответить
Ku Syuk
Ku Syuk - 19.01.2016 11:03

Can I ask? what type of Virtual Device that you use sir? is it the default AVD?

Ответить
rami Hrami
rami Hrami - 29.11.2015 20:10

thanks you so much you are amazing bro

Ответить
Abdullah Bhuiyan
Abdullah Bhuiyan - 29.11.2015 19:47

thanx...need more update....like push notification

Ответить