MY mENU


Sunday, 16 September 2012

Share Your Data in Android


This example shows how you can share your text and data with your friends.
Algorithm:
1.) Create a new project by File-> New -> Android Project name it ShareYourData.
2.) Write following into activity_main.xml:
xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:background="#C0C0C0"
    android:orientation="vertical" >
    <Button
        android:id="@+id/button2"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Share Data"
        android:onClick="shareData"
        />
</LinearLayout>
3.) Write following into res/values/styles.xml:
xml version="1.0" encoding="utf-8"?>
<resources>
        <style name="myText">
                <item name="android:textColor">#000000</item>
                <item name="android:textSize">22sp</item>
                <item name="android:padding">3dip</item>
        </style>
</resources>
4.) Run for output.
Steps:
1.) Create a project named ShareYourData and set the information as stated in the image.
Build Target: Android 4.0
Application Name: ShareYourData
Package Name: com. example. ShareYourData
Activity Name: MainActivity
Min SDK Version: 11
2.) Open MainActivity.java file and write following code there:
package com.example.shareyourdata;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
public class MainActivity extends Activity {
        /** Called when the activity is first created. */
        @Override
        public void onCreate(Bundle savedInstanceState) {
                super.onCreate(savedInstanceState);
                setContentView(R.layout.activity_main);
                }
        public void shareData(View view) {
                Intent intent = new Intent(Intent.ACTION_SEND);
                intent.setType("text/plain");
                intent.putExtra(Intent.EXTRA_TEXT"This is my shared text");
                startActivity(Intent.createChooser(intent, "Share this text via"));
        }
}
3.) Compile and build the project.
Output

Thursday, 13 September 2012

This Is The Situation For Many Engineering Students

PPLY, APPLY- BUT- NO REPLY

This Is The Situation For Many Engineering Students
In A.P Today.
(Due To Global Economic Crisis)

Their Thoughts & Present Situation-
1) GATE Coaching
2) Job Oriented Course In Ameerpet
3) Backdoor Entries (Govt Or Private)
4) Civils Or Groups Preparation
5) Bank Exams
6) Going To Banglore In Search Of Job
7) Soft Ware Boom Will Come Again
8) What To Do
9) Humble Request

Know The Facts:-
1) GATE Coaching
Its Good Idea, But Competition Is Very High, Don't Take It Easy.
2) Job Oriented Course In Ameerpet
This Idea Is Mostly Benefiting Coaching Centers, Rather Than Students,
Updating Your Skills Is a Great Thing, But There Are Very Very Few Jobs Available. Even TCS , Infosys and Many Other Company's Not Yet Provided Offer Letters To Last Year Selected Candidates. and This Year Campus Selections Not Yet Started In Any College. With This We Can Analise The Situation.
3) Backdoor Entries (Govt Or Private)
This Is Very Bad Idea & It Will Not workout. Most Of The Times You Will Be Cheated By Someone, Finally You Will Lost Lots Of Money, Nothing Will Happen. Shift, Delete This Idea.
4) Civils Or Groups Preparation
This Is Not an Easy Task As You Think.
Jobs Reservation System In A.P-
33% Women
27% BC
15% SC
7% ST
3% Physically Challenged
Total - 85%
and Rest Of 15% Is Open (Not For OC-This Is Open Category)
- Preparing For Civil Services Needs At least 3-4 Years Time & 5-6 Lakh Rupees Of Money. (In General and Average Cases)
5) Bank Exams
Most Of The Students Applying, Lakhs Of People Preparing For This.
Competition Is Very High & It Needs At least ONE YEAR Serious Preparation.
6) Going To Banglore In Search Of Job
- Cost Of Living In Banglore Is Double Than CitySpace hyderabad.
- If ONE Job Is Available In hyderabad, You Expect FIVE Jobs In Banglore, But When ZERO JOBS Available In hyderabad, How Can You Expect, Many Jobs In Banglore?
7) Soft Ware Boom Will Come Again
This May Not Be True, But Not Sure.
If Comes,
- There Are 3 Lakh Engineering Students In A.P In Search Of Job (Only This Year)
- One Lakh MBA & MCA Students
- Many M.Sc & Degree Students
- Last Year Students (All The Above Categories)
- This Is Only In A.P, What About Other States.
- If Software Boom Comes Again, Companies Will Recruit Freshers In Campus Selections, Not This Year Or Last Year Students.
8) What To Do
- Identify Your Key Skills & Focus On That.
- What Ever You Choose, Take It Very Seriously and Sincerely.
- Self Employment Or Doing Business Is Not a Crime.
9) Humble Request
These Are some Observations or Opinions, These May Be Wrong, But Think About These Ideas..........

Wednesday, 12 September 2012

Time & Date in PHP

PHP has the ability to dynamically generate the time and date. Using a simple line of code we are able to include this on our site, however it is important to know how the formatting works.
 
The above code outputs a long string of numbers. What these numbers represent is the time based in the amount of seconds that have passed since January 1 1970 00:00:00 GMT. This number can also be assigned to a variable:
  
Although this is a handy feature, sometimes you want a more formatted and human friendly representation of the date. You can use the date function in conjunction with the time function to display this in the format of date ( format , time ) In our case we want the start time to be now, so we will call the time first. We will demonstrate many different types of formatting
 "; 
 print date("D, F jS",$b) . "
"; 
 print date("l, F jS Y",$b) . "
"; 
 print date("g:i A",$b) . "
"; 
 print date("r",$b) . "
"; 
 print date("g:i:s A D, F jS Y",$b) . "
"; 
 ?> 
When you run this code you will see that the information is formatted in many different ways. What each of the letters means for formatting is explained on the next page.