Skip to main content

Home/ Android Dev/ Group items tagged android

Rss Feed Group items tagged

Jac Londe

Getting Started | Android Developers - 0 views

  • Getting Started Welcome to Training for Android developers. Here you'll find sets of lessons within classes that describe how to accomplish a specific task with code samples you can re-use in your app. Classes are organized into several groups you can see at the top-level of the left navigation. This first group, Getting Started, teaches you the bare essentials for Android app development. If you're a new Android app developer, you should complete each of these classes in order:
Kiran Kuppa

Android Layout Tricks #3: Optimize by merging - 1 views

  •  
    The was created for the purpose of optimizing Android layouts by reducing the number of levels in view trees.When the LayoutInflater encounters this tag, it skips it and adds the children to the parent.You can also use when you create a custom composite view. 
Vincent Tsao

How to implement a Button on an Android Widget - Stack Overflow - 0 views

  • I am just getting started with Android development and I have created a nice little widget that displays some info on my home screen. However, I now want to implement a Button on my widget that updates the info in my widget TextView.
  • Solved - I can confirm that an Activity is NOT needed if you want create a Button to update an Android AppWidget. I have been able to implement my AppWidgetProvider class such that it registers an android.appwidget.action.APPWIDGET_UPDATE intent-filter with the Broadcast receiver in the AndroidManifest.xml, which then fires the onUpdate event in the AppWidgetProvider class (which in turn then runs the UpdateService).
  • The UpdateService in my AppWidgetProvider class then uses onHandleIntent to run a private buildUpdate method - which registers the onClick event with a call to setOnClickPendingIntent as follows:
  • ...1 more annotation...
  • // set intent and register onclickIntent i = new Intent(this, MyWidget.class);PendingIntent pi = PendingIntent.getBroadcast(context,0, i,0);updateViews.setOnClickPendingIntent(R.id.update_button,pi);
Vincent Tsao

Android Developers Blog: Twitter for Android: A closer look at Android's evolving UI pa... - 1 views

  • Additionally, you can feel free to use the Search bar selection mechanism as a replacement for tabs since it’s really just a fast pivot on a data set. If you have more than 3 data sets, tabs become problematic since no more than 3 can be onscreen at once. For example, look at how we implemented the Profile switching mechanism below:
  • The good news for developers is you get this highly functional contacts feature for free if users choose to sync contact information into your app
    • Vincent Tsao
       
      使用tab & pop-up window的方式来切换不同的数据集,作为tab的一种替换
  • The good news for developers is you get this highly functional contacts feature for free if users choose to sync contact information into your app. QuickContact for Android provides instant access to a contact's information and communication modes.
  • ...3 more annotations...
  • QuickActions can be used as a replacement for our traditional dialog invoked by long press.
  • The dashboard pattern serves as a home orientation activity for your users. It is meant to include the categories or features of your application. We recommend including an Action bar on this screen as well. The dashboard can be static or dynamic. For example, in the case of our dashboard for Twitter, we used the goodness of Live Wallpapers introduced in 2.1 to create an animated dashboard complete with real-time trend bubbles and the Twitter bird silhouette.
  • You keep a search history so users upon returning to the search activity can have quick one-button access to previous searches.
Vincent Tsao

putExtra error on AppWidget - Android Developers | Google Groups - 0 views

  • I am just making some AppWidget and I want to pass some Strings through UpdateView to an Activity. But the Bundle is null. I try this: -Widget.java                       Intent defineIntent = new Intent(context, Visor.class);                        defineIntent.putExtra ("org.rss.androides.post2","artist");                        PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, defineIntent, 0);                        updateViews.setOnClickPendingIntent (R.id.widget, pendingIntent); -Viewer.java           Bundle b = intent.getExtras();                 if (b == null) {                     finish();                     return;                 } b is always null.
  • Remember that PendingIntents aren't keyed using extras: http://groups.google.com/group/android-developers/msg/b296f43ae70c4587 You could hack the extras through by mangling them into Uri parameters, or if you're using a ContentProvider, just point to a specific row.
  • Or use PendingIntent.FLAG_UPDATE_CURRENT; just be careful that each active instance has its own unique Intent.
Vincent Tsao

