Skip to main content

Home/ Android Dev/ Group items tagged no_tag

Rss Feed Group items tagged

Simon Pan

Custom Drawing | Android Developers - 1 views

  • Creating objects ahead of time is an important optimization. Views are redrawn very frequently, and many drawing objects require expensive initialization. Creating drawing objects within your onDraw() method significantly reduces performance and can make your UI appear sluggish.
    • Simon Pan
       
      將物件在初始化時就實例化是很重要的概念,onDraw()的運作速度很快,如困每一個Paint畫圖物件都臨時才在onDraw()產生,將會大幅下降整体程式的流暢效能。
  • If your view doesn't need special control over its size, you only need to override one method: onSizeChanged().
  • is mandatory.
Snow Biker

Paul O'Dowd: Arduino, Smooth RC Servo Motor Control - 0 views

  •  
    using easing for servo motoers
jiang zhan

Webview | Download Android - 0 views

  •  
    webview
Simon Pan

App Widgets | Android Developers - 1 views

  • To find your minimum width and height in density-independent pixels (dp), use this formula: (number of cells * 74) - 2
    • Simon Pan
       
      why i can't highlight?
    • Vincent Tsao
       
      FYI: You may need a toolbar to highlight, http://www.diigo.com/tools/toolbar
  • how often the App Widget framework should request an update from the AppWidgetProvider by calling the onUpdate() method
  • exactly on time
  • ...6 more annotations...
  • programmatically interface with the App Widget, based on broadcast events.
  • programmatically interface with the App Widget, based on broadcast events.
  • programmatically interface with the App Widget, based on broadcast events.
  • only the event broadcasts
  • when each App Widget is added to a host
  • it includes a loop that iterates through each entry in appWidgetIds,
Simon Pan

Application Fundamentals | Android Developers - 0 views

  • passes
  • When onReceive() returns
  • by the system at any time
  • ...13 more annotations...
  • to start a service
  • presents
  • memory paging state
  • Broadcast receiver lifecycle
  • The activity at the top of the stack is one that's currently running
  • The root activity in the stack is the one that began the task
  • Suppose
  • keeping both activities in the same task.
  • Tasks
  • A task is a stack of activities, not a class or an element in the manifest file.
  • The current task goes into the background and the root activity for the new task is displayed.
  • Rather
  • the previous activity in the same task is displayed.
Simon Pan

Context | Android Developers - 1 views

  • stay around
    • Simon Pan
       
      不離開
  • whose lifecycle is separate from the current context
  • If used from an Activity context, the receiver is being registered within that activity.
Vincent Tsao

绝美的鸟类舞蹈_鸟类网 - 0 views

shared by Vincent Tsao on 27 Mar 10 - Cached
  •  
    课间休息一下 :)
Simon Pan

Administering In-app Billing | Android Developers - 0 views

    • Simon Pan
       
      此頁已閱讀完畢 重點︰ 1.要加入permission: com.android.vending.BILLING 2.新增in app product到publish裡 3.product ID開頭必定為小寫或數字、且由a-z,數字、底線、點組合而成。另外,android.test被保留 4.Product ID一旦被建立後,無法再被重覆使用,即使己經刪除了這個Product ID 5.記得要設定測試帳戶 6.底下提供了幾個官方的討論串
  • does not
  • request to Android Market
  • ...1 more annotation...
  • You can then process the refund through your Google Checkout Merchant account.
Simon Pan

In-app Billing Overview | Android Developers - 1 views

  • nonce
    • Simon Pan
  • launches the pending intent
  • checkout flow finishes
  • ...22 more annotations...
  • sends your application a notification message
  • you must send a confirmation
  • will continue sending IN_APP_NOTIFY messages
  • should not
  • until you have delivered the item to the user.
  • will still receive an IN_APP_NOTIFY broadcast intent
  • must be able to handle IN_APP_NOTIFY messages
  • references a specific request ID
  • is installed
  • reinstalled.
  • even though you never initiated the purchase.
  • must handle
  • it usually stops sending IN_APP_NOTIFY intents
  • even though your application has sent a CONFIRM_NOTIFICATIONS message. This can occur if a device loses network connectivity while you are sending the CONFIRM_NOTIFICATIONS message.
  • You can do this by checking the orderID
  • even though your application has not sent a REQUEST_PURCHASE message.
  • may receive
  • informing the application that there is a purchase state change.
  • This applies only to items that have their purchase type set to "managed per user account."
  • signs the JSON string that is contained in the PURCHASE_STATE_CHANGED
  • it includes the signed JSON string (unencrypted) and the signature.
  • you can use the public key portion of your RSA key pair to verify the signature.
Simon Pan

Providing Resources | Android Developers - 1 views

Simon Pan

Google Map View | Android Developers - 0 views

  • degrees * 1e6
    • Simon Pan
       
      FLOAT經緯度換成INT算法︰ degrees*1e6
  • Before the addOverlay() method is called
  • Add this at the top of the HelloItemizedOverlay class
    • Simon Pan
       
      放在class的大括弧裡面。如public class HelloItemizedOverlay{ private ArrayList mOverlays = new ArrayList(); }
  • ...2 more annotations...
  • the default marker
  • You're now done
Simon Pan

Maps External Library - Google Projects for Android - 0 views

  • The <uses-library> reference is required
    • Simon Pan
       
      一定要在manifest里宣告,否则会出错
Simon Pan

Maps External Library - Google Projects for Android - 0 views

  • The certificate you use to sign your application must match the certificate that is associated with the API Key in your MapView objects.
    • Simon Pan
       
      註冊給Google map的keystore所得到的金鑰必須與發佈的keystore吻合,地圖才會顯示。如果是Debug.key可能是造成Google Map無法順利顯示的原因。
Simon Pan

Building Custom Components | Android Developers - 2 views

  • When the class is nested in the NoteEditor class, this technique will not work.
    • Simon Pan
       
      当自己复写的View写在内部类时,在xml呼叫这个新类是没有用的!
  •  
    有什么具体案例么?
  •  
    这句话是写在第4点 Use the Custom Component中∶ Notice that the MyEditText class is now a separate class file. 1.When the class is nested in the NoteEditor class, this technique will not work. 我还没真实遇到,Diigo先! 总之告诉我们如果将自己写的View写成内部类时, XML会找不到!
Simon Pan

Tasks and Back Stack | Android Developers - 0 views

  • is honored over
    • Simon Pan
       
      Activity A會被優先重視
Simon Pan

Common Layout Objects | Android Developers - 1 views

    • Simon Pan
       
      1.每個LinearLayout裡的元件都能設定Weight 2.先量出有幾個元件 3.把沒有Weight(不用擴展)的元件先占據出位置 4.剩下有設Weight的元件才會依比例分配要占據多大。
  • rest equally
  • gravity, by default, is left
  • ...8 more annotations...
  • topmost or leftmost
  • A table can leave cells empty, but cells cannot span columns
  • a single row
  • specified by ID
  • order given
  • toLeftOf
  • android:padding="10px"
  • all hold child UI elements
1 - 19 of 19
Showing 20 items per page