Guide to Android Development Terms

Written by:  • Edited by: Simon Hill
Updated May 3, 2011
• Related Guides: Android | Google Android Programming | Google

The Google Android programming language, based in Java, uses its own terminology. Sometimes we can get lost between the new words. In this last article of the series, we will examine this terminology and clarify it.

Useful words

Activities

An Activity is a single screen of the User interface. This Activity can hold a hierarchy of views to give the UI the functionality it needs. For example, an email-application. We can have two Activities, one to list all the mails we have received (and to interact with them) and other Activity to write and send an email. Both Activities are related, but they work separately in their own.

Services

A Service runs in the background, it doesn’t have UI. An example of Service can be a system that notifies the user when a sms or an email has been received in the mobile.

Content providers

With the content provider we can access to any data stored in the device form other applications or even form our applications. This data can be stored in files or is the SQLite database.

Layout

Layouts are containers of elements in the User Interface. Every time we define a .xml file with a specific user interface, we need to use this elements to hold hierarchy view tree. As I have wrote in other article, we can find different layouts kinds, depending its properties and relationship with the elements its holds. Layouts can be nested one inside other.

View

A View is a single object of the user interface. This Views are placed inside the Layouts and with them we can create from the most simplest UI to the most complex one. Android give us the choice to work with XML to create UI, this is a good way to separate functionality from User Interface. Views can be Images (ImageView), Text (TextView)…

Events (On click, onTouch)

We have to define the events listeners to capture this events.

An Event is something that happens form the “outside”, is something we don’t control, something we don’t know when its going to happen. For that we use the Events controllers, for each event that can happen, we can define how the system is going to behave. A common event is onTouch Event, this is when the screen is touched. We have to define the events listeners to capture this events.

Resources

Resources are the external elements we use in our applications. They are placed in the “res” folder and they can be, images, music, videos. Here, in this folder is stored the .xml files: User Interfaces, styles, strings we use in the App, themes… Once resources are compiled, they are fully available in Java code using the "R.java" file. We will see this in further examples.

Follow up

If you want to know when new articles are released, subscribe yourself to the Google Android RSS Otherwise, you can follow my research, articles and work in my professional twitter: jbeerdev


Comments

Showing all 25 comments
 
Jbeerdev Dec 7, 2010 8:28 AM
RE: Guide to Android Development Terms
I have asked my editor and he said that there is no problem as long as there is a reference to Bright Hub.

:)
Jbeerdev Dec 7, 2010 2:52 AM
RE: Guide to Android Development Terms
*it should not be...
Jbeerdev Dec 7, 2010 2:52 AM
RE: Guide to Android Development Terms
Hi Hesam

It's fine for me :), anyway I will ask my editor... but I think I should not be a problem.
Hesam Dec 7, 2010 2:43 AM
Translation
Hi, I translated your nice article into my language. Also I referenced to your site. If you don't like to publish it into Persian language, tell me to remove it please.
Thanks
Warm Regards
catherine Dec 17, 2009 4:01 AM
RE: Guide to Android Development Terms
I found that there are few API's provided by Google for open social networking. I worked with it. But the application was force closed. everything goes in vain:(

http://code.google.com/p/opensocial-java-client/source/browse/trunk/java/src/main/org/opensocial/android/OpenSocialActivity.java?spec=svn53&r=53
Jbeerdev Dec 17, 2009 2:35 AM
RE: Guide to Android Development Terms
Ok, I will check the app.

Anyway, try to searh in the internet for the specific Exception. Its for sure that more people that have been working in the same as you had the same problem.

About the "API" y mean, when you connect to a socialnetwork web, most of times this webs provide developers an API to access the contents in the web.
catherine Dec 17, 2009 1:26 AM
RE: Guide to Android Development Terms
http://code.google.com/p/unlocking-android/downloads/list
download it.


