Posts

Showing posts with the label androidtutorial

7 Commonly Asked Interview Questions for Freshers with Answers

Image
A job interview proves extremely critical to a fresher. The fact that he has no prior experience working in the industry makes his interview process very important. The interviewers select a set of questions to gauge the candidate for the industry. The questions are devised to evaluate the knowledge and confidence of the candidate.  Here we have made a list of common job interview questions that a fresher may be asked during his job interview. The following mentioned are few general interview questions asked in an interview to freshers and also few interview advice and job interview tips for freshers. 1. Why have you chosen this field?   There are many people who select their profession after assessing their likes, dislikes and knowledge in different fields. But this is not the case with all students. There are youngsters who lack direction in life. These are individuals who are unable to identify their strengths early. They may choose a field just because it ap...

Android Notification Example Using NotificationCompat

Image
A notification is a message you can display to the user outside of your application’s normal UI(short message displayed on the status line).It typically announces the happening of an special event for which a trigger has been set.After opening the  Notification panel  the user may choose to click on a selection and execute an associated activity. The aim of the notifications is to keep the user informed about events or alerts in a more persistent method, as the user can view them at any time Notification Manager Android   allows to put notification into the titlebar of your application. The user able to expand the notification bar and by selecting the notification the user can trigger another activity. Notification can take different forms: 1.A presisent icon that goes in the status bar and is accessible through the launcher 2.Turning on or flashlight LED’s on the device 3.Alerting the user by flashing the backlight,playing a sound. ...

Android Services Tutorials

Image
A Service is one of the most basic android components that can perform a long-running task in the background and it does not provide a user interface. This course covers each and every fundamental concept related to a Service in Android. A service is a component that runs in the background to perform long-running operations without needing to interact with the user and it works even if application is destroyed. A service can essentially take two states Started Services Bound Services Click for more detailed explanation of Android services Life cycle

Activity Life Cycle in Android

Understanding Activity Life Cycle in Android Before using  Android Activity  in your application, It is important to  learn about the complete details of an Android Activity Lifecycle. As a user navigates throughout an app, Android maintains the visited activities in a stack, with the currently visible activity always placed at the top of the stack. During its lifetime, an Android activity will be in one of the following states: Running Paused Stopped Killed Activity Life Cycle methods Android Activity Lifecycle  is controlled by 7 methods, They are as follows, onCreate()  onStart() onResume() onPause()  onStop() onDestroy()  onRestart() Lets have a quick look at the Activity lifecycle with diagram , Click Here

Steps for Android Studio - Environment Setup

Image
Android Studio 1.Start your Android application development on either of the following operating systems −           Microsoft Windows 10/8/7/Vista/2003 (32 or 64-bit)           Mac OS X 10.8.5 or higher, up to 10.9 (Mavericks)          KDE desktop Required tools to develop Android applications  are open source and can be downloaded from the Web. you will need before you start your Android application programming.The list of software's follows, Java JDK5 Java Runtime Environment (JRE) 6 Android Studio 2. Setup Android Studio IntelliJ IDEA  works on Android Studio, If you are new to installing Android Studio on windows,you will find a file, which is known as android-studio-bundle-143.3101438-windows.exe .So just download and run on windows machine . To setup your environment on Windows machine having Windows 8.1 operating system. Installing Android Studio Let’s Laun...

Core Building Blocks of Android

Image
Android Application Components The basic components of any  android  application are as follows: Activities Services Broadcast Receivers Content Providers Android Application components Activities An activity is a class that represents a single screen. It is like a Frame in AWT.Activity is a Java code that supports a screen or UI.Since mobile phone screens are small, an activity typically takes up the whole screen. If you open multiple activities they are stacked at top of each other . You can’t arrange activities side by side, like you can do with desktop windows. Syntax public class MainActivity extends Activity { } Services A service is a component which runs in the background without direct interaction with the user. As the service has no user interface, it is not bound to the lifecycle of an activity. They handle background processing associated with an application. There are two types of services local and remote. Local service is accessed f...