<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Arzath Areeff</title>
    <description>The latest articles on DEV Community by Arzath Areeff (@techxnomad).</description>
    <link>https://dev.to/techxnomad</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F985014%2Fcffdd350-2dcb-437f-b7e7-6ccc1c36d125.png</url>
      <title>DEV Community: Arzath Areeff</title>
      <link>https://dev.to/techxnomad</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/techxnomad"/>
    <language>en</language>
    <item>
      <title>Is Google forcing developers to switch from Java to Kotlin in Android Studio updates?</title>
      <dc:creator>Arzath Areeff</dc:creator>
      <pubDate>Mon, 01 May 2023 17:55:30 +0000</pubDate>
      <link>https://dev.to/techxnomad/is-google-forcing-developers-to-switch-from-java-to-kotlin-in-android-studio-updates-3pp9</link>
      <guid>https://dev.to/techxnomad/is-google-forcing-developers-to-switch-from-java-to-kotlin-in-android-studio-updates-3pp9</guid>
      <description>&lt;p&gt;What should developers do if their existing Java code gets converted to Kotlin during the update?&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Android App with Button Click Event and Toast Message</title>
      <dc:creator>Arzath Areeff</dc:creator>
      <pubDate>Tue, 25 Apr 2023 10:05:18 +0000</pubDate>
      <link>https://dev.to/techxnomad/android-app-with-button-click-event-and-toast-message-1oik</link>
      <guid>https://dev.to/techxnomad/android-app-with-button-click-event-and-toast-message-1oik</guid>
      <description>&lt;p&gt;This code is an example of an Android app that demonstrates the use of a button click event and a Toast message. The app contains a layout with a button and a text field.&lt;/p&gt;

&lt;p&gt;🔺The &lt;strong&gt;onCreate()&lt;/strong&gt; method initializes the button and text field.&lt;/p&gt;

&lt;p&gt;🔺The &lt;strong&gt;setOnClickListener()&lt;/strong&gt; method is used to set an event listener on the button that listens for click events.&lt;/p&gt;

&lt;p&gt;🔺When the button is clicked, a Toast message is displayed with the text entered in the text field.&lt;/p&gt;

&lt;p&gt;🔺The &lt;strong&gt;findViewById()&lt;/strong&gt; method is used to get a reference to the button and text field views, using their resource IDs.&lt;/p&gt;

&lt;p&gt;🔺The &lt;strong&gt;getText().toString()&lt;/strong&gt; method is used to get the text entered in the text field and store it in a string variable.&lt;/p&gt;

&lt;p&gt;🔺Finally, the &lt;strong&gt;makeText()&lt;/strong&gt; method is used to create a Toast message that displays the entered text, and the show() method is called to display the message.&lt;/p&gt;

&lt;p&gt;This code can be used as a starting point for building more complex Android apps that require event handling and user input.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;package com.example.parttime;

import android.annotation.SuppressLint;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;

public class MainActivity extends AppCompatActivity {


    private Button buttonOB;
    private TextView editTextOB;



    @SuppressLint("MissingInflatedId")
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        Toast.makeText(this, "On Create", Toast.LENGTH_SHORT).show();
        buttonOB=findViewById(R.id.ClickMeBtn);
        editTextOB=findViewById(R.id.editText);

        buttonOB.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {

                String nameStr;
                nameStr=editTextOB.getText().toString();

                Toast.makeText(MainActivity.this, nameStr, Toast.LENGTH_SHORT).show();
            }
        });
    }

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>android</category>
      <category>mobile</category>
      <category>learning</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Simple Android App to understand Activity Lifecycle</title>
      <dc:creator>Arzath Areeff</dc:creator>
      <pubDate>Tue, 25 Apr 2023 09:35:43 +0000</pubDate>
      <link>https://dev.to/techxnomad/simple-android-app-to-understand-activity-lifecycle-1j62</link>
      <guid>https://dev.to/techxnomad/simple-android-app-to-understand-activity-lifecycle-1j62</guid>
      <description>&lt;p&gt;This code is an example of a simple Android app that demonstrates the Activity Lifecycle using Toast Messages. The app contains a layout with a button, two text views, and a text field.&lt;/p&gt;

