***Last updated on 11 May 2013 ***

Friday, 1 March 2013

Android :some serious work :P

hello pancakes !!  this is my first post here hope you like me too as brijesh :)
so starting for the first app ..

  • Open up new android application and continue as explained previously, if you get any problem with that check the procedure again here .


making new program

  • After you complete with making g it you will get the starting screen .Up-till now everything is just as we previously did .hence forth the real work starts. we will be working on activity_main.xml first.
  • On activity_main.xml we will automatically be having some content as shown below and for rest we will be adding  some other things too.
  • EXPLAINING THE CODE 
    The first segment we have here is
    1.   <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
     2.   xmlns:tools="http://schemas.android.com/tools"
      3.  android:layout_width="match_parent"
     4.   android:layout_height="match_parent"
      5.  tools:context=".MainActivity" >
    1.   This line is default which actually import pacakages.
    2. This line defines the where to import the android tools.
    3. android:layout_width defines the width of our app on emulator.
    4. android:layout_height defines height of our app on emulator.
    5. This line defines where to start ie, MainActivity
    The second segment we have is 
          1.  <TextView
          2.    android:layout_width="wrap_content"
          3.  android:layout_height="wrap_content"
          4.  android:layout_centerHorizontal="true"
          5.  android:layout_centerVertical="true"
          6.  android:text="@string/hello_world" />
    1. It marks the beginning of Textview tag which actually contains the features about how things are to be arranged in text view
    2. the other tags are preety self explainatory , you may try on some of them yourself by deleting the values upto = and eclipse will come to your service.
    3. in last one android:text="@string/hello_world" we actually referenced the string hello world saved in values. in other places too we will be using the same .
      This was all for today we will get on with the more on xml on next post. Will be waiting for comments/ suggestions. :)


3 comments:

  1. Yes.I am following your blog and waiting for more further posts bro. You are really doing great job. Please make 2-3 posts daily man. I can't wait :P Too Android Hungry.

    ReplyDelete
    Replies
    1. Thankyou...We are trying our best...Thanks to our special member Mist for her contribution..Well done Mist..

      Delete
    2. thanks @saggy for following , i know this time the post has been delayed a bit (was busy in some personal project) bu dont worry now we will try to update it as frequently as possible.
      Suggestions and queries are also welcome

      @brijesh thanks mate :)

      Delete