上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 27 下一页
  2014年5月2日
摘要: 从myeclipse转到Eclipse最不方便的之一莫过于Web项目部署了,老是在想怎么不能把myeclipse的那个移植过来,或者有没有高人能按照Myeclipse开发一个,非常遗憾。 原版的Eclipse自带WTP,WTP本身的Web应用服务器管理功能还可以,但有些复杂。 要想把它用顺手,还要花点时间来学习一下。学会后还算方便的。 目前还未找到十分好用的Eclipse下的管理Tomcat的插件。 有一个老处于插件TomcatPlugin V321,只能管理一个Tomcat,数量 阅读全文
posted @ 2014-05-02 08:04 上校 阅读(7203) 评论(0) 推荐(0) 编辑
  2014年5月1日
摘要: 一、软件下载 Eclipse3.6 IDE for Java EE Developers: 下载地址:http://eclipse.org/downloads/ Tomcat Eclipse Plugin, 下载地址:http://www.eclipsetotale.com/tomcatPlugin.html 二、软件安装和配置(图文) 1.解压Eclipse到某个目录,例如/usr/local/eclipse 即可。 2. 解压Tomcat 插件到eclipse目录下的plugins目录中。 阅读全文
posted @ 2014-05-01 20:53 上校 阅读(2383) 评论(0) 推荐(0) 编辑
  2014年4月26日
摘要: http://maps.googleapis.com/maps/api/geocode/json?address=%E7%A6%8F%E5%BB%BA&sensor=false http://maps.googleapis.com/maps/api/geocode/xml?address=%E7%A6%8F%E5%BB%BA&sensor=false http://maps.googleapis.com/maps/api/geocode/json?latlng=31.02,117.12&sensor=false http://maps.googleapis.com/maps/api/geocode/xml?latlng=31.02,117.12&sensor=false http://maps.googleapis.com/maps/api/geocode/json?address=%E7%A6%8F%E5%BB%BA&sensor=false http://maps.googleapis.com/maps/api/geocode/json?address=%E7%A 阅读全文
posted @ 2014-04-26 01:10 上校 阅读(1985) 评论(0) 推荐(0) 编辑
摘要: private class ButtonListener implements OnClickListener { @Override public void onClick(View v) { //得到LocationManager对象 LocationManager locationManager=(LocationManager)MainActivity.this.getSystemService(Context.LOCATION_SERVICE); //定义当前所使用的Location Provider //第二个参数:隔多少秒更新一次 第三个参数:隔多少距离更新一次 locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 5000, 5000, new TestLocationListener()); 阅读全文
posted @ 2014-04-26 01:08 上校 阅读(416) 评论(0) 推荐(0) 编辑
摘要: package com.example.mars_3300_location02; import java.net.ContentHandler; import java.util.List; import android.support.v7.app.ActionBarActivity; import android.support.v7.app.ActionBar; import android.support.v4.app.Fragment; import android.content.Context; 阅读全文
posted @ 2014-04-26 01:06 上校 阅读(336) 评论(0) 推荐(0) 编辑
  2014年4月25日
摘要: LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/container" 阅读全文
posted @ 2014-04-25 22:51 上校 阅读(199) 评论(0) 推荐(0) 编辑
  2014年4月24日
摘要: TextView android:layout_width="fill_parent" android:layout_height="wrap_content" 阅读全文
posted @ 2014-04-24 00:07 上校 阅读(306) 评论(0) 推荐(0) 编辑
  2014年4月23日
摘要: package com.example.mars_2900_json01; import java.io.StringReader; import java.lang.reflect.Type; import java.util.Iterator; import java.util.LinkedList; import com.google.gson.Gson; import com.google.gson.reflect.TypeToken; import com.google.gson.stream.JsonReader; public class JsonUtils { public static void parseJson(String jsonData) { try { // 如果需要解析JSON数据,首要要生成一个JsonReader对象 阅读全文
posted @ 2014-04-23 23:04 上校 阅读(1893) 评论(0) 推荐(0) 编辑
  2014年4月21日
摘要: 杀掉死锁的sqlserver进程 SELECT request_session_id spid,OBJECT_NAME (resource_associated_entity_id)tableName FROM sys.dm_tran_locks WHERE resource_type='OBJECT ' KILL spid号 阅读全文
posted @ 2014-04-21 17:46 上校 阅读(1937) 评论(0) 推荐(0) 编辑
  2014年4月20日
摘要: ExampleAppWidgetProvider.java package com.example.mars_2600_widget01; import android.appwidget.AppWidgetManager; import android.appwidget.AppWidgetProvider; import android.content.Context; import android.content.Intent; public class ExampleAppWidgetProvider extends AppWidgetProvider{ @Override public void onReceive(Context context, Intent intent) { // TODO Auto-generated method stub super.onReceive(context, intent); 阅读全文
posted @ 2014-04-20 12:07 上校 阅读(273) 评论(0) 推荐(0) 编辑
  2014年4月19日
摘要: MainActivity.java package com.example.mars_2500_ratingbar; import android.support.v7.app.ActionBarActivity; import android.support.v7.app.ActionBar; import android.support.v4.app.Fragment; import android.app.Activity; import android.os.Bundle; import android.util.Log; import android.view.LayoutInflater; import android.view.Menu; import android.view.MenuItem; 阅读全文
posted @ 2014-04-19 18:13 上校 阅读(10527) 评论(0) 推荐(0) 编辑
摘要: MainActivity.java package com.example.mars_2400_seekbar; import android.support.v7.app.ActionBarActivity; import android.support.v7.app.ActionBar; import android.support.v4.app.Fragment; import android.app.Activity; import android.os.Bundle; import android.view.LayoutInflater; import android.view.Menu; import android.view.MenuItem; 阅读全文
posted @ 2014-04-19 17:42 上校 阅读(8608) 评论(1) 推荐(0) 编辑
摘要: MainActivity.java package com.example.mars_2300_expandablelist; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import android.support.v7.app.ActionBarActivity; import android.support.v7.app.ActionBar; import android.support.v4.app.Fragment; import android.app.ExpandableListActivity; import android.os.Bundle; import android.view.LayoutInflater; import android.view.Menu; 阅读全文
posted @ 2014-04-19 17:30 上校 阅读(1292) 评论(0) 推荐(0) 编辑
摘要: AutoCompleteTextView android:layout_width="fill_parent" android:layout_height="wrap_content" android 阅读全文
posted @ 2014-04-19 14:25 上校 阅读(2359) 评论(0) 推荐(0) 编辑
摘要: 用法1: Spinner android:layout_width="fill_parent" android:layout_height="wrap_content" android:id="@+id/Spinner 阅读全文
posted @ 2014-04-19 14:07 上校 阅读(18852) 评论(0) 推荐(1) 编辑
摘要: package com.example.mars_2200_datepicker;import java.util.Calendar;import android.support.v7.app.ActionBarActivity;import android.support.v7.app.Actio... 阅读全文
posted @ 2014-04-19 14:04 上校 阅读(4101) 评论(0) 推荐(0) 编辑
  2014年4月17日
摘要: 第一阶段:Java面向对象编程 1.Java基本数据类型与表达式,分支循环。 2.String和StringBuffer的使用、正则表达式。 3.面向对象的抽象,封装,继承,多态,类与对象,对象初始化和回收;构造函数、this关键字、方法和方法的参数传递过程、static关键字、内部类,Java的垃极回收机制,Javadoc介绍。 4.对象实例化过程、方法的覆盖、final关键字、抽象类、接口、继承的优点和缺点剖析;对象的多态性:子类和父类之间的转换、抽象类和接口在多态中的应用、多态带来的好处。 5.Java异常处理,异常的机制原理。 6.常用的设计模式:Singleton、Template、Strategy模式。 7.JavaAPI介绍:种基本数据类型包装类,System和Runtime类,Date和DateFomat类等。 8.Java集合介绍:Collection、Set、List、ArrayList、Vector、LinkedList、Hashset、TreeSet、Map、HashMap、TreeMap、Iterator、Enumeratio 阅读全文
posted @ 2014-04-17 23:48 上校 阅读(30745) 评论(4) 推荐(9) 编辑
  2014年4月7日
摘要: 在Android手机中内置了一款高性能webkit内核浏览器,在SDK中封装为一个叫做WebView组件。 什么是webkit WebKit是Mac OS X v10.3及以上版本所包含的软件框架(对v10.2.7及以上版本也可通过软件更新获取)。 同时,WebKit也是Mac OS X的Safari网页浏览器的基础。WebKit是一个开源项目,主要由KDE的KHTML修改而来并且包含了一些来自苹果公司的一些组件。 传统上,WebKit包含一个网页引擎WebCore和一个脚本引擎JavaScriptCore,它们分别对应的是KDE的KHTML和KJS。不过, 随着JavaScript引擎的独立性越来越强,现在WebKit和WebCore已经基本上混用不分(例如Google Chrome和Maxthon 3采用V8引擎,却仍然宣称自己是WebKit内核)。 阅读全文
posted @ 2014-04-07 19:18 上校 阅读(490) 评论(0) 推荐(0) 编辑
摘要: 1.自定义Service类 package com.example.mars_2000_service; import android.app.Service; import android.content.Intent; import android.os.IBinder; public class FirstService extends Service { @Override public IBinder onBind(Intent intent) { System.out.println("Service onBind"); return null; } 阅读全文
posted @ 2014-04-07 16:24 上校 阅读(307) 评论(0) 推荐(0) 编辑
摘要: 1.服务不是单一的进程。服务没有自己的进程,应用程序可以不同,服务运行在相同的进程中。 2.服务不是线程。可以在线程中工作。 一.在应用中,如果是长时间的在后台运行,而且不需要交互的情况下,使用服务。 同样是在后台运行,不需要交互的情况下,如果只是完成某个任务,之后就不需要运行,而且可能是多个任务,需需要长时间运行的情况下使用线程。 二.如果任务占用CPU时间多,资源大的情况下,要使用线程。 阅读全文
posted @ 2014-04-07 16:09 上校 阅读(2216) 评论(0) 推荐(0) 编辑
摘要: 1.控制WIFI public class MainActivity extends Activity { private Button startButton = null; private Button stopButton = null; private Button checkButton = null; private WifiManager wifiManager = null; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); 阅读全文
posted @ 2014-04-07 15:19 上校 阅读(1911) 评论(0) 推荐(0) 编辑
摘要: 绑定广播有两种方式 一.配置文件绑定,在程序未启动也能监听 二.代码方式绑定,在程序启动后才能监听 1.绑定和取消绑定广播 public class MainActivity extends Activity { private Button registerButton=null; private Button unRegisterButton=null; private SMSReceiver smsReceiver=null; 阅读全文
posted @ 2014-04-07 14:09 上校 阅读(13401) 评论(0) 推荐(0) 编辑
摘要: 1.触发发送广播 public class MainActivity extends Activity { private Button sendButton; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); 阅读全文
posted @ 2014-04-07 12:04 上校 阅读(357) 评论(0) 推荐(0) 编辑
摘要: contentprovider提供程序间共享数据的统一接口 阅读全文
posted @ 2014-04-07 10:28 上校 阅读(219) 评论(0) 推荐(0) 编辑
  2014年4月6日
摘要: 1.SD卡操作类 FileUtils.java package com.example.mars_1500_download; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; 阅读全文
posted @ 2014-04-06 22:48 上校 阅读(4565) 评论(1) 推荐(1) 编辑
摘要: 在模拟器运行的情况下,进入cmd运行adb shell 可进入模拟器的linux系统 输入 lite3 mars_test_db 可进入sqlite模式 .schema或者.sch 查看有哪些表 SQLite帮助类 package com.example.mars_1400_sqlite01; import android.content.Context; 阅读全文
posted @ 2014-04-06 15:26 上校 阅读(868) 评论(1) 推荐(0) 编辑
  2014年4月5日
摘要: 1.Handler默认情况下与主线程处于同一线程 public class MainActivity extends Activity { private Button startButton = null; private Button endButton = null; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); startButton = (Button) findViewById(R.id.startButton); endButton = (Button) findViewById(R.id.endButton); 阅读全文
posted @ 2014-04-05 23:33 上校 阅读(595) 评论(0) 推荐(0) 编辑
摘要: --注意:异地备份数据库,需要先开启备份文件夹的网络共享,数据库要选择要备份的数据库 --打开允许执行xp_cmdshell EXEC sp_configure 'xp_cmdshell',1 exec master..xp_cmdshell 'net use \\192.168.0.139\DatabaseBackup password /user:192.168.0.139\administrator' backup database myDatabase to disk='\\192.168.0.139\DatabaseBackup\myDatabase_04_05.bak' with init exec master..xp_cmdshell 'net use \\192.168.0.139\DatabaseBackup /delete' --关闭允许执行xp_cmdshell EXEC sp_configure'xp_cmdshell', 0 阅读全文
posted @ 2014-04-05 14:30 上校 阅读(1868) 评论(0) 推荐(0) 编辑
  2014年4月1日
摘要: 1.RadioButton 、 CheckBox LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/container" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" tools:context="com.example.mars_0900_layout05.MainActivity 阅读全文
posted @ 2014-04-01 00:30 上校 阅读(1141) 评论(0) 推荐(0) 编辑
  2014年3月26日
摘要: 1.线性布局LinearLayout 阅读全文
posted @ 2014-03-26 23:52 上校 阅读(347) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 27 下一页