Monday, April 9, 2012


Android Development for Beginners

Do you need to upgrade your skills as a programmer? Do you want to learn something new and improve your expertise? Whether you’re just starting your career as an Android developer or you want to level up your Android development expertise, this blog post will serve as an Android tutorial for those of you who are interested to learn Android.

We will cover the basics of Android development and slightly tackle intermediate and advanced topics. Are you ready?

Basic Skills Needed for Android Development

Before you can perform any Android app development, you need to be familiar with 2 specific skills: Java and Android.

Java is the programming language used in Android development. On the other hand, learning Android requires learning XML which will be handy for app design, familiarity of  Android concepts, and applying these concepts programmatically with Java. XML is relatively easy to get acquainted with. In fact, you can learn XML as you go along programming your app.

As for Java, there are no shortcuts in learning the language. You need to really spend time studying it, familiarizing yourself with Java concepts, and practicing how to code using the language. There are a lot of resources online, like ebooks, courses as well as YouTube tutorial videos in order to learn Java quickly. For starters, it’s important to learn and install Eclipse (the Integrated Development Environment, or IDE, for Java), as well as the Java Development Kit (JDK). Make sure that you also cover the basic syntax in Java, such as loops and if statements.

After learning Java and XML, you will need to understand how to content them using Android principles.

Where to Find Android Tutorials and Resources

There are a lot of resources available online if you want to learn Android development, including books and YouTube videos. You can also sign up on an online course to help you get started. This website http://moorandroid.blogspot.com, for example, is dedicted to provide comprehensive Android tutorials and guides.

Moreover, if you plan to to become a certified Android developer, you can also enroll for Android Developer Nanodegree Program from Udacity.com, in collaboration with Google. Being a certified Android developer will bring your development skills to a higher level and will be good for your software development career.

Finally, make sure you are updated with recent news and trends about Android development on Google. Google’s official training guide provides both basic and advanced stuff, including a lot of code samples which can help you with your Android app development career.


Integrated Development Environments

An Integrated Development Environment or IDE is a software suite composed of several tools to help write, execute, and test software.

In a complete software development phase, developers use a number of tools to create code, build a software or an app, and test the product. These include text editors, libraries, compilers, as testing platforms. Without the use of an IDE, a developer will have to identify,  deploy, integrate, and manage different tools separately. An IDE, on the other hand, combines these tools together in a single framework, application, or service. This simplifies software development, minimizes coding mistakes, and makes programming a lot faster and easier.

For Android development, you may have to use an IDE in the beginning to help you build your first Android app. You can choose between Android Studio and Eclipse. For many years now, Eclipse has been the preferred IDE of many Android developers. However, Google came up with its own IDE called Android Studio that established strong competition between the two.

Android Studio is more advanced and has more features than Eclipse. For example, it enables importing of library resources directly from Maven Central. It also uses modules that some developers find easier and more comfortable. Finally, it offers better all-round support to Android developers.

If you have yet to develop your first Android app, the Android Studio is recommended for you as your IDE. However, if you are in the middle of an app development and you’re using Eclipse, it’s still best to finish it using Eclipse, before you try the AS.

Other Important Things You Need to Know about Android Development

So, we have established the basic steps in creating your first Android app:

1. Learn Java.
2. Familiarize yourself with Android development concepts, and learn how to use these concepts pragmatically with Java.
3. Choose an IDE that you can work with. If you’re a beginner, Android Studio is more ideal.

The next step is to conceptualize a good app idea and then build it using the knowledge you’ve learned. However, know that building your first app will not happen overnight. It can be time consuming, and may take weeks or months before your successfully execute it without errors or bugs. If you are serious about developing an Android app, be ready to solve a range of problems, from minor bugs to big, complicated issues.

You have to understand that Android development is not a for developers who are looking for fast results. It requires time, patience, and resourcefulness.

In case you get stuck on a problem, which inevitably will happen, there are a lot of resources you can turn to. There’s Stack Overflow, YouTube videos, and even this blog that serves as Android tutorial. Plus, the huge community of Android developers will definitely be a help you in building your career in Android development.

Good luck!

Online personal training - mail us
moorandroid@gmail.com
+91 9994758095

