Time of Update: 2015-03-07
標籤:新手起步迷迷糊糊,以下記錄迷惑之處,大家共勉!!!1、建立安卓應用工程選擇Andriod Application Project點下一步直到完成。 二、下面是建立工程注意的地方(1)首選刪除系統自動產生的res/layout/activity_main.xml首頁布局檔案(2)在File/New/Android XML
Time of Update: 2015-03-06
標籤:eclipse 手機調試 adb 一、情境我們有時候希望用手機調試Android程式,但是串連手機到電腦上之後,卻顯示不出手機裝置,無法用手機進行調試。二、原因一般有兩個原因:(1)adb的問題;(2)電腦沒有安裝手機驅動。三、解決方案(1)關閉Eclipse。然後,在Eclipse目錄下的platform-tools檔案夾下面(就是adb程式所在的檔案夾),shift+右鍵,以管
Time of Update: 2015-03-06
標籤:在Jni中通過 env->CallStaticVoidMethod去做callback的時候,總會掛掉原因是JniEnv是和線程相關的,只能在對應建立的線程中使用而JVM卻是進程相關的,可以通過JVM來擷取線程相關的JNIENV。初始化如下static void com_test_Player_native_init(JNIEnv *env){ jclass clazz; clazz = env-&
Time of Update: 2015-03-07
標籤:1、項目右鍵-->properties-->android-->Is library-->Apply2、在其他項目中就能通過add library引用到該庫檔案其他項目匯入該庫檔案後可看到引用的對應jar包:引用庫檔案的好處在於可以對原始碼進行修改 2、移除,注意不能從硬碟刪除即上面的選項不勾選 3、jar包重複問題如果項目裡有android-surport-v4
Time of Update: 2015-03-05
標籤:如果你發現你寫程式的時候像我一樣,發現圖片怎麼都無法展開填充到ImageButton 裡面。而且就算能縮放到控制項,但是映像較小,而且總會在 ImageButton周圍有一圈邊框!當你遇到這一些列問題的這時候你就可以收藏並吸收這個經驗了.總的過程:我先給出關鍵代碼→ 分析給出的兩種解決方案→ 我詳細介紹一下邊框出現的原因個解決辦法。→
Time of Update: 2015-03-05
標籤:io orm 資料 資料持久化 android 程式猿是最懶的生物,開發中從不重複造輪子,實際開發中資料吃就化是必然要處理的一個問題,先總結了幾個除處理sqlite外的幾個工具類,因為sqlite可以直接用orm,持久化資料有I/O,SharedPreference等等方式。外置儲存卡package
Time of Update: 2015-03-05
標籤:http://ivomynttinen.com/blog/the-ios-7-design-cheat-sheet/ With the release of iOS 7, app designers and developers will need to adjust their visual language to match the new "flat" design of iOS. In addition to the grid system, the
Time of Update: 2015-03-05
標籤:1. 什麼是UIPopoverController?是iPad開發中常見的一種控制器(在iphone上不允許使用)跟其他控制器不一樣的是,它直接繼承自NSObject,並非繼承自UIViewController它只佔用部分螢幕空間來呈現資訊,而且顯示在螢幕的最前面 2.怎麼使用UIPopoverController? 2.1 使用的思路(初步) 1>建立一個UIPopover 2>確定內容 3>設定尺寸 4>從哪裡顯示出來 2.
Time of Update: 2015-03-05
標籤:原文網址:http://source.android.com/source/initializing.htmlInitializing a Build EnvironmentIN THIS DOCUMENTChoosing a BranchSetting up a Linux build environmentInstalling the JDKInstalling required packages (Ubuntu 14.04)Installing required packages (
Time of Update: 2015-03-05
標籤:原文網址:http://blog.csdn.net/ithomer/article/details/6977386Android源碼下載:官方下載 或參考android源碼下載方式Android編譯版本: PLATFORM_VERSION=4.0.1(最新Android 4.0.1)OS 作業系統平台: Linux yanggang 2.6.35-30-generic #61-Ubuntu SMP Tue Oct 11 15:29:15 UTC 2011 i6
Time of Update: 2015-03-05
標籤:androidimport java.io.BufferedInputStream;import java.io.ByteArrayOutputStream;import java.io.InputStream;import java.net.HttpURLConnection;import java.net.URL;import java.util.concurrent.ExecutorService;import
Time of Update: 2015-03-06
標籤:<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=0.5, maximum-scale=2.0, user-scalable=yes" />在網頁的<head>中增加以上這句話,可以讓網頁的寬度自動適應手機螢幕的寬度。其中:width=device-width
Time of Update: 2015-03-06
標籤:Spinner控制項也是一種清單類型的控制項,它的繼承關係如下: java.lang.Object ? android.view.View ? android.view.ViewGroup ? android.widget.AdapterView<Textends
Time of Update: 2015-03-06
標籤:android android studio 線程 我做的app需要實現signalr 推送服務 有兩種方法一種人家已經給我們整合了還有視頻教程地址為 https://www.youtube.com/watch?v=f9ih_M7PC10 下載的程式在這
Time of Update: 2015-03-05
標籤: Android中將圖片儲存到SD卡中,相簿裡不會及時出現這張圖片,因為沒有及時更新其索引,一般需要開機幾次。當然我們可以手動更新其索引。 1,首先將檔案儲存到SD卡中。 String filePath = "xxx"; //全路徑 saveImgToSDcard(filePath);
Time of Update: 2015-03-05
標籤:MainActivitypackage com.buzz.beaconlib;import android.support.v7.app.ActionBarActivity;import android.os.Bundle;import android.view.Menu;import android.view.MenuItem;import android.widget.ListView;import android.widget.TextView;import
Time of Update: 2015-03-06
標籤:1.查看項目中有沒有proguard.cfg。 2.如果沒有那就看看這個檔案中寫的什麼吧,看完後將他複製到你的項目中。-optimizationpasses 5-dontusemixedcaseclassnames-dontskipnonpubliclibraryclasses-dontpreverify-verbose-optimizations
Time of Update: 2015-03-06
標籤:ios app ios代碼 app提交 app拒絕 提交app的時候出現這樣的提示和反饋:We began the review of your app but are not able to continue because we need a valid demo account to fully assess
Time of Update: 2015-03-05
標籤:1)顯示Mac隱藏檔案的命令:defaults write com.apple.finder AppleShowAllFiles -bool true(2)隱藏Mac隱藏檔案的命令:defaults write com.apple.finder AppleShowAllFiles -bool false重新啟動Finder就可以了
Time of Update: 2015-03-05
標籤:android首先我們先來看下官方API對SurfaceView的介紹SurfaceView的API介紹Provides a dedicated drawing surface embedded inside of a view hierarchy. You can control the format of this surface and, if you like, its size; the SurfaceView takes care of placing the surface