上一页 1 2 3 4 5 6 7 8 9 10 ··· 16 下一页
摘要: 1,一定要把跳转主页面定义成一个方法,因为会在很多地方调用2,如果有更新弹出对话框有的用户可能会点击后退键,这时候我们要调用.setOnCancelListener(new OnCancelListener() { @Override public void o... 阅读全文
posted @ 2015-11-27 09:42 aaddrrooiidd 阅读(343) 评论(0) 推荐(0) 编辑
摘要: @Override public void onSuccess( Res... 阅读全文
posted @ 2015-11-27 09:08 aaddrrooiidd 阅读(325) 评论(0) 推荐(0) 编辑
摘要: private String getVersion(){ //得到包管理器 PackageManager packageManager = getPackageManager(); PackageInfo packageInfo = null; ... 阅读全文
posted @ 2015-11-26 16:49 aaddrrooiidd 阅读(234) 评论(0) 推荐(0) 编辑
摘要: vitamio是和javaApi一样。开源框架,能够进行多种视频格式播放 package com.example.videoview;import io.vov.vitamio.LibsChecker;import io.vov.vitamio.widget.VideoView;import ... 阅读全文
posted @ 2015-11-24 18:05 aaddrrooiidd 阅读(251) 评论(0) 推荐(0) 编辑
摘要: android播放视频用的是SurfaceView和MediaPlayer具体实现和播放音乐一样package com.example.videoplayer;import android.media.MediaPlayer;import android.os.Bundle;import andro... 阅读全文
posted @ 2015-11-24 18:03 aaddrrooiidd 阅读(140) 评论(0) 推荐(0) 编辑
摘要: #include //结构体类似于java里的类 struct Student{ int age; char name[10]; int sex; //声明函数指针 int(*fun)(int x,int y); };int ... 阅读全文
posted @ 2015-11-23 11:57 aaddrrooiidd 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 动态内存:new出来的都是动态的,需要程序员手动创建和回收,但在java中有垃圾回收机制。静态内存:定义出来都是静态的,int i;int j,系统自动创建和回收。#include #include //内存分配的头文件 main(){ int* p ;//在栈内存中申请p的空间 ... 阅读全文
posted @ 2015-11-22 11:44 aaddrrooiidd 阅读(331) 评论(0) 推荐(0) 编辑
摘要: main(){ //不能使用不同类型的给指针赋值 /* int a = 5; double* p = &a; printf("%d",*p); */ //野指针不可以使用, // int* p ; //... 阅读全文
posted @ 2015-11-22 11:06 aaddrrooiidd 阅读(200) 评论(0) 推荐(0) 编辑
摘要: 数组#include main(){ char c[6] = {'h','e','l','l','o','\0'}; printf("第一个字符是%c\n在内存中的地址为%x\n",c[0],&c[0]); printf("第二个字符是%c\n在内存中的地址为%... 阅读全文
posted @ 2015-11-21 20:46 aaddrrooiidd 阅读(292) 评论(0) 推荐(0) 编辑
摘要: #include //创建传递指针的方法 void swap(int* pi,int*pj){ int temp=*pi; *pi=*pj; *pj=temp; }main(){ int i=5; int j=7; //之前 ... 阅读全文
posted @ 2015-11-21 19:16 aaddrrooiidd 阅读(174) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 16 下一页