[android-beginners] SQLiteConstraintException: error code 19: constraint failed when deleting from sqlite

2010-07-29 Thread manigault
Hi all, i have simple relation between songs and albums one to many. I created the album table like this CREATE TABLE albums (id INTEGER PRIMARY KEY ASC, name TEXT, additional TEXT) My song table is like this StringBuilder sqlQuery = new StringBuilder(); CREATE TABLE songs (id INTEGER PRIMARY KEY

[android-beginners] fetch from MediaStore for given path

2010-06-15 Thread manigault
How can i fetch all records in MediaStore for given directory. There is method MediaStore.Audio.Media.getContentUriForPath(String path) but it doesn't construct the uri correctly when i call it with path to dir i want to scan. Thanks . -- You received this message because you are subscribed to

[android-beginners] LinearLayout in ScrollView

2010-06-10 Thread manigault
Hi all, I have LinearLayout with four item orientated vertically and with set LayoutWidth = 1.0 to fill the whole screen. Here is the source i removed most of the code which is not related to the issue - LinearLayout android:layout_width=wrap_content

[android-beginners] share stuff to social networks

2010-05-28 Thread manigault
Hi all, When you go to gallery and hit menu there is share button. The interesting about it is that it gives you choice to share your picture over some social networks but only for those that you have installed a client on the device. The same widget/dialog is used in other application for

[android-beginners] SectionIndexer problem

2010-05-06 Thread manigault
Hi all i have ArrayAdapter that implements SectionIndexer. It implement basic alphabetic indexing for string but the problem is that i'm filling the strings dynamically so if i start using the fast scroll before all items are loaded getSection method is called and only sections that are present in

[android-beginners] scaling ImageView

2010-05-03 Thread manigault
Hi all, i have ImageView which is taking rectangular layout width = 40dp height = 30dp and images that i'am displaying are 40x40 and they are scaled to rectangle. How can i tell the ImageView not to scale the image but to cut the image parts that not fit in the size. I want the image to stay 40dp

[android-beginners] scroll-ball selection

2010-04-29 Thread manigault
Hi guys, how can i control the selection with scroll-ball. First my widget is not accessible with scroll-ball ( i can't access any widget's items ) and second how can i control wich items can be focusable with scroll-ball in my activity. Thanks -- You received this message because you are

[android-beginners] widget setting frame

2010-04-16 Thread manigault
Hi all i am trying to make a widget of my application and i used http://developer.android.com/guide/practices/ui_guidelines/widget_design.html as start point. How can i set one of the standart widget frames to my widget. Thanks -- You received this message because you are subscribed to the

[android-beginners] listview item get invisible

2010-03-24 Thread manigault
How can i find when an item in listview get out of screen during scroll. I am using resources for each item in listview and i want when the item get invisible to free the resources. Thanks -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW!

[android-beginners] listview selector problem with g1

2010-03-22 Thread manigault
Hi all, I have listview with custom selector for it. On nexus 1 is working fine but on g1 when i am scrolling it set the default background for all items during scroll. The strange thing is that on nexus is working but this is happening only on g1. Here is the code of the selector - ?xml

[android-beginners] listview fill parent

2010-03-05 Thread manigault
Hi all i have a listview with small number of items but they are still fetched dynamically. How can i make my list view to fill to whole screen no not depending on number of items -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try

[android-beginners] custom shape

2010-02-26 Thread manigault
Hi i am trying to implement custom seek bar and i need custom shape for it. My seekbar should look something like this http://picasaweb.google.com/manigoad/Other#5442553107070487330. Can i create such custom shape that hase two layers one transparent and one blue. Thanks -- You received this

[android-beginners] square layout in xml

2010-02-25 Thread manigault
How can i place a child with square shape in parent with rectangle shape. I want to child to have fill_parent for width and the height to be the same as the with ( to be a square ) and when the parent is resized the child to be resized also. Can i do these using XML or have to set the height

[android-beginners] add shadow to imageview

2010-01-26 Thread manigault
How can i add shadow to given image view. I can only setShadowLayer to TextView .. -- You received this message because you are subscribed to the Google Groups Android Beginners group. NEW! Try asking and tagging your question on Stack Overflow at

[android-beginners] audio file cover art

2009-11-19 Thread manigault
hi, i am trying to write some sort of music player but i can't extract cover art for the audio files. There is column MediaStore.MediaColumns.ALBUM_ART but when i try to use it i got exception that there is no such column. I am trying to retrieve the data using ContentResolver ContentResolver

[android-beginners] support of jdbc for sqlite

2009-11-12 Thread manigault
Hi, can i open connection to sqlite database using JDBC and use all the classes that are in java.sql or i have to use SQLiteOpenHelper.getWritableDatabase() and use android.database.sqlite -- You received this message because you are subscribed to the Google Groups Android Beginners group. To

[android-beginners] Listview allocates too many objects

2009-11-03 Thread manigault
Hi, I have an activity with simple ListView with about 2500 items, a SimpleCursorAdapter i used to populate the view. Each item of the list view contains about 5-6 simple widgets everything is pretty standard for now but when i start scrolling the ListView i got this on the LogCat 11-03

[android-beginners] listview disable items

2009-10-09 Thread manigault
Hi all, I have a listview and when an item is selected a new activity is started. I want when an item is selected to disable the entire listview so no other items can be selected before the activity is displayed. I tried setEnabled(false),setChoiseMode(1) but it didn't help, so how can i disable

[android-beginners] get audio uri by id

2009-09-18 Thread manigault
How can i get the uri of audio file by its id in the android db. --~--~-~--~~~---~--~~ 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@googlegroups.com To

[android-beginners] Hierarchy Viewer

2009-09-17 Thread manigault
I try to use Hierarchy Viewer tool and for the simulator it works fine but for the real phone it doesn't. When i started the real device is listed in the section with the devices but when i press start server the server doesn't start, no logs on the console also.

[android-beginners] MediaPlayer pause and seek

2009-09-15 Thread manigault
Hi i want to be able to pause the MediaPlayer and then seek to given position. I do the following : mPlayer.pause() - mPlayer.seekTo(myPosition); - mPlayer.start();but the player start playing from the position the pause was called; Can i use seekTo after when i paused the player ?

[android-beginners] ColorStateList creation

2009-09-12 Thread manigault
I want to create color state list from xml file containing a selector. From the documentation its seems that i have to use static ColorStateList createFromXml(Resources r, XmlPullParser parser) but i can't figure out what parameters to pass. I guess i can use : XmlPullParserFactory factory =

[android-beginners] listview scroll position

2009-09-11 Thread manigault
I have a listview and when i select an item a new activity is started, but when i go back the listview's scroll is positioned at the beginning the list. How can i save the scroll position and when i go back to the listview the scroll to be positioned in the same place.

[android-beginners] listview orientation

2009-09-08 Thread manigault
How to orient listview items horizontal. 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@googlegroups.com To unsubscribe from this

[android-beginners] Change the color of the EditBox hint

2009-08-26 Thread manigault
How can i change the color of the EditBox hint text. 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@googlegroups.com To

[android-beginners] ListView item stay selected

2009-08-25 Thread manigault
I have a listview and i want when i select a row to stay selected after googling i came to this solution: @Override protected void onListItemClick(ListView l, View v, int position, long id) { // ... rest of the code v.setSelected(true); } I just manually set the selected view to stay

[android-beginners] Problem with list view item selection

2009-08-19 Thread manigault
I have the same problem as this one http://groups.google.com/group/android-developers/browse_thread/thread/dc51240d83f03626/0c712084b5b16257?lnk=gstq=listview+button#0c712084b5b16257 but unfortunately there is no reply to this post. Anybody found a solution.

[android-beginners] Problem with Buttons in Listview

2009-08-18 Thread manigault
I have a ListActivity and in each listview row has a textview and a button, when i select an item from the listview the button become visible ( by default it is GONE ) so far so good :). When the button become visible i can't select the same row again, the onListItemClick method is not invoked