Home Home
Android Development Demo: “DialANumber” – How to write your own very first Android program – Made Simple! PDF Print E-mail
Thursday, 22 July 2010 15:30

While I think the Android development examples are not really good and straight forward perhaps some of you come along with them. However, I would like to provide you a very very simple example here on how to write your own first Android program.

This is technically very easy. Once you got Eclipse and Android installed and running on your computer (I use a Mac OS Leopard powered MacBook but you can use a Microsoft Windows XP/Vista/etc. PC as well) you just start Eclipse. Now you just go to “New » Project... » Android » Android Project...” and enter the required data. Once you are done the result might look like this:

Android Development Demo: “DialANumber”

Now you can start writing and customize the default “Hello World” a.k.a. “Hello Android” app which just shows a text field. If you are really really lazy you could also copy/paste the following code:

Read more...
 
a very good android tutorial for beginners PDF Print E-mail
Thursday, 22 July 2010 13:27

I have just found a very good android tutorial for beginners and want to share with you:

PDF version: android tutorial for beginners

PPT version: android tutorial for beginners

 
How-To Program The Google Android Camera To Take Pictures PDF Print E-mail
Thursday, 22 July 2010 13:05
Learn how to program the Google Android camera to take pictures in the simplest way via the Google Android Programming Environment.

 

Introduction

Nowadays smart phones have a great number of hardware enhancements: camera, accelerometer, GPS, Wi-Fi... Its time to start using their whole functionality on our phone. Let's learn how to use the phone's camera. In this example, we will need to work with 2 files, the layout file and the activity file.

Hint! → Some days ago, there was a software actualization for the 1.5 (cupcake) Android phones. It was a security improvement. One of these security changes was related to camera permission. Before this actualization, you were able to create applications that take pictures without the user's permission. Now, this issue is fixed, and if you want to use the camera in your application, you need to add the corresponding line in the AndroidManifest.xml. The line is as follows:

<uses-permission android:name="android.permission.CAMERA"/>

Read more...
 
An Introduction to OpenGL for the Google Android Programming Environment PDF Print E-mail
Thursday, 22 July 2010 13:00
The Google Android platform supports OpenGL ES 1.0 (and some functionality of versions 1.1). OpenGL is a graphic library focused on 3D graphics.

 

Introduction

In this article, we will introduce a bit about OpenGL and its integration in Android. Let's talk about OpenGL.

OpenGL, as I mentioned before, is a graphics library that helps us to create 2D and 3D environments. This library, opposite to Direct3D from Microsoft, is multiplatform, in that you can create applications that use OpenGL in a GNU/Linux system and in a Windows one.

In mobile devices we have a reduced version: OpenGL ES. It has less functionality that OpenGL (without ES) and it's adapted to small devices with their limitations. In an Android phone we don't have great graphics cards, so resources and implementation have to be optimized if we want to achieve good results.

On the Khronos page we can find a lot of information about this technology.

 

Read more...
 
Multithreading For Performance PDF Print E-mail
Wednesday, 21 July 2010 01:58

[This post is by Gilles Debunne, an engineer in the Android group who loves to get multitasked. — Tim Bray]

A good practice in creating responsive applications is to make sure your main UI thread does the minimum amount of work. Any potentially long task that may hang your application should be handled in a different thread. Typical examples of such tasks are network operations, which involve unpredictable delays. Users will tolerate some pauses, especially if you provide feedback that something is in progress, but a frozen application gives them no clue.

In this article, we will create a simple image downloader that illustrates this pattern. We will populate a ListView with thumbnail images downloaded from the internet. Creating an asynchronous task that downloads in the background will keep our application fast.

Read more...
 
Skew bitmap image, using Matrix PDF Print E-mail
Wednesday, 21 July 2010 01:55

To generate a skewed bitmap, Matrix.postSkew() can be used.



Extend the last exercisse "Rotate bitmap image, using Matrix".

Modify main.xml to add two SeekBar to set the skew for x and y.

Read more...
 
Rotate bitmap image, using Matrix PDF Print E-mail
Monday, 19 July 2010 00:56

Here Rotating function is going to be added on the last exercise "Scale bitmap image, using Matrix". It's a SeekBar on the screen to change the degree to rotate the bitmap, by using of Matrix.postRotate().

Read more...
 
Scale bitmap image, using Matrix PDF Print E-mail
Sunday, 18 July 2010 01:17

Modify the last exercise "Load bitmap file from SD Card", to implement function to post-scale the bitmap image using Matrix.



In order to create a new bitmap with selected scale: A new Matrix object have to be created, with postScale. Then create a new bitmap from the image in SD Card, using the matrix.

Read more...
 
Load bitmap file from SD Card PDF Print E-mail
Sunday, 18 July 2010 01:09

In last exercise "Save file to SD Card", a file have been saved in SD Card. In this exercise, the bitmap file in SD Card will be loaded, using BitmapFactory.

Read more...
 
Save file to SD Card PDF Print E-mail
Sunday, 18 July 2010 01:05

In the previous exercises "Load ImageView with bitmap from internet" and "Generate QR code using Google Chart API", images were downloaded from internet for display only. Here, we are going to save the download image to SD Card.

Read more...
 
« StartPrev12345678910NextEnd »

Page 3 of 40