The Problem One day it was just there. A mischievous NullPointerException causing, eh, mischief. It was fairly easy to provoke with my application but for some reason my code was not part of the stacktrace. 12-07 14:42:52.722 E/AndroidRuntime(18421): FATAL EXCEPTION: main 12-07 14:42:52.722 E/AndroidRuntime(18421): java.lang.NullPointerException 12-07 14:42:52.722 E/AndroidRuntime(18421): at android.app.LoadedApk$ServiceDispatcher.doConnected(LoadedApk.java:1064) 12-07 14:42:52.722 E/AndroidRuntime(18421): at android.app.LoadedApk$ServiceDispatcher$RunConnection.run(LoadedApk.java:1081) [...]
Entries Tagged 'Android' ↓
Android: The Mysterious NullPointerException
December 15th, 2011 by Darius Katz — Android, Tips & Tricks
Tags: Android, mobile, programming
Robotium 3.0 – Stepping It Up!
November 16th, 2011 by Renas Reda — Android, Testing
For those of you that do not know, Robotium is a test framework used for function and system tests of Android applications. With the release of Robotium 3.0, Robotium is now faster, lighter and more stable then ever! A tremendous amount of work has gone into modifying and improving more or less all the different [...]
Tags: Android, automated testing
Getting started with Android NDK
October 13th, 2011 by Per-Erik Bergman — Android, Embedded, Java, Tips & Tricks
You want to try out the Android NDK? I have gotten a lot of questions about how to setup and work with the NDK and I decided to write down how I do it. My goal with this entry is to gather all the information you need to get started with the Android NDK. I [...]
Tags: Java, ndk, programming, tutorial
Using RenamingDelegatingContext to mock ContentResolver in Android
October 10th, 2011 by Tomas Nilsson — Android, Testing
Mocking Context Testing in Android can be complex, especially when your component is not isolated from the Android framework. One example of this is when your component is performing file system tasks using Context. E.g, the Activity class has the following methods (inherited from Context): openOrCreateDatabase(); deleteDatabase(); getDatabasePath(); openFileInput(); openFileOutput(); getFileStreamPath(); deleteFile(); getCacheDir(); When calling [...]
JFokus 2011: Android Application Development
February 16th, 2011 by Anders Göransson — Android, Events
At JFokus 2011 I held a three hour seminar on the subject Android Application Development. Because the presentation material was highly requested we’ve decided to share it as a courtesy to the participants. Enjoy! Android Application Development at JFokus 2011
Tags: Android
OpenGL ES Tutorial for Android – Part VI – Textures
December 30th, 2010 by Per-Erik Bergman — Android, Embedded, Java
Last tutorial we worked a bit more on meshes and we have also talked about adding colors to our mesh. The most common way of adding colors to your mesh is to add a texture. There is a couple of different steps involved with adding a texture to the mesh I will try to go [...]
Tags: opengl es, programming, tutorial
Extending the JDT
April 20th, 2010 by Michael Kober — Android
A couple of weeks ago I had a look at the Motodevstudio for Android developers and I think it has some quite nice features like code snippets or wizards for Android activities, services and more. Actually it’s is quite easy to extend the eclipse JDT and provide such useful plugins. This blog post is about [...]
Tags: Android, eclipse, programming, scala, tutorial
OpenGL ES Tutorial for Android – Part V – More on Meshes
February 15th, 2010 by Per-Erik Bergman — Android, Embedded
I have a feeling that some of you have tried my tutorials and then thought “This is a 3D tutorial, but why is everything in 2D?”. So in this tutorial we will make some real 3D meshes. This is also necessary for the following tutorials. When I started I had problems with finding out how [...]
Tags: opengl es, programming, tutorial
The easy way to test Android applications
January 28th, 2010 by Renas Reda — Android, Testing
I’m going to guess that most of you know what instrumentation is. In the event that you don’t, instrumentation is a feature in which specific monitoring of the interactions between an application and the system is made possible. Instrumentation also makes it possible to write test cases that interact with the application. The problem with [...]
Tags: automated testing, frameworks, junit, open source, tools
Boosting Android performance using JNI
January 25th, 2010 by Mattias Rosberg — Android, Embedded, Java
JNI or Java Native Interface is the interface between the Java code running in a JVM and the native code running outside the JVM. It works both ways, that is you can use JNI to call native code from your Java programs and to call Java code from your native code. The native code normally [...]
Tags: programming, tutorial
Learn to Stop Worrying and Love the Singleton
January 15th, 2010 by Fredrik Olsson — Android, Architecture, Embedded, Java, Tips & Tricks
Enterprise applications and mobile applications have quite different requirements. Starting an enterprise application is just something you do once before it continue running for months or years. On the other side of the spectrum most mobile applications seldom runs for more than minutes, run by a bored users standing in line or riding the bus. [...]
Tags: design patterns, java me, mobile, mock, performance, spring ldap
OpenGL ES Tutorial for Android – Part IV – Adding colors
January 14th, 2010 by Per-Erik Bergman — Android, Embedded
Last tutorial was about transformations. This tutorial will be a short one. I’m going to talk about adding color to your mesh. I will continue with the source code from tutorial II. Adding color 3D models with no colors are pretty boring so let’s add some color to it. In general colors need no explanation. [...]
Tags: opengl es, programming, tutorial
OpenGL ES Tutorial for Android – Part III – Transformations
January 1st, 2010 by Per-Erik Bergman — Android, Embedded
Last tutorial was about building your polygons. This tutorial is all about transformations, how to move the polygons around. I will continue this tutorial from where the previous ended so you can use that source code or make a copy of it. I am not going to bore you with a lot of mathematics but [...]
Tags: opengl es, programming, tutorial
OpenGL ES Tutorial for Android – Part II – Building a polygon
December 4th, 2009 by Per-Erik Bergman — Android, Embedded
Previous tutorial was all about setting up the GLSurfaceView. Be sure to read it beacuse it’s a really importent one to be able to continue. Building a polygon In this tutorial we will render our first polygon. 3D models are built up with smaller elements (vertices, edges, faces, and polygons) which can be manipulated individually. [...]
Tags: opengl es, programming, tutorial
OpenGL ES Tutorial for Android – Part I – Setting up the view
December 3rd, 2009 by Per-Erik Bergman — Android, Embedded
I’m going to write a couple of tutorials on using OpenGL ES on Android phones. The theory of OpenGL ES is the same on different devices so it should be quite easy to convert them to another platform. I can’t always remember where I found particular info so I might not always be able to [...]
Tags: opengl es, programming, tutorial
