Battery Usage: various coding techniques can be used to minimize power consumption (like using reverse for loops) CPU Performance: various devices have different CPUs and the app should run smoothly on any off them. Device features: make sure the device you are running on has the feature you request. It is possible to run an Android app on a device that does not have a mobile connection or a phone book (think Tablet) Internet Connection: the type of the internet connection is important. Some data might be nice to display but uses a lot of bandwitdh (like pictures) and you can improve the user experience by detecting if they are on a fast and cheap (aka wifi) connection or on a high latency (aka mobile) connection.
Android uses JAVA as a base programming language, but C++ can be used, although it is not supported and there are not many resources available for this. Google provides a very good Eclipse plugin that helps/automates a lot off the tasks involved in development. The Android Development Toolkit includes debugger and emulators for all Android OS versions plus other tools that help in development. http://developer.android.com is the main resource for tutorials, help and references.
Activities - provide interaction with the user. They are the windows of a desktop application or the webpages of a web application. Services - provide background processing. Services are equivalent to Linux daemons, Windows services or server-side cronjobs/processes. Broadcast receivers - provide a way for the OS or applications to inform other applications of various events that occur (eg. charging, docking, battery status, various user actions etc.) Content providers - create an uniform interface between applications to communicate public informations. Examples are the phone-book or the Messaging (SMS)
Activities have a life cycle that is important. Any activity can be killed by the system if it is running low on resources. The main method of inter-activities communication is the Intent object. The Intent object is the main method of communication between any Android objects.
the various states an activity may find itself in and the diagram of how it moves from one state to another. It is important to note that unless an activity is in the foreground its chance of being destroyed is pretty big.
onCreate is the main entry point of an Activity. Here you can do initialization of various Views contained in the Activity. onCreateOptionsMenu is responsible for returning the menu items to be used when the user presses (touches) the default Menu button on the device. onOptionsItemSelected getss called when a user has selected one off the menu options. There are methods in the Activity class that are called when the activity switches between its states (foreground, background etc)
not a smooth ride - switching between processes is not exactly like on a desktop computer . use home button and the app might be running or might get started again. bkg procs can be killed - if the OS is low on resources it will start killing background processes Services - no UI, functional only pieces of code intent-filter - a method of getting notified of various events. the OS will create a process and call it's BroadcastReceiver handlers if an event it has registered for occurs.
any activity in one application can call another exported activity from another application and read it's return code when that exits. the new activity performs as if part of the first application but it runs on a separate process (flags are used for changing behavior) the return code can be a complex structures that incorporates whatever data the called activity wants to return to its caller
background processing - communication with servers time-consuming operations - parsing large amounts of data monitoring - checking various parameters at fixed time intervals. media playback - locally stored or streamed music playback
Notifications are a way for background processes to communicate with the user. They consist of an icon on the top bar of the device's UI and a message when the Notification screen is expanded. Clicking on a notification can trigger an application set action like starting an activity or executing a service command. BroadcastReceivers and Services cannot start activities but can pop-up notifications. They can populate a PendingIntent which is the Intent that they would like to be executed on their behalf.
do a lot of checks - things are more volatile in the mobile platform workflow - understand the steps that an activity or service moves trough settings manager - android has a default settings manager that handles setting everything for you coding guides - there are both design and coding guides that offer a lot of hints for beginners don't bloat your app - it's a mobile application and it should do one thing and do it well stay up to date- android is an emerging platform, things change a lot and ppl find out new ways of developing every day.