Wednesday 11 November 2015

Java programming for beginners

About the Course:

Java programming for beginners is an excellent introduction in to the world of Java programming. Here you will learn the basic concepts, tools and functions that you will need to build fully functional programs with the popular programming language, Java. Java is the base for all object-oriented programming languages. You will have a full understanding of Java programming and be able to write Java programs. This online tutorial will teach you the different types of variables (bool, int, etc), what an operator is and how to use it (+,-,%,etc). You will learn about object-oriented programming, and creating classes and objects. You will control your programs with different types of control loops such as while and for, as well as making decisions with if-else statements. Each chapter is capped of with sessions so you can put in to practical use, what you learn in each section. Learn to program in the Java programming language through Merit Campus.



What you will learn through Merit Campus:


  • How to prepare your computer for programming in Java.
  • Java file naming conventions.
  • How to work with various data types including integers, floating point numbers, characters, and boolean.
  • What variables are and when to use them.
  • How to perform mathematical operations in Java.
  • Making decisions in your programs based on comparisons.
  • Other ways to control the flow of your programs.
  • How to manipulate textual data.
  • All about arrays i.e, how to create them, when to use them, and more.
  • Various ways to perform the same actions in your programs without repeating yourself.
  • Object oriented programming concepts and techniques including classes, modifiers, methods, inheritance, and polymorphism.
  • Ways to gracefully handle errors that might occur when someone uses your programs.


Why this course is useful?

This course is designed for beginners who wish to become a software developer by using Java, which is one of the most popular programming languages for web, desktop and mobile application, development. As a professional Java Developer, you will have excellent career opportunities. Not only that, the skill shortage is vast and companies cannot find qualified programmers. So this would be really a great opportunity for you to begin.


Course Contents:


1Overview Of Programming With Java
1.1What is Programming and Why We Need It
1.2Programming Languages And Skills
1.3How to become a good programmer
1.4More details on Java
1.5Simple Programs and Development environment
2Datatypes
3Variables
4Operators
5Control Statements
6Methods - Importance
7Array - Overview
8Classes
9Class Inheritance
10Methods Overiding, Overloading
11Abstract Class And Methods
12Interfaces, Packages and Access Control
13final, static and others
14Object Oriented Concepts - Revisited
15Exceptions
16Multithreaded Programming
17Generics
18Strings
19Exploring java.lang
20Collections Framework
21More Utility Classes
22Input/Output: Exploring java.io
23Other Core Java Topics

To know in detail about each chapter, visit: http://java.meritcampus.com/java-topics


Duration and Fee for the course:

- The course duration will be for 60 days.

Java Online Tutorial

Course Overview:

Merit Campus will help you explore all the concepts of java through our Online Java Programming Course. This targets Java Programmers & Developers who want to learn java through one of the best Java tutorial online. The Java Online Course will help you master Advance Java concepts like polymorphism, abstraction, concurrency and streams. At the end of this Online Java Programming Course you would be an expert in deploying Java across various platforms. 

Java is everywhere and is arguably the single most important technology out there. This course in Java programming is for serious developers. It is not just another java tutorial but aims to provide a relevant, modern and conceptual understanding of Java programming constructs. It aims to teach Java in a manner which will allow the student to write not only the correct Java but optimized, efficient and elegant code. It will allow you to understand the concepts behind the syntax.


Features:

The features of our online training are as follows:

  • Online tests to explore the resource learning.
  • Experienced trainers as instructors.
  • One to one personalized training with desktop access.
  • Our expertise support to solve the testing issues.
  • Resume build assistance to win in interviews.
  • Certification after completion of the course.

Why to go through Merit Campus?

As many other training institutes were competing, but Merit Campus is unique among them. Our role is not just to give you training and complete the course within the duration but we will track your status and let you rectify yourself in which you are lacking off. We also encourage you by conducting competitions daily, weekly and monthly. We also provide you the sessions for each topic where you can take the practice tests to test your ability on each and every topic. We also provide an internship opportunity to the one who clears Level-3 Competition with Merit Campus.
 http://java.meritcampus.com/contests
 http://meritcampus.blogspot.in/2015/10/internship-opportunity-through-merit.html


How to Join the Course?

One can join Merit Campus by registering in our site. You also can take a free demo from us to reach your expectations. If felt satisfied, then one can take up the training and start learning. 
Register: http://java.meritcampus.com/register


Duration and Fee:

