[android-beginners] How to find the text of the selected item in the ListView widget?

2009-06-22 Thread frizzo
In the onListItemClick event, how do I derive the text of the selected item? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to

[android-beginners] Re: Why does the control sequence change

2009-04-05 Thread frizzo
Ok, I still don't know why it does that, but I've found a workaround. Add the following attribute to the control that's doing the skipping. android:nextFocusDown=@+id/txtYourControlHere frizzo wrote: I have a fairly standard layout (see code below), the synopsis is this: RelativeLayout

[android-beginners] Why does the control sequence change

2009-04-04 Thread frizzo
I have a fairly standard layout (see code below), the synopsis is this: RelativeLayout TableLayout TableRow EditText id=txtEntry1 TableRow EditText id=txtEntry2 EditText id=txtEntry3 End TableLayout Button

[android-beginners] Re: How to specify the length of the EditText in a Table row

2009-03-19 Thread frizzo
, frizzo rg...@vbrad.com wrote: I have a TableLayout with a couple of TableRows.  Inside a table row, i have an EditText widget followed by a TextView widget. How can I make sure that each widget in the row takes equal width? --~--~-~--~~~---~--~~ You received

[android-beginners] Preventing input

2009-03-18 Thread frizzo
I am trying to allow the user to enter a price (e.g. 3.99), so a number with a max of 2 decimal places. I am not quite sure how to pull this off. I've setup a KeyListener, but the OnKey event that it kicks off allows listeners to get a chance to respond before the target view. As a result, I

[android-beginners] How to specify the length of the EditText in a Table row

2009-03-18 Thread frizzo
I have a TableLayout with a couple of TableRows. Inside a table row, i have an EditText widget followed by a TextView widget. How can I make sure that each widget in the row takes equal width? --~--~-~--~~~---~--~~ You received this message because you are

[android-beginners] How to set EditText to be read-only?

2009-03-16 Thread frizzo
I can't seem to find a method that does that. Is there a way to do it? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to

[android-beginners] How do I set the focus to a widget?

2009-03-16 Thread frizzo
I am trying to set the focus to a EditText widget, but I don't see any way to do it. What am I missing? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send

[android-beginners] Re: How to set EditText to be read-only?

2009-03-16 Thread frizzo
certain conditions are met. Thanks. On Mar 15, 11:14 pm, Romain Guy romain...@google.com wrote: setEnabled(false). You may want a simple TextView inside too. On Sun, Mar 15, 2009 at 11:13 PM, frizzo rg...@vbrad.com wrote: I can't seem to find a method that does that.  Is there a way to do

[android-beginners] Re: How to set EditText to be read-only?

2009-03-16 Thread frizzo
would really advise you to use setEnabled(false) as it provides a visual clue to the user that the control cannot be edited. The same visual cue is used by all disabled widgets and consistency is good :) On Sun, Mar 15, 2009 at 11:23 PM, frizzo rg...@vbrad.com wrote: Thank you.  However

[android-beginners] Yet another layout question.

2009-03-14 Thread frizzo
I have a screen, where most of the information is layed out in a table manner, thus I use a TableLayout. However, I want to have button, that aligns to the bottom of the screen. I've tried using android:layout_alignParentBottom=true, but that is ignored in TableLayout. What options do I have?

[android-beginners] How to set a mask on an EditText widget?

2009-03-14 Thread frizzo
I'd like users to be able to enter a price (e.g. 4.49 or 10.99) and that's all, no negative numbers or any of that. Is there a feature that allows me to do that? I can't seem to find support for masks. --~--~-~--~~~---~--~~ You received this message because you

[android-beginners] Re: How to set a mask on an EditText widget?

2009-03-14 Thread frizzo
That sounds so VB2 On Mar 14, 5:46 am, Mark Murphy mmur...@commonsware.com wrote: frizzo wrote: I'd like users to be able to enter a price (e.g. 4.49 or 10.99) and that's all, no negative numbers or any of that.  Is there a feature that allows me to do that?  I can't seem to find support

[android-beginners] Re: Why won't Intent pass along the extras

2009-03-13 Thread frizzo
Serializable works. On Mar 11, 11:44 pm, frizzo rg...@vbrad.com wrote: Can you post an example by any chance? On Mar 11, 10:25 pm, frizzo rg...@vbrad.com wrote: I have no idea whether it's a better choice or not.  I asked the question here as to how to do it and was given Parcelable

