欧美一区二区三区老妇人-欧美做爰猛烈大尺度电-99久久夜色精品国产亚洲a-亚洲福利视频一区二区

Android短信發(fā)送功能

xml文件代碼部分

10年積累的網(wǎng)站設(shè)計(jì)制作、做網(wǎng)站經(jīng)驗(yàn),可以快速應(yīng)對(duì)客戶對(duì)網(wǎng)站的新想法和需求。提供各種問題對(duì)應(yīng)的解決方案。讓選擇我們的客戶得到更好、更有力的網(wǎng)絡(luò)服務(wù)。我雖然不認(rèn)識(shí)你,你也不認(rèn)識(shí)我。但先做網(wǎng)站后付款的網(wǎng)站建設(shè)流程,更有大同免費(fèi)網(wǎng)站建設(shè)讓你可以放心的選擇與我們合作。

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:padding="10dp"
 >

	<EditText 
	    android:id="@+id/Phonenum"
	    android:layout_width="match_parent"
	    android:layout_height="wrap_content"
	    android:hint="請(qǐng)輸入手機(jī)號(hào)碼"
	    />
	<EditText 
	    android:id="@+id/duanxin"
	    android:layout_width="match_parent"
	    android:layout_height="200px"
	    android:hint="請(qǐng)輸入要發(fā)送的短信"
	    android:layout_below="@id/Phonenum"
	    />
	<Button 
	    android:id="@+id/fasong"
	    android:layout_width="wrap_content"
	    android:layout_height="wrap_content"
	    android:text="發(fā)送"
	    android:layout_below="@id/duanxin"
	    android:layout_alignParentRight="true"
	    />

</RelativeLayout>
public class MainActivity extends Activity {
	private EditText phonenum,duanxin;
	private Button button;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        phonenum=(EditText)findViewById(R.id.Phonenum);
        duanxin=(EditText)findViewById(R.id.duanxin);
        button=(Button)findViewById(R.id.fasong);
        ButLis lis=new ButLis();
        button.setOnClickListener(lis);
        
    }
    class ButLis implements OnClickListener{
    	@Override
    	public void onClick(View v) {
    		new Thread(new Runnable() {
				
				@Override
				public void run() {
					// TODO Auto-generated method stub
					String num=phonenum.getText().toString();
		    		SmsManager sms=SmsManager.getDefault();
		    		sms.sendTextMessage(num, null, duanxin.getText().toString(), null, null);
				}
			}).start();
    		
    		
    		
    		
    		
    		
    	}
    }

網(wǎng)頁題目:Android短信發(fā)送功能
分享鏈接:http://www.chinadenli.net/article30/jigspo.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站策劃移動(dòng)網(wǎng)站建設(shè)定制網(wǎng)站品牌網(wǎng)站設(shè)計(jì)網(wǎng)站內(nèi)鏈

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)

微信小程序開發(fā)