Skip to main content

Posts

Toast in Android? What is Toast?

  Toast in Android? What is Toast? Toast is used to provide an alert dialog in the android application that will be automatically closed according to a given time interval. Toast is the predefined class that contains maketext() to display content. maketext() contain three different parameters. 1)  Address of container:-  we can use this, getApplicationContext, getContext, Activity Instance, Widget instance. 2) Message:-   It is used to display content in String Format 3)  Duration:-  we can pass time interval in milliseconds or Time Constant Length_Long (3 sec) and Length_Short(1 sec) 4) show():-  It is used to display alert box or toast into the application. Example of Toast 1)  Design File:- <? xml version ="1.0" encoding ="utf-8" ?> < LinearLayout xmlns: android ="http://schemas.android.com/apk/res/android" xmlns: app ="http://schemas.android.com/apk/res-auto" xmlns: tools ="http://schemas.android.com/tools" andr...

Intent in Android

 The intent in Android:- The intent is created by Intention whose meaning is to navigate from one activity to another. In the android application, we will use the Intent class to manage Intent Activity. Type of Intent:- 1)  Implicit Intent:-   this type of Intent is used to call predefine activity of Android that is already in-built on the Android operating system. For example when we dial a call then dialer screen is an example of Implicit Intent. When we surf any URL into the Android browser then it will automatically open the browser view which is an example of Implicit Intent. Intent  I  = new Intent(PredefineActivity) call to predefine activity dialog startActivity(I) Example of Implicit Intent:- JAVA FILE:- package com.example.additionapplication; import androidx.appcompat.app.AppCompatActivity; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.view.View; import android.widget.Button; import java.net.URI; publi...

Latest Job Alert on Java, .NET, PHP, Android, Django, Python and QA Profile:-

  Latest Job Alert on Java, .NET, PHP, Android, Django, Python and QA Profile:- Golden Eagle It Technologies Pvt Ltd #Ruby_On_Rails_Developer #Angular_Developer #Ionic_Developer #Python_Django_Developer Experience- 1 to 4 years Salary- No bar for the right candidate Location- #Indore Note- #immediate_joiners only Email resume to- hr@geitpl.com

Layout in Android?

  Layout in Android? It is used to display screen structure( layout) in Android Application, Layout can be Linear, Relative, Grid, Table, Absolute, Frame, and Constraint Layout in Android. We can create Layout initially in the android application because Layout provides Parent and Child Container in the Android application. The default orientation of the Linear Layout is Horizontal. 1) Linear Layout:- It is used to display elements using Linear sequence and its orientation can be verticle and horizontal. Linear Layout is the simplest layout in android applications. We can easily place a Linear Layout as a Parent Layout and Child Layout. 1) <LinearLayout android:orientation="verticle" > </LinearLayout> 2)   Linear Layout using Nested Sequence. <LinearLayout android:orientation="verticle" > <LinearLayout android:orientation="verticle" > </LinearLayout> <LinearLayout android:orientation="verticle" > </LinearLay...