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

2011-01-19 Thread Peter Carpenter
ck 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

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

2010-10-17 Thread Peter Carpenter
stView inside a ScrollView. The behavior for such a > setup is pretty much guaranteed to not work (and definitely not > guaranteed to work.) > > On Tue, Sep 14, 2010 at 11:39 PM, Peter Carpenter > wrote: > > My app builds up a custom screen as dictated to me via the users > &

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

2010-09-26 Thread Peter Carpenter
essage- From: android-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 wro

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

2010-09-21 Thread Peter Carpenter
that fits a background image Woow this sounds very hard. Is it explained 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 wrote: > You can create your own class that

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 B

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

2010-09-15 Thread Peter Carpenter
droid-developers] Re: 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 wrote: > Hey Romain, > > Thanks for the re

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

2010-09-15 Thread Peter Carpenter
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 Bibekhttp://techdroid.kbeanie.com > > On Sep 15, 12:05 pm, Peter Carpenter > > > > wrote: > > Hey Romain, > > > Thanks for th

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

2010-09-15 Thread Peter Carpenter
) On Tue, Sep 14, 2010 at 11:39 PM, Peter Carpenter 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 or

[android-developers] Scrolling broken in 2.2 ?

2010-09-14 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,

[android-developers] ListView issue (Editors?)

2010-09-06 Thread Peter Carpenter
s available 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" grou

[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 add

[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] Clarification on static variables

2009-06-02 Thread Peter Carpenter
Hi all, We are currently porting some java code to work inside a service within the Android framework. However one thing I am still puzzling over is the life cycle of an android application, activity, & service. What I am currently thinking is this: 1. An android "application" proces

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

2009-05-28 Thread Peter Carpenter
s Subject: [android-developers] Re: Extremely frustrating = TextView in ScrollView -> Scroll to bottom? On 28 Maj, 01:28, "Peter Carpenter" wrote: > Hi guys, > > > It appears that plenty of people have asked about this in newsgroups, > but no solution offered

[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 code

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

2009-05-21 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:dep

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

2009-05-13 Thread Peter Carpenter
Wed, May 13, 2009 at 10:36 PM, Peter Carpenter 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 scrol

[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 J

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

2009-05-11 Thread Peter Carpenter
7:23 pm, "Peter Carpenter" 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/e

[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 buil

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

2009-04-27 Thread Peter Carpenter
an file feature requests or (more likely 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 wrote: Hi Dianne

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

2009-04-27 Thread Peter Carpenter
opers] Re: Compiling 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 wrote: Hello everyone, I'd like to be able to extend classes lik

[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) Does

[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 thi

[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, b

[android-developers] Re: Accessing internal scrollbar drawable

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

[android-developers] Accessing internal scrollbar drawable

2009-04-15 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: How to keep focus highlight on ExpandableList group....

2009-04-15 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 focu

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

2009-04-15 Thread Peter Carpenter
-Original 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 ne

[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: *

[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 (" + timeSinceUpdat