自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(27)
  • 资源 (31)
  • 收藏
  • 关注

转载 U盘安装CentOS7的最终解决方案

http://www.augsky.com/599.html

2016-10-27 23:34:34 2130

转载 PHP MysqlI操作数据库

http://www.blogjava.net/nkjava/archive/2015/01/20/422291.html

2016-10-14 08:08:30 268

原创 php连接mysql 笔记

个人笔记

2016-10-14 07:07:03 231

原创 PHP 生成JSON

<?php$arr = array( 'id'=>1, 'name'=>'andros230');$result = array( 'code'=>'200', 'msg'=>'成功', 'data'=>$arr );echo json_encode($result,JSON_UNESCAPED_UNICODE);?>注:JSON_UNESCAPED_UNICODE

2016-10-14 05:06:00 679

原创 WampServer3.0.6 403Forbidden 外网无法访问设置

打开上图所示的httpd-vhosts.conf, 把 Require local 修改为 Require all granted 保存重启

2016-10-14 04:47:06 6232

转载 JAVA中int、String的类型转换

int -> Stringint i=12345;String s="";第一种方法:s=i+"";第二种方法:s=String.valueOf(i);这两种方法有什么区别呢?作用是不是一样的呢?是不是在任何下都能互换呢?String -> ints="12345";int i;第一种方法:i=Integer.parseInt(s);第二种方法:

2016-10-11 01:32:22 249

原创 java三元表达式

int a = 1; System.out.println(a==1?true:false); //等同 if (a==1) { System.out.println(true); }else { System.out.println(false); }

2016-10-11 01:28:29 2180

原创 创建一组只能单选的选项菜单

optionmenu.xmlxml version="1.0" encoding="utf-8"?>xmlns:android="http://schemas.android.com/apk/res/android"> <group android:id="@+id/setting" android:checkableBehavior="sing

2016-04-30 18:46:20 404

原创 实现带子菜单的选项菜单(学习笔记)

在res目录下创建menu目录,目录下并创建optionmenu.xmlxml version="1.0" encoding="utf-8"?>xmlns:android="http://schemas.android.com/apk/res/android"> <item android:id="@+id/item1" android:alph

2016-04-30 18:34:29 909

原创 android 高德地图定位(地理位置) 笔记

android studio端代码MainActivity package com.andros230.trajectory;import android.app.Activity;import android.content.Context;import android.content.Intent;import android.net.wifi.WifiManager;

2016-04-19 15:07:02 1727

原创 volley Post网络请求

安卓端:package com.example.administrator.test230;import android.os.Bundle;import android.support.v7.app.AppCompatActivity;import android.util.Log;import com.android.volley.Request;import com.a

2016-04-03 16:49:44 443

转载 linux教程:配置Tomcat开机启动 centos7

链接: http://jingyan.baidu.com/article/6525d4b1382f0aac7d2e9421.html

2016-03-28 22:45:59 297

转载 Linux下MySQL 5.5/5.6的修改字符集编码为UTF8(彻底解决中文乱码问题)适用于centos 7

一、登录MySQL查看用SHOW VARIABLES LIKE ‘character%’;下字符集,显示如下:+--------------------------+----------------------------+| Variable_name | Value |+--------------------------+---------------------------

2016-03-28 21:06:19 1621

转载 在CentOS 7中安装与配置Tomcat-8方法

转于:http://blog.csdn.net/czmchen/article/details/41047455安装说明 安装环境:CentOS-7安装方式:源码安装 软件:apache-tomcat-8.0.14.tar.gz下载地址:http://tomcat.apache.org/download-80.cgi安装前提 系统必须已安装配置J

2016-03-28 21:04:04 266

转载 在CentOS 7中安装与配置JDK8

转于:http://blog.csdn.net/czmchen/article/details/41047187安装说明系统环境:centos7安装方式:rpm安装软件:jdk-8u25-linux-x64.rpm下载地址:http://www.oracle.com/technetwork/java/javase/downloads/index.html

2016-03-28 21:02:24 307

转载 Android Studio 添加 Volley开源网络框架

连接地址:http://jingyan.baidu.com/article/e75057f2fc62f0ebc81a8961.html

2016-03-22 18:15:17 503

原创 volley get网络请求

import android.os.Bundle;import android.support.v7.app.AppCompatActivity;import com.android.volley.RequestQueue;import com.android.volley.Response;import com.android.volley.VolleyError;import co

2016-03-22 18:13:01 302

转载 centos 7 安装MySQL(笔记)

CentOS 7的yum源中貌似没有正常安装mysql时的mysql-sever文件,需要去官网上下载wget http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpmrpm -ivh mysql-community-release-el7-5.noarch.rpmyum install mysql-community

2016-03-12 11:39:47 271

原创 手电筒项目源代码

import android.os.Bundle;import android.support.v4.app.FragmentActivity;import android.support.v4.app.FragmentTabHost;import android.view.KeyEvent;import android.view.LayoutInflater;import androi

2014-07-28 09:51:58 608

原创 TextView的setText方法

android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <TextView android:id="@+id/textView1" android:layout_width="wrap_co

2014-04-21 19:43:51 2128

原创 Eclipse背景颜色修改

到这里下载eclipse工具的背景配置文件http://eclipsecolorthemes.org/?list=toppicks&lang=java

2014-04-20 21:40:54 607

原创 Android横竖屏的设置

