Friday, 1 August 2014

Simple Name Calsi App

 SIMPLE FRIENDSHIP CALSI :


Designing Part

XML CODING :


<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" >

    <EditText
        android:id="@+id/et1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentTop="true"
        android:layout_centerHorizontal="true"
        android:layout_marginTop="61dp"
        android:ems="10"
        android:hint="@string/name_1"
        android:inputType="textPersonName" />

    <EditText
        android:id="@+id/et2"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignLeft="@+id/et1"
        android:layout_below="@+id/et1"
        android:layout_marginTop="20dp"
        android:ems="10"
        android:hint="@string/et2"
        android:inputType="textPersonName" >

        <requestFocus />
    </EditText>

    <Button
        android:id="@+id/b1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignLeft="@+id/et2"
        android:layout_below="@+id/et2"
        android:layout_marginLeft="61dp"
        android:layout_marginTop="17dp"
        android:contentDescription="@string/go"
        android:text="@string/go" />

</RelativeLayout>

 JAVA CODING :


package com.example.friendshipcalsi;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;

public class MainActivity extends Activity {
       EditText et1,et2;
       Button b1;

       @Override
       protected void onCreate(Bundle savedInstanceState) {
              super.onCreate(savedInstanceState);
              setContentView(R.layout.activity_main);
              et1=(EditText)findViewById(R.id.et1);
              et2=(EditText)findViewById(R.id.et2);
              b1=(Button)findViewById(R.id.b1);
              b1.setOnClickListener(new View.OnClickListener() {
                    
                     @Override
                     public void onClick(View arg0) {
                           // TODO Auto-generated method stub
                           String s1=et1.getText().toString();
                           String s2=et2.getText().toString();
                           int a=s1.length();
                           int b=s2.length();
                           //you can use your own concept here
                           int c=(a+b)*2+50;
                           Toast.makeText(getApplicationContext(),c+"%",Toast.LENGTH_LONG).show();
                     }
              });
       }

       @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;
       }

}



OUTPUT :



Saturday, 26 July 2014

ANDROID CODE : ADD TWO NUMBERS



ANDROID : XML CODING

<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" >

    <EditText
        android:id="@+id/et1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentTop="true"
        android:layout_centerHorizontal="true"
        android:layout_marginTop="70dp"
        android:ems="10"
        android:hint="@string/num_1"
        android:inputType="textPersonName" />

    <EditText
        android:id="@+id/et2"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignLeft="@+id/et1"
        android:layout_below="@+id/et1"
        android:layout_marginTop="14dp"
        android:ems="10"
        android:hint="@string/num_2"
        android:inputType="textPersonName" >

        <requestFocus />
    </EditText>

    <Button
        android:id="@+id/b1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@+id/et2"
        android:layout_centerHorizontal="true"
        android:layout_marginTop="16dp"
        android:text="@string/sum" />

    <TextView
        android:id="@+id/tv"
        android:layout_width="200dp"
        android:layout_height="40dp"
        android:layout_alignRight="@+id/et2"
        android:layout_below="@+id/b1"
        android:layout_marginTop="41dp"
        android:text="@string/_" />

</RelativeLayout>

ANDROID : JAVA CODING

package com.sum.add;
import android.os.Bundle;
import android.app.Activity;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;

public class MainActivity extends Activity {
//Declaration part
EditText et1,et2;
Button b1;
TextView tv;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
// Mapping part
et1=(EditText)findViewById(R.id.et1);
et2=(EditText)findViewById(R.id.et2);
tv=(TextView)findViewById(R.id.tv);
b1=(Button)findViewById(R.id.b1);
//listener part
b1.setOnClickListener(new View.OnClickListener() {

@Override
public void onClick(View arg0) {
// TODO Auto-generated method stub
int a=new Integer(et1.getText().toString());
int b=new Integer(et2.getText().toString());
int c=a+b;
tv.setText("sum= "+c);

}
});

}


}

Sunday, 13 July 2014

WHAT IS ANDROID?

World is contracting with the growth of mobile phone technology. As the number of users is increasing day by day, facilities are also increasing. Starting with simple regular handsets which were used just for making phone calls, mobiles have changed our lives and have become part of it. Now they are not used just for making calls but they have innumerable uses and can be used as a Camera , Music player, Tablet PC, T.V. , Web browser etc . And with the new technologies, new software and operating systems are required.

