My app is doing some location tracking and update database when needed, the app has been running 2 days without having any issue. And now I am trying to use the Android Profiler
use this code
button2 = (Button) findViewById(R.id.button2);