nexus-one

A Strange C++ code problem in NDK, Nexus One

Hi guys. I got a strange problem when I run my app on Nexus One, Android 2.2. In my app, I used a native .so lib, built under NDK. In Java code, I have 2 threads: one UI thread, one to run codes from native so lib, and then updates the UI with the result data. In C++ code, I have a global variable "int count", which records the times a s...

Notification LED - color

I'm trying to experiment with LED colors on my Nexus One and i'm having problems with creating any LED-light (color) with notification. LED-light isn't working. I have tested hardware malfunction and that isn't the problem. Here is the code. Notification notification = new Notification(R.drawable.icon, tickerText, System.currentTime...

How to gain control of trackball in Nexus One Android.

I'm kind of new in android AOSP development, and I'm trying to click to the trackball and launch an app already installed (Camera App). I'm looking at the policy.androdoid, but i just doesn't understand how to gain controls of the hardware buttons and where to start. Any help, source code example or something like that will be really h...