Is modeless window supported in Android?

by ferne.ych » Mon, 23 Jun 2008 10:15:56 GMT


Sponsored Links
 Hi all,

    Is modeless window supported in Android? Or can I run an Activity
like running a Dialog (If I click the area outside of its size, it
will disappear)?

Best regards
--~--~---------~--~----~------------~-------~--~----~



Is modeless window supported in Android?

by hackbod » Mon, 23 Jun 2008 14:19:23 GMT


 For an activity that looks like a dialog, in your manifest just use
android:theme="Theme.Dialog".

For modeless windows, there are flags in WindowManager.LayoutParams
that can be used to the input behavior of a window (though you
probably only want to use these with dialog windows created inside of
an activity, not on an activity window itself).



--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Is modeless window supported in Android?

by ferne.ych » Mon, 23 Jun 2008 17:16:16 GMT


 Hi hackbod,

    Thanks a lot! The "Theme.Dialog" does work.
    But could you pls tell me which flag in WindowManager.LayoutParams
can be used to the input behavior of a window? I tried some but none
seemed to do the job.

Best regards




--~--~---------~--~----~------------~-------~--~----~



Is modeless window supported in Android?

by hackbod » Tue, 24 Jun 2008 07:42:35 GMT


Is modeless window supported in Android?

by ferne.ych » Thu, 26 Jun 2008 11:44:09 GMT


 Hi hackbod,

    Actually, what I want to do is:
    1. run a activity with the theme of "Theme.Dialog". Supposing this
activity is running on the homescreen, so there are some icons of
applications on its background.
    2. click an icon, the application witch is clicked will be run.

    Is it possible to do this?

Best regards.







--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. OpenGL ES 2.0 for Live Wallpapers

I am trying to find a way to use OpenGL ES 2.0 in a live wallpaper (I
need to use shaders to implement the algorithm.)  I have a class that
implements GLSurfaceView.Renderer and runs fine in an activity with a
GLSurfaceView.  I searched and found Robert Green's
GLWallpaperService, but the code is based on an old GLSurfaceView and
does not have the method setEGLContextClientVersion, which I need in
order to enable OpenGL ES 2.0.

Has anyone managed to make a live wallpaper with OpenGL ES 2.0?  If
so, I would appreciate help in writing the WallpaperService to run a
Renderer that already works in a GLSurfaceView.

-- 

2. How to rotate?

Hi,

    I am trying to rotate an image for every 3 secs, but it's not working. I
did like this
but not working..what may be the reason..?

public class TimerEx extends Activity {
 Timer timer;
     ImageView image;
 Bitmap bMap = null;
 Bitmap bitmap;
Matrix mat = new Matrix();
 @Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
System.out.println("Inside create");
 image = (ImageView) findViewById(R.id.test_image);
 bMap = BitmapFactory.decodeResource(getResources(), R.drawable.image);
      image.setImageBitmap(bMap);
      timer=new Timer();
      timer.schedule(new UpdateImage(),100,3000);
       }
class UpdateImage extends TimerTask
{
@Override
public void run() {
mat.postRotate(45);
bitmap=Bitmap.createBitmap(bMap,0,0, bMap.getWidth(), bMap.getHeight(),
 mat, false);
image.setImageBitmap(bitmap);
}
}
}

-- 

3. Zygote process is restarting?

4. [WTA] Gis application in Android

5. Implementing a grid with horizontal, vertical and diagonal scroll

6. What kind of system images *can* you run in the emulator..?

7. Anyone ever used androidpit's lvl mechanism? Is it trustworthy?