

In the MainActivity. Additionally, we will also get to see a buttonClickListener that is used to define the action to be performed when a button is clicked in the app.īelow is th design that we will be working on. Now we would add asenother activity inside this project named as SecondActivity.java.

In our example, we will take input from the user through EditText view and will display it in the TextView. In this tutorial we would going to create a simple ListView using array adapter. Here in this tutorial, we are going to focus and code for the backend part. In our previous tutorials, we have seen how different types of layout are useful for for GUI designing which is the frontend part. WifiScannerFragment.onViewCreated(.) mScanReceiver new ScanReceiver() mStatusText (TextView) v. Whenever we click on any button or submit any form, the backend code decides what action to perform next or what to do with the data received from user etc.

Backend part refers to the logic behind the functioning of your app. how your app will look and appear to the other users.
Frontend refers to the visualization of the components i.e. This is kotlin code to access the view inside another layout : //inflate layout val view inflate(this, R.layout.lycustommenuitem, null) //access view inside the inflated val tv view.findViewByIdAndroid SDK Manager & required PackagesĪny android app has two parts in it – frontend and backend.
