Skip to content

Instantly share code, notes, and snippets.

View aantunovic's full-sized avatar
:shipit:

Anto Antunović aantunovic

:shipit:
View GitHub Profile
// If a given GATT characteristic is selected, check for supported features. This sample
// demonstrates 'Read' and 'Notify' features. See
// http://d.android.com/reference/android/bluetooth/BluetoothGatt.html for the complete
// list of supported characteristic features.
private final ExpandableListView.OnChildClickListener servicesListClickListner =
new ExpandableListView.OnChildClickListener() {
@Override
public boolean onChildClick(ExpandableListView parent, View v, int groupPosition,
int childPosition, long id) {
if (mGattCharacteristics != null) {
06-08 15:52:27.346 24193-24193/ch.nth.android.swisspost.beacons W/System.err﹕ at ch.nth.android.swisspost.beacons.common.activities.MainActivity.onResume(MainActivity.java:352)
06-08 15:52:27.346 24193-24193/ch.nth.android.swisspost.beacons W/System.err﹕ at android.app.ActivityThread.main(ActivityThread.java:5274)
06-08 15:52:27.347 24193-24193/ch.nth.android.swisspost.beacons W/System.err﹕ at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:704)
06-08 15:55:33.272 24193-24209/ch.nth.android.swisspost.beacons E/MainActivity﹕ Writen characteristic : Locker characteristic 49 [31]
06-08 15:55:33.324 24193-24209/ch.nth.android.swisspost.beacons E/MainActivity﹕ Read characteristic: 286 [1E, 01]
06-08 15:55:33.327 24193-24209/ch.nth.android.swisspost.beacons I/SwissPostman﹕ [33460] MainActivity.subscribeForNotifications: subscribed : true
06-08 15:55:33.327 24193-24209/ch.nth.android.swisspost.beacons E/MainActivity﹕ Number of logs: 286, array: [1E, 01]
06-08 15:55:33.421 24193-24210/ch.nth.android.s
package etfos.hr.tio;
import android.content.Context;
import android.util.Log;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.reflect.TypeToken;
@aantunovic
aantunovic / 0_reuse_code.js
Last active August 29, 2015 14:16
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console