Skip to main content

Home/ Groups/ Android Dev
jiang zhan

Send Links from Firefox to an Android Phone - 1 views

  •  
    e things you can try: * send a Google Maps link and the Google Maps app from your phone should handle it * send a link to a YouTube video and the video should start playing on your phone * copy a
  •  
    Good finding
Vincent Tsao

Using the Android Search Dialog | Android Developers - 0 views

  • If your data is stored in a SQLite database on the device, performing a full-text search (using FTS3, rather than a LIKE query) can provide a more robust search across text data and can produce results significantly faster.
  • If your data is stored online, then the perceived search performance might be inhibited by the user's data connection. You might want to display a spinning progress wheel until your search returns.
  • <?xml version="1.0" encoding="utf-8"?><searchable xmlns:android="http://schemas.android.com/apk/res/android"    android:label="@string/app_label"    android:hint="@string/search_hint" ></searchable>
    • Vincent Tsao
       
      这个地方一定要记得在string.xml文件中定义label,并在此处refrence定义好的label key。直接在里面写value是不会work的,得出这个结论我花了2个小时!
    • Vincent Tsao
       
      android:label="@string/app_label" 如果我写成 android:label="test", 铁定不能invoke search,不知道为什么Android要区别对待,我认为这是Android的一个bug
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

ListView/ListActivity limit items until last item reached, like in Android Market - And... - 0 views

  • These applications use an OnScrollListener to detect when the last item is displayed. When this happens, they load more items and add them to the list adapter.
Vincent Tsao

Android Endless List - Stack Overflow - 0 views

  • 5 down vote accepted One solution is to implement an OnScrollListener and make changes (like adding items, etc.) to the ListAdapter at a convenient state in its onScrollStateChanged method. The following ListActivity shows a list of integers, starting with 40, adding 10 per scroll-stop.
  • public class Test extends ListActivity implements OnScrollListener {    Aleph0 adapter = new Aleph0();    protected void onCreate(Bundle savedInstanceState) {        super.onCreate(savedInstanceState);        setListAdapter(adapter);         getListView().setOnScrollListener(this);    }    public void onScroll(AbsListView v, int i, int j, int k) { }    public void onScrollStateChanged(AbsListView v, int state) {        if(state == OnScrollListener.SCROLL_STATE_IDLE) {                adapter.count += 10;                adapter.notifyDataSetChanged();        }    }    class Aleph0 extends BaseAdapter {        int count = 40;        public int getCount() { return count; }        public Object getItem(int pos) { return pos; }        public long getItemId(int pos) { return pos; }        public View getView(int pos, View v, ViewGroup p) {                TextView view = new TextView(Test.this);                view.setText("entry " + pos);                return view;        }    }}
  • You should obviously use separate threads for long running actions (like loading web-data) and might want to indicate progress in the last list item (like the market or gmail apps do).
Vincent Tsao

Adding items to a ListView - Android Developers | Google Groups - 0 views

  • SizzlingSkizzorsProgrammer wrote: > After the listview is already initialized, is it possible to add items > to it during runtime? Just add the new items to the adapter, or the data source that backs up the adapter (if it's a CursorAdapter).
Vincent Tsao

BlindType, 输入法的下一站天后? | 谷安--谷奥Android专题站 - 0 views

  • 根据 BlindType 团队的说法,BlindType 输入法可以根据你输入时触摸屏幕键盘的位置来判断你所输入的字母,而无需你去边看边打了。目前 BlindType 正在为这一输入方式在 Android 机型上实现而努力
Vincent Tsao

NubiNews Blog: Help us diagnose problems - 0 views

  • If you see a weird problem with NubiNews, you can help us diagnose the problem by sending us the "Log File".Install an application called SendLog from the Android Market.Start NubiNews. Proceed until your problem occurs.Go back to the Home Screem and launch SendLog.Tap on the "Send" buttonChoose e-mail address nubinews@gmail.comThanks!中文:可以在Android Market安装一个叫SendLog的程序,然后跑大牛新闻,问题出现之后启动SendLog,点“Send”,发送到我们的邮箱
Vincent Tsao

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

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