安卓手機批量匯入通訊錄 Vcard檔案和excel

2022-01-30 11:01:26 字數 961 閱讀 9422

1.新建乙個bat檔案 記得字尾儲存為.bat檔案

@echo off

setlocal enabledelayedexpansion

del temp.txt

del lp.vcf

set /a line=1

for /f "tokens=1,2,3,4 delims=," %%a in (lp.csv) do (

if !line! gtr 1 (

(echo begin:vcard) >> temp.txt

(echo version:3.0) >> temp.txt

(echo n:;%%a;;;) >> temp.txt

(echo fn:%%a) >> temp.txt

(echo tel;type=cell:%%b) >> temp.txt

(echo org:%%c) >> temp.txt

(echo title:%%d) >> temp.txt

(echo end:vcard) >> temp.txt

) set /a line+=1

)ren temp.txt lp.vcf

2.新建乙個cvs檔案

3.隨便新建乙個檔案 ip.vcf 檔案

4.執行 bat檔案

5. 通過notpad 改變這個檔案的編碼格式

utf-8編碼-bom 的話 安卓手機是不會亂碼的不然會亂碼

簡單的安卓通訊錄

第一次demo安卓專案,理解介面卡adapter的填充,sqlite。1 最重要的是介面卡填充 得到手機通訊錄聯絡人資訊 getphonecontacts 對資料進行適配 mlistview listview findviewbyid r.id.lv myadapter new mylistadap...

iOS匯入手機通訊錄

abaddressbookref addressbooks nil if uidevice currentdevice systemversion floatvalue 6.0 dispatch semaphore wait sema,dispatch time forever else 獲取通訊錄...

ios手機通訊錄匯入應用

abaddressbookref addressbooks nil if uidevice currentdevice systemversion floatvalue 6.0 dispatch semaphore wait sema,dispatch time forever else 獲取通訊錄...