Passing data between Fragments in Android -
i know many have answered question, still cannot mine work. in startworkout class data chronometer, , since data in milliseconds use method coded called showelapsedtime(). convert milliseconds seconds,minutes, , hours. want pass data class called workouts, reason not working.i not getting data because nullpointerexecption here code. startworkout class package com.example.d_jara.apprunners; public class startworkout extends fragment{ button button; button button2; chronometer mchronometer; private int hours = 0; private int minutes = 0; private int seconds=0; @override public view oncreateview( layoutinflater inflater, viewgroup container, bundle savedinstancestate) { view rootview = inflater.inflate(r.layout.lay_startworkout, container, false); mchronometer = (chronometer) rootview.findviewbyid(r.id.chronometer); // mchronometer.setformat("h:mm:ss"); butto...