Recent Posts

Site Creator




Kotlin Introduction : Day 2

Posted on

Dear Friends


Kotlin is the future of android development. Google is pushing kotlin language forward for android development. There are very good reasons what benefits it provides over java language. To know more about the differences please visit link.  Its very important for Senior Java developers for android devs  to learn Kotlin for android development.

For Junior Java devs and freshers I would also recommend Java.  In our forthcoming tutorials we will be explaining kotlin theory more.  But right now lets dive into a simple android app written in kotlin lang.



So as expected above code will  produce an Activity. Further , Lets create a Fragment and link it with the activity.

For that lets open activity_main.xml file in layout folder and add id to root layout if not previously added.


Now create a fragment like below for eg having a web view in which we are going to launch Google Search Page ,


Now come back to main activity and add this fragment to root layout.  So below code of activity will become like this



I hope you have already declared , activity inside AndroidManifest.xml file and relevant internet permission. You xml file will look like this


Run your application and you will see Google search page opens up. !


Stay tuned for more tutorials.




Disclaimer: The aforesaid writeup by Relsell Global writer is for the general understanding of the readers. It does not render any professional advice or opinion.


Leave a Reply

Your email address will not be published. Required fields are marked *