- 浏览: 250648 次
- 性别:
- 来自: 北京
-
最新评论
-
pengfeifei26:
wbzhaohl 写道这个有解决方案没有时间长了,貌似有点忘了 ...
A redirect is required to get the users approval -
wbzhaohl:
这个有解决方案没有
A redirect is required to get the users approval -
somebody:
恩。好吧。这个只有在 还没发布的 2.0 版本才有。
oauth2.0设置自动授权
文章列表
create table test(test1 varchar(20),test2 varchar(20)
然后向这个表写入一条测试纪录,那么现在开始我们的jsp和数据库之旅吧。
一、jsp连接Oracle8/8i/9i数据库(用thin模式)
testoracle.jsp如下:
<%@ page contentType="text/html;charset=gb2312"%>
<%@ page import="Java.sql.*"%>
<html>
<body>
<%C ...
android 组件生命周期
- 博客分类:
- android
一.Activity
http://xiechengfa.iteye.com/category/146425 博客
首先看一下Android api中所提供的Activity生命周期图(不明白的,可以看完整篇文章,在回头看一下这个图,你会明白的):
Activity其实是继承了ApplicationContext这个类,我们可以重写以下方法,如下代码:
public class Activity extends ApplicationContext {
protected void onCreate(Bundle savedInstanceState);
...
/**
* Android Service 示例
*
*/
public class MusicService extends Service {
private static final String TAG = "MusicService" ;
public static final String ACTION = "com.game.music.service.MusicService";
@Override
public IBinder onBin ...
dota2激活码页面
- 博客分类:
- 其他
http://event21.dota2.com.cn/dota2/201307/ordercode/index.jsp
php5.5+ apache2.4
php.ini - product 修改为php.ini 设置 搜索extension
; Directory in which the loadable extensions (modules) reside.
; http://php.net/extension-dir
; extension_dir = "./"
; On windows:
; extension_dir = "ext"
extension_dir = "D:/php/php5.5/ext"
apache2.4
...
package com.game.music;
import java.io.UnsupportedEncodingException;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.util.ArrayList;
import java.util.List;
import android.app.Activity;
import android.content.ContentValues;
import android.content.Intent;
import ...
Android模拟器获取IP的方法
- 博客分类:
- android
Android模拟器获取IP的方法
Android模拟器获取IP的方法及多模拟器使用adb shell
开启多模拟器时使用adb shell无法进入android,会报error: more than one device and emulator错误。这个时候使用:adb devices查看加载的设备,比如返回结果为
List of devices attached
emulator-5554 device
emulator-5556 device
在使用 adb -s [设备] [命令]执行命令,比如:
adb -s emulator-5554 shell
进入 ...
Android Your content must have a ListView whose id attribute is 'android.R.id.list'错误的解决办法
在Android开发中,ListView有着很重要的地位,使用的场合也非常的多
错误提示:Your content must have a ListView whose id attribute is 'android.R.id.list'
对于以上错误,其实可能是因为我们要实现对ListView中setOnItemClick的事件监听而去继承了LiseActivity,但是却没有ListView的标签,网上有 ...
1. 在CMD窗口下输下:chcp 65001 确定
2. 在命令行标题栏上点击右键,选择【属性】 -【字体】,将字体修改为【Lucida Console】 确定
完成后再通过 adb shell 进入sqlite3,乱码解决
chcp 936 可以换回默认的GBK
chcp 437 是美国英语
android开发不论是在真机上调试还是最终发布到真机上都非常简单,过程如下:
1、安装usb驱动
手机要能与电脑相连,当然要安驱动了。效果就是你插入手机,电脑显示驱动已识别。驱动安装的官方教程:http://developer.android.com/sdk/win-usb.html
官方教程概述:
不同的Android手机有对应不同的驱动,对于Nexus One, and Nexus S,见官方教程“Downloading the Goolge USB Driver”部分,直接用Android SDK and AVD Manager安装。对于其他手机如HTC,Acer,Motorol ...
android对话框
- 博客分类:
- android
http://blog.csdn.net/chenlei1889/article/details/6267406
用法:
new AlertDialog.Builder(GetMusicItemActivity.this).setMessage("回答错误!").setPositiveButton("确定", null).show();
1.文本框输入法只能输入英文
解决办法:进入模拟器settings设置页面找到 language and input(语言及输入法)
设置成搜狗拼音法即可
2.android操作数据 没有执行oncreate方法 加上红色字体试试
DBHelper dbHelper = new DBHelper(MainActivity.this, "", 1);
dbHelper.getReadableDatabase();
private static final String DATABASE_NAME = "MUSIC_INFO&qu ...
android开发中adb的用法
- 博客分类:
- android
adb(Android Debug Bridge)是Android提供的一个通用的调试工具,借助这个工具,我们可以管理设备或手机模拟器的状态。还可以进行以下的操作:
1、快速更新设备或手机模拟器中的代码,如应用或Android系统升级;
2、在设备上运行shell命令;
3、管理设备或手机模拟器上的预定端口;
4、在设备或手机模拟器上复制或粘贴文件;
以下为一些常用的操作:
1、安装应用到模拟器:
adb install
比较遗憾的是,Android并没有提供一个卸载应用的命令,只能自己手动删除:
adb shell
cd /data/app
rm app.apk
...
第一种:MyEclipse将java项目打包成jar。
1,右击项目,选择export 。
2,点击Java,选择JAR file 。
3,在JAR file文本中浏览打包后的jar的保存路径,然后Next 。
第二种:ant将java项目(非web)打包成war。
或者使用命令行进入到工程目录下(jar cvf myhome.war )
新建build.xml 文件,内如如下,放在工程目录下,非src目录下
<?xml version="1.0" encoding="UTF-8&q ...
http://www.eoeandroid.com/code/2012/0417/1153.html
http://www.400gb.com/file/11774106
http://blog.csdn.net/u010100925/article/month/2013/06/4?viewmode=contents
http://code.662p.com
http://item.jd.com/10938535.html
http://code.662p.com/list/183_1.html 源码天堂
10个经典的Android开源应用项目
1、Android团队提供的示例项目
如果 ...