- The course duration will be for 60 days.


Java Programming Tutorial

About Merit Campus Online Tutorial:

Merit Campus is especially for those who are completely new to java programming or you can say java programming for beginners. In this tutorial, students will upgrade their Java programming fundamentals. Emphasis is placed on practicing and reviewing objects and object-oriented programming. Introductory programming applications will be built, tested, and debugged to practice these skills. Learning java programming language is not a very difficult to do or deal with . In fact no programming language is difficult to learn all you need is a little bit of focus and determination. If you think that a thing is difficult to achieve then it is for you but in reality it is very easy. Our purpose of telling you all these things is to encourage you and boost confidence in you. If you have heard from somewhere that learning programming language is difficult then forget it. Its said by those who are not hard working and determinant. Just have confidence in yourself that you can learn and believe in yourself. This would certainly help in enhancing your programming skills and you may even understand the topic better than before.

What Does Merit Campus Comprise Of?


Merit Campus conducts various programming competitions to encourage the students with good programming skills. We have programming competitions like Monthly Competitions, Daily Dose and Top Coder 168.
Monthly Competitions:
If you like programming and you want to become a top class programmer, then these monthly contests test your programming skills and your commitment for it. You can learn lots of things on this journey. Ofcourse we give prizes, but they are puny compared to the learning you get.
As part of the Daily Dose contest, we will post four questions every day (excluding Saturday and Sunday) on Facebook (Merit Campus). The questions will be related to Programming with Java. Any one who liked our page can write the 'Correct answer/explanation' as a comment on the question post. The following recharges will be awarded for every dose (Total Rs. 25).

Top Coder 168:

If you can answer innumerable questions and write innumerable programs (simple or complex), then Top Coder 168 is the contest for you. Answer as many questions in 168 hours and if you do a good job, you will be rewarded. For answering the questions go to practice tests. There are no separate tests to be written for this, the practice tests are the competition tests.
Every day we post one Java Programming question on our Facebook timeline. If you know how to solve it, then explain the procedure/flow chart/algorithm in simple English. Do not include the code directly. These should be written in a such a way that, any person wanting to solve this should get an idea about how to solve but it should not give complete logic.

What We Do For You?

Once you join with us, the regular classes will be taken for you and no wait from our side to complete the course within the prescribed duration. We will cover all the topics that are mentioned and will make you an perfect programmer after leaving us.

Duration and Fee:

- The course duration will be for 60 days.









Friday 6 November 2015

Online Java Training

About The Course:

Merit Campus Online training in Java is designed for students and professionals who want to be a Java Developer. We follow a practical approach of learning  in order to provide a real time experience. This course will not only cover all the basic concepts but also the advanced concepts like Method Overloading & Overriding, Inheritance, Interfaces, etc. As Java language finds its own position in today's IT Industry, every IT professional should be thorough with the Java programming. This Java course covers all topics required for you to become a self sustained Java Developer. This course is an ideal platform for you to start learning Java and go on to explore more advanced features and ideas of Java in the future.


Course Objectives:


- You can spend complete attention on topic when you are in class.
- Proper revision plan.
- 100% coverage on the the prescribed syllabus.
- We provide highly talented and experienced trainers to guide you.
-  Intensive care provided for students who are interested in Java Certification.

Highlights of our Java Course:

- Learn how to avoid common mistakes which developers do so as to improve target performance level of application.
- Learn writing programs on your own without depending on anyone.
- Learn efficient test cases writing techniques.
- Learn how to write code with out impacting existing code.
- Learn about common interview questions and tricks to deliver answer.

Who can take the Java training?

This course is open to working professionals, recent graduates. Its also open to current students. No previous programming experience is required. The only requirement is that students have a strong desire to have a career as Java developer and be willing to work hard and have fun learning and doing all the assignments.

Advantages Through Merit Campus:

-You will get a certification once you are done with the course.
- Practical knowledge will be gained by taking the practice tests in our site.
- You will be having sessions for each and every topic with clear explanation.
- We encourage you by conducting competitions like Daily Dose, Top Coder 168 and monthly competitions.
- An Internship opportunity will be provided if you finish the Level-3 Competitions with Merit Campus.

Course Fee and Duration:

- The course duration will be for 60 days.
- The fee that we charge for this training is Rs. 4096 (~80 USD).

Relevant Links:









Learning Java Online

Are you Looking to learn java online? It is simple now to learn programming online from anywhere, even after a hard day’s work at office through Merit Campus.


