Real Time OBD data between 2 activities Android -
i have been using https://github.com/pires/android-obd-reader use obd data capture in realtime on obd activity.
basically, information updated every few seconds on activity. want use information (fuel level example) in real time activity , update text not once in real time.
public void onlocationchanged(location location){ latitude = location.getlatitude(); longitude = location.getlongitude(); drawmytrack(latitude, longitude, prevlatitude, prevlongitude); prevlatitude = latitude; prevlongitude = longitude; sendlocationdatatowebsite(location); text= currenttrip.getfuellevel(); textview txtchanged = (textview)findviewbyid(r.id.textview2); txtchanged.settext(text); }
Comments
Post a Comment