[android-beginners] Re: Problem with SQLite database, accessing the table

2009-05-07 Thread Glen Humphrey
It looks to me like your program tries to fetch from the options table before it has been created. On May 7, 2:28 am, mic.ger...@gmail.com mic.ger...@gmail.com wrote: Hi all, I am developing an application that need a database (store username and password) and when I try to access to it I

[android-beginners] Re: how to get the string from a listview item

2009-04-28 Thread Glen Humphrey
Try using Cursor instead of SQLiteCursor. On Apr 27, 11:11 pm, Kent Yip yes...@gmail.com wrote: Thx Glen the textview works great, but the SQLiteCursor doesn't work. On Mon, Apr 27, 2009 at 10:47 PM, Glen Humphrey glendon.humphr...@gmail.com wrote: You could also do something like

[android-beginners] Re: how to get the string from a listview item

2009-04-27 Thread Glen Humphrey
Try something like this in your onListItemClick. TextView textView = (TextView) v.findViewById(R.id.title); String text = textView.getText().toString(); On Apr 27, 8:14 pm, Kent Yip yes...@gmail.com wrote: i have a method that fill the list with items // Depending on param, this

[android-beginners] Re: how to get the string from a listview item

2009-04-27 Thread Glen Humphrey
You could also do something like this in your onListItemClick. SQLiteCursor cursor = (SQLiteCursor) l.getItemAtPosition (position); String title = cursor.getString(cursor.getColumnIndexOrThrow (RingtoneManager.EXTRA_RINGTONE_TITLE)); On Apr 27, 10:26 pm, Glen Humphrey glendon.humphr

[android-beginners] Re: ListView focus problem

2009-04-03 Thread Glen Humphrey
Try setting the width on the li_cht_text TextView to fill_parent. On Feb 3, 4:53 pm, Selmi se...@centrum.sk wrote: thanks a lot, i knew i had to do something stupid. this helped partially, now text turns to black and is readable when focused but it didn't solved 2nd problem - when i make my

[android-beginners] Re: Spinner won't work with ArrayAdapter in one project but will in another

2009-04-03 Thread Glen Humphrey
It would help if we could see the problem code. On Apr 3, 9:12 am, Stu stuart.gilb...@gmail.com wrote: Hi, I've been developing a quick little application for the last few days and I've encountered some problems trying to get my spinner to display a list of numbers that I have stored in an

[android-beginners] Re: Adding submenus in XML

2009-03-31 Thread Glen Humphrey
In a menu XML layout, there are three valid elements: menu, group and item. The item and group elements must be children of a menu, but item elements may also be the children of a group, and another menu element may be the child of an item (to create a Submenu). Of course, the root node of any

[android-beginners] Re: Setting Single Choice Dialog Checked Item

2009-03-29 Thread Glen Humphrey
I found that if you do something like this it works almost identically to the magic number method. ListView android:id=@+id/your_list android:layout_width=fill_parent android:layout_height=wrap_content /ListView protected Dialog

[android-beginners] Re: Setting Single Choice Dialog Checked Item

2009-03-28 Thread Glen Humphrey
work, thanks much. What does that magic number represent? On Mar 28, 2:54 am, Glen Humphrey glendon.humphr...@gmail.com wrote: I also had to do one of the following to get it to work correctly.     if (!lv.isItemChecked(0)) {         lv.setItemChecked(0, true

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

2009-03-18 Thread Glen Humphrey
set the following properties for both the EditText and the TextView widgets. android:layout_weight=1 android:layout_width=fill_parent On Mar 18, 2:56 pm, frizzo rg...@vbrad.com wrote: I have a TableLayout with a couple of TableRows.  Inside a table row, i have an EditText widget

[android-beginners] Re: MapView - findViewById returns null

2009-03-18 Thread Glen Humphrey
Try this. com.google.android.maps.MapView android:id=@+id/mapview1 android:layout_width=fill_parent android:layout_height=fill_parent android:enabled=true android:clickable=true android:apiKey=woaw this is my dev key/ On Mar 18, 5:22 am, Francois Stephany