[android-beginners] Re: Making things louder

2009-03-13 Thread frizzo
is completely wasted because the transducer in the G1 cannot reproduce it. On Mar 3, 9:29 pm, frizzo rg...@vbrad.com wrote: I released a simple app that plays sounds and some users are complaining that it's not loud enough.  Beyond the user actually cranking up the volume on the side of G1

[android-beginners] Re: Why won't Intent pass along the extras

2009-03-12 Thread frizzo
Can you post an example by any chance? On Mar 11, 10:25 pm, frizzo rg...@vbrad.com wrote: I have no idea whether it's a better choice or not.  I asked the question here as to how to do it and was given Parcelable as the answer.  I'll give it a try withserializable. On Mar 11, 6:36 am

[android-beginners] Re: Android design question

2009-03-12 Thread frizzo
the parameters that are passed to startActivity might have to be marshalled across virtual machines, across processes (and across UIDs). JBQ On Tue, Mar 10, 2009 at 10:52 PM, frizzo rg...@vbrad.com wrote: The system in place to pass information between the screens... I am confused why

[android-beginners] Re: Why won't Intent pass along the extras

2009-03-11 Thread frizzo
? If implement this using Parcelable, it might be expensive. What I want is just pass the object reference. But I don't know how to do it. Do you have any idea? frizzo wrote: I have a class object that I want to pass from one screen to another. So I made it inherit from Parcelable and added

[android-beginners] Re: Why won't Intent pass along the extras

2009-03-11 Thread frizzo
added with Intent#putExtra(String, Serializable).  Is there some reason why Parcelable is a better choice in your case? ++Steve On Mar 11, 1:45 am, frizzo rg...@vbrad.com wrote: I have a class object that I want to pass from one screen to another. So I made it inherit from Parcelable

[android-beginners] Android design question

2009-03-10 Thread frizzo
The system in place to pass information between the screens... I am confused why the team chose to reinvent the wheel via the putExtras methods. Instead of making the transport objects inherit from Parcelable and the like, why not just use Java's OO strength and set objects to Activities

[android-beginners] How to go to folder

2009-03-03 Thread frizzo
This is probably an eclipse question, but here it goes. I have a bunch of folders in the project (raw, drawable, libs, etc...) that are mirrors of the actual file system. Is there a way to right-click on a folder and jump to its location in the file system? Maybe a plug in or something.

[android-beginners] Making things louder

2009-03-03 Thread frizzo
I released a simple app that plays sounds and some users are complaining that it's not loud enough. Beyond the user actually cranking up the volume on the side of G1, is there anything that my application can do to make things louder? --~--~-~--~~~---~--~~ You

[android-beginners] How to assign objects to a List?

2009-03-03 Thread frizzo
Hello, C# refugee here. This might be a completely simple question, but... In .NET land there is a handy paradigm where you dump a bunch of objects into a ArrayListT type of collection. Then you simply assign the collection to the List box widget and it shows each objects .ToString() as the

[android-beginners] How to reorder a ListView

2009-02-16 Thread frizzo
Is there an example somewhere of reordering a listview? I'd like the user to be able to drag an item from, say, position 4 to position 1 of the list. Is this possible? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-beginners] Re: Is there a way to make the MediaPlayer non-blocking

2009-02-15 Thread frizzo
for a fraction of a second. We use this code all the time all over the code and it would break a lot of things if it did block until playback completes. I'm pretty confident that you have a bug in your code somewhere. On Feb 13, 1:16 pm, frizzo rg...@vbrad.com wrote: I should clarify

[android-beginners] How to make the sound heard over the phone.

2009-02-15 Thread frizzo
If I am on a line with another person and I switch to another app and play a sound using the code below: MediaPlayer mMediaPlayer = MediaPlayer.create(this, R.raw.mysound); mMediaPlayer.start(); is there a way to make the sound be heard by the other person on the call? Is there a separate API?

[android-beginners] How to control the height on an individual entry in a ListView widget?

2009-02-13 Thread frizzo
How can I control the height on an individual entry in a ListView widget? Is there a property I can set? I can't seem to find it. Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To

[android-beginners] Is there a way to make the MediaPlayer non-blocking

2009-02-13 Thread frizzo
I figured out how to play sounds. MediaPlayer mMediaPlayer = MediaPlayer.create(this, R.raw.mysound); mMediaPlayer.start(); However, the .start() call blocks the application until it is done playing. Is there a way around this? Thanks. --~--~-~--~~~---~--~~

