摘要: 1.启动activity Intent intent = new Intent(MainActivity.this,Other.class); intent.putExtra("message", a+" + "+b+" = "); startActivityForResult(intent, 1000);2.重写onActivityResult 比较请求码和返回码if(requestCode==1000 && resultCode==1001){}3.返回结果Intent intent = new Intent(); 阅读全文
posted @ 2014-02-11 11:48 nihao1314520 阅读(197) 评论(0) 推荐(0)
摘要: package com.example.ceshi;import android.os.Build;import android.os.Bundle;import android.animation.IntEvaluator;import android.animation.ObjectAnimator;import android.animation.ValueAnimator;import android.animation.ValueAnimator.AnimatorUpdateListener;import android.annotation.SuppressLint;import 阅读全文
posted @ 2014-01-27 11:58 nihao1314520 阅读(301) 评论(0) 推荐(0)
摘要: /***获取属性**/function getStyle(obj,name){ if(obj.currentStyle){ return obj.currentStyle[name]; }else{ return getComputedStyle(obj,false)[name] }}// json {width:500,height:500}function startMove(obj,json,func){ clearInterval(obj.timer); obj.timer = setInterval(function... 阅读全文
posted @ 2014-01-16 23:42 nihao1314520 阅读(143) 评论(0) 推荐(0)
摘要: 我变 阅读全文
posted @ 2014-01-16 22:09 nihao1314520 阅读(191) 评论(0) 推荐(0)
摘要: 在百度地图设置一个标志百度地图的环境搭建参照百度地图学习之旅(1)环境代码废话不多讲 上代码1.前端代码 2.java代码package com.lihao.mymap;import com.baidu.mapapi.BMapManager;import com.baidu.mapapi.GeoPoint;import com.baidu.mapapi.MKGeneralListener;import com.baidu.mapapi.MapActivity;import com.baidu.mapapi.MapController;import com.baidu.mapapi.Map... 阅读全文
posted @ 2013-08-06 07:46 nihao1314520 阅读(456) 评论(0) 推荐(0)
摘要: 一.百度地图的用途1.设置覆盖物2.到某一个地方的路线(打车,打的)3.两点间的距离4.搜索功能二.百度地图的搭建1.AndroidManifest.xml 添加授权文件 2.导入baidumapapi.jar 包导入3.添加百度控件 4.package com.lihao.mymap;import com.baidu.mapapi.BMapManager;import com.baidu.mapapi.GeoPoint;import com.baidu.mapapi.MKGeneralListene... 阅读全文
posted @ 2013-08-05 23:32 nihao1314520 阅读(271) 评论(0) 推荐(0)
摘要: 1在AndroidManifest.xml中注册一个activity 1 android:name="com.lihao.moreactivity.MainActivity" 2 android:label="@string/app_name" > 3 4 5 6 7 8 9 /*注册*/10 13 2.第一个设置跳转(布局) 2.第一个设... 阅读全文
posted @ 2013-07-31 01:07 nihao1314520 阅读(288) 评论(0) 推荐(0)
摘要: 废话不讲,上代码布局代码/*可选择进度条*//*星星进度条*/java 代码package com.lihao.bar;import android.os.Bundle;import android.app.Activity;import android.view.Menu;import android.widget.RatingBar;import android.widget.RatingBar.OnRatingBarChangeListener;import android.widget.SeekBar;import android.widget.SeekBar.OnSeekBarCha 阅读全文
posted @ 2013-07-30 01:28 nihao1314520 阅读(260) 评论(0) 推荐(0)
摘要: 在my.ini 中添加log-bin=e:/wamp/bin/mysql/mysql5.5.20/bin/bin_log/lihao_bin.log;这句话的意思是打开bin_log日志,设置bin_log日志的位置,一把我们都把它放在mysql的bin目录下面1.查看 bin_log日志是否打开 show variables like 'log_bin'on 表示已打开2.更新日志同时新建一个日志 flush logs3.查看日志 show master logs;4.查看当前日志 show master status 5.重置日志 reset master ; 所有的日志都 阅读全文
posted @ 2012-11-01 09:56 nihao1314520 阅读(288) 评论(0) 推荐(0)
摘要: 1.把php.ini的;extension=php_sockets.dll把前面的逗号去掉,重启服务器。2.改变环境变量 找到php目录我的是: 修改环境变量: 右击‘我的电脑’--->'属性'---->‘高级’------->'环境变量'------->双击‘path’----->在后面加上;路径3.下面进入正题:上代码 //服务器端<?php/* * To change this template, choose Tools | Templates * and open the template in the editor 阅读全文
posted @ 2012-11-01 09:16 nihao1314520 阅读(195) 评论(0) 推荐(0)