安卓隐式intent(打电话,浏览器)

本文通过一个实例介绍了如何在Android应用中使用隐式Intent来实现调用电话功能和打开浏览器搜索。在MainActivity.java中,定义了三个方法,分别用于启动BActivity、拨打电话和打开百度网页。在BActivity.java中,使用WebView展示接收到的网址并实现页面内链接的点击跳转。
摘要由CSDN通过智能技术生成

1.知识图谱:



1.xml文件

activity_main.xml

[html]  view plain   copy
  1. <?xml version="1.0" encoding="utf-8"?>  
  2. <LinearLayout  
  3.     xmlns:android="http://schemas.android.com/apk/res/android"  
  4.     xmlns:app="http://schemas.android.com/apk/res-auto"  
  5.     xmlns:tools="http://schemas.android.com/tools"  
  6.     android:orientation="vertical"  
  7.     android:layout_width="match_parent"  
  8.     android:layout_height="match_parent"  
  9.     tools:context="com.example.cookie.android0619intent.MainActivity">  
  10.   
  11.     <Button  
  12.         android:layout_width="match_parent"  
  13.         android:layout_height="wrap_content"  
  14.         android:text="跳B"  
  15.         android:textSize="30sp"  
  16.         android:onClick="jumpB"/>  
  17.   
  18.     <Button  
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值