Skip to main content

Home/ Groups/ Android Dev
Vincent Tsao

How to connect your Android phone to Ubuntu to do development, testing, installations o... - 0 views

  • $ sudo gedit /etc/udev/rules.d/99-android.rules
  • $ sudo restart udev
  • $ adb kill-server $ adb start-server
  • ...2 more annotations...
  • Add the following line to it and save it: SUBSYSTEM==”usb”, ATTRS{idVendor}==”18d1″, SYMLINK+=”android_adb”, MODE=”0666″
    • Vincent Tsao
       
      for Nexus one
  • $ lsusb
Vincent Tsao

Applying Styles and Themes | Android Developers - 0 views

  •  
    using style/theme to make our layout views neat and maintainable
Vincent Tsao

Possible to change between "full screen" and "with status bar"? - Android Developers | ... - 0 views

  • // go full screen WindowManager.LayoutParams attrs = mActivity.getWindow().getAttributes (); attrs.flags |= WindowManager.LayoutParams.FLAG_FULLSCREEN; mActivity.getWindow().setAttributes(attrs); // go non-full screen WindowManager.LayoutParams attrs = mActivity.getWindow().getAttributes (); attrs.flags &= (~WindowManager.LayoutParams.FLAG_FULLSCREEN); mActivity.getWindow().setAttributes(attrs);
    • Vincent Tsao
       
      these code can be simplified as below: //go full screen getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN); //go non-full screen getWindow().clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
  •  
    How to toggle fullscreen / non-fullscreen
Vincent Tsao

Android Gesture Detector - 醋溜的 - JavaEye技术网站 - 0 views

  •  
    good explanation for the actions: fling, scroll, ....
Vincent Tsao

两个原因导致摩托罗拉 XOOM 专用软件数量偏低 | 爱范儿: 拇指资讯小众讨论 - 0 views

shared by Vincent Tsao on 06 Apr 11 - No Cached
  • 它已经上市一个月了,但 Android 3.0 的生态环境却没有显示出应有的活力,至今只有约 50 款专用软件上架
    • Vincent Tsao
       
      "50款专用软件" may means "Featured Tablet apps" in Android Market 实际的app数可能会稍多一点
  • 移动开发者 Justin Williams 在接受《连线》采访时说:“当年苹果的做法很明智,在 iPad 推出之前几个月就放出了开发工具。相比之下,Google 的开发者只是在 XOOM 发售之前几天才拿到开发工具。”所以在 iPad 发售时,商店里已经有了 1000 个专用软件。当 XOOM 发售时,这个数字是 15 。
    • Vincent Tsao
       
      Timeline: 1. Android 3.0 preview版SDK的发布时间是2011-01-26 2. Android 3.0 正式版SDK的发布时间是2011-02-22 3. XOOM正式发布时间是2011-02-24
  • 还有另外一个原因导致开发者的热情不足,就是 Google 只把系统代码开放给了几个大厂商,例如摩托罗拉,三星,HTC 。大多数设备制造商和开发者根本接触不到 Android 3.0 的代码和技术细节,所以拖累了软件的开发进度
    • Vincent Tsao
       
      Google居然没有专门开辟一个category来展示Tablets apps,与其他app混合展示,这让很多专门为Tablet设计的app没有任何优势。更有甚者,很多本不是为Tablet优化的app通过简单的修改配置也能支持Tablet并且还被认证为featured tablet apps,这对开发者是一种伤害! Google Android一直在轻视甚至已经在损害android开发者的利益
  • ...1 more annotation...
  • 不过,Android 平板专用软件应该会在今年夏天掀起一波高潮,因为三星,HTC ,联想的相关设备都会在夏天上市,巧妇们拿到米之后一定会尽快投入开发的
    • Vincent Tsao
       
      Android设备会越来越多,但是开发者非常需要Google Android好好改进自己的官方Android Market
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