手势操作(自然用户界面)再探讨 | ifanr 爱范儿 ♂专注于拇指设备的小众讨论 - 0 views

  • 手势相对于无趣的触摸和点击来说,给用户带来了的动态感。但是,缺乏一致性,操作的不易发觉,加上极易触发的不可恢复的操作,使得整个系统的可用性遭到损害。  我们迫切的需要回到基本原则,为这些系统开发可用性指南,这份指南应该基于交互设计的坚实原则,而不是某个公司在人机交互指导中的奇思,或者一些开发者的妙想
  • 简单的宣称你的用户界面“有趣”和“自然”并不能证明你的界面可用,当你的用户使用软件时,对于如何操作茫然无措,并不是什么好玩的事情
    • Vincent Tsao
       
      good point!
  • 1.Android 许多重要的功能是不可见的,除非你长按界面上的某东西,我经常对此感到懊恼
  • ...2 more annotations...
  • 2.他们提到了“隐藏手势”和取消可见菜单。很明显的,在可视菜单上,WebOS 比其它系统做的好。Android 和 iPhone 在这方面都做错了。iPhone 没有菜单, Android 用一个硬件按钮来触发菜单,这意味者你永远不知道程序在什么情况下会有菜单。硬件按钮始终在那里,无论程序是否需要它。
    • Vincent Tsao
       
      尤其对于Android新用户,隐藏的menu会让人手足无措,这点远不如iphone (webos没有使用过,no comment)尚被人接受的原因是:学习成本还好并不高
  • 3.在使用一个 iPhone 应用记录我的购物清单的时候,我发现每次去购物我都会少卖几件东西。最终,我发现,在向购物车里放物品的时候,我经常无意的划过 iPhone 的屏幕,随机的把清单上的东西移除了。这个触摸删除功能是可以关掉的,但是作为默认操作,这个程序会表现的不可靠,在用户没有意识到的情况下出现错误,而且对于用户来说,这个后果不易发现,更无法恢复
    • Vincent Tsao
       
      这个例子应该算作这个app的用户体验设计缺陷,但是iphone对这类场景体验的原生设计是很不错的。举个经典的例子:用iphone接电话,偶尔需要用键盘输入东西。当手机靠近耳朵,屏幕就变黑,默认为不可触摸,当手机离开了耳朵,黑屏就变为了可触摸,并且默认将键盘显示,这一贴心的考虑让"误触摸"的几率尽量降低。而Android上的同一场景体验简直是个噩梦!
Vincent Tsao

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

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

RecognizerIntent | Android Developers - 0 views

  • Since: API Level 3
    • Vincent Tsao
       
      这样的话,android 1.5 以上的 OS 都使用这个intent了
  • Constants for supporting speech recognition through starting an Intent
Vincent Tsao

Authenticating against App Engine from an Android app - Nick's Blog - 0 views

  • Authentication with App Engine, regardless of where you're doing it, is a three-stage process: Obtain an authentication token. This can be done with ClientLogin for installed apps, for example, or with AuthSub for a webapp. When logging in directly to an application, this is the part of the login process where your user sees a Google signin screen. Take that authentication token, and use it to obtain an authentication cookie. Use that authentication cookie in all subsequent requests.
  • <uses-permission android:name="android.permission.GET_ACCOUNTS"></uses-permission> <uses-permission android:name="android.permission.USE_CREDENTIALS"></uses-permission> <uses-permission android:name="android.permission.INTERNET"></uses-permission>
Vincent Tsao

Android Dev Phone, Ubuntu and VMWare Server : Johan de Koning - 0 views

  • Create a new file (as root) sudo gedit /etc/udev/rules.d/50-android.rules with the following content SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666" Make sure that the text after {idVendor} is the same as the device id found when using the lsusb command. Save and exit the editor To make execution of the rule possible, perform a chmod sudo chmod a+rx /etc/udev/rules.d/50-android.rules To make the rule active, restart udev sudo /etc/init.d/udev restart
  • You can perform a check, to see that the Android Dev Phone is shared with Ubuntu, by opening a Terminal (inside Ubuntu. Open a VMWare Remote Console to make use of the Ubuntu) and type the following command lsusb A list of USB devices will be shown. For example: Bus 002 Device 001: ID ld6b:0001 Linux Foundation 1.1 root hub Bus 001 Device 004: ID 0bb4:0c02 High Tech Computer Corp. Bus 001 Device 001: ID ld6b:0002 Linux Foundation 2.0 root hub
