Define a: private static final String TAG = "YOUR TAG";. Use the Log class doing: Log.d(TAG, "RGB is " + rgb);. You can see logs with logcat .
stackoverflow.com