55 comments:

  1. Your feedback is always Precious to us.
    I will try to answer all the queries as soon as possible.

    ReplyDelete
    Replies
    1. Android Chat Head Library
      Chat head is new feature which floats on screen instead of residing inside conventional application. This feature is very continent for multitasking as user can work and chat at the same time.
      Android Chat Head Library

      Delete
    2. Expanding Menu View in Android:
      This is a library to help creating expanding views with animation in Android.
      http://bit.ly/expanding-menu-view-in-android

      Delete
    3. Android Vertical Stepper Form Library
      It may display a transient feedback message after a step is saved. And today we’re going to see a cool library which help you to implement that stepper form in your applications. This Android library implements a vertical stepper form following Google Material Design guidelines.
      http://www.tellmehow.co/android-vertical-stepper-form-library/

      Delete
  2. Good job my friend i need advance topics can u?

    ReplyDelete
  3. sir, my android emulator camera does not open.
    its shows only the chessboard demo.
    can you please tell me?

    ReplyDelete
  4. You hve to test on real device not in emulator ....in real device it works fine...

    ReplyDelete
  5. its work
    thank you sir.
    sir how to update the data offline to online?
    it means local database to oracle..

    ReplyDelete
  6. First u have to check internet availablity,and use if else and u can update it....

    ReplyDelete
  7. Please Help Me!!

    Your Blog was Very Helpful To me .
    I'm Using bar Code Reader Using Camera For My Application.
    How to do That ??

    Reply Me

    ReplyDelete
  8. thanks for your comments, i will update sample code for it...just go through....

    ReplyDelete
    Replies
    1. There're two buttons in your bar code coding....I need to scan both kind of modes in a single button...please help..

      Also I need to send the values to the Server and have to get respond of server for my application .. Please post an understandale coding for that....

      Delete
  9. Sir I sent u the mail for upgrading to 4.0.3 also i had posted in my blog for u . u can also refer here
    http://undercoverultimatecollections.blogspot.in/2012/06/official-update-upgrade-android-to-403.html

    ReplyDelete
  10. Please Help me !!!!


    I need Codings For Speech To Text.. For My ANdroid Application...
    :( ...please help me as soon as possible

    ReplyDelete
  11. hai!
    how to get the tower name in androd?
    i need a code for this, pls post the code for me
    i have tried this code its display only the location area code and cell id. i want the location name using tower not a code


    TextView textGsmCellLocation = (TextView)findViewById(R.id.gsmcelllocation);
    TextView textCID = (TextView)findViewById(R.id.cid);
    TextView textLAC = (TextView)findViewById(R.id.lac);

    //retrieve a reference to an instance of TelephonyManager
    TelephonyManager telephonyManager = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);
    GsmCellLocation cellLocation = (GsmCellLocation)telephonyManager.getCellLocation();



    //CellLocation operatorName= telephonyManager.getCellLocation();
    String cid = String.valueOf(cellLocation.getCid());
    String lac =String.valueOf(cellLocation.getLac());

    int lac1=cellLocation.getLac();
    textGsmCellLocation.setText(cellLocation.toString());
    textCID.setText("gsm cell id: " + cid);
    textLAC.setText("gsm location area code: " + lac);

    //manifest file

    ReplyDelete
    Replies
    1. just go through this link: http://android-coding.blogspot.in/2011/06/convert-celllocation-to-real-location.html

      Delete
  12. this code also display the area code only but i want area name

    ReplyDelete
  13. I think u cant get location name from india...they blocked some feature on gsm....

    ReplyDelete
  14. Hi! Moorthy ! I need Speech to Text in Android Without Using The internet , For my project... Can u please help me ?

    ReplyDelete
    Replies
    1. I've the Coding already u have posted ... Bt this Utilize Internet Connection.. I alsop tried Pocketsphinx Concept to do that... It also not works 4 me... Give another solution if u can ...

      Delete
  15. Hi! Moorthy
    my Application have to open Automatically for every 30 minutes .. How to do it?

    ReplyDelete
  16. Use this code in service class so it will open by given time...

    public void doTimerTask(){
    mTimerTask = new TimerTask() {
    public void run() {
    handler.post(new Runnable() {
    public void run() {
    ActivityManager activityManager = (ActivityManager)getSystemService( ACTIVITY_SERVICE );
    List procInfos = activityManager.getRunningAppProcesses();
    boolean appNotRunning=true;
    for(int i = 0; i < procInfos.size(); i++){
    if(procInfos.get(i).processName.equals("admin.beverage.tv")) {
    if (procInfos.get(i).importance==RunningAppProcessInfo.IMPORTANCE_FOREGROUND){
    appNotRunning=false;
    }
    }
    }
    if(appNotRunning){
    Intent start = new Intent(adminappwakeup.this, MainActivity.class);
    start.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
    startActivity(start);
    }

    }
    });
    }};

    // public void schedule (TimerTask task, long delay, long period)
    t.schedule(mTimerTask, 20000, 20000);

    }

    ReplyDelete
  17. This comment has been removed by the author.

    ReplyDelete
  18. What is processname and Importance here ??

    ReplyDelete
  19. sir i need a view (like a card) which must show both image and text contents and it must be arranged in a layout like grid view ? Any Suggestion sir ?

    ReplyDelete
  20. Hi sir,
    I need to integrate facebook chat application in my android application. so can you help me how to integrate that.

    ReplyDelete
  21. see my post on my blog for facebook integration.....

    ReplyDelete
  22. Very nice article, exactly what I was looking for.
    Also visit my site : facebook advertising

    ReplyDelete
  23. Hurrah, that's what I was searching for, what a material! existing here at this webpage, thanks admin of this site.
    Here is my web site : gamerlimit.com

    ReplyDelete
  24. This is a good tip particularly to those new to the blogosphere.
    Short but very precise info… Thanks for sharing this one.
    A must read article!
    My weblog - facebook hacking

    ReplyDelete
  25. I have to thank you for the efforts you've put in writing this blog. I really hope to check out the same high-grade content from you in the future as well. In fact, your creative writing abilities has encouraged me to get my very own site now ;)
    My web site :: Facebook Page

    ReplyDelete
  26. Do you mind if I quote a couple of your
    articles as long as I provide credit and sources
    back to your blog? My website is in the very same niche
    as yours and my users would really benefit from some of the information you provide here.
    Please let me know if this okay with you. Many thanks!
    Feel free to visit my weblog : www.moorank.com

    ReplyDelete
  27. hello sir actually i have issues while using the android:launchmode="singleinstance" in android manifesto.actually i using 5 activities first act is home page and last act is validation page inbetween 2 to 4 act contain two buttons "back" and "next" and one spinner.and the 2nd act spinner contain numbers from 1 to 5 and 3rd act spinner contain the city name like chennai,madurai,kovai like that and 4th act spinner contain state name like tamilnadu,andhra and karnataka like that.i need to retrieve the values in the spinner after that also i visit the next activity i mean if i click number 2 in 2nd act and click next to visit 3rd act and go back to the previous act still the value 2 will retrieve.so that only using the android launch mode and android:always retain task in manifest.what the issue is it will visit the each activity in front wise and backwise only once.i donno how to fix it...

    ReplyDelete
    Replies
    1. its not single instance error maybe your not include tab activity on back press button check it.

      Delete
  28. hi nanba,

    i created 2 spinner.according that 2 spinners onitemselected to show listview.but app is opening very slow.how to use asyntask for that.
    thanks in advance for your answer

    ReplyDelete
  29. Hi ...

    I want to know tat how to connect MySQL Database in a server using our application ...

    ReplyDelete
  30. I want the coding for validation on edittext... if edittext is empty and if we press the button then it should give a toast to enter the field in edittext...this is the coding i have did but it doesnt work properly...kindly help me.....

    package com.example.testcal;

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

    public class MainActivity extends Activity {

    EditText et1,et2;
    Button btn;
    TextView t;
    Integer a,b;

    @Override
    public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);

    et1=(EditText)findViewById(R.id.editText1);
    et2=(EditText)findViewById(R.id.editText2);
    t=(TextView)findViewById(R.id.textView1);
    btn=(Button)findViewById(R.id.button1);

    calculator();
    }

    private void calculator() {
    // TODO Auto-generated method stub



    btn.setOnClickListener(new OnClickListener() {

    public void onClick(View v) {
    // TODO Auto-generated method stub

    if((a!=null) || (b!=null))
    {
    Integer a=Integer.parseInt(et1.getText().toString());
    Integer b=Integer.parseInt(et2.getText().toString());

    Integer result= a+b;
    t.setText(result.toString());
    }
    else
    {
    Toast.makeText(getApplicationContext(), "Enter Integer", Toast.LENGTH_LONG).show();
    }
    }
    });
    }



    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
    getMenuInflater().inflate(R.menu.activity_main, menu);
    return true;
    }
    }


    I am Kamal from Accord. Your Android student.9962029335.

    ReplyDelete
  31. http://appsdevelopment-for-mobiles.blogspot.com/

    ReplyDelete
  32. Great post, was really helpfull, would love to see more such posts, checkout similar posts on:
    Android eclipse tutorial for beginners!!! get on http://knowtohowto.blogspot.in/2015/09/setting-up-eclipse-and-your-first.html?m=1

    ReplyDelete
  33. Thanks for sharing android beginner tutorial content. Its very useful for all beginner. I found a android developer forum where we can post all programming queries and get answers instantly from the community members.

    ReplyDelete
  34. win money https://trafficmonsoon.com/?ref=luisdgd09

    ReplyDelete
  35. Dear Friends, Please like this page for updated code on Android, PHP, JAVA etc. https://www.facebook.com/CodeAid-633270336813238/

    ReplyDelete
  36. top and famous ios freelancer noida for mobile app development.
    top android freelancer in delhi for any kind of mobile app development.

    ReplyDelete
  37. Great!! Easy to learn, it's very much useful for all beginners level.. Thanks for sharing this info.. superb..

    ReplyDelete