What is Android
Operating Systems have developed a lot in last 15 years. Starting from black and white phones to recent smart phones or mini computers, mobile OS has come far away. Especially for smart phones, Mobile OS has greatly evolved from Palm OS in 1996 to Windows pocket PC in 2000 then to Blackberry OS and Android.

One of the most widely used mobile OS these days is ANDROID. Android is a software bunch comprising not only operating system but also middleware and key applications. Android Inc was founded in Palo Alto of California, U.S. by Andy Rubin, Rich miner, Nick sears and Chris White in 2003. Later Android Inc. was acquired by Google in 2005. After original release there have been number of updates in the original version of Android.

Features & Specifications
Android is a powerful Operating System supporting a large number of applications in Smart Phones. These applications make life more comfortable and advanced for the users. Hardwares that support Android are mainly based on ARM architecture platform.

Android comes with an Android market which is an online software store. It was developed by Google. It allows Android users to select, and download applications developed by third party developers and use them. There are around 2.0 lack+ games, application and widgets available on the market for users.

Android applications are written in java programming language. Android is available as open source for developers to develop applications which can be further used for selling in android market. There are around 200000 applications developed for android with over 3 billion+ downloads. Android relies on Linux version 2.6 for core system services such as security, memory management, process management, network stack, and driver model. For software development, Android provides Android SDK (Software development kit). Read more about open source software.

Applications
These are the basics of Android applications:
•      Android applications are composed of one or more application components (activities, services, content providers, and broadcast receivers)
•      Each component performs a different role in the overall application behavior, and each one can be activated individually (even by other applications)
•      The manifest file must declare all components in the application and should also declare all application requirements, such as the minimum version of Android required and any hardware configurations required
•      Non-code application resources (images, strings, layout files, etc.) should include alternatives for different device configurations (such as different strings for different languages)

Google, for software development and application development, had launched two competitions ADC1 and ADC2 for the most innovative applications for Android. It offered prizes of USD 10 million combined in ADC1 and 2. ADC1 was launched in January 2008 and ADC 2 was launched in May 2009. These competitions helped Google a lot in making Android better, more user friendly, advanced and interactive.

Wednesday, 25 June 2014

Samsung Galaxy Tab S 10.5 and 8.4 hands on: First look

Ever since the 2011 unveiling of the Galaxy Tab 7.7 we've been waiting for the next generation of Super AMOLED tablets. Three years later they have arrived - the Samsung Galaxy Tab S duo comes in 10.5" and 8.4" sizes and like the Tab 7.7 before them, they are stunningly thin.

Separate from the Galaxy Tab and Galaxy Note lines, the Galaxy Tab S tablets still share a lot with them. The powerful hardware platform, combined with proprietary TouchWiz features like Multi Window, instantly put the two at the forefront of functionality. Just look at that specs sheet.
Dimensions: 246.9 x 173.5 x 6.6mm; 465g (Wi-Fi) / 467g (LTE)
Display: 10.5" Super AMOLED screen, 2,560 x 1,600 resolution
Chipset (Wi-Fi): Exynos Octa 5422: quad-core Cortex-A15 @ 1.9GHz plus quad-core Cortex-A7 @ 1.3GHz; Mali-T628 MP6 GPU; 3GB RAM
Chipset (LTE): Snapdragon 800, quad-core Krait 400 @ 2.3GHz; 3GB RAM
OS: Android 4.4 KitKat
Camera: 8MP main camera, 2.1MP front-facing camera
Storage: 16GB / 32GB built-in, microSD card slot (up to 128GB cards)
Connectivity: Wi-Fi a/b/g/n/ac, Bluetooth 4.0, A-GPS + GLONASS; microUSB 2.0 with MHL
Battery: 7,900mAh
Misc: S fingerprint, stereo speakers

Tuesday, 24 June 2014

ANDROID


Smartphones have become a necessity in today’s business-oriented world; they are useful for taking notes, recording memos and messages, transcribing notes, taking pictures, sending/receiving emails, to name a few features. This demand for smartphones has become a huge incentive for many companies to provide the best smartphones possible, which has given rise to tough competition in the smartphone industry.
Many companies have emerged as market leaders in the past decade. Nokia, HTC, LG, Apple, and Samsung all have developed excellent smartphones. But how can YOU choose which smartphone to go for? The answer is simple: focus on the operating system. Nokia is exclusively a Windows Phone, HTC, LG and Samsung are exclusively Android OS devices, and Apple uses its own iOS to operate. So, basically, you must choose between Android OS, Windows Phone, and iOS. All these operating systems are state of the art, and choosing between them is truly a matter of preference.