tempest on January 23rd, 2009

20号中午收到盼望已久的G1,兴奋呀,急不可待的拿出来操作早在模拟机上就已熟悉的软件。Market, Wifi, Gmail, Maps等等,谁知新鲜劲还没有过足24小时,我的G1就罢工了。在用USB充电时忽然PowerOff了,怎么折腾都没反应。联系了Android Dev Support, 对方答复如果没有在新机器上做过任何开发可以process it for a return. 按要求发出相应的信息,2天过去了石沉大海。
——————————————————
Dear Tempest,
Have you done any software development work on this device? If not – we will process it for a return.  We will need the following information from you:
- Purchase order number (2356…)
- IMEI serial number of the phone
- Reason for the return
Please email [...]

Continue reading about 点太背,我的G1呀!

猪头小队长 on January 4th, 2009

G1的屏幕的分辨率是320×480,虽说不小但也谈不上大,所以有的应用要使用起来,最好还是希望把状态栏(Status Bar)和标题栏(Title Bar)也隐藏了,这样就可以有更大的屏幕空间给应用程序。

@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);

final Window win = getWindow();
// No Statusbar
win.setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);

// No Titlebar
requestWindowFeature(Window.FEATURE_NO_TITLE);

setContentView(R.layout.mylayout);
}

摘自anddev

Continue reading about 如何设置隐藏标题栏和状态栏?