Simon Pan

Service | Android Developers - 0 views

  • avoid
    • Simon Pan
       
      如果在Service裡做了要做的事,它們還是在UI thread裡做事情,而不是在什麼別的thread做事情。但是Service很特別,它又不是一個執行緒,因為通常Service要做的事情都蠻耗時的,萬一Service算是執行緒,那麼就會強碰到系統的ANR機制。
  • A facility for the application to tell the system about something it wants to be doing in the background
  • A facility for an application to expose some of its functionality to other applications.
  • ...3 more annotations...
  • two reasons
  • depending on the value they return from onStartCommand(): START_STICKY is used for services that are explicitly started and stopped as needed,
  • then take the service out of the started state and don't recreate until a future explicit call to Context.startService(Intent).
Vincent Tsao

Binding to Data with AdapterView | Android Developers - 0 views

  • Spinner s2 = (Spinner) findViewById(R.id.spinner2);Cursor cur = managedQuery(People.CONTENT_URI, PROJECTION, null, null);     SimpleCursorAdapter adapter2 = new SimpleCursorAdapter(this,    android.R.layout.simple_spinner_item, // Use a template                                          // that displays a                                          // text view    cur, // Give the cursor to the list adatper    new String[] {People.NAME}, // Map the NAME column in the                                         // people database to...    new int[] {android.R.id.text1}); // The "text1" view defined in                                     // the XML template                                         adapter2.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);s2.setAdapter(adapter2);
Vincent Tsao

运行 Android 的魅族 M9 参数细节出炉 | 谷安--谷奥Android专题站 - 0 views

  • 魅族M9具体参数曝光: 1GHz三星S5PC110处理器 带有HDMI输出接口 三围59.5 mm x 113 mm x 11mm 三种制式:WCDMA, CDMA, TD-SCDMA 3.6英寸触摸屏幕,720×480分辨率 512MB ROM 512MB RAM Android 2.1 Eclair系统 micro SD/TF扩展 500万像素摄像头 蓝牙/WiFi/GPS/电视输出(HDMI 1.3) 1350毫安电池 价格方面,不送耳机的话大概在255欧元左右,带耳机和8GB内置存储的是290欧元,预计将在今年夏天上市。
  •  
    魅族的用户体验一直都很不错,比较看好这款新的android手机
Vincent Tsao

用google adsense的小心了!!!! - China Android Dev | Google Groups - 0 views

  • Sunil回信了。 Hi Luke, Rest assured the apps are fine. We are migrating people over the new system and will let you know when it's complete. Showing false does not impact your earnings or account. 他只字未提Superdroid的事件。
  • http://groups.google.co.nz/group/android-developers/browse_thread/thr... 这个有个账号做adsense网页的,账号被封 又打开的,半年前的事情。 在android developer人多些
Vincent Tsao

How to reference Android default icons on MenuItem.setIcon() - Android Developers | Goo... - 1 views

  • The question is: How do I reference the Android default icons? In XML this would be: android:icon="@android:drawable/ic_menu_info_details
  • android.R.drawable.ic_menu_info_details
Vincent Tsao

Android Developers Blog: Commerce Tracking with Google Analytics for Android - 1 views

  •  
    各位有已经有用Google Analytics for Android来跟踪用户数据了么?
Kiran Kuppa

Android: Dynamic and Custom Title Bars - 0 views

  •  
    Arguably the worst part in playing around with Android is its insistence to put that ugly title bar above everything I do as a default to Activities. Thankfully, the framework allows one to change this behavior.This post is going to explore the ways in which we can create custom title bars and more importantly just how far we can push the limits.
Kiran Kuppa

GridLayout support library for older Android devices - 0 views

  •  
    "This library provides a version of GridLayout that works across all versions of Android 1.5+. As a side effect, this library also includes the lightweight Space as well."
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.
« First ‹ Previous 41 - 60 of 466 Next › Last »
Showing 20 items per page