In the zip file look for network explorer application and see that if u can help me through this.
catherine Dec 16, 2009 11:13 PM
RE: Guide to Android Development Terms
ya.. we have full access to internet. which API are you talking about?
Jbeerdev Dec 16, 2009 10:09 AM
RE: Guide to Android Development Terms
Ummmm... It seems like the host doesnt "answer" you at time (Timeout). Maybe the API you try to connect is temporaly unavaliable. Do you have full Access to Internet? Is there any way to see the API online?
catherine Dec 16, 2009 7:56 AM
RE: Guide to Android Development Terms
But the thing is, if the the authentication is properly done, it should return a valid token . right? but it doesn't . so i doubt whether this application interacts with the google as expected or not...
catherine Dec 16, 2009 7:51 AM
RE: Guide to Android Development Terms
http://paste.ideaslabs.com/show/RUYt2kzFu7

http://paste.ideaslabs.com/show/0CANfX2zkI

http://paste.ideaslabs.com/show/UeZTL30aFf
http://paste.ideaslabs.com/show/w7IdDdJ32V


these are the rest of the attachments of my application..


http://paste.ideaslabs.com/show/k47zo9wK3x

the above link i have pasted the log cat description and the error portion
Jbeerdev Dec 16, 2009 7:34 AM
RE: Guide to Android Development Terms
So I understand that you could autenticate with no problem.
Jbeerdev Dec 16, 2009 7:21 AM
RE: Guide to Android Development Terms
OK, Thanks. Tell us more about the error. Where did it appear? in which line? And if you could provide me the full trace of the error.
catherine Dec 16, 2009 7:20 AM
RE: Guide to Android Development Terms
the code which i have shared now is to fetch the contacts of a user after authentication. just wanna start of this before i could try out with fetching the albums from facebook or orkut.
catherine Dec 16, 2009 7:16 AM
check out
http://paste.ideaslabs.com/show/z1TxePbkM6

http://paste.ideaslabs.com/show/EoC6nVFzad
catherine Dec 16, 2009 7:15 AM
this is the code for http request
http://paste.ideaslabs.com/show/EoC6nVFzad


http://paste.ideaslabs.com/show/z1TxePbkM6
Jbeerdev Dec 16, 2009 5:41 AM
RE: Guide to Android Development Terms
Use this web: to copy the code:

http://paste.ideaslabs.com/

copy the Activity you use to connect with the host, and pass us the link.
catherine Dec 16, 2009 5:15 AM
RE: Guide to Android Development Terms
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

I already have these in the manifest file.
catherine Dec 16, 2009 5:12 AM
Re:Social Networking
yup. I have given the internet permissions in the manifest file. But its still the same. how do i attach the application for you to view??
Jbeerdev Dec 16, 2009 5:07 AM
RE: Guide to Android Development Terms
This is for the users.permision I told before (not clear enought)

<uses-permission android:name=”android.permission.INTERNET”></uses-permission>

Jbeerdev Dec 16, 2009 5:01 AM
RE: Guide to Android Development Terms
Well, did you allow the application to access the Internet? With the uses.permision stuff in the Android Manifest.
In other hand, share with us how do you create the Http Host.

catherine Dec 16, 2009 4:56 AM
Re:social networking
The code flow of my application is such that it verifies the user's credentials and fetches the photos of that user and displays it. But the problem is "Unresolved Host" . this is the error which it throws. Any suggestions ?? Shall i share the application with you to know more?
catherine Dec 16, 2009 4:52 AM
Re:Social networking
the code flow of my application is that it will authenticate the user's credentials and retrieve the photos from the user's album. But the problem is , "Unresolved Host". This is the error it throws.
Jbeerdev Dec 16, 2009 4:42 AM
RE: Guide to Android Development Terms
Hi Catherine.

No, I have never worked with social websites. But lets see where the problem is. Explain yourself a bit more. :)
catherine Dec 16, 2009 4:31 AM
social networking
Hi Jbeer,
Have you developed any application to communicate with any of the social websites like facebook,picasa or orkut? I have a problem in doing the same. can u Help me out???
 
blog comments powered by Disqus
Email to a friend