[android-developers] MediaPlayer not working properly - causing sounds to be truncated

2011-01-19 Thread Peter Carpenter
is going to standby. Does anyone have any ideas on what is going on? Are you only allowed to prepare one mediaplayer at a time??? Regards, Peter Carpenter. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email

RE: [android-developers] Re: Scrolling broken in 2.2 ?

2010-10-17 Thread Peter Carpenter
is pretty much guaranteed to not work (and definitely not guaranteed to work.) On Tue, Sep 14, 2010 at 11:39 PM, Peter Carpenter peter.carpen...@skytechnologies.com wrote: My app builds up a custom screen as dictated to me via the users 'application'.  This means that I can end up

RE: [android-developers] Re: Exact Layout that fits a background image

2010-09-26 Thread Peter Carpenter
-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of Martin Sent: Sunday, 26 September 2010 6:23 AM To: Android Developers Subject: [android-developers] Re: Exact Layout that fits a background image On 22 Sep., 01:51, Peter Carpenter peter.carpen

RE: [android-developers] Re: Exact Layout that fits a background image

2010-09-21 Thread Peter Carpenter
somewhere how to do this, or is there an example? If I create my own layout-class, can I still use the Layout-Editor with eclipse? Greetings, Martin On 21 Sep., 02:10, Peter Carpenter peter.carpen...@skytechnologies.com wrote: You can create your own class that extends ViewGroup and override

RE: [android-developers] Exact Layout that fits a background image

2010-09-20 Thread Peter Carpenter
You can create your own class that extends ViewGroup and override the layout/onMeasure functions to explicitly define your own layout. Not sure of how to do this via xml though. -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On

[android-developers] Scrolling broken in 2.2 ?

2010-09-15 Thread Peter Carpenter
My app builds up a custom screen as dictated to me via the users 'application'. This means that I can end up in the situation where I have a parent scrollview and somewhere down the heirachy I can have a listView or a multiline TextView. Both of these scenarios continue to work fine under 2.1,

RE: [android-developers] Scrolling broken in 2.2 ?

2010-09-15 Thread Peter Carpenter
at 11:39 PM, Peter Carpenter peter.carpen...@skytechnologies.com wrote: My app builds up a custom screen as dictated to me via the users 'application'.  This means that I can end up in the situation where I have a parent scrollview and somewhere down the heirachy I can have a listView

RE: [android-developers] Re: Scrolling broken in 2.2 ?

2010-09-15 Thread Peter Carpenter
will not fix your problems. I would reckon the best approach would be to re-design your UI. -Kumar Bibekhttp://techdroid.kbeanie.com On Sep 15, 12:05 pm, Peter Carpenter peter.carpen...@skytechnologies.com wrote: Hey Romain, Thanks for the reply, I can understand why this is not an ideal ui

RE: [android-developers] Re: Scrolling broken in 2.2 ?

2010-09-15 Thread Peter Carpenter
: Scrolling broken in 2.2 ? Umm, Well, Getting back to 2.1 will not fix your problems. I would reckon the best approach would be to re-design your UI. -Kumar Bibek http://techdroid.kbeanie.com On Sep 15, 12:05 pm, Peter Carpenter peter.carpen...@skytechnologies.com wrote: Hey Romain, Thanks

[android-developers] ListView issue (Editors?)

2010-09-07 Thread Peter Carpenter
to counteract this issue. Is there a similar concept in Android? Or is there a better way to do what I'm trying to do? I appreciate your comments, Peter Carpenter. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email

[android-developers] StateListDrawable erases colorfilters???

2010-08-01 Thread Peter Carpenter
Hallo there, I am creating a custom check box in which I wish to support an infinite number of colours for the foreground or the background. To do this I have a background image, and a foreground image which is a tick that will be drawn over the top of the background. To set the colours I am

[android-developers] Re: Clarification on static variables

2009-06-03 Thread Peter Carpenter
Thanks very much Mark Streets of Boston. It's taken me a while to get a grasp of the whole application lifecycle - especially once you throw Services into the mix, but I think I'm starting to get it! :) System.exit() definitely gets me out of the hole for now. Which is great - but as you say

[android-developers] Re: Extremely frustrating = TextView in ScrollView - Scroll to bottom?

2009-05-28 Thread Peter Carpenter
-developers] Re: Extremely frustrating = TextView in ScrollView - Scroll to bottom? On 28 Maj, 01:28, Peter Carpenter peter.carpen...@skytechnologies.com wrote: Hi guys, It appears that plenty of people have asked about this in newsgroups, but no solution offered. textView.setText(s); try

[android-developers] Extremely frustrating = TextView in ScrollView - Scroll to bottom?

2009-05-27 Thread Peter Carpenter
Hi guys, I can't for the life of me work out how to get a text view to be displayed scrolled to the bottom. It appears that plenty of people have asked about this in newsgroups, but no solution offered. textView.setText(s); scrollView.fullScroll(ScrollView.FOCUS_UP); The above

[android-developers] Easy one (hopefully) Inverse preference dependency?

2009-05-22 Thread Peter Carpenter
Hi, I have a preference where I'd like to toggle the state of a preference depending on the state of a checkbox. This works wonderfully if I want something visible when it's checked. However I want another preference to be visible when it's NOT checked. Is there a way to specify

[android-developers] Re: 1.5 api change - broken scrollbar resources