Why Should You Learn Java Online?

Java is not only one of the most popular programming languages, but it has a presence almost everywhere. This language is simple to learn, develop , has excellent editors and APIs available in the language are rich. Of course, the major point is that there are tons of openings for programmers who know Java out there in the job market and this is the key factor for most people.

Why Should You Learn From Us:

Sometimes, just going through an online java tutorial alone isn’t enough to acquire adequate skills. But you need expert guidance, and the right kind of training to become an expert Java programmer. This is what Merit Campus actually do. With our guidance and training, you can sure become a top Java programmer. So Merit Campus helps you in all the ways to make you an expert in Java and let you be strong enough to write programs.


What You Get From Us?

Once you join Merit Campus
  • You can handle any kind of errors and can correct them on your own.
  • Examples from various domains are provided to make sure we cover it all.
  • Programming language basics are included in the sessions too to make it easier for beginners. 
  • Teaching staff is proficient, committed and passionate and are pioneers in the field.
  • Live online classroom training that is facilitator led. 
  • Certification guidance.
  • Classes are recorded and the video sessions are provided to our students.
  • Offline chat or email support by the faculty to resolve any questions.
  • Practical, real time examples and assignments.
  • Internship Opportunity.
  • Eligibility to participate in Merit Campus Competitions.

How to Join:

Its just simple joining Merit Campus, firstly register with us and take a free demo from us. If our demo satisfy your expectations, then don't hesitate to take up the training from us.


Duration and Fee For The Course:

- The course duration will be for 60 days.
The fee that we charge for this training is Rs. 4096 (~80 USD).

Relevant Links:


Thursday 5 November 2015

Core Java Topics

Learn Core Java:

Merit Campus is the Online Tutorial for Java beginners to learn basic concepts of Core Java.Here you can get covered with the full topics of Core Java.

About Merit Campus:

Java is a perfect programming language for anybody who wants to learn Object Oriented Concepts. In our core java training, at Merit Campus, the best of the teaching methodologies are followed so that the students can gain the best of knowledge on each and every topic in the course. As we have expert trainers with long real time experience, we deliver training with practical real time awareness along with the theoretical understanding. Students are guided through the training in such a way that they can develop a standalone application by the end of core java training course.

Merit Campus is the ultimate core java training destination. We can proudly say that students trained with us have very good command on the subject than those trained elsewhere. Course material covering all the topics is given to help the students learn better. Daily assignments and regular assessments are conducted to help groom their technical skills. Good learning environment, regular assistance and well cataloged training procedures are the key features of Merit Campus.


Topics in Core Java that We Cover:

The Course that we offer you will cover all the below mentioned topics from chapter 1 to chapter 23.

1Overview Of Programming With Java
1.1What is Programming and Why We Need It
1.2Programming Languages And Skills
1.3How to become a good programmer
1.4More details on Java
1.5Simple Programs and Development environment
2Datatypes
3Variables
4Operators
5Control Statements
6Methods - Importance
7Array - Overview
8Classes
9Class Inheritance
10Methods Overiding, Overloading
11Abstract Class And Methods
12Interfaces, Packages and Access Control
13final, static and others
14Object Oriented Concepts - Revisited
15Exceptions
16Multithreaded Programming
17Generics
18Strings
19Exploring java.lang
20Collections Framework
21More Utility Classes
22Input/Output: Exploring java.io
23Other Core Java Topics

You can also can in detail about each and every chapter by visiting our site


Core Java Training Duration and Fee:

- This training takes 60 days of duration to complete.

- The fee we charge for this training is RS. 4096 (~80 USD).


Links For Reference:



 


Online Core Java Training

About Core Java Training:

As java is highly preferred in the current IT industries, Core java training teaches you how Java today has become one of the very popular digital applications? Which is used in web designing & is being preferred by a fresher who started his work recently as well as high end users for different purposes. Core Java training, an object oriented programming language is classified into three basic level of programming viz. core java programming, specialized java programming & advanced Java programming. Among these first basic level is called basic or core Java programming language & is the first step of mastering Java language. While attending a technical interview you will be asked most question on the basic java as interviewer wants to check the core knowledge of the candidate.

If your core java knowledge is not strong then you would not be able to develop your unique application and hence flourishing in the ever growing & expanding IT industry would become impossible. So take up our online training through Merit Campus.
Read more at: http://java.meritcampus.com/expert-java-training


