[android-developers] How to make Activity with Theme.Dialog modal?

2012-12-14 Thread Blake B.
I have an Activity that is using the Theme.Dialog theme to present a dialog to the user. By default however, when the user touches outside of the dialog window, the touch event is passed to the views of the Activity in the background. For API level 11 devices and higher, I can use the

Re: [android-developers] How to make Activity with Theme.Dialog modal?

2012-12-14 Thread Blake B.
, Blake B. bbuck...@yahoo.comjavascript: wrote: I have an Activity that is using the Theme.Dialog theme to present a dialog to the user. By default however, when the user touches outside of the dialog window, the touch event is passed to the views of the Activity in the background

Re: [android-developers] How to make Activity with Theme.Dialog modal?

2012-12-14 Thread Blake B.
=16dp android:right=16dp android:top=16dp / /shape I'd be curious to know if you still don't see it. Maybe there is something else I'm doing. On Friday, December 14, 2012 3:45:32 PM UTC-6, Mark Murphy (a Commons Guy) wrote: On Fri, Dec 14, 2012 at 4:32 PM, Blake B. bbuck

Re: [android-developers] How to make Activity with Theme.Dialog modal?

2012-12-14 Thread Blake B.
Try this in your manifest. When I set them both to 8, the behavior goes away: uses-sdk android:minSdkVersion=8 android:targetSdkVersion=16 / Blake On Friday, December 14, 2012 4:19:07 PM UTC-6, Mark Murphy (a Commons Guy) wrote: On Fri, Dec 14, 2012 at 4:59 PM, Blake B

[android-developers] SeekBar bug? Calling setThumb(drawable) makes thumb disappear

2011-06-15 Thread Blake B.
I'm using a custom image for the Thumb on my SeekBar. I want to change the image at some points in my app, but whenever setThumb(drawable) is called, the Thumb image disappears. The seekbar still works, but it's like the Thumb is invisible. I've found a few other questions regarding this, but

[android-developers] Re: SeekBar bug? Calling setThumb(drawable) makes thumb disappear

2011-06-15 Thread Blake B.
())); == this is the new call slider.setThumb(d); Regards, Blake On Jun 15, 12:58 pm, Romain Guy romain...@android.com wrote: You probably need to call setBounds() on the drawable to give it a size? On Wed, Jun 15, 2011 at 6:03 AM, Blake B. bbuckle...@yahoo.com wrote: I'm using

[android-developers] Does LG Eve phone support AudioRecord sample rate 8kHz?

