0:00
in today's video I will teach you how
0:01
you can create an Android app using tgbt
0:04
in this video we will convert our
0:05
website into an Android app using modern
0:08
AI tool chat gbt so friends video is
0:10
going to be more important and before
0:12
start I request you to subscribe to our
0:14
YouTube channel for our regular videos
0:16
so first of all open Google and search
0:18
here to download Android Studio because
0:20
we will require Android Studio to create
0:22
an Android app and here you can see that
0:24
download link just click on this and
0:26
from here you can download the Android
0:27
Studio or you can watch a complete
0:29
tutorial on our YouTube channel on how
0:31
to download and install Android Studio
0:33
on your windows here you can see that I
0:34
have already installed this when you
0:36
open the Android Studio you will see a
0:38
new project button just click on this
0:40
and from here select MPT Activity Click
0:43
on next and here give a name of your
0:45
application like video streaming and
0:47
from here select the language Java and
0:49
press the Finish button and root studio
0:51
will create a simple project for you it
0:53
will take a little bit of time depending
0:55
on the speed of your computer next open
0:57
Google and type here chat. opena
1:00
i/ chat so it will ask you for login
1:03
because I have already logged in so
1:05
directly I have to type here what I want
1:07
to do so I will type here create an
1:09
Android app for me in Java that will
1:11
display my website press enter and here
1:14
you can see that it is telling me the
1:16
process don't worry I'll show you the
1:17
practicalities so this would be our XML
1:20
code and similarly this would be our
1:22
Java code so first of all this is our
1:24
XML code just click on this copy code
1:26
open your Android studio and open your
1:28
activity m.x XML file if you want to
1:31
open this file you can open this from
1:34
activity. main.xml file from here you
1:38
have to click on the code remove this
1:39
default text View and paste that web
1:41
view code here and because we are using
1:43
a constraint layout that's why when you
1:45
click on a design just constraint it
1:47
from all sides constraint it from here
1:48
constraint it from the bottom that's it
1:50
next here you can see that it has
1:51
provided me with this Java code just
1:53
click on this copy code and open your
1:56
main activity. Java and paste your code
1:58
here just click on this and it is asking
2:00
you to press alt plus enter I will press
2:03
the alt plus enter button and click on
2:05
the import class that's it and here I
2:07
have to again click alt plus enter and
2:09
click on import class one more thing
2:11
that you have to do open your manifest
2:13
and Android manifest.xml and here you
2:16
have to ask for users permissions and
2:18
here we will require internet
2:19
permissions that's it and in the end
2:21
from this point load URL you have to
2:24
change this URL just copy your website
2:26
URL and paste at this position so I will
2:28
open Google and type here suppose I want
2:30
to display YouTube I will simply copy
2:33
the YouTube link paste here and this is
2:34
my emulator that I have already
2:36
installed and now I will click on this
2:38
run app button so I can see the output
2:40
so friends here you can see that my app
2:41
is running on my Android emulator I hope
2:44
it will work fine on your device but I
2:45
want to suggest you to add two more
2:48
lines to enhance your Android app
2:50
functionality you just have to type here
2:52
web setting this is a class create an
2:54
object of this class web setting and
2:56
here I will copy this web View and paste
2:58
it here I already typed here but just
3:00
for your teaching purpose I'm typing
3:02
this again next type here web setting do
3:04
set JavaScript enabled is equal to true
3:07
that's it I will remove this code and
3:08
again I will run my Android app click on
3:10
the terminate button so friends here you
3:12
can see that YouTube is running on our
3:14
Android app friends maybe you have a
3:16
news app or maybe whatever information
3:18
you are giving on your website you can
3:20
easily convert your website into an
3:21
Android app using jet GPT let me know in
3:24
the comment section if you like this
3:25
video and share this video with your
3:27
friends who want to learn programming
3:28
and finally thanks for watching and see
3:30
you in the next video