Skip to main content

Home/ Android Dev/ Group items tagged hosts

Rss Feed Group items tagged

Vincent Tsao

[筆記]讓Android emulator連intranet « 更夜 - 0 views

  • [通用部分] 如果開了一個以上的模擬器的話請自行加adb參數 0a. 先adb pull /system/etc/hosts hosts抓回local來修改。 0b. 在原本的 127.0.0.1 localhost 加上新的行,寫入你需要的對應如 192.168.1.15 mytestsite,存檔。 1. adb remount (才不會發生Read-only file system錯誤) 2. adb push hosts /system/etc/hosts
  • [2.0.1, 2.1 only] 這兩個版本會在這邊丟出錯誤訊息,分別為 failed to copy 'hosts' to '/system/etc/hosts': No space left on device failed to copy 'hosts' to '/system/etc/hosts': Out of memory 解決方法是,開啟模擬器時不要直接從 AVD Manager介面開,請下指令: $ emulator -avd youravdname -partition-size 128 接著再對這個模擬器使用上面的 hosts修改大法就不會出現錯誤了。 partition size的單位是MB,預設似乎是64。從adb shell 用 df 指令觀察的結果,/system 和 /data 都會被這個設定成這邊指定的值。而1.5, 1.6 的 image 因為剛好沒超過 64MB,還剩下一點空間,所以 hosts 還寫得進去,而 2.x 的 image 有 七萬多K,mount之後 /system 這個 partition 看起來就是全滿,剩下空間 0K。因此 hosts變肥後無法寫入,真的是因為partition爆了。事實上正常的手機確實也不需要留空間給user hack…模擬器還讓我們調參數已經很偷笑了,可惜AVD Manager 的 Start 沒地方可以設定 partition size。若有此需求的話只好麻煩一點手動下指定開emulator囉。
Kiran Kuppa

NDEF Tools for Android - Google Project Hosting - 0 views

  •  
    This site hosts a library for Near Field Communication on Android using the NDEF format.. In particular the site provides an eclipse plugin for the developers to create NDef records for various use cases - URI, Smartposter, Event etc. There is also an associated application hosted on Google Play store which is very useful in composing complex NDEF records and burning on Tags
Vincent Tsao

Fragments | Android Developers - 1 views

  • If you add multiple changes to the transaction (such as another add() or remove()) and call addToBackStack(), then all changes applied before you call commit() are added to the back stack as a single transaction and the BACK key will reverse them all together.
    • Vincent Tsao
       
      what's the point to provide such  mechanism?
  • The most significant difference in lifecycle between an activity and a fragment is how one is stored in its respective back stack. An activity is placed into a back stack of activities that's managed by the system when it's stopped, by default (so that the user can navigate back to it with the BACK key, as discussed in Tasks and Back Stack). However, a fragment is placed into a back stack managed by the host activity only when you explicitly request that the instance be saved by calling addToBackStack() during a transaction that removes the fragment.
  • In some cases, you might need a fragment to share events with the activity. A good way to do that is to define a callback interface inside the fragment and require that the host activity implement it. When the activity receives a callback through the interface, it can share the information with other fragments in the layout as necessary.
  •  
    好特別、好酷的一個類
Vincent Tsao

androidpn - Xpress Push Notification for Android - Google Project Hosting - 1 views

  • An open source project to provide push notification support for Android -- a xmpp based notification server and a client tool kit. This project is currently being hosted at http://sourceforge.net/projects/androidpn/.
Kiran Kuppa

apps-for-android - Sample Applications for the Android platform - Google Project Hosting - 2 views

  •  
    "A collection of useful, open source applications that demonstrate basic features of the Android platform."
Vincent Tsao

android-query - Simpler Coding for Android - Google Project Hosting - 0 views

  • Android-Query (AQuery) is a light-weight library for doing asynchronous tasks and manipulating UI elements in Android. Our goal is to make Android coding simpler, easier, and more fun!
  •  
    像JQuery一样的语法来操作Android UI elements
Vincent Tsao

foursquared - Project Hosting on Google Code - 0 views

  • Open Source Foursquare client for Android.
Vincent Tsao

simple-quickactions - Project Hosting on Google Code - 2 views

  • This is a demo Android project showing how it's possible to have QuickActions and Popdown menu interface actions like those in the Twitter App.
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,
Vincent Tsao

gmailwidgetplus - Project Hosting on Google Code - 1 views

  • This projects aims to provide a way to access unread emails regardless of label directly from the android home screen. This project releases directly to the Android Market and as such the download section here may be behind.
Vincent Tsao

myandroidwidgets - Project Hosting on Google Code - 0 views

  • A bunch of sample apps for Android. Simple workarounds and examples for doing things on Android. Custom Progress Bar - A customized Progress Bar for android with your own animation Drag and Drop widgets on Android Ongoing notifications on Android HTML with images in a Text View Custom Expandable List Views on Android Custom List View - Phonebook Example Custom Title Bar Android WebView, Javascrip and CSS Unzip files on Android
Vincent Tsao

android-pinch - Project Hosting on Google Code - 0 views

  • Adds multi-touch zoom to; ImageViews, WebViews, and MapViews. Simply use the corresponding object in place of the default, and the "pinch" functionality will be usable. Also includes misc. Views which can be useful for development.
Vincent Tsao

android-active-record - Project Hosting on Google Code - 0 views

  •  
    Shared by Miracle from China Android Dev
1 - 20 of 42 Next › Last »
Showing 20 items per page