Core Java Training Objectives:

The objectives of this course are:
- To become familiar with the features of Java Language
- To discover how to write Java code according to Object-Oriented Programming principles.
- To become comfortable with concepts such as Classes, Objects, Inheritance, Polymorphism and      Interfaces
- To learn Java APIs for Collections, I/O Streams
- To design GUI applications and Applets using AWT and Swing.
- To develop Multithreaded and Networking applications.
- To develop database applications using JDBC.


Prerequisites:

This course is designed to meet the needs of those who want to be professional Java developers. This will also help the audience to get through the Java Programmer Certification. No prior knowledge is required to take up this course as our trainer's guide from the ground level. You just need to register with us and must show your dedication in learning.

What does the course comprise of?

Core java online training course and classes provide you a great insight into the development of programs on the Java platform. At Merit Campus, you can get knowledge on the whole concepts involved in Core Java. We let you take the sessions that we have within our site.
To know about the syllabus that we cover visit: http://java.meritcampus.com/java-topics


Opportunities after course completion:

- We provide you the Merit Campus certification on the course you had taken up.
- An Internship Opportunity will be offered to you on completing Level-3 competition with Merit Campus.
- You will become a top class programmer.

Duration of the Course and Fee:

The Duration of the course will be for 60 days.
- The fee that we charge for this training is RS. 4096 (~80 USD).

Links For Reference:







Wednesday 4 November 2015

Learn Android through examples

Create HelloWorld Activity

In this example, we show you how to create a simple “hello world” Android project in Eclipse IDE + ADT plugin, and run it with Android Virtual Device (AVD). The Eclipse ADT plugin provided easy Android project creation and management, components drag and drop, auto-complete and many useful features to speed up your Android development cycles.
tutorial
Summary steps to develop an Android application :
Install Android SDK
Install ADT Eclipse plugin
Create an Android Virtual Device (AVD)
Create Android Project with Eclipse (Wizard)
Code it…
Start it in Android Virtual Device (AVD)


Tools used in this Example:
JDK 1.6
Eclipse IDE 3.7 , Indigo
Android SDK


Activity lifecycle

An activity can be in different states depending how it is interacting with the user.

Activity state

Running : Activity is visible and interacts with the user.

Paused : Activity is still visible but partially obscured, instance is running but might be killed by the system.
Stopped : Activity is not visible, instance is running but might be killed by the system.
Killed : Activity has been terminated by the system of by a call to its destroy() method.

https://bitbucket.org/meritcampus/android-activity-life-cycle

Merge Two Names

In this example we will merge two names. We create a layout with two EditText fields to take names, and We create an Add Button to perform merge operation. We will learn how to add onClickListeners to a Button, and we will also see how to display the output in a TextView.

Add Two Numbers

In this example, we will add two numbers and display the output. We create a layout with two EditText fields to take the numbers from the user, and We create an Add Button to perform addition operation. We will add onClickListeners to the Button and displays the output in the TextView

ActionBar Menu

Android action bar was introduced to maintain a consistent navigation across the application. It has the powerful capabilities like adapting to screen configurations (landscape & portrait), prioritizing important actions, adding widgets to action bar (search, sharing etc.), providing navigation between screens (drop-down & tabbed navigation) and much more.

In this example, we are going to cover most of the action bar functionality.


Android Flames 

In this example, we will find the FLAMES status between two given names. We create a layout with two EditText fields to take names, and We create an Result Button to perform operation. We will write our logic for calculating FLAMES in onClick() method and displays the result in TextView.

Love Index 

In this example, we will find the Love Index between two names. We create a layout with two EditText fields to take names, and We create an Result Button to perform operation. We will write our logic for calculating love index in onClick() method and displays the result in TextView.

Simple Interest (PTR / 100 )

In this example, we will  find the Simple Interest for the given amount with respect to time and rate of interest. We create a layout with three EditText fields to take the amount, time and rate of interest, we will create a calculate Button to find the Simple Interest. We write our logic in onClick() method. When we click on the calculate button it will automatically goes to onClick() method, in onClick() we get the id's of EditText and Button from resource layout and calculate the Simple Interest and displays the result in TextView.

EMI Calculator

In this example we will  find the EMI for the given loan with respect to loan tenure month and rate of interest. We create a layout with three EditText fields to take the amount, months and rate of interest, we will create a find Button to find the EMI. We write our logic in onClick() method. When we click on the Find button it will automatically goes to onClick() method, in onClick() we get the id's of EditText and Button from resource layout and calculate the EMI and displays the result in TextView.

