http://www.vogella.de/articles/AndroidSQLite/article.htmlSemantics of SQLiteOpenHelper.onCreate() and onUpgrade() (original URL: http://alexlod.com/2011/07/26/android-sqliteopenhelper-oncreate-and-onupgrade-semantics/ )Overall I've been insanely
public class Link extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.link); // text1 shows the android:autoLink property, which
在目前軟體開發行業中,流行著這麼一句話“天下武功,唯快不破”。而“快”,就不能讓我們重複去製造論壇,不能去重新發明輪子。目前開源界中已經有很多成熟的,得到了大量商用的開源軟體和架構,我們就可以借鑒這有優秀的資源,才能在這個節奏速度的社會中博得一絲生存的機會。我收集整理了一些優秀的android開源架構,希望能對android軟體開發的朋友一點的協助。Current List Utility- Droid-fu <http://github.com/kaeppler/droid-fu>
除了可以在運行時去建立並使用檔案,也可以在設計階段把檔案放在程式包中,這樣一來就可以在運行時去使用他們。舉個例子,你想把一些協助檔案打包進程式,當使用者需要的時候,就可以展示給他們看。在這種情況下,應該把檔案放在res/raw檔案夾下面。想要在代碼中使用這個檔案,需要調用Activity的getResources()方法,返回一個Resources對象。然後,使用它的openRawResource()方法去開啟res/raw檔案夾中的檔案:/** Called when the
In android, we can highlight the button through custom images. Here is a example that will give you about how to set a image when the button is focused, pressed and focused pressed. we can set each image for each stage.Example for Android Button