Programming and Personal Development

Monthly Archives: December 2011

Displaying text in a android application

There are 2 useful widgets in android for displaying text in your application. TextView: This is the basic widget that can  display text to the user.  Its useful in construction of  user forms where user is hinted on the information he is expected to enter. eg: “address”, “phone no” etc. The text however is  staticContinue Reading

2 ways to structure the UI components in your android application

Structuring the UI Components in your android application  can be done in two ways: Using code:  You can use java code to explicitly create and position the various UI components. If you have programmed desktop GUI applications in java using swing/AWT, this should be familiar to you. Using xml layout files: You can also specifyContinue Reading

Android Project structure

/bin: Contains the compiled java class (.class) files, the dalvik executables (.dex) files etc /gen: Contains the files generated by the android build tools (eg: R.java) /lib: Contains third party libraries (jars) used by the application. /res: Contains resources used by the application like icons, layouts, localized strings etc. Android build tools generate Ids (inContinue Reading

Android abbreviations and terminologies

As someone getting into app development, I find it useful to main a list of abbreviations used by the android community. .apk file:  Android application package file or apk file , is a single file containing the source code, the  resources used by your application and the manifest file. Dalvik: Android’s own virtual machine (VM)Continue Reading

Web Analytics