ListView

One of the UI component we use often is ListView, for example when we need to show items in a vertical scrolling list. One interesting aspect is this component can be deeply customized and can be adapted to our needs. In this example we will analyze the basic concepts behind it and how to use this component.
In order to show items inside the list, this component uses an adapter, so if we want to populate the list we have first create or use existing adapters. Android SDK has some standard adapters that are useful in many cases.
ArrayAdapter : ArrayAdapter uses a Text View to display each item within it. Behind the scenes, it uses the toString() method of each object that it holds and displays this within the TextView. ArrayAdapter has a number of constructors that can be used and the one that you have used in your example is :ArrayAdapter(Context context, int resource, int textViewResourceId, T[] objects)
By default, ArrayAdapter uses the default TextView to display each item. But if you want, you could create your own TextView and implement any complex design you'd like by extending the TextView class. This would then have to go into the layout for your use. You could reference this in the textViewResourceId field to bind the objects to this view instead of the default.

GridView 

Android Grid view is a type of 2-D(Two dimensional) view used to show images into grid thumbnail format. Grid view is also scrollable type view because after adding elements in grid view it will automatically set all these elements into scrollable view. This type of view basically used to show images on small small grid format on a single screen platform. So application user can easily show them equally.

Android grid view gives complete dynamic environment to its developer. App developer can insert multiple images, items into Grid view using list adapter. All you have to need some basic knowledge to use list adapter. Grid view also shows us small images thumbnails like you see in your android image system image gallery. Every image has its own thumbnail.

Spinner

In this example, we will create an Android application with a spinner widget containing a list of countries. On selecting a country from the list, the selected country will be displayed in a TextView widget.
Listining spinner using OnItemSelectedListener.Mind that never use OnItemClickListener for spinner.when you use spinner then set OnItemSelectedListener for get selected item from spinner.you can get Selected value from spinner using getSelectedItem in onItemSelected method.
And onNothingSelected method is called when you choose nothing from spinner.
When you setOnItemSelectedListener to spinner it called when your Activity
start .and its called onItemSelected method.So you can get default selected value from spinner.


TimePicker

In this Example we will see about Android TimePicker Dialog ,we will see an example of selecting Time from Timepicker dialog and display it in the TextView.This dialog will disable the background activity until the user select the time and click ‘ok’ tab of the dialog shown.

Firstly We get the instance of calender class and get the minute and hour of the system and set it to Textview.

DatePicker

Using DatePicker user can set a specific date by setting the day, month and year of Date Picker. In our example  there will be one button 'selectDate'. When user clicks on selectDate it will display a dialog box and user will select the date and will click on 'ok' it will display the date previously selected by user.

https://bitbucket.org/meritcampus/android-date-picker

Camera 

In this example, we will take a look at how to integrate camera with our Android application. Android provides you with 2 options while working with Camera:

Use an existing Camera application
Work with Camera hardware API directly

If you are developing a full fledged camera application, then you need to work with the Camera API directly as it gives you more control but it involves a lot more coding. If you just want to integrate the camera with your app, the first option is better and simpler. In this example, we will learn how to use an existing camera app with our application. We will create a simple application that will take pictures and display the picture in the Acitity using onActitivityResult() method.
In this example, we will show you how to create a calculator application in Android. It will have the following functionality: division, multiplication, subtraction, addition, decimal place, decimal calculations and a cancel button.

Custom ListView

ListView is a view group that displays a list of scrollable items. The list items are automatically inserted to the list using an Adapter that pulls content from a source such as an array or database query and converts each item result into a view that's placed into the list.

In this example, we show you how to create a custom list view with some images, texts... We want to make a list view to store information about a list of movies, in particular each row has to contain: an image of the movie, name of the movie, name of the hero, name of the music director and name of the director.

https://bitbucket.org/meritcampus/android-custom-list-view

Fragment

Fragment is modular section of an activity, which has its own lifecycle, receives its own input events, can be dynamically or statically added to a layout.

To create a fragment, you must create a subclass of Fragment (or an existing subclass of it). The Fragment class has code that looks a lot like an Activity. It contains callback methods similar to an activity, such as onCreate(), onStart(), onPause(), and onStop() .

Usually, one should implement at least the following lifecycle methods:

