久久久精品一区ed2k-女人被男人叉到高潮的视频-中文字幕乱码一区久久麻豆樱花-俄罗斯熟妇真实视频

Android學(xué)習(xí)——Intent的使用

intent的簡單用法

無棣ssl適用于網(wǎng)站、小程序/APP、API接口等需要進行數(shù)據(jù)傳輸應(yīng)用場景,ssl證書未來市場廣闊!成為創(chuàng)新互聯(lián)的ssl證書銷售渠道,可以享受市場價格4-6折優(yōu)惠!如果有意向歡迎電話聯(lián)系或者加微信:13518219792(備注:SSL證書合作)期待與您的合作!

 

Intent 一些簡單用法

傳值:

Intent intent=new Intent();
intent.putExtra("extra", "這是頁面一傳來的值!");
intent.setClass(Test_for_intentActivity.this, actpage2.class);
startActivity(intent);

取值:

Intent intent=getIntent();
String StringE=intent.getStringExtra("extra");
TextView text2=(TextView)findViewById(R.id.textView2);
text2.setText(StringE);

 打開網(wǎng)頁

  1. Uri uri = Uri.parse("http://www.google.com");

  2. Intent it 

     

    = new Intent(Intent.ACTION_VIEW,uri);

  3. startActivity(it); 

撥打電話
Uri uri =Uri.parse("tel:xxxxxx");
Intent it = new Intent(Intent.ACTION_DIAL,uri);  
startActivity(it);
 
6.調(diào)用發(fā)短信的程序
Intent it = newIntent(Intent.ACTION_VIEW);   
it.putExtra("sms_body", "TheSMS text");   
it.setType("vnd.android-dir/mms-sms");   
startActivity(it);

  1. //發(fā)送附件

  2. Intent it = new Intent(Intent.ACTION_SEND); 

     

  3. it.putExtra(Intent.EXTRA_SUBJECT, "The email subject text"); 

     

  4. it.putExtra(Intent.EXTRA_STREAM, "file:///sdcard/eoe.mp3"); 

     

  5. sendIntent.setType("audio/mp3"); 

     

  6. startActivity(Intent.createChooser(it, "Choose Email Client")); 

 

文章題目:Android學(xué)習(xí)——Intent的使用
文章源于:http://sd-ha.com/article18/gjjdgp.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站制作、靜態(tài)網(wǎng)站、網(wǎng)站導(dǎo)航、網(wǎng)站收錄品牌網(wǎng)站建設(shè)、面包屑導(dǎo)航

廣告

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

外貿(mào)網(wǎng)站建設(shè)