This demonstrates the how to write an activity that looks like + * + *
This demonstrates the how to write an activity that looks like * a pop-up dialog.
*/ public class DialogActivity extends Activity { @@ -47,15 +45,17 @@ public class DialogActivity extends Activity { protected void onCreate(Bundle savedInstanceState) { // Be sure to call the super class. super.onCreate(savedInstanceState); - + requestWindowFeature(Window.FEATURE_LEFT_ICON); - + + // See assets/res/any/layout/dialog_activity.xml for this // view layout definition, which is being set here as // the content of our screen. setContentView(R.layout.dialog_activity); - - getWindow().setFeatureDrawableResource(Window.FEATURE_LEFT_ICON, + getWindow().setTitle("This is just a test"); + + getWindow().setFeatureDrawableResource(Window.FEATURE_LEFT_ICON, android.R.drawable.ic_dialog_alert); Button button = (Button)findViewById(R.id.add); diff --git a/samples/ApiDemos/src/com/example/android/apis/graphics/TriangleActivity.java b/samples/ApiDemos/src/com/example/android/apis/graphics/TriangleActivity.java index 7d7cd4a9f..f67832479 100644 --- a/samples/ApiDemos/src/com/example/android/apis/graphics/TriangleActivity.java +++ b/samples/ApiDemos/src/com/example/android/apis/graphics/TriangleActivity.java @@ -26,8 +26,10 @@ public class TriangleActivity extends Activity { protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mGLView = new GLSurfaceView(this); - mGLView.setEGLConfigChooser(false); mGLView.setRenderer(new StaticTriangleRenderer(this)); + /*ImageView imageView = new ImageView(this); + imageView.setImageResource(R.raw.robot); + setContentView(imageView);*/ setContentView(mGLView); } diff --git a/samples/Honeycomb-Gallery/AndroidManifest.xml b/samples/Honeycomb-Gallery/AndroidManifest.xml index 4776020aa..4f2e802b1 100644 --- a/samples/Honeycomb-Gallery/AndroidManifest.xml +++ b/samples/Honeycomb-Gallery/AndroidManifest.xml @@ -18,8 +18,6 @@ package="com.example.android.hcgallery" android:versionCode="1" android:versionName="1.0"> -