- 博客(7)
- 收藏
- 关注
原创 四大组件之一ContentProvider(移动开发技术第三次作业)
ContentProvider是Android系统四大组件之一,标准API,其功能是在不同程序之间实现数据共享,为储存和获取数据提供了统一的接口,具体的数据来源可以是表,也可以是文件,甚至网络等等。不仅可以允许一个程序访问另一个程序中的数据,同时还可以选择只对哪一部分数据进行共享,从而保证程序隐私数据不被泄露。在onCreate函数中调用MyDao的构造函数来进行对数据库中数据的插入。在其中实现插入数据库‘hsDB’中的student表中的数据。先声明全局变量mydao。
2022-11-24 19:48:46
140
原创 Android Studio 类微信的门户页面设计(移动开发技术第一次作业)
同样创建 fragment_1.xml ,fragment_2.xml, fragment_3.xml, fragment_4.xml 来作为四个不同的中间内容框。定义四个Fragment类对象,建立FragmentManager 类对象fragmentManager,hide()函数,用于隐藏四个Fragement,达到隐藏中间内容框的效果避免四个内容框叠加显示。创建四个fragment 布局文件对应四个中间内容文件实现界面布局的切换。以聊天界面为例展示中间内容框的部分代码。
2022-09-30 12:32:09
550
原创 c#连接数据库
实验过程:连接数据库在vs里面找到工具点击第二个选项,搜索mysql并安装点击第一个,安装完成即可增删改查操作:设置如图的窗体应用查询表student中的数据1.删除编号为3的数据查询结果2.增加一条编号为9的数据查询结果3.将编号为4的数据分数项改为80查询结果using System;using System.Collections.Generic;using System.
2022-05-27 18:36:57
100
原创 【无标题】Windows实现记事本功能
代码:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Windows.Forms;namespace notepad2{ public part..
2022-05-10 21:26:20
96
原创 【无标题】Windows实现记事本功能
代码:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Windows.Forms;namespace notepad2{ public part..
2022-05-10 21:20:34
125
原创 c#实验作业
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;class Credit{ //持有人名 public string ownername; //信用卡欠款 public double balancedue; //还款日期 public int RepaymentDate; ...
2022-04-02 21:31:53
129
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人