• Home
  • WP tuts
  • Blogger /blogspot
  • Digital Marketing
  • Hosting talk

RAaz Kumar .com

wordpress tutorials seo hosting etc

You are here: Home / Android syllabus Topics Course details / Toast

Toast

Toast:
To display some message to the user, we use Toast messaging in Android. For example, while filling a registration form, if the user misses filling some fields, we need to validate the form and show some information to the user to fill.

 

Syntax:
Toast.makeText(Context, message, duration).show();

Context – represents current screen context
Ex: Activity
Message – any message in String
Duration – We have 2 duration constants here

Toast.LENGTH_SHORT – To show upto 3 seconds
Toast.LENGTH_LONG – To show upto 6 seconds

Ex:
Toast.makeText(DemoActivity.this, “Hello Hyderabad”, Toast.LENGTH_LONG).show();






Android syllabus Topics Course details

  • Options Menu
  • JSON parsing
  • Handling Views
  • RelativeLayout
  • ActionBar
  • ListView
  • Custom List View
  • Dialogs
  • AlarmManager
  • Notifications
  • Vibration
  • WebView
  • Fragments Runtime
  • SQLiteDatabase
  • Bluetooth
  • WiFi
  • Google Maps
  • Handling Activity Back Button
  • AsyncTask
  • Runtime Permissions
  • Logging
  • Activity Lifecycle
  • Toast
  • Service
  • Database with Cursor Adapter
  • SharedPreferences
  • Location
  • Libraries
  • Webservices
  • Creating Activity class
  • Creating XML
  • Registering Activity in AndroidManifest.xml:
  • Steps for creating an Android application:
  • Handling button clicks
  • Identifying Views
  • Getting Text from Views
  • intent with Data
  • Intent
  • Resources Handling in Android
  • Intent with Result Data
  • Broad cast Receiver
  • Fragment
  • Handling Button click by using On Click Listener:
  • Material Design
  • RecyclerView
  • JSON
  • Rename Android Package [with images 2018]

Connect WithMe

 

Twitter

Facebook

Youtube

 

PUBG Mobile Tips & Tricks

Copyright © 2019 · Magazine Pro Theme on Genesis Framework · WordPress · Log in