登录
首页 » Android » 安卓Intent切换界面传递数据

安卓Intent切换界面传递数据

于 2022-03-12 发布 文件大小:623.66 kB
0 182
下载积分: 2 下载次数: 1

代码说明:

启动新的Activity,并传递参数,制作的信息录入,在第二个界面显示 public class MainActivity extends Activity {       protected void onCreate(Bundle savedInstanceState) {   .......    button.setOnClickListener(new View.OnClickListener(){//点击该按钮会打开一个新的Activity             public void onClick(View v) {              Intent intent = new Intent(MainActivity.this, NewActivity.class) Bundle bundle = new Bundle();//该类用作携带数据 bundle.putString("na

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • dma的使用
    DMA是非常重要的资源,外围设备接口,如Rapid IO,PCIE,I2C总线等传输数据,既可以通过CPU来处理,但更科学的方式是通过DMA来处理。这里是使用一个DMA通道的源码。
    2022-12-25 15:15:04下载
    积分:1
  • asmack-android-6.jar
    说明:  smack是一套很好的开源即时通讯api,是基于Xmpp协议的实现,而在Android,则提供了一个asmack的jar包,其功能以及用法跟smack一致。(Smack is a good open source instant messaging api, based on the implementation of Xmpp protocol, while Android provides an asmack jar package, which functions and uses the same as smack.)
    2020-06-17 22:20:01下载
    积分:1
  • android 抽屉菜单
    android 抽屉列表只有向向上拉动,该demo 重写控件, 可以在xml中配置上下左右。如果有需要,可以看看,有需要联系kay.zheng@sen5.com
    2022-07-11 02:10:59下载
    积分:1
  • MyViewFlipper
    android平台的一个小Demo,实现了带指引点的滑动翻页(A a small Demo on Android platform, realized the guidance with the point of sliding turn the page)
    2012-11-16 10:30:05下载
    积分:1
  • wenduji
    Android项目源码基于传感器的温度计开发是android应用上的温度计,是通过传感器来感知外面的温度。应该说这个应用太强大了,用到传感器技术,并能时时更新。项目中代码层次分明,大部分方法都加了详细的注释。对于想学习传感器的开发人员来说,简直是福音。(项目采用GBK编码,是studio工程)。(Android project source sensor based on the development of the thermometer is a thermometer on the Android application, it is through the sensor to sense the temperature outside. It should be said that this application is too powerful, the use of sensor technology, and can always update. Items in the code level, most of the methods have added a detailed notes. For developers who want to learn sensor, it is the gospel. (the project uses the GBK code, is the studio project).)
    2016-05-16 11:37:00下载
    积分:1
  • 768575
    LoaderManager异步加载数据库,精选android学习源码,很好的参考资料。(LoaderManager asynchronous loading the database, select the Android learning source code, a good reference.)
    2013-12-17 12:57:18下载
    积分:1
  • TVINFOR4.04
    allwinner a10 AV-IN驱动及android DEMO
    2013-10-22 15:42:24下载
    积分:1
  • Android
    2022-02-05 00:17:26下载
    积分:1
  • AvdStartDialog
    Avd Start Dialog Source Code for Andriod.
    2013-10-24 10:34:54下载
    积分:1
  • android 自定义Switch控件 例子源码下载(兼容低版本)
    兼容android低版本
    2015-04-15下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载