onCreate() : The system calls this when creating the fragment. In this call, we can initialize essential components of the fragment that we want to retain when the fragment is paused or stopped, then resumed.

onCreateView() : The system calls this when it’s time for the fragment to draw its user interface for the first time. To draw a UI we must return a View from this method that is the root of fragment’s layout. We can return null if the fragment does not provide a UI.

onPause() : The system calls this method as the first indication that the user is leaving the fragment.

ListFragment

In this example we shall see how to create a simple list fragment that uses array adapter to bind data to items of listview.

Create a class CountryListFragement and extend it to ListFragment .
Inside the onCreateView() method , inflate the view.
Inside the onActivityCreated() method , set adapter to listview and also set the onItemlong click Listener .
Inside the onListItemClick() method , display a toast message with Item name which is being clicked.

Service LifeCycle

A service is a application component used to perform long running tasks in background like  downloading of data from internet, saving multiple records into database, perform file I/O, etc. For such long running tasks, Service is the alternative.
A service doesn’t have any user interface and neither can directly communicate to an activity.
A service can run in the background indefinitely, even if component that started the service is destroyed.
Usually a service always performs a single operation and stops itself once intended task is completed.
A service runs in the main thread of the application instance. It doesn’t create its own thread.
onCreate() : This method is Called when the service is first created
onStartCommand(Intent intent, int flags, int startId) : This method is called when the service is started
onBind(Intent intent) : This method must be called when you want to bind with any activity
onUnbind(Intent intent) : This method is Called when the service will un-binded from activity
onRebind(Intent intent) : This method is called when you want to Re-bind service after calling un-bind method
onDestroy() : This method is called when The service is no longer used and is being destroyed

Intent Service 

IntentService is a base class for Services that handle asynchronous requests (expressed as Intents) on demand.The IntentService is used to perform a certain task in the background. Once done, the instance of IntentService terminates itself automatically.

The intentService class provides a method onHandleIntent() which will be asynchronously called by the Android system.

Another interesting aspect is how we can get the values back from the IntentService. As we, already, know the calling activity doesn’t wait for the result, so we have to find another way. Generally speaking there are different ways to solve this problem, in this example we will see how to use ResultReceiver. 

Bound Service

A bound service is an implementation of the Service class that allows other applications to bind to it and interact with it. To provide binding for a service, you must implement the onBind() callback method. This method returns an IBinder object that defines the programming interface that clients can use to interact with the service.
A client can bind to the service by calling bindService(). When it does, it must provide an implementation ofServiceConnection, which monitors the connection with the service. The bindService() method returns immediately without a value, but when the Android system creates the connection between the client and service, it calls onServiceConnected() on the ServiceConnection, to deliver the IBinder that the client can use to communicate with the service.

BroadCast Alarm Notification

Sometimes we need to create an application that notifies a user at a particulartime/date even though the user has not opened the application. The Android SDK provides developers an abstract class called BroadcastReceiver which is used to pass a notification to the user in case any specific event occurs.
In addition, developers can also schedule and add events using theAlarmManager class. As stated in the Android developer’s guide, when an alarm goes off, the Intent that had been registered using AlarmManager is broadcasted by the system, automatically starting the target application if it is not already running.
Using the above concepts, we will now create an Android application that sends a notification message to the user at a particular time (for example: 9:25:00 AM).


Order BroadCast

Broadly there are two major classes of broadcasts:

Normal Broadcasts : Normal broadcasts are not orderly. Therefore, the registered receivers often run all at the same time. This is very efficient, but the Receivers are unable to utilize the results.

Ordered Broadcasts : These Ordered Broadcasts are synchronous, and therefore follow a specific order. The order is defined using android: priority attribute. The receivers with greater priority would receive the broadcast first. In case there are receivers with same priority levels, the broadcast would not follow an order. Each receiver (when it receives the broadcast) can either pass on the notification to the next one, or abort the broadcast completely. On abort, the notification would not be passed on to the receivers next in line.

BroadCast Alarm Manager

Sometimes we need to create an application that notifies a user at a particulartime/date even though the user has not opened the application. The Android SDK provides developers an abstract class called BroadcastReceiver which is used to pass a notification to the user in case any specific event occurs.

In addition, developers can also schedule and add events using the AlarmManager class. As stated in the Android developer’s guide, when an alarm goes off, the Intent that had been registered using AlarmManager is broadcasted by the system, automatically starting the target application if it is not already running.
Using the above concepts, we will now create an Android application that Vibrate the mobile phone.

