Using NDK bitmap function