playboy

The true joy of the joys is the joy that joys in the joy of others.

 

gingerdroidPosted by Xavier Ducrohet, Android SDK Tech Lead on 06 December 2010 at 8:00 AM

Today we’re announcing a new version of the Android platform — Android 2.3 (Gingerbread). It includes many new platform technologies and APIs to help developers create great apps. Some of the highlights include:

Enhancements for game development: To improve overall responsiveness, we’ve added a new concurrent garbage collector and optimized the platform’s overall event handling. We’ve also given developers native access to more parts of the system by exposing a broad set of native APIs. From native code, applications can now access input and sensor events, EGL/OpenGL ES, OpenSL ES, and assets, as well a new framework for managing lifecycle and windows. For precise motion processing, developers can use several new sensor types, including gyroscope.

Continue reading »

 

Steve JobsThis is the text of the Commencement address by Steve Jobs, CEO of Apple Computer and of Pixar Animation Studios, delivered on June 12, 2005.

I am honored to be with you today at your commencement from one of the finest universities in the world. I never graduated from college. Truth be told, this is the closest I’ve ever gotten to a college graduation. Today I want to tell you three stories from my life. That’s it. No big deal. Just three stories.

The first story is about connecting the dots.

I dropped out of Reed College after the first 6 months, but then stayed around as a drop-in for another 18 months or so before I really quit. So why did I drop out?

Continue reading »

 

Reuters News Pro Applications

Our mobile applications provide you with access to professional-grade news and market data wherever and whenever you want it.

Application features include:

  • Extensive world, business and market news
  • Global financial data
  • Corporate information
  • Personalized stock tab Continue reading »
 

周杰伦 - 对不起

Continue reading »

 

    Android应用程序的国际化与本地化机制是比较完善的,操作起来也比较方便。我们可以把要用到的所有字符串放在res\values目录下的strings.xml文件中,在程序中以R.string.xx的形式来引用它们。把其他语言的字符串放在形如res\values-zh-rCN、res\values-zh-rTW目录下的strings.xml文件中,应用程序会根据手机语言的设置情况自动选择合适的语言。不只是字符串,程序中所用到的图片、音频、布局等资源文件都可以通过这种形式来实现国际化与本地化。以下示例程序实现了字符串和图片文件的国际化与本地化。

Continue reading »

 

    在strings.xml文件中定义的键值对,在程序中我们可以使用R.string.xxx的形式进行调用,但是如果我们要对其中的字符串进行处理,比如把两个字符串连接起来,该怎么操作呢?方法如下:

 final Resources r = this.getBaseContext().getResources();
        String str1 = (String) r.getString(R.string.female);
        String str2 = (String) r.getString(R.string.Selected);
        String str3 = (String) (r.getString(R.string.male) + r.getString(R.string.Selected));
 

main.xml文件

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    >
<TextView
	android:id="@+id/myTextView"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    />
<Button
	android:id="@+id/myButton"
	android:layout_width="fill_parent"
	android:layout_height="wrap_content"
	/>
<TextView
	android:id="@+id/myTextView2"
	android:layout_width="fill_parent"
	android:layout_height="wrap_content"
	/>
</LinearLayout>

Continue reading »

 

1.安装JDK

    下载J2SE 1.5或者1.6,安装后设置好环境变量。

2.安装Eclipse

    下载并安装Eclipse 3.4或者3.5版本。

Continue reading »

© 2010-2012 伟伟软件 Suffusion theme by Sayontan Sinha