Skip to main content

Home/ Android Dev/ Group items tagged article

Rss Feed Group items tagged

Kiran Kuppa

Tapping into Android's sensors - 0 views

  •  
    Android, a rich platform for application development, has an attractive set of user interface elements and data-management capabilities. Android also offers a healthy array of interfacing options. In this article, learn how to interact with Android's varied sensor options to monitor your environment. Sample code shows you how to record audio on an Android phone. Want to build your own baby monitor? Unlock your phone or a door with your own voice activation? Learn how to leverage the hardware capabilities of an Android-equipped device.
Vincent Tsao

Can I Use this Intent? | Android Developers - 0 views

  • This article describes a technique you can use to find out whether the system contains any application capable of responding to the intent you want to use. The example below shows a helper method that queries the system package manager to determine whether there's an app that can respond to a specified intent. Your application can pass an intent to the method and then, for example, show or hide user options that the user would normally use to trigger the intent.
  • /** * Indicates whether the specified action can be used as an intent. This * method queries the package manager for installed packages that can * respond to an intent with the specified action. If no suitable package is * found, this method returns false. * * @param context The application's environment. * @param action The Intent action to check for availability. * * @return True if an Intent with the specified action can be sent and *         responded to, false otherwise. */public static boolean isIntentAvailable(Context context, String action) {    final PackageManager packageManager = context.getPackageManager();    final Intent intent = new Intent(action);    List<ResolveInfo> list =            packageManager.queryIntentActivities(intent,                    PackageManager.MATCH_DEFAULT_ONLY);    return list.size() > 0;}
  • @Overridepublic boolean onPrepareOptionsMenu(Menu menu) {    final boolean scanAvailable = isIntentAvailable(this,        "com.google.zxing.client.android.SCAN");    MenuItem item;    item = menu.findItem(R.id.menu_item_add);    item.setEnabled(scanAvailable);    return super.onPrepareOptionsMenu(menu);}
Kiran Kuppa

Modern Android UI Patterns | Javalobby - 2 views

  •  
    " In the latest Android Design in Action Roman Nurik (watch in YouTube) did a great roundup of UI design patterns that have not yet made their way to the official guidelines but are starting to appear in apps more frequently"
Kiran Kuppa

Image Loading Library - 0 views

  •  
    "In this part, we are going to talk about some image libraries using which we can load image(s) asynchronously, can cache images and also can download images into the local storage."
Kiran Kuppa

Genymotion emulator - The faster Android Emulator - 0 views

  •  
    "Genymotion is a faster Android emulator for app testing and presentation. You can control simulated sensors like battery, GPS, accelerometer with the user-friendly interface, it includes powerful command line tools that allow you to build complex tests."
Kiran Kuppa

Card UI - 0 views

  •  
    "Ever wondered about Google play store UI which is built around cards. Card is nothing but a single row item of ListView or GridView. As depicted below, card can be of various sizes and can be either app card, movie, books, games or app suggestions card or birthday card or even it can be a simple list/grid item too. The main benefit of designing app with card UI is it gives consistent looks throughout the application, doesn't matter whether it gets loaded in mobile or tablet."
Vincent Tsao

谷歌力推低价Android手机的野心_Google Android_cnBeta.COM - 0 views

  • 新闻来源:21世纪网 作者:小刀马
  • 近日,市场又有消息称,谷歌将联合华为推低价Android手机。据悉,谷歌计划在中国和印度推动Android手机软件的发展,它们也试图为当地的开发者们寻找更多的生财之路。而为了吸引开发者们加入到Android操作系统中来,谷歌将提供工具,帮助他们销售产品,如订阅、虚拟货物及其它的形式。同时,谷歌还准备将Android操作系统植入低价手机中,这些手机由华为和 LG电子制造,主要面向亚洲和欧洲,而这两大地区正是诺基亚的腹地
  • Gartner表示,2009年移动广告市场只有10亿美元规模,但2013年将增长到135亿美元。此外,在移动应用上,谷歌落后于苹果。Android只有6.5万个应用程序,而苹果却有将近20万个。Gartner预计,2012年Android将成为全球第二大操作系统,超过苹果的iPhone OS,仅次于诺基亚Symbian
  • ...5 more annotations...
  • 如何才能更快速地让Android进入一个发展的快车道?无疑引入更多的开放者追捧这个系统是非常关键的。这也是苹果iPhone之所以成功的关键所在
  • 为了能够吸引到更多的开发者,谷歌试图帮助开发者通过软件赚更多钱,比如提供更简单的支付方式。
  • 目前大多的Android开发者通过广告赚钱,或者是一次性费用赚钱。如此一来,它们的收入比苹果平台少得多。苹果平台每年光是下载应用的费用就达44亿美元,应用商店每年占比77%,而Android只有9%。这是谷歌的软肋,也是谷歌Android没有苹果系统风靡的原因所在。为此,谷歌希望能打入低端手机市场,获得更多用户的使用,从而刺激Android手机系统的用户基数的增长,再带动第三方软件开发者对这个市场的关注和投入。谷歌也表示,eBay的PayPal已经向Android提供应用程序
  • 低端市场本来是很多制造大鳄并不十分感兴趣的市场,但是中国山寨市场的火爆让人们彻底改变了对这个市场的态度,大量的低端品牌涌入市场,并且获得了强大的生命力,本身就说明市场对该类产品的认可。这是一个非常值得谷歌思索的地方。于是,谷歌开始正式切入这个市场,并积极布局
  • 既然在硬件制造方面,谷歌难以和同类的竞争产品一争高下,那么改弦易张,进行有针对性地市场布局,比如支持更多的厂商推出Android产品,以及支持更多的第三方开发者进入到谷歌的阵营,或许这将是谷歌在移动市场竞争的最有力武器。而低端市场无疑是一个突破口,如果能够获得成功,那将星星之火可以燎原
