Wednesday, February 27, 2013

Android Application Programming Basics

Android Application Programming Basics
Today I’m going to share a few of my notes about Android Application programming basics. Recently I’ve been trying to learn how to program Android applications. This post is not directly related to CAD but I will hopefully one day be creating some Android applications for CAD users.

Android Programming Acronyms
  • SDK = software development kit
  • DP = density pixels
  • IDE = Integrated Development Environment
  • UI = User Interface

Android apps are written in Java. I think it’s much harder to learn than writing macros for CATIA V5. When you write a macro, you can type up the code in a simple text editor and it is read top to bottom like a book. When writing code for Android applications, code must be inserted into at least three different locations within the Eclipse IDE software.

Pages or screens in Android apps are known as Activities. An Intent is a communicator with another application and you use it to change screens. To create a new activity right click on package: New>Class. Give it a name and set Super class as Activity, which will be a java file. Each activity needs a layout file (.xml) created by going to New>Android xml. Name it file_name.xml. Xml is a way to organize information with structure (as opposed to just using a text file). The xml file is used to organize the layout and properties of all the text, input boxes, buttons, images, etc. Buttons use a method called OnClickListener.

Alright, that might have sounded confusing to you, especially if you’ve never programmed before, so I’m going to leave it at that for now. Would you like to learn more about Android application programming? Please let me know and I will write more detailed posts. I’ve recently created two Android applications and they are available in the Google Play store for Free here.

In your opinion, what are the best CAD apps out there?

10 comments:

  1. Your article is informative. Thanks for give this nice presentation article. Your information is really worthy.

    ReplyDelete
  2. Excellent post on iOS mobile apps development!!! The future of mobile application development is on positive note. You can make most it by having in-depth knowledge on mobile application development platform and other stunning features. IOS Course in Chennai

    ReplyDelete
  3. Your blog is really useful for me. Thanks for sharing this useful blog..Suppose if anyone interested to learn Android Training in Chennai please visit fita academy which offers best Android Course in Chennai at reasonable cost.

    ReplyDelete
  4. Unix Training

    Thanks for sharing this informative blog. Suppose if anyone interested to learn Unix Training in Chennai, Please visit Fita Academy located at Chennai, Velachery.

    Regards....

    Unix Training Institutes in Chennai

    ReplyDelete
  5. Thanks for sharing this valuable information to our vision. You have posted a trust worthy blog keep sharing. Android training in chennai | Android training chennai |Android course in chennai

    ReplyDelete
  6. This Information very helpful for the beginners.In this each step have a wonderful explaination.I would study and known about the application.thanks for giving wonderful information. Phonegap training in chennai | Phonegap training chennai | Phonegap course in chennai | Phonegap course chennai

    ReplyDelete
  7. I agree with your post. Android software development kit makes the application development process lot simpler and effective. You can create best performing android application with ease. Android Training Institutes in Chennai | Best Android Training in Chennai

    ReplyDelete
  8. Excellent post. Android is an open source operating system used for tablet computers and smartphones. If your are interested to develop creative mobile applications then you must learn about android OS. Its helpful for you.

    Regards..
    Android Training in Chennai



    ReplyDelete
  9. The information you have given here are most worthy for me. I have implemented in my training program as well, thanks for sharing.


    Mobile Application Development Training in Chennai

    ReplyDelete

I'd love to hear from you!