[android-beginners] Re: [Q] Make the activity blur/dim with startActivityForResult?

2010-07-28 Thread CyanBlue
I've searched/waited quite a few days already and felt I should really
give up...  So, a few more days won't kill me...  :)

Oh, FYI, the above code works great on the Dialog...  It just does not
work with the activity...

Appreciate your help, Justin...

CyanBlue

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: [Q] Make the activity blur/dim with startActivityForResult?

2010-07-27 Thread CyanBlue
Thank you for the reply, Justin...  :)

I tried those suggestions and nothing seem to be working or I might be
blind...

Is there any way you can take a look at the file and see what I am
missing?
   http://www.mediafire.com/?pzm6w9e7ikcy3cx

Thank you very much...

CyanBlue

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] [Q] Make the activity blur/dim with startActivityForResult?

2010-07-27 Thread CyanBlue
Hi...  :)

I am trying to start an activity and have that activity blur/dim over
the current activity just like you do the same with the dialog
widget... and I have tried reasonably all I can find on the web and I
am not able to get it working...  :(

On ActivityMain.java, I am using this code to start a new activity on
button click...

public void onClick(View v)
{
Intent intent = new Intent(ActivityMain.this,
com.cyanblue.activitytest.ActivitySub.class);
startActivityForResult(intent, 0);
}

In onCreate of the ActivitySub, I have tried these two examples which
does not work at all...

getWindow().setFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND,
WindowManager.LayoutParams.FLAG_BLUR_BEHIND);

WindowManager.LayoutParams lp = getWindow().getAttributes();
lp.dimAmount = 0.0f;
getWindow().setAttributes(lp);
getWindow().addFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND);

and I am about to give up after trying this for 4 nights after
work...  and I feel like it is not supposed to work or something...

Does anybody know what I am doing wrong???

I feel like startActivityForResult closes the current activity and run
new activity till it gets the result back not like the dialog which
runs on top of the current activity...  Is there any way to do this on
multiple acitivities???

Thank you...  :)

CyanBlue

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en