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
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
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
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
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
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
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
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
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!
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
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
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
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
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
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
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
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
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
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
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.
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 ?
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 =
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.
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
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
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
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.
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
28 matches
Mail list logo