本文整理汇总了Java中com.baidu.mapapi.map.MKEvent.ERROR_NETWORK_CONNECT属性的典型用法代码示例。如果您正苦于以下问题:Java MKEvent.ERROR_NETWORK_CONNECT属性的具体用法?Java MKEvent.ERROR_NETWORK_CONNECT怎么用?Java MKEvent.ERROR_NETWORK_CONNECT使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类com.baidu.mapapi.map.MKEvent
的用法示例。
在下文中一共展示了MKEvent.ERROR_NETWORK_CONNECT属性的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onGetNetworkState
@Override
public void onGetNetworkState(int iError)
{
if (iError == MKEvent.ERROR_NETWORK_CONNECT)
{
Toast.makeText(
GoogleApplication.getInstance().getApplicationContext(),
"您的网络出错啦!", Toast.LENGTH_LONG).show();
}
else if (iError == MKEvent.ERROR_NETWORK_DATA)
{
Toast.makeText(
GoogleApplication.getInstance().getApplicationContext(),
"输入正确的检索条件!", Toast.LENGTH_LONG).show();
}
}
示例2: onGetNetworkState
@Override
public void onGetNetworkState(int iError) {
if (iError == MKEvent.ERROR_NETWORK_CONNECT) {
Toast.makeText(BaiduMapActivity.this, "您的网络出错啦!", Toast.LENGTH_LONG).show();
} else if (iError == MKEvent.ERROR_NETWORK_DATA) {
Toast.makeText(BaiduMapActivity.this, "输入正确的检索条件!", Toast.LENGTH_LONG).show();
}
// ...
}
示例3: onGetNetworkState
@Override
public void onGetNetworkState(int iError) {
if (iError == MKEvent.ERROR_NETWORK_CONNECT) {
Toast.makeText(AppContext.getInstance().getApplicationContext(), "您的网络出错啦!",
Toast.LENGTH_LONG).show();
}
else if (iError == MKEvent.ERROR_NETWORK_DATA) {
Toast.makeText(AppContext.getInstance().getApplicationContext(), "输入正确的检索条件!",
Toast.LENGTH_LONG).show();
}
// ...
}
示例4: onGetNetworkState
@Override
public void onGetNetworkState(int iError) {
if (iError == MKEvent.ERROR_NETWORK_CONNECT) {
Toast.makeText(MyRenren.getInstance().getApplicationContext(), "您的网络出错啦!",
Toast.LENGTH_LONG).show();
}
else if (iError == MKEvent.ERROR_NETWORK_DATA) {
Toast.makeText(MyRenren.getInstance().getApplicationContext(), "输入正确的检索条件!",
Toast.LENGTH_LONG).show();
}
// ...
}
示例5: onGetNetworkState
@Override
public void onGetNetworkState(int iError) {
if (iError == MKEvent.ERROR_NETWORK_CONNECT) {
Log.e("yikuair", "BaiduLocation says network error"
+ "error number is: " + iError);
} else if (iError == MKEvent.ERROR_NETWORK_DATA) {
Log.e("yikuair", "BaiduLocation says network data error"
+ "error number is: " + iError);
}
// ...
}
示例6: onGetNetworkState
@Override
public void onGetNetworkState(int iError) {
if (iError == MKEvent.ERROR_NETWORK_CONNECT) {
if(AppConfig.DEBUG) {
SmartToast.showLongToast(BaiduMapActivity.this, R.string.hint_check_network, false);
}
} else if (iError == MKEvent.ERROR_NETWORK_DATA) {
if(AppConfig.DEBUG) {
SmartToast.showLongToast(BaiduMapActivity.this, R.string.hint_check_find_case, false);
}
}
}
示例7: onGetNetworkState
@Override
public void onGetNetworkState(int iError) {
if (iError == MKEvent.ERROR_NETWORK_CONNECT) {
Toast.makeText(
SeeXianApplication.getInstance()
.getApplicationContext(), "您的网络出错啦!",
Toast.LENGTH_LONG).show();
} else if (iError == MKEvent.ERROR_NETWORK_DATA) {
Toast.makeText(
SeeXianApplication.getInstance()
.getApplicationContext(), "输入正确的检索条件!",
Toast.LENGTH_LONG).show();
}
}
示例8: onGetNetworkState
@Override
public void onGetNetworkState(int iError) {
if (iError == MKEvent.ERROR_NETWORK_CONNECT) {
ComFun.showToast("您的网络出错啦!");
}
else if (iError == MKEvent.ERROR_NETWORK_DATA) {
ComFun.showToast("输入正确的检索条件!");
}
}