Friday, May 14, 2010

[android-developers] Android Blur Background

hi guys,


i have two activities.

i want to make the first activity blur and on top of that i want to
display a text which is in the activity two. just like what they have
done it in the sample.


but when i tried it it didn't work out for me.

this is what i have done
from the first activity

startActivity(new Intent(ViewMessage.this,Blur.class));

and this is the Blur.java class

public class Blur extends Activity {

@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND,
WindowManager.LayoutParams.FLAG_BLUR_BEHIND);
setContentView(R.layout.blur);
}
}

here only the text get displayed the even the previous activity is not
getting displayed

regards,
Randika

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment