Time of Update: 2018-12-05
在寫 AndroidManifest.xml 的時候,到底什麼時候要給 Activity 添加android.intent.category.DEFAULT 過濾器呢? Android treats all implicit intents passed to startActivity() as if they contained at least one category: "android.intent.category.DEFAULT" (the CATEGORY_DEFAULT
Time of Update: 2018-12-05
配置Android開發環境 1. 安裝JDKhttp://www.oracle.com/technetwork/java/javase/downloads/index.html 2. 安裝Eclipsehttp://www.eclipse.org/downloads/ 3. 下載Android SDK http://androidappdocs-staging.appspot.com/sdk/index.html(這裡不用翻牆)如果是windows,運行sdk包裡面的setup 4.
Time of Update: 2018-12-05
Foreground Process當發生以下情況時處於前台進程:正處於activity Resume()狀態正處於與服務互動的狀態正處於服務在前台啟動並執行狀態,也就是startForeground()被調用Service 生命週期函數正在被執行BroadcastReceiver正在執行onReceive()方法 殺死前台進程需要使用者響應,因為這個安全優先順序最高。 VisibleProcess Activity
Time of Update: 2018-12-05
1.判斷是否有網路連線ConnectivityManager connManager =(ConnectivityManager)getSystemService(Context.CONNECTIVITY_SERVICE);if (connManager != null){NetworkInfo info= connManager.getActiveNetworkInfo();if (info != null &&
Time of Update: 2018-12-05
什麼是IntentService? (本文轉自http://blog.csdn.net/gaojie314/archive/2010/11/28/6040701.aspx)官方的解釋是:IntentService is a base class for Services that handle asynchronous requests (expressed as Intents) on demand. Clients send requests through android.content.
Time of Update: 2018-12-05
練習了一個jquery mobile的網頁的小練習,早就聽說phoneGap可以寫Webapp,今天試一下,寫下來做下備忘。1、eclipse下載honeGap的外掛程式。 mobile-web-development-with-phonegap
Time of Update: 2018-12-05
在我的部落格中,上次是使用ViewPager實現左右滑動的效果的,請看文章:Android使用ViewPager實現左右滑動效果。 這次我來使用ViewFlipper實現這種效果,好了,先看看效果吧: 效果看完了就來實現這個效果。1.布局檔案主介面使用下面的布局:<?xml version="1.0" encoding="utf-8"?><FrameLayout
Time of Update: 2018-12-05
package com.example.intenttest;import java.util.ArrayList;import java.util.List;import android.app.Activity;import android.content.ComponentName;import android.content.ContentValues;import android.content.Context;import android.content.Intent;import
Time of Update: 2018-12-05
突然間經濟危機一下子來了,突然間我們第一次發現失業就在我們身邊發成, 突然間各大IT公司都要來Mobile device摻和一下, 突然間覺得自己知道的東西還是那麼少。 冬天來了,只有充分儲備了食物和能量的人才能生存。 所以自己開始了課餘時間的學習,雖然剛剛開始,但是卻第一次有了堅持下去的勇氣,因為我想改變。 Android學習進行中, 為自己加油! 同時希望結交有共同愛好的朋友,一起交流。
Time of Update: 2018-12-05
上一篇http://blog.csdn.net/tibib/article/details/8753769簡單的介紹了下ViewPager的使用,上一次使用的是PagerAdapter來產生適配每一頁,但最常用的是 FragmentPagerAdapter, FragmentStatePagerAdapter,FragmentPagerAdapter, and FragmentStatePagerAdapter 這幾種適配器,分別在API 4+ Support 和API 13+
Time of Update: 2018-12-05
android的進度條1、實現的效果 2、布局代碼先寫一個my_browser.xml檔案 存放WebView<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent"
Time of Update: 2018-12-05
package com.czp;import java.io.File;import android.app.Service;import android.content.Intent;import android.content.SharedPreferences;import android.media.MediaPlayer;import android.media.MediaPlayer.OnCompletionListener;import
Time of Update: 2018-12-05
URL fileURL = null;Bitmap bitmap = null;try {fileURL = new URL(picUrl);} catch (MalformedURLException err) {err.printStackTrace();}try {HttpURLConnection conn = (HttpURLConnection)
Time of Update: 2018-12-05
public class VideoActivity extends Activity {private static final String TAG = "VideoActivity";private EditText filenameText;private SurfaceView surfaceView;private MediaPlayer mediaPlayer;@Overridepublic void onCreate(Bundle savedInstanceState) {
Time of Update: 2018-12-05
ubuntu上Android
Time of Update: 2018-12-05
網上找到些例子,功能都實現的很好,各種重新整理,功能多,也就意味著代碼多,想定製自己的下拉重新整理,無從下手。自己寫了個用於下拉重新整理的最簡單的例子,簡單到只有下拉的介面變化,什麼時候重新整理,什麼時候該處理什麼,請自己動手。此代碼就像寫程式的“Hello Word”,帶你入門,弄懂基本原理,高深的部分,網上已經有人做的很好了,推薦個各種重新整理的源碼:android-pulltorefresh-master。註:以下代碼不需要layout檔案,由代碼布局,由代碼產生ListView所需資料,
Time of Update: 2018-12-05
1、 Android開發教程筆記完全版 pdf 2、 android各組件詳解 PDF3、 Android遊戲樣本大全(從培訓基礎到複雜遊戲開發) 4、 Android技術內幕系統篇PDF高清完整版.rar 5、 Android技術內幕.系統磁碟區 pdf 6、 最新Android4.0API原始碼 包含所有API 7、 Google Android SDK開發範例大全(第2版) 8、 10個實用Android應用程式源碼下載9、 安卓高仿手機QQ客服端 10、
Time of Update: 2018-12-05
下面是一個在Android ListView中實現多選的例子代碼:XML布局資源檔<?xml version="1.0" encoding="utf-8"?><LinearLayout android:id="@+id/LinearLayout01" android:layout_width="fill_parent" android:layout_height="fill_parent" xmlns:android="http://schemas.android.
Time of Update: 2018-12-05
廣大博友,看過後幫忙頂頂,謝謝大家!!! 轉載請註明:http://blog.csdn.net/richway2010/article/details/6600835【博主:各位博友,網友們,大家網上好!歡迎光臨本部落格。 歡迎多多交流,多提意見,互相學習,互相進步,我們的口號是:好好學習,天天向上。】 Content Provider 屬於Android應用程式的組件之一,作為應用程式之間唯一的共用資料的途徑,Content Provider
Time of Update: 2018-12-05
package ycq.testspeek;import java.io.IOException;import java.io.OutputStream;import java.net.InetAddress;import java.net.Socket;import android.media.AudioFormat;import android.media.AudioRecord;import android.media.MediaRecorder;import