2009-05-14 Thread Peter Carpenter
. On Wed, May 13, 2009 at 10:36 PM, Peter Carpenter peter.carpen...@skytechnologies.com wrote: Hi all, I've just been attempting to upgrade my application to support 1.5 and discovered that I can no longer retrieve a resource for my scrollbar background. My app requires me to draw a scrollbar

[android-developers] 1.5 api change - broken scrollbar resources

2009-05-13 Thread Peter Carpenter
Hi all, I've just been attempting to upgrade my application to support 1.5 and discovered that I can no longer retrieve a resource for my scrollbar background. My app requires me to draw a scrollbar that I can use to control a custom component. Currently I was using the following code (which

[android-developers] Re: Davlik bug? UNEXPECTED TOP-LEVEL EXCEPTION: java.lang.IllegalArgumentException: already added: [classXXX]

2009-05-11 Thread Peter Carpenter
pm, Peter Carpenter peter.carpen...@skytechnologies.com wrote: However for each one of these scenarios I keep getting the following exception thrown by the davlik compiler. [...] UNEXPECTED TOP-LEVEL EXCEPTION: java.lang.IllegalArgumentException: already added: Lau/com/skytechnologies/ecssdk

[android-developers] Davlik bug? UNEXPECTED TOP-LEVEL EXCEPTION: java.lang.IllegalArgumentException: already added: [classXXX]

2009-05-10 Thread Peter Carpenter
Hi all, I am attempting to integrate some previous libraries that we have within my new android project. I have made several attempts including: Importing the code as sub-projects (that are built using the android.jar) Importing the code as jar files (from the

[android-developers] Compiling against a *REAL* android.jar in eclipse???

2009-04-27 Thread Peter Carpenter
Hello everyone, I'd like to be able to extend classes like View and still have access to the protected member variables. Under the standard SDK's, android.jar is only a stub and so access to the protected member variables is not found. (And also all classes tagged as {hide} are hidden)

[android-developers] Re: Compiling against a *REAL* android.jar in eclipse???

2009-04-27 Thread Peter Carpenter
against a *REAL* android.jar in eclipse??? Don't do that. If you aren't writing an app but system code, use the platform build system. On Mon, Apr 27, 2009 at 7:29 PM, Peter Carpenter peter.carpen...@skytechnologies.com wrote: Hello everyone, I'd like to be able to extend classes like

[android-developers] Re: Compiling against a *REAL* android.jar in eclipse???

2009-04-27 Thread Peter Carpenter
to have a result) submit patches to add those features. For the latter, though, keep in mind that we are very restrictive on accepting changes to fundamental parts of the system like this. On Mon, Apr 27, 2009 at 8:13 PM, Peter Carpenter peter.carpen...@skytechnologies.com wrote: Hi Dianne

[android-developers] Re: EditText Tabhost problem

2009-04-20 Thread Peter Carpenter
The editText calls requestLayout every time the text is modified, and this request flows all of the way up the hierarchy. I would have to assume that the onMeasure/onLayout functions for the tab are doing something like clearing the focus, or removing re-adding your editText. Now how to fix

[android-developers] RequestLayout?

2009-04-19 Thread Peter Carpenter
Hello all, I'm really tearing my hair out trying to make a Spinner component behave with an EditText as it's child rather than a TextView. The problem I've getting is that everytime I select an item from the drop down list, I lose the focus ring from the EditText. The cursor is still there,

[android-developers] Re: How to keep focus highlight on ExpandableList group....

2009-04-16 Thread Peter Carpenter
I'm struggling with a similar issue myself at the moment. I traced mine down to the fact that modifying the child component caused it to call RequestLayout(). This in turn, caused the parent to relayout which unfortunately meant removing and replacing the component with a new one - thus the

[android-developers] Accessing internal scrollbar drawable

2009-04-16 Thread Peter Carpenter
Hi, Hopefully this is a simple one. My application requires me to draw a scrollbar myself (and include the old-school physical up/down buttons. I can't do this via XML as all of my screens are generated on the fly by data received over a socket. Like a web browser. Now the drawables I'm after

[android-developers] Re: Accessing internal scrollbar drawable

2009-04-16 Thread Peter Carpenter
(android.R.attr.scrollbarThumbVertical, outValue, true); getResources().getDrawable(outValue.resourceId); j On Wed, Apr 15, 2009 at 11:12 PM, Peter Carpenter peter.carpen...@skytechnologies.com wrote: Hi, Hopefully this is a simple one. My application requires me to draw a scrollbar myself

[android-developers] Re: Editable Spinner - 95% of the way there - But need some backup!!

2009-04-15 Thread Peter Carpenter
Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of Peter Carpenter Sent: Tuesday, 14 April 2009 3:26 PM To: android-developers@googlegroups.com Subject: [android-developers] Editable Spinner - 95% of the way there - But need some backup!! Hi

[android-developers] Re: TextView.setText doesn't update

2009-04-14 Thread Peter Carpenter
Hi, I'm not sure which thread timers fire in, but have you tried calling the setText explicitly from the UI thread? final String timeSinceUpdate = tracker.getUpdateAge(); runOnUiThread(new Runnable() { public void run() { mMyTextView .setText(Current location ( + timeSinceUpdate

[android-developers] Editable Spinner - 95% of the way there - But need some backup!!

2009-04-14 Thread Peter Carpenter
Hi all, I've been slugging away at trying to get an editable spinner component working. I've managed to get 95% of the way there but must confess I'm lost as to how the focus/layout system works within android - especially inside of this thing they call an AdapterView... What I have working: