Time of Update: 2018-12-03
早就知道myeclipse提供一個hibernate的hql編輯器,以前也用過,可是今天用的時候突然想不起來了,找了半天才找到,我認為由於eclispe採用的控制項模式,使得很多工具的使用者介面不一致,導致使用者在使用某一控制項的時候的不習慣。myeclipse hql編輯器的位置:在你的project(假設你的project叫myhql)上,點擊右鍵,記住只是在project的根上點擊,選擇myeclipse ->Open HQL
Time of Update: 2018-12-03
Struts2.1* 過濾規則 與 Servlet
Time of Update: 2018-12-03
package zxf.mobilesafe.ui;import java.util.List;import zxf.mobilesafe.R;import zxf.mobilesafe.dao.BlackNumberDao;import android.app.Activity;import android.app.AlertDialog;import android.app.AlertDialog.Builder;import android.os.Bundle;import
Time of Update: 2018-12-03
package zxf.mobilesafe.ui;import java.util.List;import zxf.mobilesafe.R;import zxf.mobilesafe.adapter.AppsAdapter;import zxf.mobilesafe.bean.AppInfo;import zxf.mobilesafe.engin.AppInfoProvider;import android.app.Activity;import
Time of Update: 2018-12-03
android:layout_above 將該控制項的底部置於給定ID的控制項之上android:layout_below 將該控制項的頂部置於給定ID的控制項之下android:layout_toLeftOf 將該控制項的右邊緣和給定ID的控制項的左邊緣對齊android:layout_toRightOf 將該控制項的左邊緣和給定ID的控制項的右邊緣對齊android:layout_alignBaseline
Time of Update: 2018-12-03
物件導向過程與物件導向1:-程式的發展經曆了兩個階段:面向過程、物件導向。2:對於物件導向與面向過程可以用一個例子解釋,如一個木匠要做一個盒子,那麼這個盒子的出發點會有兩種方式:物件導向:先想好要做的盒子,之後在去找相應的工具去做。面向過程:不去想要做什麼樣的盒子,隨需取工具。------------- 物件導向三大特徵封裝性: 對外部不可見。可以保護程式中的某些內容。繼承性: 擴充功能的。多態性: 方法的重載 。
Time of Update: 2018-12-03
package zxf.mobilesafe.ui;import zxf.mobilesafe.R;import zxf.mobilesafe.bean.TaskInfo;import zxf.mobilesafe.tools.MobileSafeApplication;import android.app.Activity;import android.content.pm.PackageInfo;import android.content.pm.PackageManager;import
Time of Update: 2018-12-03
1、java類的編寫public class ClallPhoneReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { }}public class SmsReceiver extends BroadcastReceiver { @Override
Time of Update: 2018-12-03
裝置管理應用程式的實現(Device Administration )AlexZhuang 發佈於 7個月前,共有 0 條評論Android 2.2 introduces support for enterprise applications by offering the Android Device Administration API. 從Android2.2
Time of Update: 2018-12-03
android:allowTaskReparenting是否允許activity更換從屬的任務,比如從簡訊息任務 切換到瀏覽器任務。--------------------------------------------------------------------------------------android:alwaysRetainTaskState是否保留狀態不變, 比如切換回home, 再從新開啟, activity處於最後的狀態--------------------------
Time of Update: 2018-12-03
if(aad==null){//如果適配器還沒有建立 aad = new AppsAdapter(apps,inflater); lv_appList.setAdapter(aad); }else{//資料配接器已經建立,資料已經變化 aad.setApps(apps);//很重要 aad.notifyDataSetChanged(); } 執行個體代碼:package zxf.mobilesafe.adapter;import
Time of Update: 2018-12-03
Activities and Tasks1,activity 用任務來組成堆棧。堆棧裡可以有別的應用裡的activity
Time of Update: 2018-12-03
private void uninstall(String packname){ ApplicationInfo info; try { info = getPackageManager().getApplicationInfo(packname, 0); if (!filterApp(info)) { Toast.makeText(this, "系統應用不能被卸載", 1).show(); return; } else { Intent intent =
Time of Update: 2018-12-03
1、使用方法在需要使用JQuery的頁面中引入JQuery的js檔案即可。例如:<script type="text/javascript" src="js/jquery.js"></script>引入之後便可在頁面的任意地方使用jQuery提供的文法。2、學習教程及參考資料請參照《jQuery中文API手冊》和http://jquery.org.cn/visual/cn/index.xml推薦兩篇不錯的jquery教程:《jQuery的起點教程》和《使用 jQuery
Time of Update: 2018-12-03
public View getView(int position, View convertView, ViewGroup parent) { View view = null; if(convertView==null){ Log.i(TAG,"第"+position+"new 對象"); view = inflater.inflate(R.layout.app_manager_item, null); //convertView =view; }else { view
Time of Update: 2018-12-03
meta-data的說明在AndroidManifest.xml中,<meta-data>元素可以作為子項目,被包含在<activity>、<application> 、<service>和<receiver>元素中,但不同的父元素,在應用時讀取的方法也不同。1 :在Activity的應用。 xml程式碼片段: <activity...> <meta-data
Time of Update: 2018-12-03
/** * 繼承MapView重寫onTouchEvent實現泡泡處理操作 * @author hejin * */class SeeOtherMapView extends MapView { Context context; GeoPoint pt; float lastx; float lasty; long lastDownTime; boolean mIsLongPressed; boolean mIsExcute;//判斷是否執行了長按時間操作 public
Time of Update: 2018-12-03
給你看些代碼!你就明白是怎麼回事了!其實內部有進行判斷,但是並沒有進行處理!而是直接拋出了異常!一下是JDK 的原始碼: public void readFully(byte[] b, int off, int len, boolean copy) throws IOException { while (len > 0) { int n = read(b, off, len, copy);
Time of Update: 2018-12-03
數組的初始化分為兩種!即為:靜態初始化和動態初始化!簡而言之,靜態初始化就是,由程式員去指定顯式(注意是顯式)指定每個元素的值,系統自動判定數組長度。如下:int[] array = {1,2,3}; 動態初始化,則只需要指定長度,系統為元素自動分配初始值! int[] array=new int[3];這樣就是動態初始化。那麼這裡就有些問題需要注意!1 不管是那種初始化方法,一旦初始化完成,數組長度不可改變。2
Time of Update: 2018-12-03
以下轉自How you create your view for listview on Android?How you create your view for listview on Android?There have three versions of getView() function,the first version is a slow way,and the last is the fastest one.Version 1:1public View