[android-beginners] Re: How to control the height on an individual entry in a ListView widget?

2009-02-13 Thread frizzo
Can you give me an example? On Feb 13, 1:07 pm, Mark Murphy mmur...@commonsware.com wrote: frizzo wrote: How can I control the height on an individual entry in a ListView widget?  Is there a property I can set?  I can't seem to find it. Generally, that is governed by the row View itself

[android-beginners] Re: Is there a way to make the MediaPlayer non-blocking

2009-02-13 Thread frizzo
I should clarify. In the emulator, it does not block, but in the actual phone it seems to. On Feb 13, 1:11 pm, frizzo rg...@vbrad.com wrote: I figured out how to play sounds. MediaPlayer mMediaPlayer = MediaPlayer.create(this, R.raw.mysound); mMediaPlayer.start(); However, the .start

[android-beginners] How to layout

2009-02-10 Thread frizzo
Hello, I have 5 buttons. I'd like to layout the 1st 4 buttons starting at the top and going down. I want the last button to be docked to the bottom of the screen. How can I pull off something like that? --~--~-~--~~~---~--~~ You received this message because you

[android-beginners] Re: How to layout

2009-02-10 Thread frizzo
Never mind, figured it out - RelativeLayout. On Feb 10, 10:08 am, frizzo rg...@vbrad.com wrote: Hello, I have 5 buttons.  I'd like to layout the 1st 4 buttons starting at the top and going down. I want the last button to be docked to the bottom of the screen. How can I pull off something

[android-beginners] Re: How to indicate a carriage return in strings?

2009-02-10 Thread frizzo
Figured it out. \n Question of inconsistency though, why does it recognize HTML constructs for pretty much everything else, but uses \n for carriage returns? On Feb 9, 12:45 am, frizzo rg...@vbrad.com wrote: I want to show some text in the AlertDialog.  This text comes from strings.xml where

[android-beginners] Can ListActivity include other controls?

2009-02-10 Thread frizzo
I'd like to have a form, which has a label on the top, followed by a list that takes up most of the real estate, and a button on the very bottom. Should I inherit from the ListActivity class and somehow finagle the 2 non-list controls onto the form, or just extend the Activity class and add all

[android-beginners] How to indicate a carriage return in strings?

2009-02-09 Thread frizzo
I want to show some text in the AlertDialog. This text comes from strings.xml where I've defined a string. However, I am having trouble telling the AlertDialog to respect carriage returns, that I've encoded into the XML string via br / statements? For instance string name=about_cricketsbThis

[android-beginners] How to simulate the user moving the cell phone from vertical to horizontal?

2009-02-06 Thread frizzo
How can I simulate the user moving the cell phone from vertical to horizontal? I didn't see any options in the emulator. Regards --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to

[android-beginners] How to hook into the event for device rotation?

2009-02-06 Thread frizzo
I want to hide certain things on the screen when the device is in horizontal position. How do I hook into that event and how do I find out the position of the device. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[android-beginners] How to align a widget to the bottom of the screen in a FrameLayout?

2009-02-05 Thread frizzo
How to align a widget to the bottom of the screen in a FrameLayout? And a follow-up question. Is there a tutorial (preferably a video one) that explains things like Layouts, property values like wrap_content, fill_parent, center_vertical, center_horizontal, etc... I feel like these are keys to

[android-beginners] Re: The sit and wait tax

2009-02-05 Thread frizzo
a couple seconds and works just fine. On Feb 2, 9:20 am, frizzo rg...@vbrad.com wrote: I come from a background of developing desktop applications.  The time between pressing Run and testing your app is very insignificant. With Android, I press Run, then it takes its sweet time to bring up

[android-beginners] The sit and wait tax

2009-02-02 Thread frizzo
I come from a background of developing desktop applications. The time between pressing Run and testing your app is very insignificant. With Android, I press Run, then it takes its sweet time to bring up the emulator, then I have to press the Menu button to unlock the phone and then 5-10 seconds

[android-beginners] Total noob

2009-01-29 Thread frizzo
Hello, trying to get into Android, but it all seems massively overwhelming. I've done a little bit of Java, mostly for the BlackBerry, however, Android API is totally different from that, so I am lost. The rest of my experience is C#. Also, Eclipse is pretty new to me as well. For a first