Tuesday, February 4, 2014

Facebook 10 th Anniversary

Today is Facebook 10 th Anniversary


This is Amazing check it out..             


Mark Zucekberg status update

Today is Facebook's 10th anniversary. It's been an amazing journey so far, and I'm so grateful to be a part of it. It's rare to be able to touch so many people's lives, and I try to remind myself to make the most of every day and have the biggest impact I can. People often ask if I always knew that Facebook would become what it is today. No way. I remember getting pizza with my friends one night in college shortly after opening Facebook. I told them I was excited to help connect our school community, but one day someone needed to connect the whole world. I always thought this was important -- giving people the power to share and stay connected, empowering people to build their own communities themselves. When I reflect on the last 10 years, one question I ask myself is: why were we the ones to build this? We were just students. We had way fewer resources than big companies. If they had focused on this problem, they could have done it. The only answer I can think of is: we just cared more. While some doubted that connecting the world was actually important, we were building. While others doubted that this would be sustainable, you were forming lasting connections. We just cared more about connecting the world than anyone else. And we still do today. That's why I'm even more excited about the next ten years than the last. The first ten years were about bootstrapping this network. Now we have the resources to help people across the world solve even bigger and more important problems. Today, only one-third of the world's population has access to the internet. In the next decade, we have the opportunity and the responsibility to connect the other two-thirds. Today, social networks are mostly about sharing moments. In the next decade, they'll also help you answer questions and solve complex problems. Today, we have only a few ways to share our experiences. In the next decade, technology will enable us to create many more ways to capture and communicate new kinds of experiences. It's been amazing to see how all of you have used our tools to build a real community. You've shared the happy moments and the painful ones. You've started new families, and kept spread out families connected. You've created new services and built small businesses. You've helped each other in so many ways. I'm so grateful to be able to help build these tools for you. I feel a deep responsibility to make the most of my time here and serve you the best I can. Thank you for letting me be a part of this journey.

New Microsoft CEO is goes to Indian person

New Microsoft CEO is goes to Indian person 




Mr.Satya Nadella becomes third CEO of Microsoft. He is a Indian person ,born 1967, birth place Hyderabad India.


more details - www.Microsoft.com 

Simple Calculator for Android

Simple Calculator for Android



Developing this application we need two files for android.that are XML file and JAVA file.Interface is showing above Xml file and Java file shown in below.

activity_main.xml file


<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:gravity="fill_vertical"
    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" >

    <TextView
        android:id="@+id/textView1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:gravity="center"
        android:text="Enter number 1 and 2\n" >
                                   
     </TextView>

    <EditText
        android:id="@+id/editText1"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignLeft="@+id/textView1"
        android:layout_below="@+id/textView1"
        android:ems="10"
        android:inputType="number" >

        <requestFocus />
    </EditText>

     <EditText
         android:id="@+id/editText2"
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:layout_alignLeft="@+id/editText1"
         android:layout_below="@+id/editText1"
         android:ems="10"
         android:inputType="number" />

       <Button
           android:id="@+id/btn1"
           android:layout_width="wrap_content"
           android:layout_height="wrap_content"
           android:layout_alignLeft="@+id/editText2"
           android:layout_below="@+id/editText2"
           android:layout_marginTop="22dp"
           android:text="+" />

       <Button
           android:id="@+id/btn2"
           android:layout_width="wrap_content"
           android:layout_height="wrap_content"
           android:layout_alignBaseline="@+id/btn1"
           android:layout_alignBottom="@+id/btn1"
           android:layout_alignRight="@+id/textView1"
           android:text="-" />

       <TextView
           android:id="@+id/textView2"
           android:layout_width="wrap_content"
           android:layout_height="wrap_content"
           android:layout_alignLeft="@+id/btn1"
           android:layout_centerVertical="true"
           android:text="Answer is" />

       <Button
           android:id="@+id/Button03"
           android:layout_width="wrap_content"
           android:layout_height="wrap_content"
           android:layout_alignBaseline="@+id/btn2"
           android:layout_alignBottom="@+id/btn2"
           android:layout_marginLeft="15dp"
           android:layout_toRightOf="@+id/btn2"
           android:text="*" />

       <Button
           android:id="@+id/Button04"
           android:layout_width="wrap_content"
           android:layout_height="wrap_content"
           android:layout_alignBaseline="@+id/Button03"
           android:layout_alignBottom="@+id/Button03"
           android:layout_alignRight="@+id/editText2"
           android:text="/" />

</RelativeLayout>




MainActivity.java file

package com.example.mycalapp;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.widget.*;

public class MainActivity extends Activity {
EditText num1,num2;
Button add,sub,mul,div;
TextView ans;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
num1=(EditText)findViewById(R.id.editText1);
num2=(EditText)findViewById(R.id.editText2);
add=(Button)findViewById(R.id.btn1);
sub=(Button)findViewById(R.id.btn2);
mul=(Button)findViewById(R.id.Button03);
div=(Button)findViewById(R.id.Button04);
ans=(TextView)findViewById(R.id.textView2);
add.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View arg0) {
// TODO Auto-generated method stub
int x=Integer.parseInt(num1.getText().toString());
int y=Integer.parseInt(num2.getText().toString());
int tot=x + y;
ans.setText("answer is " + tot);
}
});
sub.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View arg0) {
// TODO Auto-generated method stub
int x=Integer.parseInt(num1.getText().toString());
int y=Integer.parseInt(num2.getText().toString());
int tot=x - y;
ans.setText("answer is " + tot);
}
});
mul.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View arg0) {
// TODO Auto-generated method stub
int x=Integer.parseInt(num1.getText().toString());
int y=Integer.parseInt(num2.getText().toString());
int tot=x * y;
ans.setText("answer is " + tot);
}
});

div.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View arg0) {
// TODO Auto-generated method stub
int x=Integer.parseInt(num1.getText().toString());
int y=Integer.parseInt(num2.getText().toString());
int tot=x / y;
ans.setText("answer is " + tot);
}
});
}

@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return true;
}

}







Monday, February 3, 2014

HTML 5

what is HTML 5




HTML slandered for Hyper Text Markup Language. It is the new version of HTML.It is released in 2012 December now all major browsers such as chrome, Firefox, safari support html 5.In the HTML 5 they enhance the Graphical User Interface(GUI).Html 5 based to improve many areas for example.
                Mobile Application.
                      - combining HTML 5 and mobile application development they can improve the graphical user interface by using html 5.

new things in HTML 5

  • New features should be based on HTML, CSS, DOM, and JavaScript.
  • The need for external plugins (like Flash) needs to be reduced.
  • Error handling should be easier than in previous versions.
  • Scripting has to be replaced by more markup.
  • HTML5 should be device-independent.
  • The development process should be visible to the public.


Read more - 1stwebdesigner