当前位置:  编程技术>移动开发
本页文章导读:
    ▪代码三        代码3 ArrayList<ColumnInfo> columns = new ArrayList<ColumnInfo>(); columns.add(...); ColumnInfo[] columnList = new ColumnInfo[columns.size()]; columns.toArray(columnList);//将容器columns中的元素放进数组columnList中,如果.........
    ▪ object 3d模型资料到openGl ES 的数据文化转化        object 3d模型文件到openGl ES 的数据文化转化 http://heikobehrens.net/2009/08/27/obj2opengl/ ......
    ▪ Ubuntu源码编译环境的装配       Ubuntu源码编译环境的安装 5.2 32bit服务器安装Ubuntu Linux (32-bit x86)To set up your Linux development environment, make sure you have the following:Required Packages: Git 1.5.4 or newer and the GNU Privacy Guard. JDK 5.0, updat.........

[1]代码三
    来源: 互联网  发布时间: 2014-02-18
代码3
 
ArrayList<ColumnInfo> columns = new ArrayList<ColumnInfo>();
columns.add(...);
ColumnInfo[] columnList = new ColumnInfo[columns.size()];
columns.toArray(columnList);//将容器columns中的元素放进数组columnList中,如果数组不够大则新建一个数组,如果够大,则将多余的位置置null


此代码为从URI获取where子句。
private final String whereWithId(Uri uri, String selection) {
        String id = uri.getPathSegments().get(1);
        StringBuilder where = new StringBuilder("_id=");
        where.append(id);
        if (!TextUtils.isEmpty(selection)) {
            where.append(" AND (");
            where.append(selection);
            where.append(')');
        }
        return where.toString();
    }

public byte[] get(long key, long timestamp) {
        // Look up the record for the given key.
        Record record = null;
        synchronized (mIndexMap) {
            record = mIndexMap.get(key);
        }
        if (record != null) {
            // Read the chunk from the file.
            if (record.timestamp < timestamp) {
                Log.i(TAG, "File has been updated to " + timestamp + " since the last time " + record.timestamp
                        + " stored in cache.");
                return null;
            }
            try {
                RandomAccessFile chunkFile = getChunkFile(record.chunk);
                if (chunkFile != null) {
                    byte[] data = new byte[record.size];
                    chunkFile.seek(record.offset);
                    chunkFile.readFully(data);
                    return data;
                }
            } catch (Exception e) {
                Log.e(TAG, "Unable to read from chunk file");
            }
        }
        return null;
    }

    
[2] object 3d模型资料到openGl ES 的数据文化转化
    来源: 互联网  发布时间: 2014-02-18
object 3d模型文件到openGl ES 的数据文化转化

http://heikobehrens.net/2009/08/27/obj2opengl/


    
[3] Ubuntu源码编译环境的装配
    来源: 互联网  发布时间: 2014-02-18
Ubuntu源码编译环境的安装
5.2 32bit服务器安装
Ubuntu Linux (32-bit x86)
To set up your Linux development environment, make sure you have the following:
Required Packages:
 Git 1.5.4 or newer and the GNU Privacy Guard.
 JDK 5.0, update 12 or higher.Java 6 is not supported, because of incompatibilities with @Override.
 flex, bison, gperf, libsdl-dev, libesd0-dev, libwxgtk2.6-dev (optional), build-essential, zip, curl.
$ sudo apt-get install git-core gnupg sun-java5-jdk flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev

You might also want Valgrind, a tool that will help you find memory leaks, stack corruption, array bounds overflows, etc.
$ sudo apt-get install valgrind

Intrepid ( 8.10) users may need a newer version of libreadline:
$ sudo apt-get install lib32readline5-dev

5.3 64bit服务器安装
Ubuntu Linux (64-bit x86)
This has not been as well tested. Please send success or failure reports to android-porting@googlegroups.com .

The Android build requires a 32-bit build environment as well as some other tools:

Required Packages:
 Git, JDK, flex, and the other packages as listed above in the i386 instructions:
 JDK 5.0, update 12 or higher.Java 6 is not supported, because of incompatibilities with @Override.
 Pieces from the 32-bit cross-building environment
 X11 development
$ sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl sun-java5-jdk zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev

Set the system to use the right version of java by default:
$ sudo update-java-alternatives -s java-1.5.0-sun

X11: Ubuntu doesn't have packages for the X11 libraries, but that can be worked around with the following command:
$ sudo ln -s /usr/lib32/libX11.so.6 /usr/lib32/libX11.so



    
最新技术文章:
▪Android开发之登录验证实例教程
▪Android开发之注册登录方法示例
▪Android获取手机SIM卡运营商信息的方法
▪Android实现将已发送的短信写入短信数据库的...
▪Android发送短信功能代码
▪Android根据电话号码获得联系人头像实例代码
▪Android中GPS定位的用法实例
▪Android实现退出时关闭所有Activity的方法
▪Android实现文件的分割和组装
▪Android录音应用实例教程
▪Android双击返回键退出程序的实现方法
▪Android实现侦听电池状态显示、电量及充电动...
▪Android获取当前已连接的wifi信号强度的方法
▪Android实现动态显示或隐藏密码输入框的内容
▪根据USER-AGENT判断手机类型并跳转到相应的app...
▪Android Touch事件分发过程详解
▪Android中实现为TextView添加多个可点击的文本
▪Android程序设计之AIDL实例详解
▪Android显式启动与隐式启动Activity的区别介绍
▪Android按钮单击事件的四种常用写法总结
▪Android消息处理机制Looper和Handler详解
▪Android实现Back功能代码片段总结
▪Android实用的代码片段 常用代码总结
▪Android实现弹出键盘的方法
▪Android中通过view方式获取当前Activity的屏幕截...
▪Android提高之自定义Menu(TabMenu)实现方法
▪Android提高之多方向抽屉实现方法
▪Android提高之MediaPlayer播放网络音频的实现方法...
▪Android提高之MediaPlayer播放网络视频的实现方法...
▪Android提高之手游转电视游戏的模拟操控
 


站内导航:


特别声明:169IT网站部分信息来自互联网,如果侵犯您的权利,请及时告知,本站将立即删除!

©2012-2021,,E-mail:www_#163.com(请将#改为@)

浙ICP备11055608号-3