Nexus Two配置及Android 2.3特性新消息_Google Android_cnBeta.COM - 0 views

  • 另外关于Android 2.3版系统的特性也有了新的消息,在姜饼系统中主要针对电源管理做了优化,可以让手机的续航时间得到大幅度的提升,新系统将提供一个新的拨号界面以及用户界面系统的整体性调整,并加入了视频聊天功能
  • Android开发团队还制作了一个全新的复制粘贴系统(不仅仅是文本的复制粘贴),系统集成的社交网络功能得到完善,Google新推出的WebM视频格式也将会得到支持
Vincent Tsao

Build | Android Developers - 0 views

  • Information about the current build, extracted from system properties.
  •  
    using this API to get mobile information which display in "Settings --> About phone"
Vincent Tsao

PackageInfo | Android Developers - 0 views

  • Overall information about the contents of a package. This corresponds to all of the information collected from AndroidManifest.xml.
  •  
    using this API to fetch app info via package name
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

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
Vincent Tsao

Search | Android Developers - 0 views

  • Android's search framework provides a user interface in which users can perform a search and an interaction layer that communicates with your application, so you don't have to build your own search Activity. Instead, a search dialog appears at the top of the screen at the user's command without interrupting the current Activity.
    • Vincent Tsao
       
      我是在实现了一个自己的search activity后看到这篇文章了,oh~shit
Vincent Tsao

attempt to acquire a reference on a close SQLiteClosable - Android Developers | Google ... - 0 views

  • If you're managing the cursor yourself the cleanest way to go is probably this: Cursor cursor = getContentResolver().query(...); try {     // read from the cursor and do stuff } finally {     if (cursor != null) cursor.close(); }
  • Another option if you still want to use Activity.managedQuery() is to get your information and then: stopManaging(cursor); cursor.close(); Cheers, Justin Android Team @ Google
Vincent Tsao

android:layout_gravity android:gravity的区别 - China Android Dev | Google Groups - 0 views

  • 我看到一个最简洁的回复是(让我一直记得,哈哈): layout_gravity是本元素相对于父元素中的位置 gravity是本元素中内容相对自己的位置
Vincent Tsao

Fancy ListViews, Part Six: Custom Widget - 0 views

  •  
    正是我想要的 :)
Vincent Tsao

Android Tutorial - 0 views

  •  
    lots of useful example here
Vincent Tsao

List view with textviews and imageview, best practices - Android Developers | Google Gr... - 0 views

  • 1. you can look at the video from Google IO conference 2009, called Turbo charging your UI's by Romain Guy; he discussed some of the optimizations you can do when working with ListViews. 2. You can read Mark Murphy's series of ListView tutorials at android guys titled Fancy ListViews: http://www.google.co.in/url?sa=t&source=web&ct=res&cd=4&ved=0CBYQFjAD...
Vincent Tsao

Icons for submenu items doesn't show up - Android Developers | Google Groups - 0 views

  • The fact that sub-menus don't support icons. http://developer.android.com/intl/fr/guide/topics/ui/menus.html <http://developer.android.com/intl/fr/guide/topics/ui/menus.html> *Icon Menu * This is the collection of items initially visible at the bottom of the screen at the press of the MENU key. It supports a maximum of six menu items. *These are the only menu items that support icons* and the only menu items that *do not* support checkboxes or radio buttons.
  • Try to use PopUpWindow <http://developer.android.com/reference/android/widget/PopupWindow.html>class. Here you have an example<http://www.anddev.org/how_to_create_a_popupwindow-t1259.html>
Vincent Tsao

Lazy Loading Images in a ListView - consensus approach? - Android Developers | Google G... - 0 views

  • I haven't looked in details at the 3 other approaches but I know that a big difference between what I do in Shelves and what I've seen done in other places is how user interaction is handled. Shelves listens to scroll events on the ListView and tries to identify taps vs scrolls vs fling to always give priority to the UI. For instance, when you touch the screen to stop a fling, Shelves starts loading images, but does so only after a very short delay so that if you are touching the screen to fling some more, the fling animation won't stutter because of the extra work load. But that's details.
    • Vincent Tsao
       
      From Romain Guy, the author of Shelves app
« First ‹ Previous 181 - 200 Next › Last »
Showing 20 items per page