<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments for Stealthcopter.com</title>
	<atom:link href="http://www.stealthcopter.com/blog/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.stealthcopter.com/blog</link>
	<description>Android, Linux, Python and stealthcopters</description>
	<lastBuildDate>Wed, 01 Feb 2012 04:30:45 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>Comment on Making Prettier Buttons in android; XML (rollover,selection &amp; focus effects), 9patch images and transparency by Ingersoll</title>
		<link>http://www.stealthcopter.com/blog/2010/08/making-prettier-buttons-in-android-xml-rolloverselection-focus-effects-9patch-images-and-transparency/comment-page-1/#comment-6795</link>
		<dc:creator>Ingersoll</dc:creator>
		<pubDate>Wed, 01 Feb 2012 04:30:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.stealthcopter.com/blog/?p=980#comment-6795</guid>
		<description>Hi, I have a problem with selector.xml. I have a button were am using background calling selector file. Sometimes when am navigating through other screen and coming back to that screen. Button&#039;s background image is missing. Its failed to load.. Can you anyone please help in this..........</description>
		<content:encoded><![CDATA[<p>Hi, I have a problem with selector.xml. I have a button were am using background calling selector file. Sometimes when am navigating through other screen and coming back to that screen. Button&#8217;s background image is missing. Its failed to load.. Can you anyone please help in this&#8230;&#8230;&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Wordcube feedback by Maureen Hanley</title>
		<link>http://www.stealthcopter.com/blog/2010/03/wordcube-feedback/comment-page-2/#comment-6779</link>
		<dc:creator>Maureen Hanley</dc:creator>
		<pubDate>Sun, 29 Jan 2012 22:16:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.stealthcopter.com/blog/?p=783#comment-6779</guid>
		<description>On today&#039;s wordcube, Jan 29, why is oaked not a valid word? Wine is oaked...</description>
		<content:encoded><![CDATA[<p>On today&#8217;s wordcube, Jan 29, why is oaked not a valid word? Wine is oaked&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Android: Context menu example (on long press, gridview) by Chris</title>
		<link>http://www.stealthcopter.com/blog/2010/04/android-context-menu-example-on-long-press-gridview/comment-page-1/#comment-6756</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Thu, 26 Jan 2012 13:45:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.stealthcopter.com/blog/?p=582#comment-6756</guid>
		<description>Hello Mat,

I&#039;m having trouble differentiating between which button is pressed to bring up the context menu and then get this working into the functions.

Currently I have this;

public void function1(int id){
	// save ring tone function
    switch (id) {
    	case test:
    	Toast.makeText(this, &quot;TEST BUTTON PRESSED&quot;, Toast.LENGTH_SHORT).show();
    	
    	case test2:
    	Toast.makeText(this, &quot;TEST2 BUTTON PRESSED&quot;, Toast.LENGTH_SHORT).show();
    }
}

Where test and test2 are buttons which bring up the context menu but it just doesn&#039;t seem to be working? Am I totally of course here as I&#039;m very new to Java programming.

Any suggestions?
Thanks.</description>
		<content:encoded><![CDATA[<p>Hello Mat,</p>
<p>I&#8217;m having trouble differentiating between which button is pressed to bring up the context menu and then get this working into the functions.</p>
<p>Currently I have this;</p>
<p>public void function1(int id){<br />
	// save ring tone function<br />
    switch (id) {<br />
    	case test:<br />
    	Toast.makeText(this, &#8220;TEST BUTTON PRESSED&#8221;, Toast.LENGTH_SHORT).show();</p>
<p>    	case test2:<br />
    	Toast.makeText(this, &#8220;TEST2 BUTTON PRESSED&#8221;, Toast.LENGTH_SHORT).show();<br />
    }<br />
}</p>
<p>Where test and test2 are buttons which bring up the context menu but it just doesn&#8217;t seem to be working? Am I totally of course here as I&#8217;m very new to Java programming.</p>
<p>Any suggestions?<br />
Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Android: Blurring and dimming background windows from dialogs by SOurabh</title>
		<link>http://www.stealthcopter.com/blog/2010/01/android-blurring-and-dimming-background-windows-from-dialogs/comment-page-1/#comment-6737</link>
		<dc:creator>SOurabh</dc:creator>
		<pubDate>Sat, 21 Jan 2012 09:01:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.stealthcopter.com/blog/?p=463#comment-6737</guid>
		<description>I want to do it on pop up  of POPUPWINDOW.I tried but it is not working</description>
		<content:encoded><![CDATA[<p>I want to do it on pop up  of POPUPWINDOW.I tried but it is not working</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Android: Requesting root access in your app by Diario de un androide &#187; Como hacer que una aplicación solicite permisos de superusuario</title>
		<link>http://www.stealthcopter.com/blog/2010/01/android-requesting-root-access-in-your-app/comment-page-1/#comment-6718</link>
		<dc:creator>Diario de un androide &#187; Como hacer que una aplicación solicite permisos de superusuario</dc:creator>
		<pubDate>Wed, 18 Jan 2012 16:32:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.stealthcopter.com/blog/?p=457#comment-6718</guid>
		<description>[...] Inspirado en el c&#243;digo de ésta web. [...]</description>
		<content:encoded><![CDATA[<p>[...] Inspirado en el c&oacute;digo de ésta web. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Android: Saving a sound file to SD from resource and setting as ringtone by Fernando Boaglio</title>
		<link>http://www.stealthcopter.com/blog/2010/01/android-saving-a-sound-file-to-sd-from-resource-and-setting-as-ringtone/comment-page-2/#comment-6715</link>
		<dc:creator>Fernando Boaglio</dc:creator>
		<pubDate>Wed, 18 Jan 2012 03:22:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.stealthcopter.com/blog/?p=559#comment-6715</guid>
		<description>Excellent post, help me a lot!</description>
		<content:encoded><![CDATA[<p>Excellent post, help me a lot!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Android: Soundpool vs MediaPlayer (focus on soundboards and memory problems) by mat</title>
		<link>http://www.stealthcopter.com/blog/2010/08/android-soundpool-vs-mediaplayer-focus-on-soundboards-and-memory-problems/comment-page-1/#comment-6700</link>
		<dc:creator>mat</dc:creator>
		<pubDate>Fri, 13 Jan 2012 16:30:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.stealthcopter.com/blog/?p=972#comment-6700</guid>
		<description>@Jason, lol fixed.</description>
		<content:encoded><![CDATA[<p>@Jason, lol fixed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Android: Soundpool vs MediaPlayer (focus on soundboards and memory problems) by Jason</title>
		<link>http://www.stealthcopter.com/blog/2010/08/android-soundpool-vs-mediaplayer-focus-on-soundboards-and-memory-problems/comment-page-1/#comment-6699</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Fri, 13 Jan 2012 16:14:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.stealthcopter.com/blog/?p=972#comment-6699</guid>
		<description>&quot;Below is a few screenshots of my current soundboards on the market&quot;

A person who mistreats the English language in this way are an idiot.</description>
		<content:encoded><![CDATA[<p>&#8220;Below is a few screenshots of my current soundboards on the market&#8221;</p>
<p>A person who mistreats the English language in this way are an idiot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Android: Grouping onClickListeners together by implementation in an activity by sameer</title>
		<link>http://www.stealthcopter.com/blog/2010/04/android-grouping-onclicklisteners-together-by-implementation-in-an-activity/comment-page-1/#comment-6697</link>
		<dc:creator>sameer</dc:creator>
		<pubDate>Fri, 13 Jan 2012 13:43:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.stealthcopter.com/blog/?p=857#comment-6697</guid>
		<description>thans for ur help....was good to see my small code started working thanx bro</description>
		<content:encoded><![CDATA[<p>thans for ur help&#8230;.was good to see my small code started working thanx bro</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Wordcube feedback by Avigail</title>
		<link>http://www.stealthcopter.com/blog/2010/03/wordcube-feedback/comment-page-2/#comment-6696</link>
		<dc:creator>Avigail</dc:creator>
		<pubDate>Fri, 13 Jan 2012 13:11:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.stealthcopter.com/blog/?p=783#comment-6696</guid>
		<description>Hi, In today&#039;s wordcube (13 January) why is &quot;risk&quot; not a valid word???</description>
		<content:encoded><![CDATA[<p>Hi, In today&#8217;s wordcube (13 January) why is &#8220;risk&#8221; not a valid word???</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Programming Android Apps: SDK and Eclipse (ubuntu) by Catalin</title>
		<link>http://www.stealthcopter.com/blog/2010/01/programming-android-apps-sdk-and-eclipse-ubuntu/comment-page-1/#comment-6678</link>
		<dc:creator>Catalin</dc:creator>
		<pubDate>Sat, 07 Jan 2012 20:09:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.stealthcopter.com/blog/?p=382#comment-6678</guid>
		<description>I have problem with AVD emulator . Start and I wait and wait... I think is my Athlon XP 1700 ...  or something about settings ...</description>
		<content:encoded><![CDATA[<p>I have problem with AVD emulator . Start and I wait and wait&#8230; I think is my Athlon XP 1700 &#8230;  or something about settings &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Utilising the notification system in KDE or Gnome in bash scripts (ubuntu 9.10 / linux) by thirdy</title>
		<link>http://www.stealthcopter.com/blog/2010/02/utilising-the-notification-system-in-kde-or-gnome-in-bash-scripts-ubuntu-9-10-linux/comment-page-1/#comment-6666</link>
		<dc:creator>thirdy</dc:creator>
		<pubDate>Wed, 04 Jan 2012 03:43:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.stealthcopter.com/blog/?p=699#comment-6666</guid>
		<description>Thanks! I just got to make a simple script to notify &amp; then activate the screensaver (for 10s) for every 20m to rest my eyes :)
I&#039;ll be posting this on my blog</description>
		<content:encoded><![CDATA[<p>Thanks! I just got to make a simple script to notify &amp; then activate the screensaver (for 10s) for every 20m to rest my eyes <img src='http://www.stealthcopter.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> <br />
I&#8217;ll be posting this on my blog</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Photos with my new usb microscope (20X-400X 1.3MP Digital Microscope) by Bead</title>
		<link>http://www.stealthcopter.com/blog/2010/09/photos-with-my-new-usb-microscope-20x-400x-1-3mp-digital-microscope/comment-page-1/#comment-6638</link>
		<dc:creator>Bead</dc:creator>
		<pubDate>Sat, 31 Dec 2011 06:10:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.stealthcopter.com/blog/?p=987#comment-6638</guid>
		<description>Hi there. Great post. I realise that it&#039;s over a year old, but was wondering if you could help me with something. I recently got a micrscope that looks identical to your old one (minus the button), that&#039;s also 20-200x.
Here&#039;s a shot of the &#039;P&#039; on a 10p (http://i.imgur.com/MRfOG.jpg), and as you can see it looks almost identical to your one. The thing is, you have a min and max zoom. Are these both taken with the object at the same distance? I can only ever get one focal point. I&#039;m not sure if its something I&#039;m doing, or if my micrscope just isn&#039;t very good (it was dirt cheap, which is why I bought it).
The second thing I want to ask is, did you ever manage to take still shots at a resolution higher than 640x480? My microscope claims to be 2mp, but there is no still pin format for 1600x1200 (or anything larger than VGA)</description>
		<content:encoded><![CDATA[<p>Hi there. Great post. I realise that it&#8217;s over a year old, but was wondering if you could help me with something. I recently got a micrscope that looks identical to your old one (minus the button), that&#8217;s also 20-200x.<br />
Here&#8217;s a shot of the &#8216;P&#8217; on a 10p (<a href="http://i.imgur.com/MRfOG.jpg" rel="nofollow">http://i.imgur.com/MRfOG.jpg</a>), and as you can see it looks almost identical to your one. The thing is, you have a min and max zoom. Are these both taken with the object at the same distance? I can only ever get one focal point. I&#8217;m not sure if its something I&#8217;m doing, or if my micrscope just isn&#8217;t very good (it was dirt cheap, which is why I bought it).<br />
The second thing I want to ask is, did you ever manage to take still shots at a resolution higher than 640&#215;480? My microscope claims to be 2mp, but there is no still pin format for 1600&#215;1200 (or anything larger than VGA)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Android: Saving a sound file to SD from resource and setting as ringtone by Tommy</title>
		<link>http://www.stealthcopter.com/blog/2010/01/android-saving-a-sound-file-to-sd-from-resource-and-setting-as-ringtone/comment-page-2/#comment-6632</link>
		<dc:creator>Tommy</dc:creator>
		<pubDate>Wed, 28 Dec 2011 18:07:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.stealthcopter.com/blog/?p=559#comment-6632</guid>
		<description>@mrJ05hua I am encountering the same problem you were and I can not figure it out. After googling I found this site. How did you set up the call of your arrays in the function that saves the file, well chooses the file the save? I know this is old but hey maybe you will reply :) Thanks.</description>
		<content:encoded><![CDATA[<p>@mrJ05hua I am encountering the same problem you were and I can not figure it out. After googling I found this site. How did you set up the call of your arrays in the function that saves the file, well chooses the file the save? I know this is old but hey maybe you will reply <img src='http://www.stealthcopter.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Android: Adding styling to a text (bold italic etc..) by Michael</title>
		<link>http://www.stealthcopter.com/blog/2010/01/android-adding-styling-to-a-text-bold-italic-etc/comment-page-1/#comment-6627</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Tue, 27 Dec 2011 19:34:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.stealthcopter.com/blog/?p=416#comment-6627</guid>
		<description>Thanks very much. This is the only Gridview I got working now.

This is my res/layou/main.xml:

    

        
        

    

and this is how I call it in the Activity:
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);
		
		DisplayMetrics metrics = new DisplayMetrics();
		getWindowManager().getDefaultDisplay().getMetrics(metrics);
		
		GridView gridview = (GridView)findViewById(R.id.gridView1);
	    gridview.setAdapter(new MonthAdapter(this, 11, 2011, metrics));

	    gridview.setOnItemClickListener(new OnItemClickListener() {
            public void onItemClick(AdapterView parent, View v, int position, long id) {
                Toast.makeText(CanTimeActivity.this, &quot;&quot; + position, Toast.LENGTH_SHORT).show();
            }
        });</description>
		<content:encoded><![CDATA[<p>Thanks very much. This is the only Gridview I got working now.</p>
<p>This is my res/layou/main.xml:</p>
<p>and this is how I call it in the Activity:<br />
	public void onCreate(Bundle savedInstanceState) {<br />
		super.onCreate(savedInstanceState);<br />
		setContentView(R.layout.main);</p>
<p>		DisplayMetrics metrics = new DisplayMetrics();<br />
		getWindowManager().getDefaultDisplay().getMetrics(metrics);</p>
<p>		GridView gridview = (GridView)findViewById(R.id.gridView1);<br />
	    gridview.setAdapter(new MonthAdapter(this, 11, 2011, metrics));</p>
<p>	    gridview.setOnItemClickListener(new OnItemClickListener() {<br />
            public void onItemClick(AdapterView parent, View v, int position, long id) {<br />
                Toast.makeText(CanTimeActivity.this, &#8220;&#8221; + position, Toast.LENGTH_SHORT).show();<br />
            }<br />
        });</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Wordcube feedback by Johnny</title>
		<link>http://www.stealthcopter.com/blog/2010/03/wordcube-feedback/comment-page-2/#comment-6617</link>
		<dc:creator>Johnny</dc:creator>
		<pubDate>Sun, 25 Dec 2011 21:30:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.stealthcopter.com/blog/?p=783#comment-6617</guid>
		<description>This is a game I play everyday whenever I have a few minutes to spare. I recently switched to using an iPhone instead of a droid. I&#039;d love to see a version of the app available on iTunes. I can access the website on the phone, but the interface is a little slow to respond and overlaps kind of oddly. I love this game.. Even if it doesn&#039;t think &quot;guitar&quot; is a word. Keep up the good work guys.</description>
		<content:encoded><![CDATA[<p>This is a game I play everyday whenever I have a few minutes to spare. I recently switched to using an iPhone instead of a droid. I&#8217;d love to see a version of the app available on iTunes. I can access the website on the phone, but the interface is a little slow to respond and overlaps kind of oddly. I love this game.. Even if it doesn&#8217;t think &#8220;guitar&#8221; is a word. Keep up the good work guys.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Android: Blurring and dimming background windows from dialogs by Praveen</title>
		<link>http://www.stealthcopter.com/blog/2010/01/android-blurring-and-dimming-background-windows-from-dialogs/comment-page-1/#comment-6610</link>
		<dc:creator>Praveen</dc:creator>
		<pubDate>Thu, 22 Dec 2011 12:30:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.stealthcopter.com/blog/?p=463#comment-6610</guid>
		<description>@BILL
You should create the alertdialog from the builder.
AlertDialog  a = eula.create();
a.show();
and then call a.getwindows().getattribues() on the alert dialog. 
Without showing the alert dialog get window will fail.</description>
		<content:encoded><![CDATA[<p>@BILL<br />
You should create the alertdialog from the builder.<br />
AlertDialog  a = eula.create();<br />
a.show();<br />
and then call a.getwindows().getattribues() on the alert dialog.<br />
Without showing the alert dialog get window will fail.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Wordcube feedback by Paul</title>
		<link>http://www.stealthcopter.com/blog/2010/03/wordcube-feedback/comment-page-2/#comment-6593</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Sun, 18 Dec 2011 22:16:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.stealthcopter.com/blog/?p=783#comment-6593</guid>
		<description>From wordcube 2011 Dec 18: WOTOHDSTI
Not included: soho,

From wordcube 2011 Dec 17: DEADNEDLI
Not included: dane, laiden, nile

I know you&#039;re busy with your thesis but you might want to let your users know what dictionary you are using. I use wordcube almost every day. Thanks very much
Paul</description>
		<content:encoded><![CDATA[<p>From wordcube 2011 Dec 18: WOTOHDSTI<br />
Not included: soho,</p>
<p>From wordcube 2011 Dec 17: DEADNEDLI<br />
Not included: dane, laiden, nile</p>
<p>I know you&#8217;re busy with your thesis but you might want to let your users know what dictionary you are using. I use wordcube almost every day. Thanks very much<br />
Paul</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Wordcube feedback by Paul</title>
		<link>http://www.stealthcopter.com/blog/2010/03/wordcube-feedback/comment-page-2/#comment-6589</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Sun, 18 Dec 2011 03:33:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.stealthcopter.com/blog/?p=783#comment-6589</guid>
		<description>Some words are not included at times. I&#039;d like to know what dictionary is being used.</description>
		<content:encoded><![CDATA[<p>Some words are not included at times. I&#8217;d like to know what dictionary is being used.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Android: Blurring and dimming background windows from dialogs by Bill</title>
		<link>http://www.stealthcopter.com/blog/2010/01/android-blurring-and-dimming-background-windows-from-dialogs/comment-page-1/#comment-6586</link>
		<dc:creator>Bill</dc:creator>
		<pubDate>Fri, 16 Dec 2011 16:30:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.stealthcopter.com/blog/?p=463#comment-6586</guid>
		<description>I cannot get this to work.  Any help is greatly appreciated.  It states that &quot;The method getWindow() is undefined for the type AlertDialog.Builder&quot;.  Here&#039;s the code I&#039;m using:

    public static void showEula(final boolean accepted, final Activity activity) {
        AlertDialog.Builder eula = new AlertDialog.Builder(activity)
                .setTitle(R.string.eula_title)
                .setIcon(android.R.drawable.ic_dialog_info)
                .setMessage(activity.getString(R.raw.eula))
                .setCancelable(accepted);
                
        if (accepted) {
            // If they&#039;ve accepted the EULA allow, show an OK to dismiss.
            eula.setPositiveButton(android.R.string.ok,
                    new DialogInterface.OnClickListener() {
                        public void onClick(DialogInterface dialog, int which) {
                            dialog.dismiss();
                        }
                    });
        } else {
            // If they haven&#039;t accepted the EULA allow, show accept/decline buttons and exit on
            // decline.
            eula
                    .setPositiveButton(R.string.accept,
                            new android.content.DialogInterface.OnClickListener() {
                                public void onClick(DialogInterface dialog, int which) {
                                    setAcceptedEula(activity);
                                    dialog.dismiss();
                                }
                            })
                    .setNegativeButton(R.string.decline,
                            new android.content.DialogInterface.OnClickListener() {
                                public void onClick(DialogInterface dialog, int which) {
                                    dialog.cancel();
                                    activity.finish();
                                }
                            });
        }
        eula.show();
        WindowManager.LayoutParams lp = eula.getWindow().getAttributes();
        lp.dimAmount = 0.0F;
        eula.getWindow().setAttributes(lp);
        eula.getWindow().addFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND);

    }</description>
		<content:encoded><![CDATA[<p>I cannot get this to work.  Any help is greatly appreciated.  It states that &#8220;The method getWindow() is undefined for the type AlertDialog.Builder&#8221;.  Here&#8217;s the code I&#8217;m using:</p>
<p>    public static void showEula(final boolean accepted, final Activity activity) {<br />
        AlertDialog.Builder eula = new AlertDialog.Builder(activity)<br />
                .setTitle(R.string.eula_title)<br />
                .setIcon(android.R.drawable.ic_dialog_info)<br />
                .setMessage(activity.getString(R.raw.eula))<br />
                .setCancelable(accepted);</p>
<p>        if (accepted) {<br />
            // If they&#8217;ve accepted the EULA allow, show an OK to dismiss.<br />
            eula.setPositiveButton(android.R.string.ok,<br />
                    new DialogInterface.OnClickListener() {<br />
                        public void onClick(DialogInterface dialog, int which) {<br />
                            dialog.dismiss();<br />
                        }<br />
                    });<br />
        } else {<br />
            // If they haven&#8217;t accepted the EULA allow, show accept/decline buttons and exit on<br />
            // decline.<br />
            eula<br />
                    .setPositiveButton(R.string.accept,<br />
                            new android.content.DialogInterface.OnClickListener() {<br />
                                public void onClick(DialogInterface dialog, int which) {<br />
                                    setAcceptedEula(activity);<br />
                                    dialog.dismiss();<br />
                                }<br />
                            })<br />
                    .setNegativeButton(R.string.decline,<br />
                            new android.content.DialogInterface.OnClickListener() {<br />
                                public void onClick(DialogInterface dialog, int which) {<br />
                                    dialog.cancel();<br />
                                    activity.finish();<br />
                                }<br />
                            });<br />
        }<br />
        eula.show();<br />
        WindowManager.LayoutParams lp = eula.getWindow().getAttributes();<br />
        lp.dimAmount = 0.0F;<br />
        eula.getWindow().setAttributes(lp);<br />
        eula.getWindow().addFlags(WindowManager.LayoutParams.FLAG_BLUR_BEHIND);</p>
<p>    }</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Python: Cryptography Caesar shift encryption (shift cipher) by Learning by simulacron3 - Pearltrees</title>
		<link>http://www.stealthcopter.com/blog/2009/12/python-cryptography-caesar-shift-encryption-shift-cipher/comment-page-1/#comment-6568</link>
		<dc:creator>Learning by simulacron3 - Pearltrees</dc:creator>
		<pubDate>Wed, 14 Dec 2011 00:19:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.stealthcopter.com/blog/?p=271#comment-6568</guid>
		<description>[...] Python: Cryptography Caesar shift encryption (shift cipher) &#124; Stealthcopter.com plaintext= &quot;the cat sat on the mat&quot; print &quot;Plaintext:&quot; , plaintext return ciphertext [...]</description>
		<content:encoded><![CDATA[<p>[...] Python: Cryptography Caesar shift encryption (shift cipher) | Stealthcopter.com plaintext= &quot;the cat sat on the mat&quot; print &quot;Plaintext:&quot; , plaintext return ciphertext [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Making Prettier Buttons in android; XML (rollover,selection &amp; focus effects), 9patch images and transparency by Darie</title>
		<link>http://www.stealthcopter.com/blog/2010/08/making-prettier-buttons-in-android-xml-rolloverselection-focus-effects-9patch-images-and-transparency/comment-page-1/#comment-6546</link>
		<dc:creator>Darie</dc:creator>
		<pubDate>Fri, 09 Dec 2011 13:16:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.stealthcopter.com/blog/?p=980#comment-6546</guid>
		<description>Sorry , you do not show us an example of button_pressed image for example. I find you post rather useless if it is not complete explanation of how to do those kinds of buttons...</description>
		<content:encoded><![CDATA[<p>Sorry , you do not show us an example of button_pressed image for example. I find you post rather useless if it is not complete explanation of how to do those kinds of buttons&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Android: Eclipse and problems with dynamic tables (adding rows) by MattTapp</title>
		<link>http://www.stealthcopter.com/blog/2010/01/android-eclipse-and-problems-with-dynamic-tables-adding-rows/comment-page-1/#comment-6508</link>
		<dc:creator>MattTapp</dc:creator>
		<pubDate>Fri, 02 Dec 2011 20:01:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.stealthcopter.com/blog/?p=494#comment-6508</guid>
		<description>Thanks mate!
I was struggling with it for an hour!</description>
		<content:encoded><![CDATA[<p>Thanks mate!<br />
I was struggling with it for an hour!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on DigiMicro 200X Zooming USB Digital Microscope in ubuntu (linux) by Angela</title>
		<link>http://www.stealthcopter.com/blog/2010/03/digimicro-200x-zooming-usb-digital-microscope-in-ubuntu-linux/comment-page-1/#comment-6497</link>
		<dc:creator>Angela</dc:creator>
		<pubDate>Thu, 01 Dec 2011 23:38:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.stealthcopter.com/blog/?p=785#comment-6497</guid>
		<description>Just set it up but I cannot focus it for some reason.  :-(  What am I doing wrong?  Please help.  Thanks!</description>
		<content:encoded><![CDATA[<p>Just set it up but I cannot focus it for some reason.  <img src='http://www.stealthcopter.com/blog/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' />   What am I doing wrong?  Please help.  Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Wordcube feedback by Sanjiv</title>
		<link>http://www.stealthcopter.com/blog/2010/03/wordcube-feedback/comment-page-2/#comment-6392</link>
		<dc:creator>Sanjiv</dc:creator>
		<pubDate>Sun, 27 Nov 2011 03:59:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.stealthcopter.com/blog/?p=783#comment-6392</guid>
		<description>Small glitch: your solutions don&#039;t include words like lays, corgi, coir. Otherwise, Word Cube is great fun, I enjoy doing it every day!</description>
		<content:encoded><![CDATA[<p>Small glitch: your solutions don&#8217;t include words like lays, corgi, coir. Otherwise, Word Cube is great fun, I enjoy doing it every day!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

