This sounds like a question about programming in Android rather than programming an Arduino, but it sounds possible