本文整理汇总了Java中com.microsoft.band.BandIOException类的典型用法代码示例。如果您正苦于以下问题:Java BandIOException类的具体用法?Java BandIOException怎么用?Java BandIOException使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
BandIOException类属于com.microsoft.band包,在下文中一共展示了BandIOException类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: doesTileExist
import com.microsoft.band.BandIOException; //导入依赖的package包/类
private boolean doesTileExist() throws BandIOException, InterruptedException, BandException {
List<BandTile> tiles = client.getTileManager().getTiles().await();
for (BandTile tile : tiles) {
if (tile.getTileId().equals(tileId)) {
return true;
}
}
return false;
}
开发者ID:hcmlab,项目名称:ssj,代码行数:10,代码来源:BandComm.java
示例2: updatePages
import com.microsoft.band.BandIOException; //导入依赖的package包/类
private void updatePages() throws BandIOException {
client.getTileManager().setPages(tileId,
new PageData(pageId, 0)
.update(new TextButtonData(BTN_YES, "Start"))
.update(new TextButtonData(BTN_NO, "End"))
.update(new TextBlockData(TXT_TITLE, "Annotation")));
}
开发者ID:hcmlab,项目名称:ssj,代码行数:8,代码来源:BandComm.java
示例3: onDestroy
import com.microsoft.band.BandIOException; //导入依赖的package包/类
@Override
protected void onDestroy(){
super.onDestroy();
try {
client.getSensorManager().unregisterHeartRateEventListeners();
} catch (BandIOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
开发者ID:lskk,项目名称:Steppy-Android,代码行数:11,代码来源:BandStreamingAppActivity.java
示例4: unRegisterListeners
import com.microsoft.band.BandIOException; //导入依赖的package包/类
private void unRegisterListeners(String toastText){
if(isBlueTooth == true){
if (client != null) {
try {
client.getSensorManager().unregisterAllListeners();
} catch (BandIOException e) {
appendToUI(e.getMessage(), 1);
}
}
Toast.makeText(MSBandActivity.this, toastText, Toast.LENGTH_LONG).show();
this.unregisterReceiver(mReceiver);
}
// finish();
}
开发者ID:lskk,项目名称:Steppy-Android,代码行数:15,代码来源:MSBandActivity.java
示例5: onDestroy
import com.microsoft.band.BandIOException; //导入依赖的package包/类
@Override
public void onDestroy() {
if (client != null) {
try {
client.getSensorManager().unregisterAccelerometerEventListener(mAccelerometerEventListener);
} catch (BandIOException e) {
e.printStackTrace();
}
}
super.onDestroy();
}
开发者ID:qizhenghao,项目名称:Microsoft_Band,代码行数:12,代码来源:AccelerateFragment.java
示例6: onDestroy
import com.microsoft.band.BandIOException; //导入依赖的package包/类
@Override
public void onDestroy() {
if (client != null) {
try {
client.getSensorManager().unregisterGyroscopeEventListener(mGyroscopeEventListener);
} catch (BandIOException e) {
e.printStackTrace();
}
}
super.onDestroy();
}
开发者ID:qizhenghao,项目名称:Microsoft_Band,代码行数:12,代码来源:AngularVelocityFragment.java
示例7: onDestroy
import com.microsoft.band.BandIOException; //导入依赖的package包/类
@Override
public void onDestroy() {
if (client != null) {
try {
client.getSensorManager().unregisterHeartRateEventListener(mHeartRateEventListener);
client.getSensorManager().unregisterSkinTemperatureEventListener(skinTemperatureEventListener);
client.getSensorManager().unregisterGsrEventListener(gsrEventListener);
} catch (BandIOException e) {
e.printStackTrace();
}
}
super.onDestroy();
}
开发者ID:qizhenghao,项目名称:Microsoft_Band,代码行数:14,代码来源:HeartRateFragment.java
示例8: stopMeasuring
import com.microsoft.band.BandIOException; //导入依赖的package包/类
@Override
public void stopMeasuring() {
try {
if (client != null) {
client.getSensorManager().unregisterRRIntervalEventListener(mRRIntervalEventListener);
}
} catch (BandIOException e) {
Log.e(e.getClass().getName(), "BandIOException", e);
}
}
开发者ID:HRVBand,项目名称:hrv-band,代码行数:11,代码来源:MSBandRRIntervalDevice.java
示例9: sendMessage
import com.microsoft.band.BandIOException; //导入依赖的package包/类
public void sendMessage(CommonTile tile,String title,String message) {
try {
client.getNotificationManager().sendMessage(tile.getId(), title, message, new Date(), MessageFlags.NONE);
} catch (BandIOException e) {
e.printStackTrace();
}
}
开发者ID:alexandrev,项目名称:mbandroid,代码行数:8,代码来源:MSBandManager.java
示例10: sendMessage
import com.microsoft.band.BandIOException; //导入依赖的package包/类
public void sendMessage() {
ArrayList<TileInfo> tileInfos = TileInfo.readFile(context);
for (int i = 0; i < tileInfos.size(); i++)
if (tileInfos.get(i).name.equals("EMA"))
try {
bandClient.getNotificationManager().sendMessage(tileInfos.get(i).UUID, notificationRequestMessage.getMessage()[0], notificationRequestMessage.getMessage()[1], new Date(), MessageFlags.SHOW_DIALOG);
} catch (BandIOException ignored) {
}
}
开发者ID:MD2Korg,项目名称:mCerebrum-MicrosoftBand,代码行数:10,代码来源:Device.java
示例11: register
import com.microsoft.band.BandIOException; //导入依赖的package包/类
public void register() {
Log.d(TAG, "MicrosoftBand...register()...id=" + deviceId + " enabled=" + enabled + " bandClient=" + bandClient);
if (!enabled) return;
connect(new BandCallBack() {
@Override
public void onBandConnected() throws BandIOException {
Log.d(TAG, "band connected...");
sensors.register(bandClient, getPlatform());
}
});
}
开发者ID:MD2Korg,项目名称:mCerebrum-MicrosoftBand,代码行数:12,代码来源:MicrosoftBand.java
示例12: removeTile
import com.microsoft.band.BandIOException; //导入依赖的package包/类
private void removeTile() throws BandIOException, InterruptedException, BandException {
if (doesTileExist()) {
client.getTileManager().removeTile(tileId).await();
}
}
开发者ID:hcmlab,项目名称:ssj,代码行数:6,代码来源:BandComm.java
示例13: sendMessage
import com.microsoft.band.BandIOException; //导入依赖的package包/类
private void sendMessage(String title, String message) throws BandIOException {
client.getNotificationManager().sendMessage(tileId, title, message, new Date(), MessageFlags.SHOW_DIALOG);
appendToUI(message + "\n");
}
开发者ID:w-y,项目名称:Microsoft-Band-Pinyin,代码行数:5,代码来源:BandNotificationToPinyinActivity.java
示例14: onBandConnected
import com.microsoft.band.BandIOException; //导入依赖的package包/类
void onBandConnected() throws BandIOException;
开发者ID:MD2Korg,项目名称:mCerebrum-MicrosoftBand,代码行数:2,代码来源:BandCallBack.java
注:本文中的com.microsoft.band.BandIOException类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论