&lt;p&gt;The onCreate() method initializes the button, text views, and text field. The setOnClickListener() method is used to set an event listener on the button that listens for click events. When the button is clicked, a Toast message is displayed with the text entered in the text field, and the text is also displayed in the second text view.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flp5uswb3aknup8mloi6v.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flp5uswb3aknup8mloi6v.png" alt="Image description" width="523" height="673"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The app also includes five other methods that demonstrate the Activity Lifecycle: &lt;strong&gt;onStart(), onResume(), onPause(), onStop(), and onRestart().&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Each method displays a Toast message when the corresponding lifecycle event occurs. Finally, the onDestroy() method displays a Toast message when the activity is destroyed.&lt;/p&gt;

&lt;p&gt;This code can be used as a starting point for building more complex Android apps that require event handling and interaction with the Activity Lifecycle.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; private Button button;
    private TextView text;
    private TextView textView;

    @SuppressLint("MissingInflatedId")
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        button=findViewById(R.id.button);
        text=findViewById(R.id.text1);
        textView=findViewById(R.id.textView3);


        button.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {

                String nameStr;
                nameStr=text.getText().toString();
                Toast.makeText(MainActivity.this, nameStr, Toast.LENGTH_SHORT).show();

                textView.setText(nameStr);


            }
        });


    }

    @Override
    protected void onStart() {
        super.onStart();
        Toast.makeText(this, "On Start", Toast.LENGTH_SHORT).show();
    }

    @Override
    protected void onResume() {
        super.onResume();
        Toast.makeText(this, "On Resume", Toast.LENGTH_SHORT).show();
    }

    @Override
    protected void onPause() {
        super.onPause();
        Toast.makeText(this, "On Pause", Toast.LENGTH_SHORT).show();
    }

    @Override
    protected void onStop() {
        super.onStop();
        Toast.makeText(this, "On Stop", Toast.LENGTH_SHORT).show();
    }

    @Override
    protected void onRestart() {
        super.onRestart();
        Toast.makeText(this, "On Restart", Toast.LENGTH_SHORT).show();
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        Toast.makeText(this, "On Destroy", Toast.LENGTH_SHORT).show();
    }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>android</category>
      <category>mobile</category>
      <category>learning</category>
      <category>beginners</category>
    </item>
    <item>
      <title>How do I create a simple HTML form?</title>
      <dc:creator>Arzath Areeff</dc:creator>
      <pubDate>Tue, 06 Dec 2022 04:40:50 +0000</pubDate>
      <link>https://dev.to/techxnomad/how-do-i-create-a-simple-html-form-2hhm</link>
      <guid>https://dev.to/techxnomad/how-do-i-create-a-simple-html-form-2hhm</guid>
      <description>&lt;p&gt;HTML forms are used for gathering information from users, or for telling another website about your personal details. HTML forms are prefilled with data by the user and then sent to another site. In this tutorial, we are designing a basic form using HTML attributes and elements.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Output&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ft40gr850tw80sgql58ii.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ft40gr850tw80sgql58ii.png" alt="Image description" width="310" height="161"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Source Code&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;

&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
    &amp;lt;title&amp;gt;HTML FORM&amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;
    &amp;lt;body&amp;gt;
    Our new HTML form
    &amp;lt;form&amp;gt;
        Name:
        &amp;lt;input type="text"&amp;gt;&amp;lt;br&amp;gt;

      Password
        &amp;lt;input type="password"&amp;gt;&amp;lt;br&amp;gt;

      Gender
        &amp;lt;input type="radio"&amp;gt;Male
        &amp;lt;input type="radio"&amp;gt;Female
        &amp;lt;input type="radio"&amp;gt;Other
       &amp;lt;br&amp;gt;

      Email:
        &amp;lt;input type="email"&amp;gt;
        &amp;lt;br&amp;gt;

      Phone:
        &amp;lt;select&amp;gt;
            &amp;lt;option&amp;gt;071&amp;lt;/option&amp;gt;
            &amp;lt;option&amp;gt;075&amp;lt;/option&amp;gt;
            &amp;lt;option&amp;gt;076&amp;lt;/option&amp;gt;
        &amp;lt;/select&amp;gt;
        &amp;lt;input type="phone"&amp;gt;
        &amp;lt;br&amp;gt;

        &amp;lt;input type="submit"&amp;gt;
        &amp;lt;input type="reset"&amp;gt;

    &amp;lt;/form&amp;gt;
    &amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/kTkeLDrOVc0"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;References&lt;br&gt;
&lt;a href="http://www.w3schools.com" rel="noopener noreferrer"&gt;www.w3schools.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="http://www.w3schools.com" rel="noopener noreferrer"&gt;www.w3schools.com&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
