登录
首页 » Java » Android下使用Sqlite 增删改查功能,含数据库操作类【附源码】

Android下使用Sqlite 增删改查功能,含数据库操作类【附源码】

于 2013-02-23 发布
0 98
下载积分: 1 下载次数: 0

代码说明:

    每个应用程序都要使用数据,Android应用程序也不例外,Android使用开源的、与操作系统无关的SQL数据库 --大名鼎鼎的SQLite。SQLite是一款轻量级数据库,它的设计目的是嵌入式,而且它占用的资源非常少,在嵌入式设备中,可能只需要几百KB,这也是 Android 系统采用 SQLite 数据库的原因之一吧。简介轻量级使用 SQLite 只需要带一个动态库,就可以享受它的全部功能,而且那个动态库的尺寸想当小。独立性SQLite 数据库的核心引擎不需要依赖第三方软件,也不需要所谓的“安装”。隔离性SQLite 数据库中所有的信息(比如表、视图、触发器等)都包含在一个文件夹内,方便管理和维护。跨平台SQLite 目前支持大部分操作系统,不至电脑操作系统更在众多的手机系统也是能够运行,比如:Android。多语言接口SQLite 数据库支持多语言编程接口。安全性SQLite 数据库通过数据库级上的独占性和共享锁来实现独立事务处理。这意味着多个进程可以在同一时间从同一数据库读取数据,但只能有一个可以写入数据。

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

发表评论

0 个回复

  • android uvcCamera
    【实例简介】usb camera的连接使用
    2021-07-17 00:32:04下载
    积分:1
  • android 天气预报示例源码下载(一个简易的天气预报)
    android 天气预报示例源码下载(一个简易的天气预报)
    2014-04-15下载
    积分:1
  • android 自定义软键盘 例子源码下载
    android 自定义软键盘 例子源码下载
    2015-04-20下载
    积分:1
  • android中不错的ExpandableListView实例效果源码
    一、ExpandableListView介绍     一个垂直滚动的显示两个级别(Child,Group)列表项的视图,列表项来自ExpandableListAdapter 。组可以单独展开。   1.重要方法       expandGroup(int groupPos) :在分组列表视图中展开一组,      setSelectedGroup(int groupPosition) :设置选择指定的组。      setSelectedChild(int groupPosition, int childPosition, boolean shouldExpandGroup) :设置选择指定的子项。      getPackedPositionGroup(long packedPosition) :返回所选择的组      getPackedPositionForChild(int groupPosition, int childPosition) :返回所选择的子项      getPackedPositionType(long packedPosition) :返回所选择项的类型(Child,Group)      isGroupExpanded(int groupPosition) :判断此组是否展开  2.代码:ExpandableListContextMenuInfo menuInfo=(ExpandableListContextMenuInfo)item.getMenuInfo();String title=((TextView)menuInfo.targetView).getText().toString();int type=ExpandableListView.getPackedPositionType(menuInfo.packedPosition);if (type==ExpandableListView.PACKED_POSITION_TYPE_CHILD) {int groupPos =ExpandableListView.getPackedPositionGroup(menuInfo.packedPosition);int childPos =ExpandableListView.getPackedPositionChild(menuInfo.packedPosition);二、ExpandableListAdapter    一个接口,将基础数据链接到一个ExpandableListView。此接口的实施将提供访问Child的数据(由组分类),并实例化的Child和Group。 getChildId(int groupPosition, int childPosition) 获取与在给定组给予孩子相关的数据。     getChildrenCount(int groupPosition) 返回在指定Group的Child数目。
    2013-03-07下载
    积分:1
  • android 高仿易信 源码下载
    android 高仿易信 源码下载
    2014-05-12下载
    积分:1
  • android图片上传的demo 源码(含服务器端和客户端源码)
    android图片上传的demo 源码(含服务器端和客户端源码)
    2014-09-18下载
    积分:1
  • 微博安卓源码下载(社交分享)
    口袋微博
    2014-12-14下载
    积分:1
  • android 热键插拔例子源码
    Android的热插拔监听源代码,可以用来监听耳机之类的热插拔事件发生
    2014-09-25下载
    积分:1
  • 远程视频监控
    【核心代码】 public interface CameraSource {  static final String LOG_TAG = "camera";  /**  * Open the camera source for subsequent use via calls to capture().  *   * @return true if the camera source was successfully opened.  */  boolean open();  /**  * Close the camera source. Calling close on a closed CameraSource is  * permitted but has no effect. The camera source may be reopened after  * being closed.  */  void close();  /**  * The width of the captured image.  *   * @return the width of the capture in pixels  */  int getWidth();  /**  * The height of the captured image.  *   * @return the height of the capture in pixels  */  int getHeight();  /**  * Attempts to render the current camera view onto the supplied canvas.  * The capture will be rendered into the rectangle (0,0,width,height).  * Outstanding transformations on the canvas may alter this.  *   * @param canvas the canvas to which the captured pixel data will be written  * @return true iff a frame was successfully written to the canvas  */  boolean capture(Canvas canvas);  boolean saveImage(String savePath, String fileName); }
    2013-12-04下载
    积分:1
  • android 猜扑克 洗牌小游戏 实例 附完整源码下载
    android 猜扑克牌游戏 猜中有鼓励 供大家学习哦
    2013-03-16下载
    积分:1
  • 696524资源总数
  • 103751会员总数
  • 74今日下载