This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.nojack; | |
import android.app.Activity; | |
import android.bluetooth.BluetoothAdapter; | |
import android.bluetooth.BluetoothDevice; | |
import android.bluetooth.BluetoothGatt; | |
import android.bluetooth.BluetoothGattCallback; | |
import android.bluetooth.BluetoothGattCharacteristic; | |
import android.bluetooth.BluetoothGattDescriptor; | |
import android.bluetooth.BluetoothGattService; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.android; | |
/** | |
* Created by Ash Eldritch. | |
* | |
* Bluetooth RSSI is very volatile, and so in its raw form not a reliable method to detect change in proximity. | |
* Here, I use a moving average over a number of RSSI samples, plus a test for consistently declining RSSI over | |
* those samples. This much more accurately determines that the Bluetooth device is moving away. | |
* | |
* To use: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import zipfile | |
import cStringIO | |
from xml.dom import minidom | |
class ExtractPptNotes(object): | |
_chunks = None | |
def __init__(self, file_data): |