Home Home
Debugging Android application with GDB PDF Print E-mail
Friday, 30 July 2010 22:40

Step by step:

 

- On your PC, open a terminal:

+ adb shell
+ gdbserver :1024 /data/your_application

- On your PC, open a new terminal:

+ adb forward tcp:1024 tcp:1024
+ arm-eabi-gdb
+ shared
+ target remote :1024

 

That's all!

 
Understanding Android Build System and Debugging PDF Print E-mail
Friday, 30 July 2010 21:54

 

 

 

 

Everything is here: http://pdk.android.com/online-pdk/guide/build_system.html

 

 

 

 
How to: Create a splash screen PDF Print E-mail
Thursday, 29 July 2010 04:14

Many Applications, mostly games, on the market show splash screens. With this screen they prompt a logo for the application and/or the author.
I will show you a short way to implement a splash screen which will occur on every startup, will stay for a number of seconds you can define, will close on touching the screen and will not reappear on pressing the back button.

I created an empty project named SplashScreen with the activity SplashScreen. This activity will display the splash screen, so we have to create a new activity which will be the first real view you want to display. In my case this activity is named MyApp.

To see, that we see different screens, we copy the content of our layout file main.xml and paste it into a new layout file called splash.xml. Of course we have to change the @string/hello reference to a now one.
To make it short, here the string.xml, the main.xml and the splash.xml

Read more...
 
Playing with graphics in Android – Part VII PDF Print E-mail
Thursday, 29 July 2010 04:10
You are new to this series? Please start with the first part.

In our last part of this series, I will present a mini “game” based on the very famous game “Rock, Paper, Scissors”.
The follow features are fully implemented:

  • Add a rock, paper or scissors by touching the screen
  • Define speed and direction by touch-drag-release
  • On collision the loser explodes
  • There’s a sound on explosion
Read more...
 
Playing with graphics in Android – Part VI PDF Print E-mail
Thursday, 29 July 2010 04:07

You are new to this series? Please start with the first part.

The sixth part of this series will let you move the item you will add. As long as you touch the screen, you can change the position of the bitmap you want to add.

We simply have to add a temporary class variable in our Panel class.

1
private GraphicObject _currentGraphic = null;
Read more...
 
Playing with graphics in Android – Part V PDF Print E-mail
Thursday, 29 July 2010 04:04

You are new to this series? Please start with the first part.
Also be aware of a minor bug in the last series.

The fifth part of this series will let the icons move around.

What do we need, if we want to have the icons move around? Right, we need the direction of the movement and the speed. For this we need a new inner class comparable with the inner class Coordinates in our class GraphicObject.

Read more...
 
Playing with graphics in Android – Part IV PDF Print E-mail
Thursday, 29 July 2010 03:55
You are new to this series? Please start with the first part.

The fourth part of the series will show you how to add more bitmaps on your screen.

First we have to add is graphic class containing a bitmap and the coordinates where it is located.

Read more...
 
Playing with graphics in Android – Part III PDF Print E-mail
Thursday, 29 July 2010 03:47

You are new to this series? Please start with the first part.

The third part of this series will add some interactivity to our little application. We will add the possibility the icon appears at the point you touch the screen.

Just to remember, we have 3 classes: Tutorial2D (our Activity class), Panel (our SurfaceView class) and TutorialThread (our Thread class).
Our interaction will be handled in our Panel class, so we must be sure, that the touch events will processed by the Panel class. To ensure that, we simply have to set the focus to our panel (line 5).

Read more...
 
Playing with graphics in Android – Part II PDF Print E-mail
Wednesday, 28 July 2010 07:45
You are new to this series? Please start with the first part.

The second part of this series will show what you have to change to switch from using the View class to SurfaceView class.

Just to remember, our last code:

Read more...
 
Playing with graphics in Android – Part I PDF Print E-mail
Wednesday, 28 July 2010 07:26
The first part of this series will show you, how to display an image in a normal View.

First we create a new Project with the activity named Tutorial2D.
We will see this:

Read more...
 
« StartPrev12345678910NextEnd »

Page 1 of 40