2010-05-26 Thread Blake B.
I have a user that is reporting that he can not record on his LG Eve phone at a sample rate greater than 8kHz (8000Hz works, but nothing higher such as 44100, 22050, 11025). Do any of you have an LG Eve phone? Have you tried to use AudioRecord.getMinBufferSize(sampleRateInHz, channelConfig,

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-03-05 Thread Blake B.
Just got my confirmation email also. Rock on! I really would prefer the N1 since I'm with T*Mo, but I have an Open GL app that barfed all over when I ran it on my mother-in-law's Droid, so I could definitely use the Droid as a test platform, but not an everyday phone (at least right now).

[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-03-04 Thread Blake B.
Great idea, Al. I've run into issues (as many of you have as well) both with differing phone hardware behavior and differing Android behavior between versions. It's very frustrating, so maybe we can help each other here and prevent further frustration and potential bad- press for Android.

[android-developers] Re: Call Recording in Andriod ?

2009-12-14 Thread Blake B.
There is an open issue related to this (missing) feature. #2117. If you want to encourage this to take a higher priority, star the issue to be notified of changes. The number of people following the issue seems to give some priority to the issue in Google's eyes.

[android-developers] Re: Alternatives to Multitouch

2009-07-19 Thread Blake B.
I would agree with the previous post - the early demo video on the HTC Magic of using a circular motion for zooming looked even more useful than pinching, since it can be done more easily with a single hand on the phone. It doesn't appear to have made it to the initial releas of the phone, but

[android-developers] Re: How do you handle orientation change for a Cupcake widget?

2009-06-30 Thread Blake B.
Does this imply that EVERY RemoteViews update that I apply to my widget should be capable of COMPLETELY initializing the correct current state of every component on the widget? Right now I am sending more frequent minor updates (that don't include re-setting button listeners, button images,

[android-developers] Re: Update widget from code

2009-06-29 Thread Blake B.
I believe only the same application can push updates to a widget. I know I wouldn't want other apps to be able to send updates to my widget directly. The proper approach would be to handle it with your AppWidgetProvider subclass (remember this is simply a BroadcastReceiver with some help for

[android-developers] How do you handle orientation change for a Cupcake widget?

2009-06-19 Thread Blake B.
Hi, Maybe I'm missing something obvious, but how do you handle orientation changes for a Cupcake desktop widget? When it is initially created, the onUpdate() method of my AppWidgetProvider calls views.setOnClickPendingIntent(buttonID, pendingIntent) to register for my button events, but

[android-developers] How do you handle orientation change for a Cupcake widget?

2009-06-19 Thread Blake B.
Hi, Maybe I'm missing something obvious, but how do you handle orientation changes for a Cupcake desktop widget? When it is initially created, the onUpdate() method of my AppWidgetProvider calls views.setOnClickPendingIntent(buttonID, pendingIntent) to register for my button events, but

[android-developers] Re: How to disable Buttons on a Widget

2009-06-19 Thread Blake B.
that swaps out the drawable used and clears the PendingIntent. Or, keep two buttons in your layout, and visible/gone them as needed. snip Thanks, Blake On Jun 16, 7:19 pm, Blake B. bbuckle...@yahoo.com wrote: I suspected as much with the Google Search widget.  Thanks for clarifying

[android-developers] How to disable Buttons on a Widget

2009-06-16 Thread Blake B.
Is it possible to disable a button on a Cupcake desktop widget? When I attempt to use the RemoteViews.setBoolean(myButtonId, setEnabled, false) approach, I get an error saying that calling setEnabled is not permitted via RemoteViews. The current Google Search widget disables the search button

[android-developers] Can you disable/enable Buttons on a Cupcake desktop widget?

2009-06-16 Thread Blake B.
(updated subject) On Jun 16, 11:36 am, Blake B. bbuckle...@yahoo.com wrote: Is it possible to disable a button on a Cupcake desktop widget? When I attempt to use the RemoteViews.setBoolean(myButtonId, setEnabled, false) approach, I get an error saying that calling setEnabled

[android-developers] Re: How to disable Buttons on a Widget

2009-06-16 Thread Blake B.
I suspected as much with the Google Search widget. Thanks for clarifying. And the results of the grep for @RemotableViewMethod annotation are very useful. Great responses to every question! Thanks Jeff! On Jun 16, 3:25 pm, Jeff Sharkey jshar...@android.com wrote: Is it possible to disable

[android-developers] Re: My good god, bugs in Android brick phone, and it's not difficult to reproduce...

2009-06-04 Thread Blake B.
Can any of the Google team comment on this? I found similar reports on the T-Mobile discussion threads, but no work-arounds other than wipe or replace your phone. I've opened defect 2864: http://code.google.com/p/android/issues/detail?id=2864 On Jun 2, 8:32 pm, Blake B. bbuckle...@yahoo.com

[android-developers] Re: My good god, bugs in Android brick phone, and it's not difficult to reproduce...

2009-06-02 Thread Blake B.
Any update on this? I'm encountering the same crash and would rather not wipe my phone if I don't have to. Safe mode does not work. Phone (stock G1) just keeps cycling at the Android logo image and I have to pull the battery to kill it. I received the Cupcake OTA update on Saturday, and

[android-developers] Re: My good god, bugs in Android brick phone, and it's not difficult to reproduce...

2009-06-02 Thread Blake B.
had allocated, but unmanaged, appWidgetIds. j On Tue, Jun 2, 2009 at 5:19 AM, Blake B. bbuckle...@yahoo.com wrote: Any update on this?  I'm encountering the samecrashand would rather not wipe my phone if I don't have to.  Safe mode does not work.  Phone (stock G1) just keeps cycling

[android-developers] Re: PendingIntent problem

2009-03-25 Thread Blake B.
Intents are cached by the system, and two Intents are not differentiated by their Extras. So your two intents look like the same Intent and the second one is being tossed out. You must differ Intents by their Action/Data/Category. I will sometimes use the Data field to hold a simple ID that is

[android-developers] Re: PendingIntent problem

2009-03-25 Thread Blake B.
of PendingIntent (same operation, same Intent action, data, * categories, and components, and same flags), it will receive a PendingIntent * representing the same token if that is still valid, and can thus call * {...@link #cancel} to remove it. On Mar 25, 7:48 am, Blake B. bbuckle...@yahoo.com

[android-developers] Re: Thread stopping

2009-02-18 Thread Blake B.
You don't need to do anything complicated - use Handler.postDelayed (Runnable r, long delayMS) like Stoyan mentioned. Be sure to keep a reference to your Runnable r so you can call removeCallbacks(r) like Romain mentioned when your activity is pre- empted before the posted Runnable executes.

[android-developers] Re: Selling your apps section in Market help

2009-02-16 Thread Blake B.
Ok, maybe I missed this along the way (or heard comments of this and couldn't believe it to be true), but this statement seems clear in the Setting the price of applications section: If you have previously published an application for free, you cannot change it to have a price. This seems to

[android-developers] Re: A safer way of using SoundPool?

2009-02-16 Thread Blake B.
Great idea, Jon. Thanks for sharing the code. I'm about to start work on sound in my game, so I'll look into using this. Hopefully, Google realizes that many are using SoundPool and will keep the existing API in place for a while, even if deprecated, long enough to migrate apps. I think we

[android-developers] Re: Selling your apps section in Market help

2009-02-16 Thread Blake B.
doing to migrate data between free paid versions of an app? On Feb 16, 8:39 am, Al Sutton a...@funkyandroid.com wrote: Developers could always add a couple of features and charge for the feature added version. Al. Blake B. wrote: Ok, maybe I missed this along the way (or heard comments

[android-developers] Re: Selling your apps section in Market help

2009-02-16 Thread Blake B.
the package name to something line com.blah.nonfree.App and rebuild your apk. It would seem to offer the quickest solution. Al. Blake B. wrote: Your interpretation would make more sense, but that doesn't seem to be the way it's being done. I don't have the option on my current app

[android-developers] SurfaceView transparent through to its parent?

2009-02-11 Thread Blake B.
I have a SurfaceView that is covering a portion of its parent, a RelativeLayout. I have a background image covering the full RelativeLayout area, and this is my Activity's main layout. I would like to have the SurfaceView be transparent so that I can see through to the background image on its

[android-developers] Re: How do you create an MMS message with audio attachment?

2009-01-07 Thread Blake B.
that any EXTRA_STREAM data is an image, without checking the data MIME type. Any other ideas to maybe directly create an MMS message to send? It's hard for me to believe this is completely not possible to do in code. Thanks again, Blake On Jan 5, 8:50 am, Blake B. bbuckle...@yahoo.com wrote: Ok

[android-developers] Re: How do you create an MMS message with audio attachment?

2009-01-05 Thread Blake B.
) { convertMessage(true); addImage(uri); IMAGE IS BEING ASSUMED } } } Will audio attachments via Intents be supported in the cupcake release? (I haven't downloaded it yet myself) Thanks, Blake On Dec 30 2008, 8:52 pm, Blake

[android-developers] Re: What happens to the database when app is upgraded

2009-01-05 Thread Blake B.
When you extend SQLiteOpenHelper, override this method: public void onUpgrade(final SQLiteDatabase db, final int oldVersion, final int newVersion) It will be called when your application is being updated with a newer version. On Jan 5, 8:52 am, Dan Dumont ddum...@gmail.com

[android-developers] How do you create an MMS message with audio attachment?

2008-12-30 Thread Blake B.
Hello all, I am trying to create an MMS message with an audio attachment and a message for the user to view and then click send themselves. If you create a new Message on your own, you are able to attach an audio file (.amr in this case), but how do you do this programatically? When I do this

[android-developers] Re: Tips for Orientation

2008-11-19 Thread Blake B.
Put the android:screenOrientation=sensor as an attribute on each activity in your manifest that you want to be sensor-oriented. Works great! Thx for the tip hackbod! On Nov 18, 3:14 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, Will this setting make the screen change to lanscape using

[android-developers] Re: Any way to have two MediaRecorders recording at once?

2008-11-12 Thread Blake B.
:15 am, Dave [EMAIL PROTECTED] wrote: I don't see a way to do that with the current API. We will be enhancing the audio API's in a future release of the SDK. On Nov 11, 3:14 pm, Blake B. [EMAIL PROTECTED] wrote: Ok, I thought that may be the case. I need to create a sliding window effect

[android-developers] Re: How to debug the real phone G1?

2008-11-12 Thread Blake B.
Here are the complete steps: http://code.google.com/android/intro/develop-and-debug.html#developingondevicehardware I don't know if the adb installs the USB Windows drivers automatically or not, but I installed them myself. After following these steps, I was able to run the Eclipse debugger on

[android-developers] Any way to have two MediaRecorders recording at once?

2008-11-11 Thread Blake B.
Hi all, For my app I need to have two audio recordings that overlap each other - that is, at some points in time there will be two separate audio files being created from the same audio source. I have attempted to use two MediaRecorders and start the second one while the first is still

[android-developers] Re: Any way to have two MediaRecorders recording at once?

2008-11-11 Thread Blake B.
Ok, I thought that may be the case. I need to create a sliding window effect in the recording, so that there is always 15 seconds of audio history recorded. I wanted to stair-step two 20-second recorders so that every 5 seconds I would delete one audio recording file when its history got too