sábado, 5 de julio de 2014

Send data inside self-Activity

    <EditText
        android:id="@+id/etData"
        android:layout_weight="1"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:ems="10"
        android:maxLength="25"
        android:inputType="text"
        android:hint="@string/hint_etData" >
        <requestFocus />
    </EditText>

    <Button
        android:id="@+id/btData"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/name_btData"
        android:onClick="sendMessage" />


First, Install Eclipse, Java-ADT & SDK

Download this


Copy on folder, for example

           D:\Android\

Uncompress pack and create folder workspace:


Run SDK and configure:


Run eclipse

         menu Windows / Customize Perspective


         configuring toolbars


          now you've personalized the eclipse environment to android development. 

New android project 


         write the application name


         as demo project go through forms selecting next option until create activity type, then select fullscreen activity


         check if it's created the activity


         to see the result for default project, run it as android app


         after launching demo, select device and enjoy it.