Skip to main content

Home/ Android Dev/ Contents contributed and discussions participated by Vincent Tsao

Contents contributed and discussions participated by Vincent Tsao

Vincent Tsao

Issue 1480 - android - Intent android.media.action.IMAGE_CAPTURE returns an image with ... - 0 views

  • On an HTC Hero, this EXTRA_OUTPUT doesn't even work. It doesn't put your picture in the file you specify, but it hands it to you thru a Mediastore uri. Apparently, the only way to get a full size picture is to do all camera handling in your app instead of using the IMAGE_CAPTURE intent.
  • I think Google have missed a trick on this one. They have defined standard intents for media capture, but not specified standard responses (ie. the "data" parameter in the onActivityResult Activity callback method). Other Android vendors (e.g. HTC Hero) have created their own Camera applications that handle the standard IMAGE_CAPTURE intent, but return different data & have different ways to save/return the image information. All I want is to be able to fire a IMAGE_CAPTURE intent from my own app, and get back a Uri reference to the captured image. Simple. I have no requirement to further manipulate the image .. I just need the Uri to store in my app's database for future reference.
Vincent Tsao

using Java to get a file's md5 checksum? - Stack Overflow - 0 views

  • java.security.DigestInputStream
  • MessageDigest md = MessageDigest.getInstance("MD5");InputStream is = new FileInputStream("file.txt");try {  is = new DigestInputStream(is, md);  // read stream to EOF as normal...}finally {  is.close();}byte[] digest = md.digest();
Vincent Tsao

Supporting Multiple Screens | Android Developers - 0 views

  • The density of a screen is important because, other things being equal, a UI element (such as a button) whose height and width are defined in terms of screen pixels will appear larger on the lower density screen and smaller on the higher density screen.
  • The density-independent pixel is equivalent to one physical pixel on a 160 dpi screen, the baseline density assumed by the platform (as described later in this document). At run time, the platform transparently handles any scaling of the dip units needed, based on the actual density of the screen in use. The conversion of dip units to screen pixels is simple: pixels = dips * (density / 160). For example, on 240 dpi screen, 1 dip would equal 1.5 physical pixels. Using dip units to define your application's UI is highly recommended, as a way of ensuring proper display of your UI on different screens.
Vincent Tsao

Scrolling a Picture (horizontally and vertically) :: anddev.org - Android Development C... - 0 views

  •  
    Gesture
Vincent Tsao

[TinyTut]Custom Button backgrounds/Better ImageButton :: anddev.org - Android Developme... - 0 views

  • In my_button we define 4 states (as a button has 4 states: not pressed and not focused, pressed and focused, pressed and not focused, not pressed and focused) with each of those states having their own drawable.
Vincent Tsao

Android程序在手机上的保留时间比iPhone程序更长 | iFanr 爱范儿 ♂专注于拇指设备的小众讨论 - 0 views

  • 最近,专门调查分析智能手机程序使用情况的Flurry.com公布了一幅有意思程序保留时间对比图。Android程序安装3个月后的保留比例和iPhone在30天后的比例相当
  • 可能的原因?Flurry的看法是: iPhone的软件选择更多 Android用户平均年龄更大,玩机热情不如以往 Android用户更宽容,更善于利用现有程序
    • Vincent Tsao
       
      我的解释是:1. 有价值的可供选择的android app确实不多 2. Android app偏向于实用,Iphone app酷的比较多
« First ‹ Previous 381 - 400 of 450 Next › Last »
Showing 20 items per page