now the jnipp code will cast array to object and call deleteglobalref or localref to free array google suggest:https://developer.android.com/training/articles/perf-jni#primitive-arrays