Vincent Tsao

Creating a Home Screen App Widget on Android - Developer.com - 0 views

  • The Android system reuses Intents that match both action and scheme values—the "extras" values are not compared
    • Vincent Tsao
       
      通过设置不同scheme来区别不同的intent
  • In practice, this means the Intent for each App Widget identifier would actually be the same Intent. Fortunately, the solution is straightforward: define a scheme for your App Widget and use it to define unique Intent instances
  • // make this pending intent unique widgetUpdate.setData( Uri.withAppendedPath(Uri.parse( ImagesWidgetProvider.URI_SCHEME + "://widget/id/"), String.valueOf(appWidgetId)));
Vincent Tsao

Handling User Interaction with Android App Widgets - Developer.com - 0 views

  • An App Widget uses a special display control called RemoteViews. Unlike a regular View, a RemoteViews control is designed to display a collection of View controls in another process. Consequently, you can't simply add a button handler because that code would run in your application process, not in the process displaying the RemoteViews object (in this case, the Home Screen process).
  • In order to handle user interaction with an App Widget, the following tasks must be performed: Set a unique click handler for each App Widget control Have the click handler send a command to a registered receiver Process the command received and perform any action necessary Update the App Widget to reflect the changes
Vincent Tsao

Mark Murphy | AndroidGuys - 0 views

  • Mark Murphy is the founder of CommonsWare and is the author of _The Busy Coder's Guide to Android Development_, _The Busy Coder's Guide to *Advanced* Android Development_, and _Android Programming Tutorials_.
  •  
    Articles from Mark Murphy
Vincent Tsao

Creating a Home Screen App Widget on Android - Developer.com - 0 views

  • onReceive(): The default implementation of this method handles the BroadcastReceiver actions and makes the appropriate calls to the methods shown above. (Warning: A well-documented defect exists that requires the developer to handle certain cases explicitly. See the following note for more information.)
  • Creating a simple App Widget involves several steps: Create a RemoteView, which provides the user interface for the App Widget. Tie the RemoteView to an Activity that implements the AppWidgetProvider interface. Provide key App Widget configuration information in the Android manifest file.
  • An App Widget is basically just a BroadcastReceiver that handles specific actions.
Vincent Tsao

Palm用户体验大师加盟谷歌Android团队_Palm_cnBeta.COM - 0 views

  • 惠普旗下的Palm公司已确认,公司副总裁、webOS UI设计负责人、著名移动用户体验设计大师Matias Duarte将离职。而来自Google方面的消息,Duarte将加入Google,出任Android用户体验总监一 职。由于历史上Matias Duarte在跳槽时,总是带着自己的团队同行,所以很可能Palm原设计团队的其他人也会随之而去。这其实并不奇怪,Duarte本来就是 Android之父Andy Rubin 2000年创办的公司Danger的设计总监。 2005年Danger被微软收购后(最近推出的Kin手机来自Danger),Duarte加盟 Helio公司(由EarthLink与SK合资创办,现在是Springt-Nextel的一部分)任副总裁,负责体验设计。2007年加盟Palm, 主导webOS的UI设计。无论是Danger、Helio还是Palm webOS,其界面设计都广受好评,可惜产品本身生不逢时。尤其是webOS, 曾被许多开发者称为在创新性上唯一能与iPhone相提并论的操作系统。
  • Matias Duarte,在产品管理、信息架构、交互设计、视觉设计、用户研究等领域均有很深造诣的设计大 师。1996年毕业于马里兰大学。拥有计算机科学学位,并辅修了艺术和艺术史。大学期间曾经开发了一款免费游戏软件,并连续三年获得Linux Journal的读者选择奖。1996年为Atari公司(乔布斯曾经在此打工)的游戏担任过主设计师。1997年在创业公司 MagicArts任合伙人兼设计副总裁。2000年加入Danger,任设计总监,领导了SideKick产品的设计。2005年加盟Helio。 2007年加盟Palm。 曾荣获2002年Wired Rave大奖,美国国家设计奖提名,拥有9个美国实用专利和2个设计专利。 他的自我介绍上这样描述自己的目标:To create great products that make people smile.(创造使人微笑的优秀产品。)
