Hire everyone in this theater you're going to go ahead and create another Android application.
So we just need to click on this start in your Android studio project.
So here just typing up 9 and you can actually specify a company domain package name and or project location
for your application and then click on next here choose the API 16 Android 4.1 Jelly Bean for our minimum
STK and then click on next here choose plant Blant activity and then click on next on here don't change
anything and click on finish.
OK.
Now as you can see our project is actually created.
So let's actually did it this hell over text here and then double click on the rest for the here and
then double click on this layout and double double click on this activity main that are examined here
and then choose these floating action button here and then.
So let's actually go back inside this content underline minute example and then double click on this
tab here in order to make this area wider.
And then we can actually dragging some components and drop this out here.
Now let's actually track our linearly out with T-coil into this screen here and then let's actually
put it in the center which of these are relatively out and then actually drag a text field into These
are linearly called vertical OK.
So as you can see here we've got these text fields here and there and it's actually track a plain text
here.
And then let's actually track and our text field and then another text field here.
OK.
So as you can see here click on this.
Our first text you here and the double click on it for the ID you just type in here.
EDT number 1.
Double click on the second to textfield here.
OK.
For the ID just type in here EDT not to.
OK.
Double click on these are textfield here for the ID just type in here.
EDT now three.
OK.
So as you can see here we've got free textfield here inside these are linearly out vertical.
Let's actually write another text view into this linearly Ellsworthy call.
So here are this large view here and then put it here.
So let's actually give our margin to this text view.
So just choose this text text view here and here you can actually find the layout margin here.
OK.
And for the I'll just type in here for example number 20.
OK.
And then double click and these are text 3 here and 40 for the text just typing here result.
And for the ID just type in here TXI the result OK.
So as you can see here we've got this text view here.
So let's actually drag a button into this or linearly out vertical.
So let's actually find the bottom.
As you can see here and then put it below these are text.
View here.
Double click on it and for the text just type in here gets the maximum value and for the ID just type
in here PTEN maximum value.
OK.
And let's actually write a text view into this Alania and here.
So just click on these large text view here and then put it up below it is a button here.
Let's actually give march into this text to view here.
So just click this test view and find the left margin here.
Inside these are properties and then give a value to the to the all for example number 20.
And now it's actually double click on these are text view here.
And for the text just typing here.
So your random numbers and the ID just type in here ticks the secure random numbers.
OK.
Let's actually track our button into this linear layout vertical to just click on this button here and
then put it below.
These are takes to you here.
OK.
Double click on it for the text just type in here.
Generate secure random numbers and for the ID just type in here PTEN secure random numbers.
So now our lay out is actually ready.
So let's actually go back inside this main activity our job right here and then delete these lines of
code here that are actually related to the Options menu and delete this block of code here which is
actually related to the to the floating action button here.
And now we can actually put in our own codes inside this method.
Ok everyone.
Now let's actually create some objects here.
So just typing here any text OK.
And then for the name of this object just typing here.
EDT number 1 assignment operator.
And then let's actually cast this object to our it is a text object.
OK.
Find view by ID are thought Id thought it the number one.
OK.
Let's actually create another editrix object.
EDT Nahm 2 assignment operator.
Now we need to cast this object to an added text object.
Find you by id r that Id dot EDT to edit text it ity Nahm 3.
Assignment operator the text find you by id r that Id dot EDT.
Number three.
OK so now let's actually create a button here.
So just type in here button.
Ok PTEN gets maximum assignment operator and then actually has this object to our button object.
Find if your BY ID or that Id that's between maximum value.
OK so now let's actually create a text you object takes view.
And for the name of this object just type in here TXI the result assignment operator.
And then let's actually cast this object to our text view object find you by ID or that ID that T x
The result is actually create another button here.
But in between secure random number OK and then let's actually put an assignment operator here.
So here we need to actually test this object to about an object pattern find view by ID.
Our thoughts are the dots between secure random numbers.
OK.
So let's actually create another text your object takes to view the extreme secure random numbers and
then actually put in an assignment operator here.
So we need to actually test this object to a text view object find view by id r that Id dot the X the
secure random numbers.
OK.
So hopefully that makes sense.
And let's actually.
OK everyone.
Now let's actually make the Spartan and Unkrich listener to the clique's that the user make on this
button as you can see this is the button.
So let's actually make this button on click listener.
So just refer to the name of this button.
Pythian get maximum that certain click listener.
OK new view unclick listener and that insight is Uncle Fred.
We can actually put our own quotes.
OK.
So now let's actually typing some more quotes.
Now I want to actually read the values that the user entered on these textfield.
OK.
So in order to read the values that the user enter on these tapes use I can't just create a double variable
double.
Now one assignment operator.
And then I can just refer to the name of this EDT not one dot text dot two string.
OK.
So as you can see here it's now showing us an error.
So let's actually hover our mouse pointer over this error area and see what's the error.
Incompatible types require double found job that Lancastrian.
So as you can see here we specified that the data type of this variable is double.
OK.
And now we are assigning a value of type string to this variable.
So in order to actually eliminate this error we need to convert this string value to our double value.
So I can just type in here double.
OK.
That part's double.
And then we can just put this piece of code inside the prentices.
Now as you can see the error is gone.
Here I am just putting this piece of code here in order to convert this string value to a double value.
And then I am actually assigning that value to this double variable.