所谓的外部存储External Storage就是将数据文件保存在SD卡上。
1.但是在保存数据时需要先对SD卡的状态进行判断。
使用Environment.getExternalStorageState()可以SD卡的运行状态
分别有一下的状态
MEDIA_UNKNOWN, MEDIA_REMOVED, MEDIA_UNMOUNTED, MEDIA_CHECKING, MEDIA_NOF...
分类:
移动开发 时间:
2014-08-29 18:20:48
阅读次数:
265
修改my.cnf[mysqld]后加入default-storage-engine=InnoDB后否启动mysql时会遇到下述错误:[ERROR]Plugin‘InnoDB‘initfunctionreturnederror.[ERROR]Plugin‘InnoDB‘registrationasaSTORAGEENGINEfailed.[ERROR]Unknown/unsupportedtabletype:InnoDB[ERROR]Aborting删除mysql,da..
分类:
数据库 时间:
2014-08-29 16:14:58
阅读次数:
334
amazon s3 全称为 亚马逊简易存储服务(Amazon Simple Storage Service) 简单的说就是个网上存文件的服务器,可以把自己文件放上去,然后通过它开放的api来进行管理。官方网站是http://aws.amazon.com/cn/s3/在s3上面有一个bucket,我的...
分类:
编程语言 时间:
2014-08-29 12:39:47
阅读次数:
272
Call openFileOutput() with
the name of the file and the operating mode. This returns a FileOutputStream.通过 openFileOutput()建立FileoutputStream对象Write to the file with write().创建Write对象并进行数据读写操作Close ...
分类:
移动开发 时间:
2014-08-28 16:16:29
阅读次数:
328
在android中有五种保存数据的方法,分别是
Shared Preferences
Store private primitive data in key-value pairs.
对应属性的键值对属性文件存储
Internal Storage
Store private data on the device memory.
设备内存存储
External Storage
Store public data on the shared external storage.
外部存储器存储,如内存卡
SQLi...
分类:
移动开发 时间:
2014-08-27 23:31:38
阅读次数:
447
Web Storage是以Key-Value的形式进行数据持久性存储。Web Storage是为了克服由cookie带来的一些限制而产生的。当数据需要被严格控制在客户端上的时候,无须持续地将数据发回服务器。Web Storage的目标有两个:提供一种存储会话数据的路径;提供存储大量可以跨会话存在的数据的机制。...
分类:
Web程序 时间:
2014-08-27 20:35:08
阅读次数:
356
ActiveMQ中如果使用mysql innodb的同时,开启了binlog,那么在ack消息的时候,日志里就可会报错:java.sql.SQLException: Cannot execute statement: binlogging impossible since BINLOG_FORMAT = STATEMENT and at least one table uses a storage...
分类:
数据库 时间:
2014-08-27 14:50:47
阅读次数:
2492
Primitive Built-in TypesTypeImplicationMinimum storage spaceboolbooleanNAcharcharacter8 bitswchar_twide character16 bitsshortshort integer16 bitsintin...
分类:
编程语言 时间:
2014-08-25 11:37:34
阅读次数:
123
/**
* UDP 协议无关 调用 getaddrinfo 和 udp_server
**/
#include "unp.h"
#include
int
main(int argc, char **argv)
{
int sockfd;
ssize_t n;
char buff[MAXLINE];
time_t ticks;
socklen_t len;
struct sockaddr_storage cliaddr;
//1.利用 Udp_s...
分类:
其他好文 时间:
2014-08-24 23:56:33
阅读次数:
462
单击进入源网页要点摘要:1.查看mysql存储引擎的状态mysql> show engines;2.查看mysql默认的存储引擎mysql> show variables like '%storage_engine%';3.修改mysql默认存储引擎ALTER TABLE engineTest EN...
分类:
数据库 时间:
2014-08-24 22:15:03
阅读次数:
307