Skip to main content

Posts

Showing posts with the label Android

How To Create Android Application Activity Life Cycle Testing Application

 Create Android Application Activity Life Cycle Testing Application

How To Create App for Input a Value and Show it as a Toast message and in a Text box

How To Create App for Input a Value and Show it as a Toast message and in a Text box  Step 1)  Create New Android Project With Empty Activity. Step 2)     Add a EditText, a Button and TextView In Design mode To activity_main.xml or Hardcode it . activity_main.xml – Design mode activity_main.xml – Text mode Step 3)   Program the App process in MainActivity.java. ·        Assign the Components. ·        Click Event. ·        Get Text , Set Text from EditText to TextView. ·        Toast Message.           MainActivity.java Code: import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.TextView; import android.widget.Toast; public ...

How To Create First Hello World Android Application

Create First Hello World Android  Application Step 1)  Click Create New Project   on Android Studio Landing Page or   File > New> New   Project On IDE. Step 2)     A new Wizard Will Appear in That Wizard Give Name To Your Application (Name Must Be Start With Capital Letter)   And you can Choose Project Location. After filling that Click NEXT . Step 3)   In Next Wizard You Have to Select Minimum SDK Version For Your Application Step 4)   Next Wizard Will be   for select First Activity Appearance    (Select It as Empty Activity) Step 5)   Next Wizard For Name The First Activity . After that Click Finish. ·        After Click Finish Default Hello World Project Will Build Automatically . ·        This Is the Layout Code of Default Hello Wor...