Vincent Tsao

译言网 | 如何发挥 Android 锁定屏幕的潜力 - 0 views

  • Android 的某些功能着实让人喜爱,而另一些尚需改进。我们觉得 Google 应该改进的一个地方就是 Android 的待机锁定屏幕的可用性。Android 的优秀的小工具框架能让它在一瞥之间提供不少信息。现在的这个空旷的锁定屏幕一定可以得到增强(这对于平板电脑来说非常合适),而多亏了一些应用程序,Android 可以做到这一点
Vincent Tsao

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

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

Android之惑:平台复杂性与版本之祸_Google Android_cnBeta.COM - 1 views

  • Android的发展完全是爆发性的,就是在这一年内,Android从1.5版本瞬间升级到 2.3(1.5-1.6-2.0.1-2.1-2.2-2.2.1-2.3),由于苹果的升级基本上属于强制性的,也就是说基本上是同一时间端升级,除了 iphone 2G已经不再升级之外,大部分的iphone都会升级到最新的版本,对于开发者来说,只需要通过最新的SDK开发程序或者升级程序就可以了,而 Android开发者就会非常郁闷,原因是由于谷歌仅仅控制软件最基本的代码,准确的说就是Android非硬件部分的规范,而对于硬件方面,由于各个厂商的不同,所以就需要各个厂商自行调整,因此会存在当系统都是升级到2.3的时候,部分机型依旧是1.6版,对于正常的产品周期来看,必定会让购买了 1.6系统机型的用户相当不满
  • 而Android的发展完全是爆发性的,就是在这一年内,Android从1.5版本瞬间升级到 2.3(1.5-1.6-2.0.1-2.1-2.2-2.2.1-2.3),由于苹果的升级基本上属于强制性的,也就是说基本上是同一时间端升级,除了 iphone 2G已经不再升级之外,大部分的iphone都会升级到最新的版本,对于开发者来说,只需要通过最新的SDK开发程序或者升级程序就可以了,而 Android开发者就会非常郁闷,原因是由于谷歌仅仅控制软件最基本的代码,准确的说就是Android非硬件部分的规范,而对于硬件方面,由于各个厂商的不同,所以就需要各个厂商自行调整,因此会存在当系统都是升级到2.3的时候,部分机型依旧是1.6版,对于正常的产品周期来看,必定会让购买了 1.6系统机型的用户相当不满。 这并不是Android自身开发的怠慢,一年多个6个版本明显是超越iOS,但是由于硬件上自身调试的原因,并不是所有的玩家都能及时享受到最新版本,严重的滞后阻碍了Android系列手机的应用开发和用户体验
  • 从目前市场行业角度上分析,我觉得后期Android的发布将会和现在的很多开源软件一样,会采用双线并行的方式,即一个开发版本和一个稳定维护版本,首先谷歌会宣布几款设备将不会升级至2.X系,逐步将其淘汰,然后将2.X版本作为稳定开发版本,SDK也主要是为这个版本开发放出,并且保证大部分机型在这个版本系列上得到充分支持,而开发版本则是高端的3.X系列,为不稳定版本,官方不会放出相关的SDK给开发者,用于平台预览,但是会对几款高端机型提供相应的固件下载,保证了高端的GEEK玩家的需求,在2.X进入稳定期以后将会采用小版本号更新,如2.X.X这样,五年以后停止版本的官方支持,并且转移至更高的版本,(这一点上有点类似于mysql)我觉得这样会是一个比较稳妥的解决版本的方法。
  • ...1 more annotation...
  • 从目前的应用端来看,由于ARM架构存在着各个硬件公司设计上的差异和显示芯片的差异,对于Android平台还需要一个最低硬件的标准,如果Android平台能够确定软件的最低硬件,那么对于软件开发者来说将会非常方便,从目前中端机型升级Android 2.2就可以看出来,由于架构的差异,虽然中端机型可以升级至2.2版本,但是谷歌有意识的将其flash 10.1功能关闭,在一定程度上区分了高端机型与低端机型的功能,这也算是谷歌逐步统一系统平台的一个策略,将低端机型版本升级,但是缩减功能,不得不说谷歌和苹果一样,在这一点上是非常聪明的
1 - 20 of 36 Next ›
Showing 20 items per page