第一篇:百度地圖認(rèn)領(lǐng)確認(rèn)書(shū)word版格式
百度地圖商戶類POI認(rèn)領(lǐng)確認(rèn)書(shū)
北京百度網(wǎng)訊科技有限公司:
我司(公司名稱:____________________________,公司地址: _____________________________________________________,公司電話:___________________________)現(xiàn)授權(quán)委托我司員工:___________,性別:_______,身份證號(hào)碼:_____________________________,手機(jī)號(hào):_______________辦理百度地圖商戶類POI認(rèn)領(lǐng)、標(biāo)記等事務(wù),授權(quán)有效期________年______月_____日 至:________年______月____日。
我司承諾已閱讀并嚴(yán)格遵守百度地圖所有服務(wù)條款及百度地圖商戶類poi免費(fèi)標(biāo)注規(guī)則及要求。同時(shí)我司承諾:我司提供的信息、資料等真實(shí)、合法、有效,且我司認(rèn)領(lǐng)、標(biāo)注的POI為我司真實(shí)POI。
如我司違反以上承諾,則我司承擔(dān)所有法律責(zé)任。本承諾書(shū)我司無(wú)權(quán)單方撤回、修改、變更。
公司(公章)年 月 日
買農(nóng)村家庭散養(yǎng)土雞蛋,加V 44-02-44-36
1枚不正宗,1單免費(fèi)送!破損包賠!
第二篇:百度地圖商戶更名聲明
百度地圖標(biāo)注免責(zé)聲明
我公司自愿將現(xiàn)有商戶名稱
更改為
,并承擔(dān)由此帶來(lái)的一切問(wèn)題(如客戶投訴等),百度地圖不承擔(dān)由此帶來(lái)的任何后果。
機(jī)構(gòu)蓋章:倍全
授權(quán)代表簽字:倍全
年 月 日
第三篇:認(rèn)領(lǐng)責(zé)任
認(rèn)領(lǐng)責(zé)任:
我對(duì)葉慶權(quán)同志所作的班子對(duì)照檢查材料發(fā)言表示同意。其中,對(duì)于材料中提到的一些共性問(wèn)題人,如,注重顯績(jī)、急功近利、重表面文章,求應(yīng)付過(guò)關(guān)、工作落實(shí)不力、學(xué)習(xí)不足、學(xué)用脫節(jié)、調(diào)研不深入,流于形式、關(guān)心群眾冷暖不足、指導(dǎo)支持基層不足、擔(dān)當(dāng)精神不夠強(qiáng)、開(kāi)拓創(chuàng)新勇氣不足、工作標(biāo)準(zhǔn)要求不高、艱苦奮斗意識(shí)弱化等問(wèn)題,我作為班子成員負(fù)有不可推卸的責(zé)任。同時(shí),我對(duì)材料中提出的整改措施和意見(jiàn)也十分認(rèn)同,下一步我將認(rèn)真按照要求,抓好整改落實(shí)。
表態(tài)發(fā)言:
首先非常感謝同志們對(duì)我提出的批評(píng)意見(jiàn),我也很樂(lè)意接受,下一步,我將結(jié)合班子專題民主生活會(huì)上提出的批評(píng)意見(jiàn),認(rèn)真梳理,按照“即知即改”的要求,組條整改到位,全力以赴推進(jìn)各項(xiàng)工作,懇請(qǐng)各位本著“懲前毖后,治病救人”的精神繼續(xù)對(duì)我進(jìn)行監(jiān)督和批評(píng)。
第四篇:android百度地圖api實(shí)現(xiàn)短信接收定位
工程文件結(jié)構(gòu):
demoApplication.java package com.gy.mymaps;
import android.app.Application;import android.content.Context;import android.widget.Toast;
import com.baidu.mapapi.BMapManager;import com.baidu.mapapi.MKGeneralListener;import com.baidu.mapapi.map.MKEvent;
public class DemoApplication extends Application {
private static DemoApplication mInstance = null;
public boolean m_bKeyRight = true;
BMapManager mBMapManager = null;
@Override
public void onCreate(){
super.onCreate();
mInstance = this;
initEngineManager(this);}
public void initEngineManager(Context context){
if(mBMapManager == null){
mBMapManager = new BMapManager(context);
}
if(!mBMapManager.init(new MyGeneralListener())){
Toast.makeText(DemoApplication.getInstance().getApplicationContext(),“BMapManager初始化錯(cuò)誤!”, Toast.LENGTH_LONG).show();
} }
public static DemoApplication getInstance(){
return mInstance;}
// 常用事件監(jiān)聽(tīng),用來(lái)處理通常的網(wǎng)絡(luò)錯(cuò)誤,授權(quán)驗(yàn)證錯(cuò)誤等
static class MyGeneralListener implements MKGeneralListener {
public void onGetNetworkState(int iError){
if(iError == MKEvent.ERROR_NETWORK_CONNECT){
Toast.makeText(DemoApplication.getInstance().getApplicationContext(), “您的網(wǎng)絡(luò)出錯(cuò)啦!”,Toast.LENGTH_LONG).show();
}
else if(iError == MKEvent.ERROR_NETWORK_DATA){
Toast.makeText(DemoApplication.getInstance().getApplicationContext(), “輸入正確的檢索條件!”,Toast.LENGTH_LONG).show();
}
//...}
public void onGetPermissionState(int iError){
//非零值表示key驗(yàn)證未通過(guò)
if(iError!= 0){
//鎺堟潈Key閿欒錛?
Toast.makeText(DemoApplication.getInstance().getApplicationContext(),“請(qǐng)輸入正確的授權(quán)Key,并檢查您的網(wǎng)絡(luò)連接是否正常!error: ”+iError, Toast.LENGTH_LONG).show();
DemoApplication.getInstance().m_bKeyRight = false;
}
else{
DemoApplication.getInstance().m_bKeyRight = true;
Toast.makeText(DemoApplication.getInstance().getApplicationContext(),“key認(rèn)證成功”, Toast.LENGTH_LONG).show();
}
}
} } Mainactivity.java: package com.gy.mymaps;
import java.util.List;
import android.annotation.SuppressLint;import android.app.Activity;import android.content.ContentValues;import android.database.ContentObserver;import android.database.Cursor;import android.graphics.drawable.Drawable;import android.net.Uri;import android.os.Build;import android.os.Bundle;import android.os.Handler;import android.telephony.SmsManager;import android.view.View;import android.view.View.OnClickListener;import android.widget.Button;import android.widget.EditText;import android.widget.Toast;
import com.baidu.mapapi.BMapManager;import com.baidu.mapapi.map.ItemizedOverlay;import com.baidu.mapapi.map.MapView;import com.baidu.mapapi.map.OverlayItem;import com.baidu.mapapi.search.MKAddrInfo;import com.baidu.mapapi.search.MKBusLineResult;import com.baidu.mapapi.search.MKDrivingRouteResult;import com.baidu.mapapi.search.MKPoiResult;import com.baidu.mapapi.search.MKSearch;import com.baidu.mapapi.search.MKSearchListener;import com.baidu.mapapi.search.MKShareUrlResult;import com.baidu.mapapi.search.MKSuggestionResult;import com.baidu.mapapi.search.MKTransitRouteResult;import com.baidu.mapapi.search.MKWalkingRouteResult;import com.baidu.platform.comapi.basestruct.GeoPoint;//import com.gy.msmsend.R;public class MainActivity extends Activity { //UI相關(guān)
Button mBtnReverseGeoCode = null;// 將坐標(biāo)反編碼為地址
Button mBtnGeoCode = null;// 將地址編碼為坐標(biāo)
Button msmSend =null;//短信發(fā)送按鈕
//地圖相關(guān)
MapView mMapView = null;// 地圖View
//搜索相關(guān)
MKSearch mSearch = null;// 搜索模塊,也可去掉地圖模塊獨(dú)立使用
EditText phoneText;
String[] as;
String city=null;
String pos=null;
Drawable marker;
int png=0;
//
protected void onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
/*
* 注冊(cè)短信變化事件監(jiān)聽(tīng)
*/
SmsContent content = new SmsContent(new Handler());
//注冊(cè)短信變化監(jiān)聽(tīng)
this.getContentResolver().registerContentObserver(Uri.parse(“content://sms/”), true, content);
//注冊(cè)短信變化監(jiān)聽(tīng)
/**
* 使用地圖sdk前需先初始化BMapManager.* BMapManager是全局的,可為多個(gè)MapView共用,它需要地圖模塊創(chuàng)建前創(chuàng)建,* 并在地圖地圖模塊銷毀后銷毀,只要還有地圖模塊在使用,BMapManager就不應(yīng)該銷毀
*/
DemoApplication app =(DemoApplication)this.getApplication();
if(app.mBMapManager == null){
app.mBMapManager = new BMapManager(getApplicationContext());
/**
* 如果BMapManager沒(méi)有初始化則初始化BMapManager
*/
app.mBMapManager.init(new DemoApplication.MyGeneralListener());
}
setContentView(R.layout.activity_main);
CharSequence titleLable=“我的位置”;
setTitle(titleLable);
//地圖初始化
mMapView =(MapView)findViewById(R.id.bmapView);
mMapView.getController().enableClick(true);
mMapView.getController().setZoom(12);
// 初始化搜索模塊,注冊(cè)事件監(jiān)聽(tīng)
mSearch = new MKSearch();
mSearch.init(app.mBMapManager, new MKSearchListener(){
public void onGetPoiDetailSearchResult(int type, int error){
}
public void onGetAddrResult(MKAddrInfo res, int error){
if(error!= 0){
String str = String.format(“錯(cuò)誤號(hào):%d”, error);
Toast.makeText(MainActivity.this, str, Toast.LENGTH_LONG).show();
return;
}
//地圖移動(dòng)到該點(diǎn)
mMapView.getController().animateTo(res.geoPt);
if(res.type == MKAddrInfo.MK_GEOCODE){
//地理編碼:通過(guò)地址檢索坐標(biāo)點(diǎn)
String strInfo = String.format(“緯度:%f 經(jīng)度:%f”, res.geoPt.getLatitudeE6()/1e6, res.geoPt.getLongitudeE6()/1e6);
Toast.makeText(MainActivity.this, strInfo, Toast.LENGTH_LONG).show();
}
if(res.type == MKAddrInfo.MK_REVERSEGEOCODE){
//反地理編碼:通過(guò)坐標(biāo)點(diǎn)檢索詳細(xì)地址及周邊poi
String strInfo = res.strAddr;
Toast.makeText(MainActivity.this, strInfo, Toast.LENGTH_LONG).show();
EditText editGeoCodeKey =(EditText)findViewById(R.id.geocodekey);
//設(shè)置城市
editGeoCodeKey.setText(strInfo);
}
//生成ItemizedOverlay圖層用來(lái)標(biāo)注結(jié)果點(diǎn)
ItemizedOverlay
//生成Item
OverlayItem item = new OverlayItem(res.geoPt, “", null);
//為maker定義位置和邊界
marker.setBounds(0, 0, marker.getIntrinsicWidth(), marker.getIntrinsicHeight());
//給item設(shè)置marker
item.setMarker(marker);
//在圖層上添加item
itemOverlay.addItem(item);
//清除地圖其他圖層
mMapView.getOverlays().clear();
//添加一個(gè)標(biāo)注ItemizedOverlay圖層
mMapView.getOverlays().add(itemOverlay);
//執(zhí)行刷新使生效
mMapView.refresh();
}
public void onGetPoiResult(MKPoiResult res, int type, int error){
}
public void onGetDrivingRouteResult(MKDrivingRouteResult res, int error){
}
public void onGetTransitRouteResult(MKTransitRouteResult res, int error){
}
public void onGetWalkingRouteResult(MKWalkingRouteResult res, int error){
}
public void onGetBusDetailResult(MKBusLineResult result, int iError){
}
public void onGetSuggestionResult(MKSuggestionResult res, int arg1){
}
public void onGetShareUrlResult(MKShareUrlResult result, int type,int error){
// TODO Auto-generated method stub
}
});
// 設(shè)定地理編碼及反地理編碼按鈕的響應(yīng)
mBtnReverseGeoCode =(Button)findViewById(R.id.reversegeocode);
mBtnGeoCode =(Button)findViewById(R.id.geocode);
msmSend =(Button)findViewById(R.id.sendButton);
OnClickListener clickListener = new OnClickListener(){
public void onClick(View v){
SearchButtonProcess(v);
}
};
mBtnReverseGeoCode.setOnClickListener(clickListener);
mBtnGeoCode.setOnClickListener(clickListener);
msmSend.setOnClickListener(clickListener);
} /**
* 發(fā)起搜索
* @param v
*/ void SearchButtonProcess(View v){
if(mBtnReverseGeoCode.equals(v)){
EditText lat =(EditText)findViewById(R.id.lat);
EditText lon =(EditText)findViewById(R.id.lon);
//得到需要標(biāo)在地圖上的資源
marker = getResources().getDrawable(R.drawable.ic_mark0);
GeoPoint ptCenter = GeoPoint((int)(Float.valueOf(lat.getText().toString())*1e6),(int)(Float.valueOf(lon.getText().toString())*1e6));
//反Geo搜索
mSearch.reverseGeocode(ptCenter);
} else if(mBtnGeoCode.equals(v)){
new
EditText editCity =(EditText)findViewById(R.id.city);
EditText editGeoCodeKey =(EditText)findViewById(R.id.geocodekey);
//得到需要標(biāo)在地圖上的資源
marker = getResources().getDrawable(R.drawable.ic_mark0);
//Geo搜索
mSearch.geocode(editGeoCodeKey.getText().toString(),editCity.getText().toString());
}else if(msmSend.equals(v)){
phoneText =(EditText)findViewById(R.id.tel);
//發(fā)送短信
sendMessage();
} }
@Override
protected void onPause(){
mMapView.onPause();
super.onPause();
}
@Override
protected void onResume(){
mMapView.onResume();
super.onResume();
}
@Override
protected void onDestroy(){
mMapView.destroy();
mSearch.destory();
super.onDestroy();
}
@Override
protected void onSaveInstanceState(Bundle outState){
super.onSaveInstanceState(outState);
mMapView.onSaveInstanceState(outState);
}
@Override
protected void onRestoreInstanceState(Bundle savedInstanceState){
super.onRestoreInstanceState(savedInstanceState);
mMapView.onRestoreInstanceState(savedInstanceState);
}
/**
*
*/
private void sendMessage(){
// 獲取文本框中的內(nèi)容
String phone_num = phoneText.getText().toString();
String content =”QUERY“;
SmsManager smsMagager = SmsManager.getDefault();
if(content.length()> 70){
List
for(String con : sms){
smsMagager.sendTextMessage(phone_num, null, con, null, null);
}
} else {
smsMagager.sendTextMessage(phone_num, null, content, null, null);
}
Toast.makeText(MainActivity.this,R.string.info, Toast.LENGTH_LONG).show();
}
/*
* 監(jiān)聽(tīng)短信數(shù)據(jù)庫(kù)
*/
class SmsContent extends ContentObserver {
private Cursor cursor = null;@SuppressLint(”ShowToast“)public SmsContent(Handler handler){
super(handler);
// TODO Auto-generated constructor stu
}
@SuppressWarnings(”deprecation“)
@Override
public void onChange(boolean selfChange){
// TODO Auto-generated method stub
super.onChange(selfChange);
EditText phonenum=(EditText)findViewById(R.id.tel);
String telnum=”+86“+phonenum.getText().toString();
// 讀取收件箱中指定號(hào)碼的短信
cursor = managedQuery(Uri.parse(”content://sms/inbox“),new String[] { ”_id“, ”address“, ”read“, ”body“ },” address=? and read=?“,new String[] {telnum,”0“ }, ”_id desc“);
// 按id排序,如果按date排序的話,修改手機(jī)時(shí)間后,讀取的短信就不準(zhǔn)了
if(cursor!= null && cursor.getCount()> 0){
ContentValues values = new ContentValues();
values.put(”read“, ”1“);// 修改短信為已讀模式
cursor.moveToNext();
int smsbodyColumn = cursor.getColumnIndex(”body“);String smsBody = cursor.getString(smsbodyColumn);
getmypos(smsBody);
//開(kāi)啟搜索
//經(jīng)緯度
EditText lat =(EditText)findViewById(R.id.lat);EditText lon =(EditText)findViewById(R.id.lon);//設(shè)置輸入框的內(nèi)容
lat.setText(as[2]);lon.setText(as[1]);//得到需要標(biāo)在地圖上的資源
getpng(png);GeoPoint ptCenter = new GeoPoint((int)(Float.valueOf(lat.getText().toString())*1e6),(int)(Float.valueOf(lon.getText().toString())*1e6));//反Geo搜索
mSearch.reverseGeocode(ptCenter);
}
// 在用managedQuery的時(shí)候,不能主動(dòng)調(diào)用close()方法,否則在 android:layout_height=”match_parent“ tools:context=”.MainActivity“ > android:id=”@+id/bmapView“ android:layout_width=”fill_parent“ android:layout_height=”fill_parent“ android:clickable=”true“ /> android:id=”@+id/lat“ android:layout_width=”125dp“ android:layout_height=”wrap_content“ android:layout_alignParentLeft=”true“ android:layout_alignParentTop=”true“ android:ems=”10“ android:text=”39.904965“ />