登录
首页 » Android » Android常用代码大全

Android常用代码大全

于 2022-08-10 发布 文件大小:26.33 kB
0 140
下载积分: 2 下载次数: 1

代码说明:

Android代码大全.包含系统服务、数据库的操作命令、控制屏幕命令、常用的对话框代码(例如提示对话框、进程对话框、进程栏对话框、日期选取器对话框等等)。很全、很实用!

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

发表评论

0 个回复

  • 《HTML5与CSS3权威指南》范例及代码 下载
    《HTML5与CSS3权威指南》范例及代码,共22章
    2015-01-06下载
    积分:1
  • 安卓手机接收发送短信的源码
    安卓手机接收和发送短信的代码,获取系统的service,实现监控;可以在该源码上实现过滤短信,自动回复短信等功能;
    2022-03-25 01:55:54下载
    积分:1
  • Bregman算法
    Bregman算法的原理,非常详尽的解释
    2020-05-26下载
    积分:1
  • FallScreenBrower
    android上实现的一个简单的浏览器,全屏浏览器,初学者可参考开发(android on the implementation of a simple browser, full-screen browser, beginners can refer to the development)
    2011-12-12 11:33:39下载
    积分:1
  • 各种样式button
    资源描述里面有多种button的样式·································································
    2022-11-25 18:15:03下载
    积分:1
  • Android源码:仿微信朋友圈发图片一次上传多张图片效果
    Android源码:仿微信朋友圈发图片一次上传多张图片效果,可预览显示图片,可选择相册,手机上的图片选择和电脑端的有些区别,自从微信上使用了这种方式后,好像很多人都以微信为标准了,都在借鉴微信上传图片、选择图片的方式,毕竟真的挺好用,这个Android源码,同样是模仿的功能。
    2022-02-15 11:46:01下载
    积分:1
  • 视频和音频捕捉和记录的源代码
    这个程序函数作为提1.使用麦克风录音。2.用摄像机录像。3.将此文件存储在 sd 卡中。
    2022-12-16 23:30:03下载
    积分:1
  • AndroidPdf
    此JAVA文件内容为android系统上可以使用查看PDF文件格式的软件源代码(The contents of the JAVA file is used to view the PDF file format of the software source code to Android system)
    2014-06-26 16:56:44下载
    积分:1
  • android 循环轮播图片 viewpager 焦点图 实例源码下载
    android 循环轮播图片 viewpager 焦点图 实例源码下载
    2015-02-25下载
    积分:1
  • android open gl 示例代码下载
    [实例简介]Open GL 入门级示例 [实例截图] [核心代码]package com.china.gltry;import javax.microedition.khronos.egl.EGL10;import javax.microedition.khronos.egl.EGL11;import javax.microedition.khronos.egl.EGLConfig;import javax.microedition.khronos.egl.EGLContext;import javax.microedition.khronos.egl.EGLDisplay;import javax.microedition.khronos.egl.EGLSurface;import javax.microedition.khronos.opengles.GL;import android.view.SurfaceHolder;/** * An EGL helper class. */public class EGLHelper{ public EGLHelper() { } /** * Initialize EGL for a given configuration spec. * @param configSpec */ public void start(int[] configSpec){ /* * Get an EGL instance */ mEgl = (EGL10) EGLContext.getEGL(); /* * Get to the default display. */ mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY); /* * We can now initialize EGL for that display */ int[] version = new int[2]; mEgl.eglInitialize(mEglDisplay, version); EGLConfig[] configs = new EGLConfig[1]; int[] num_config = new int[1]; mEgl.eglChooseConfig(mEglDisplay, configSpec, configs, 1, num_config); mEglConfig = configs[0]; /* * Create an OpenGL ES context. This must be done only once, an * OpenGL context is a somewhat heavy object. */ mEglContext = mEgl.eglCreateContext(mEglDisplay, mEglConfig, EGL10.EGL_NO_CONTEXT, null); mEglSurface = null; } /* * Create and return an OpenGL surface */ public GL createSurface(SurfaceHolder holder) { /* * The window size has changed, so we need to create a new * surface. */ if (mEglSurface != null) { /* * Unbind and destroy the old EGL surface, if * there is one. */ mEgl.eglMakeCurrent(mEglDisplay, EGL10.EGL_NO_SURFACE, EGL10.EGL_NO_SURFACE, EGL10.EGL_NO_CONTEXT); mEgl.eglDestroySurface(mEglDisplay, mEglSurface); } /* * Create an EGL surface we can render into. */ mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, mEglConfig, holder, null); /* * Before we can issue GL commands, we need to make sure * the context is current and bound to a surface. */ mEgl.eglMakeCurrent(mEglDisplay, mEglSurface, mEglSurface, mEglContext); GL gl = mEglContext.getGL(); return gl; } /** * Display the current render surface. * @return false if the context has been lost. */ public boolean swap() { mEgl.eglSwapBuffers(mEglDisplay, mEglSurface); /* * Always check for EGL_CONTEXT_LOST, which means the context * and all associated data were lost (For instance because * the device went to sleep). We need to sleep until we * get a new surface. */ return mEgl.eglGetError() != EGL11.EGL_CONTEXT_LOST; } public void finish() { if (mEglSurface != null) { mEgl.eglMakeCurrent(mEglDisplay, EGL10.EGL_NO_SURFACE, EGL10.EGL_NO_SURFACE, EGL10.EGL_NO_CONTEXT); mEgl.eglDestroySurface(mEglDisplay, mEglSurface); mEglSurface = null; } if (mEglContext != null) { mEgl.eglDestroyContext(mEglDisplay, mEglContext); mEglContext = null; } if (mEglDisplay != null) { mEgl.eglTerminate(mEglDisplay); mEglDisplay = null; } } EGL10 mEgl; EGLDisplay mEglDisplay; EGLSurface mEglSurface; EGLConfig mEglConfig; EGLContext mEglContext;}
    2015-04-06下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载