Skip to content

Instantly share code, notes, and snippets.

View joshardt's full-sized avatar
👨‍💻
.NET developer

José Burkhardt joshardt

👨‍💻
.NET developer
  • adesso mobile solutions GmbH
  • Frankfurt, Germany
View GitHub Profile
@joshardt
joshardt / MainActivity.java
Last active October 27, 2017 20:34
Android Wear Channel API – Sending and receiving messages
public class MainActivity extends WearableActivity implements ConnectionCallbacks, OnConnectionFailedListener, NodeListener, ChannelListener {
private static final String TAG = MainActivity.class.getSimpleName();
private GoogleApiClient googleApiClient = null;
protected void onCreate(final Bundle savedInstanceState) {
Log.d(TAG, "onCreate");
super.onCreate(savedInstanceState);
09-10 17:19:25.403 766-780/? E/ActivityManager: ANR in com.my.app
PID: 5198
Reason: Broadcast of Intent { act=com.google.firebase.INSTANCE_ID_EVENT flg=0x14 cmp=com.my.app/com.google.firebase.iid.FirebaseInstanceIdInternalReceiver (has extras) }
Load: 7.36 / 7.08 / 7.34
CPU usage from 11729ms to 0ms ago (2018-09-10 17:19:08.892 to 2018-09-10 17:19:20.621):
5.4% 26982/adbd: 0.5% user + 4.9% kernel / faults: 5367 minor
4.8% 16228/com.google.android.googlequicksearchbox:search: 3.4% user + 1.3% kernel
3% 564/audioserver: 0.9% user + 2.1% kernel
1.2% 766/system_server: 0.4% user + 0.8% kernel / faults: 32 minor 1 major
1% 2945/com.google.android.googlequicksearchbox: 0.2% user + 0.7% kernel