Android Archive

  • Android/OpenGL ES texture maps

    Android/OpenGL ES texture maps

    After much Googling, testing, head scratching and the odd SVN reversion I’ve managed to texture-map things. Specifically a triangle-strip that draws a square. So I drew a screenful, and implemented some basic tile-based scrolling. I also found out how to capture screenshots from my PC....

    Full Story

  • Android Notes: Full screen applications

    Android Notes: Full screen applications

    Just a quick note on how to make an Activity run full-screen. Simply insert this magic into the Activity’s OnCreate() super.onCreate(savedInstanceState); /* ... etc ... */ requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN ); /* ... rest of code ... */ You need this if playing with OpenGL ES, otherwise...

    Full Story

  • Android Notes: OpenGL ES 1.0

    Android Notes: OpenGL ES 1.0

    Let’s take a diversion into the world of OpenGL, specifically the implementation of OpenGL that lives inside an Android powered device. So, OpenGL ES 1.0 then. I’ll be learning about orthographic projection to begin with, simulating a 2D display using 3D hardware acceleration. What follows...

    Full Story

  • Android Notes: Debugging

    Android Notes: Debugging

    By now you’ve probably written a bit of code, and no doubt it’s not working quite right. It’s time to embrace the fantastic world of debugging. Debugging is a bit of a chore, and it can be made even more traumatic by having to use...

    Full Story

  • Android Notes: System overview

    Android Notes: System overview

    So, you’ve got the SDK running, and have a strange confusion about just what exactly is going on. By now you’ve hopefully overcome the culture shock and a lack of a main() function. So… what can this thing do? What is an ‘Activity’? What is...

    Full Story

  • Android Notes: Java

    Android Notes: Java

    As mentioned in the comments for the previous post, when writing Android apps you need to use Java. While it’s possible to code using C/C++, you really don’t want to unless making life difficult is your idea of fun. The Java you’ll be using is...

    Full Story

  • Android Notes: Setting up the SDK

    Android Notes: Setting up the SDK

    These will form a series of posts detailing my progress in learning the Android SDK. When I first started it was very confusing, and took a while to learn enough information to even make sense of what the documentation was trying to tell me. The...

    Full Story