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
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);
}
});
}
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: