You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 19, 2026. It is now read-only.
just a minor issue but I got the following logcat message while running on a raspberry pi 3 com.example.androidthings.gattserver I/Choreographer: Skipped 86 frames! The application may be doing too much work on its main thread.
wouldn't it be better to move the UI code mLocalTimeView.setText(displayDate); to another thread e.g. a runnable inside a runOnUiThread?
e.g.
private void updateLocalUi(long timestamp) {
Date date = new Date(timestamp);
final String displayDate = DateFormat.getMediumDateFormat(this).format(date)
+ "\n"
+ DateFormat.getTimeFormat(this).format(date);
runOnUiThread(new Runnable() {
@Override
public void run() {
mLocalTimeView.setText(displayDate);
}
});
}
just a minor issue but I got the following logcat message while running on a raspberry pi 3
com.example.androidthings.gattserver I/Choreographer: Skipped 86 frames! The application may be doing too much work on its main thread.wouldn't it be better to move the UI code
mLocalTimeView.setText(displayDate);to another thread e.g. a runnable inside a runOnUiThread?e.g.