Android如何通过SmsManager使用源号发送短信?

时间:2015-10-31 16:34:01

标签: java android telephonymanager smsmanager

我正在尝试使用SmsManager从我的应用程序发送短信。 这是我的代码: -

import csv
import os
g = open("temp.txt","w")
for file in os.listdir('myDats'):
    f = open("myDats/"+file,"r")
    tempData = f.readlines()[0]
    tempData = tempData.replace("&","\n")
    g.write(tempData)
    f.close()
g.close()
h = open("text.txt","r")
arr = h.read().split("\n")
dict = {}
for x in arr:
    temp2 = x.split("=")
    dict[temp2[0]] = temp2[1]
with open('output.csv','w' """use 'wb' in python 2.x""" ) as output:
    w = csv.DictWriter(output,my_dict.keys())
    w.writeheader()
    w.writerow(my_dict)

这里srcPhoneNo表示短信服务代码。

但我想指定我的源号码,我不想发送短信。

我该怎么做。需要一些帮助吗?

0 个答案:

没有答案