AndroidManifest.xml中找到你所指定的activity中加上android:screenOrientation属性横屏:

2014-04-20 12:42:23 553

原创 在Manifest文件中设置全屏相关属性

android:theme="@android:style/Theme.NoTitleBar" 不显示应用程序标题栏  android:theme="@android:style/Theme.NoTitleBar.Fullscreen" 不显示应用程序标题栏,并全屏  android:theme="Theme.Light" 背景为白色  android:theme="Theme.Lig

2014-04-19 15:13:02 1080

原创 多个Button监听

操作视频:http://pan.baidu.com/s/1mgMA17a

2014-04-19 13:53:07 551

原创 android项目生成已签名的apk

为apk签名前生做好签名的密钥rkw

2014-04-19 12:37:05 491

原创 android apk反编译

反编译中使用的三种工具1.apktool

2014-04-18 22:47:34 560

原创 button 使用方法一

在xml文件里设置:<Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:onClick="mButton" android:text="Button" />

2014-04-09 07:03:08 643

android 项目

个人开发的android 项目 ,里面有接入广告SDK,欢迎学习参考

2014-09-05

FragmentTabhost 底部导航栏

FragmentTabhost 底部导航栏

2014-07-28

手电筒项目源代码

应用宝:http://android.myapp.com/myapp/detail.htm?apkName=com.andros230.flashlight

2014-07-28

手电筒项目源码和APK

手电筒项目源码,欢迎学习使用. 使用手机的闪光灯来照明,代码清晰简单,非常适合初学学习使用

2014-06-24

EditText1.0

android EditText

2014-04-21

触屏事件TouchEvent

public boolean onTouchEvent(MotionEvent event) { Toast.makeText(this, "点击了屏幕", Toast.LENGTH_SHORT).show(); return super.onTouchEvent(event); }

2014-04-20

振动器Vibrator

protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); //获取系统的Vibrator服务 vibrator = (Vibrator) getSystemService(Service.VIBRATOR_SERVICE); //控制手机震动1秒 vibrator.vibrate(1000); } }

2014-04-20

获取SIM卡信息

获取网络和SIM卡信息

2014-04-20

退出程序提示

public boolean onKeyDown(int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_BACK && event.getRepeatCount() == 0) { showTips(); return true; } return super.onKeyDown(keyCode, event); } private void showTips() { AlertDialog alertDialog = new AlertDialog.Builder(this) .setTitle("退出程序").setMessage("是否退出程序") .setPositiveButton("确定", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { finish(); } }).setNegativeButton("取消",new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { return; } }).create(); // 创建对话框 alertDialog.show(); // 显示对话框 }

2014-04-20

监听BACK按键

监听手机后退键被按下时的事件 项目源码

2014-04-20

GPS状态判断

判断GPS是否打开,如GPS没打开则跳转到 位置服务 设置 页面

2014-04-20

adbWireless

(转)Android无线调试——抛开USB数据线 开发Android的朋友都知道,真机调试需要把手机与PC相连,然后把应用部署到真机上进行安装和调试。长长的USB线显得很麻烦,而且如果需要USB接口与其他设备连接的话显得很不方便。今天介绍一种不通过USB线就可以进行真机调试的方法。 个人操作视频:http://pan.baidu.com/s/1bntg9Cr

2014-04-20

GPRS打开和关闭

GPRS打开和关闭

2014-04-20

wifi打开与关闭1.0

wifi打开与关闭1.0

2014-04-20

录音工具1.0

android 录音 录音文件保存在SD卡目录下

2014-04-20

短信发送经纬度2.0

GPS获取到经纬度就向指定手机号码发送经纬度,并同时退出APP 只发送一次经纬度短信

2014-04-19

短信发送经纬度1.0

5秒更新一次经纬度 每更新一次就通过短信发送经纬度给指定号码(这里是发给10086做测试)

2014-04-19

打电话给10086

关键代码 Intent intent = new Intent(Intent.ACTION_CALL,Uri.parse("tel:"+"10086")); this.startActivity(intent); 权限: <uses-permission android:name="android.permission.CALL_PHONE"/>

2014-04-19

发短信查话费1.0

关键代码: SmsManager smsManager = SmsManager.getDefault(); smsManager.sendTextMessage("10086", null, "YE", null, null); 权限: <uses-permission android:name="android.permission.SEND_SMS"/>

2014-04-19

GPS3.0版本

终极修改版本,只留下显示经纬度

2014-04-19

GPS2.0版本

删除按键监听 显示内容只显示经纬度,其它的已删除 调整经纬度的显示 整理了代码的可读性

2014-04-19

gps网上代码模板

gps网上代码模板

2014-04-19

手电筒2.0.zip

关闭时播放声音 修改APP图标

2014-04-19

手电筒1.0 版本

项目源码 打开和关闭闪光灯关键代码 打开APP就会自动打开闪光灯

2014-04-19

再按一次退出

再按一次退出 项目源码

2014-04-19

程序启动画面

程序启动项目源码

2014-04-19

多个Button监听源码

多个Button监听源码 操作视频:http://pan.baidu.com/s/1mgMA17a

2014-04-19

android apk 反编译工具

反编译中使用的三种工具 1.apktool 2.dex2jar 3.jd-gui

2014-04-18

button_项目源码

button_项目源码

2014-04-09

android 震动 项目源码

android 震动 项目源码

2014-04-05

android闪光灯

打开手机闪光灯 android 学习项目

2014-04-03

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除