Sqlite Database Create Table

Android provides several ways to store user and app data. SQLite is one way of storing user data. SQLite is a very light weight database which comes with Android OS.

To create and upgrade a database in your Android application you create a subclass of the SQLiteOpenHelper class. In the constructor of your subclass you call the super() method of SQLiteOpenHelper, specifying the database name and the current database version.

In this class you need to override the following methods to create and update your database.

onCreate() - is called by the framework, if the database is accessed but not yet created.
onUpgrade() - called, if the database version is increased in your application code. This method allows you to update an existing database schema or to drop the existing database and recreate it via the onCreate() method.

Both methods receive an SQLiteDatabase object as parameter which is the Java representation of the database.

The SQLiteOpenHelper class providesthe getReadableDatabase() and getWriteableDatabase() methods to get access to an SQLiteDatabase object; either in read or write mode.


https://bitbucket.org/meritcampus/android-database-create-table

Insert Student Data Into DataBase


DataBaseHelper class defines a method  that accept object that provides values to be inserted into the database. There are two instances of type SQLiteDatabase and ContentValues class types, created respectively. A put() method initializes values to be inserted into the database and insert() method of SQLiteDatabase class is used to insert record into the database that accept three parameters “table-name”, second will remain null and third will be the ContentValues class type instance variable. Once a record is inserted into the database, database connection should be closed using SQLiteDatabase class method close().
https://bitbucket.org/meritcampus/android-student-database


Insert Update Delete Database Example

Insert : Defines a method inside database helper class that accept object that provides values to be inserted into the database. There are two instances of type SQLiteDatabase and ContentValues class types, created respectively. A put() method initializes values to be inserted into the database and insert() method of SQLiteDatabase class is used to insert record into the database that accept three parameters “table-name”, second will remain null and third will be the ContentValues class type instance variable. Once a record is inserted into the database, database connection should be closed using SQLiteDatabase class method close().

Update : The update method of an instance of SQLiteDatabase class updates the data in a row or in multiple rows of a database table. Like with the insert method, you could use the execSQL query to run a SQL UPDATE query, but using the updatemethod is safer.

Delete : The delete method of an instance of the SQLiteDatabase class deletes a row or in multiple rows of a database table. Like with the insert method, you could use the execSQL query to run a SQL UPDATE query, but using the delete method is safer

https://bitbucket.org/meritcampus/android-database-example


Find Latitude and Longitude

In this example you will learn about Geocoding and how to find latitude / longitude for a given address location.
Geocoding is, converting the physical location address to latitude and longitude. Reverse geocoding is finding the location address based on the latitude and longitude.
We should instantiate the Geocoder class and use the method getFromLocationName to get the complete address which includes the latitude and longitude.

https://bitbucket.org/meritcampus/android-latitude-and-longitude


Navigation Drawer Layout

In most of the android applications like Facebook , Gmail ,you tube, amazon kindle , true caller .. etc we have seen a side menu which appears on click of an icon on top left corner or by dragging on to the screen from left to right , so here in this example we shall see how to create the sliding menu for our android applications .
https://bitbucket.org/meritcampus/android-navigation-drawer-layout

Page to Page Navigation

In this example we will learn how to do page to page navigation using android animations
When you start an activity or finish the current activity the transition between the activities can be animated using the method overridePendingTransition. You have to give the resource Id of the animation resource to use for the incoming activity and the outgoing activity. If you don't want to provide any animation just pass 0 instead of the animation resource In this example we will review how to push a new activity screen from the bottom and push out the calling activity from the top. When finished with the called activity we just do the opposite basically the screen drops from the top to the bottom. Also in this example we have the animation resources for sliding the screen from left to right and vice versa. You have to create a folder named anim inside the res folder and drop the animation resources there.

https://bitbucket.org/meritcampus/android-page-to-page-animation


View Flipper

Android provide us many ways through which we can create swiping views, Android ViewFlipper class is one of the such ways. Its not just swiping screen, we can build much more functionality from it like slideshows. Android ViewFlipper’s xml layout has two special attributes which facilitate this function. These attributes are android:autoStart and android:flipInterval, they function as their name suggests, autoStart specifies that whether the ViewFlipping should start automatically or not when view appears. flipInterval specifies the interval between a flip. In this example we will see how to use View Flipper in our Android applications.