Saturday, 14 March 2015

Life changes at any movement- #Start A New Life

Written For : https://housing.com/

Life changes at any movement. Each person’s life changes due to some good things or bad things. But it is necessary life has to change. If a person starts new life then only he will grow and he comes to know his capabilities what and all he can do. All famous people’s life changed after that only they became stars.

The same thing happened in my life. My life changed, I would like to call it “I Started a New Life”. Till my PU (10+2) I didn't get any prize, certificates in Sports. When I joined degree, it is compulsory to join any one sport activity. And it contains 50 marks. At the beginning I thought to join ball badminton, but from my home to college one hour journey so It is difficult to me play every day. So my new option is carom, but there is no university team from our college. Later I have no options so I joined Chess. I knew little bit Chess and I played with my brother and cousins. But don’t know exact rules. We were playing simply for time pass.



After joining Chess in my college, I started playing it regularly with my seniors. And each day I learned new tricks. Even I installed Chess game in my mobile phone and also played many times in pc. In 2007 there was a chess tournament in our college on account of independent day and I won runners. That is the First prize I got in sports. From there after my interest on chess increased and I started to refer many books and some ticks.

It really helped me to concentrate on particular topics, studies and all. In chess our mind becomes sharp, we can think different ways because in chess there will be a lot of solutions. This is the turn in my life. After that I started to play daily with my classmates and friends. And I got selected for college level university chess tournament. That is the first time I went somewhere because of sports. And I feel happy when I remember that movement.

In my second year of degree I got another prize and that time first place. On that day I realized if we do hard work really we can achieve something. And I achieved in two years. Even I attended chess coaching, which is held in our college for 5 days. That helped me a lot. Our chess trainer participated in World Chess Tournament. So he has too much experience in chess. He said us how to identify our opponent’s weakness and do it as our strength.

Even in my postgraduate I won three prizes in chess. Out of three one first place and reaming  two runners up.

According to me Chess is a good indoor game. It is a war between 2 minds. It improves your thinking capacity and also mind becomes sharp. We will improve our concentration power. So play the chess and tell others to play chess. 



also read ->  https://housing.com/


Journey which always done Together

A person’s journey starts from the time of his birth, and ends with his death. In between this time he will enjoy a lot with his family, friends, colleagues and pets. In our life time each day we will meet new peoples. And if the person is special then only we remember that person in our journey. 

College life is the most memorable time in our journey with different nature, characterized friends. Each one having their own attitude but all adjusts each other. We did lot of fun during free time. And much more tension during exam time. 



We have to find time in our busy schedules to study. In order to keep up we have to do daily assignments. Sometimes copy it from our friends. Reading every night helps to prepare for the exams. But this rule applies us on exam week. Taking notes in class and out of class are also necessary. We are collecting old question papers to analyze important questions and we spend lot of money for Xerox copies. At the end semester exams there and we start studying when the time table is published. After publish of time table we collect notes, text books from library and start group studies. All are studying till the last minute of exam. After completion of exams there will be a small party. Party is for name sake. If all meets together then there will be ultimate fun. 

In college days picnic time is totally a memorable day. And most of the students like hill stations, beaches and waterfalls. Without water picnic is not complete. Throwing water on friends is a funny movement. Singing songs, shouting during journey, sharing the snacks with friends increases the friendship. In between this someone takes photos and our pose is really awesome. In that one day we forget everything and enjoy fully. Trust me at the end of the day no one having energy all are feeling when to sleep and take rest. Next one week after picnic all are collecting photos from each other. While watching photos recall the fun which we did. 

After our studies all are busy in their own life. Some going abroad, some are in touch. When the time goes memories also getting erases because of new friends. But when we look the old photographs we still remember that day we enjoyed. 

Totally in our life time we face many problems as well our friends gives solutions which is not at all working! But still we are happy for their suggestions. All are giving different solution sometimes it looks like creative thinking. 

In hostel all are playing network related game like NFS Most Wanted, Counter Strike using WIFI. Sleeping late night and wake up at early morning. Many are sleeping inside classroom. From 11:00am to 3:00pm is the best time to sleep in class hours. 

Finally we miss our college days. And those who are studying now enjoy your life and build good memories, so you will remember it lifelong.

#Together we are, #Together we will always be.

Saturday, 6 December 2014

Friday, 25 April 2014

Android Code to set "Multiple Alarms"

Android Code to set "Multiple Alarms"

Screen Shots:


















Coding:

MainActivity.java

package com.example.multipleremainder;

import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;

import android.net.Uri;
import android.os.Bundle;
import android.provider.CalendarContract;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.widget.Button;

public class MainActivity extends Activity {

Button alarm;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

alarm=(Button)findViewById(R.id.button1);

alarm.setOnClickListener(new View.OnClickListener() {

@Override
public void onClick(View arg0) {
// TODO Auto-generated method stub
Calendar cal = new GregorianCalendar();
cal.setTime(new Date());
cal.add(Calendar.MONTH, 0);
long time = cal.getTime().getTime();
Uri.Builder builder = CalendarContract.CONTENT_URI.buildUpon();
builder.appendPath("time");
builder.appendPath(Long.toString(time));
Intent intent = new Intent(Intent.ACTION_VIEW, builder.build());
startActivity(intent);
}
});



}
}


Layout:

activity_main.xml

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:paddingBottom="@dimen/activity_vertical_margin"
    android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    tools:context=".MainActivity" >

    <Button
        android:id="@+id/button1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentTop="true"
        android:layout_centerHorizontal="true"
        android:layout_marginTop="174dp"
        android:text="Set Alarm" />

    <TextView
        android:id="@+id/textView1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignBottom="@+id/button1"
        android:layout_centerHorizontal="true"
        android:layout_marginBottom="64dp"
        android:text="Set Multiple Alarms"
        android:textAppearance="?android:attr/textAppearanceMedium" />

</RelativeLayout>


AndroidManifest.xml

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.multipleremainder"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk
        android:minSdkVersion="8"
        android:targetSdkVersion="18" />

    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >
        <activity
            android:name="com.example.multipleremainder.MainActivity"
            android:label="@string/app_name" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>

</manifest>

Share It

Followers