This is a java code to do localisation. later I need to make a android app based in the idea implemented here