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

2010-07-29 Thread Martin Obreshkov
I don't think this is the case. When i try to delete album that contains songs i got java.sql.SQLException: album has songs cannot be deleted at org.sqlite.DB.execute(DB.java:275) at org.sqlite.DB.executeUpdate(DB.java:281) at org.sqlite.PrepStmt.executeUpdate(PrepStmt.java:77) On Thu, Jul 29,

Re: [android-beginners] share stuff to social networks

2010-05-28 Thread Martin Obreshkov
So you mean i have to implement connection to all apis by myself. But how to get information about what clients are installed on device ? On Fri, May 28, 2010 at 2:50 PM, wahib haq wahib.t...@gmail.com wrote: You can implement integration of social media using their respective API's for

[android-beginners] Re: scaling ImageView

2010-05-03 Thread Martin Obreshkov
If set Scale type = CENTER_CROP nothing happens the image is still resized to match ImageView bounds On Mon, May 3, 2010 at 11:04 AM, manigault manig...@gmail.com wrote: Hi all, i have ImageView which is taking rectangular layout width = 40dp height = 30dp and images that i'am displaying are

Re: [android-beginners] Images Reused in a ListView

2010-04-20 Thread Martin Obreshkov
Can you paste some code On Tue, Apr 20, 2010 at 5:19 PM, Tom F M White fred...@gmail.com wrote: I've made a custom ListAdaptor, with associated View, that displays an icon on the left of each list item, with three lines of text to the right. In MyView.onCreate(), the icons are populated using

[android-beginners] Re: listview selector problem with g1

2010-03-22 Thread Martin Obreshkov
Sorry for the question i found the solution must se cache color hint attribute On Mon, Mar 22, 2010 at 12:56 PM, manigault manig...@gmail.com wrote: 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

Re: [android-beginners] Re: listview fill parent

2010-03-08 Thread Martin Obreshkov
change its width parameter from wrap_content to fill_parent... this will do the trick... if it doesnt then we'll have to look at the xml of your row which u inflate or incase of making it dynamically through code, we'll have to have a look at the code... On Mar 5, 3:08 pm, Martin Obreshkov manig

[android-beginners] Re: listview fill parent

2010-03-05 Thread Martin Obreshkov
I am sorry for the misleading question - i want the listview items to be stretched to the whole listview On Fri, Mar 5, 2010 at 12:00 PM, manigault manig...@gmail.com wrote: Hi all i have a listview with small number of items but they are still fetched dynamically. How can i make my list view

[android-beginners] Re: listview scroll position

2009-09-11 Thread Martin Obreshkov
Sorry for the post my mistake i just reload every time the view in onResume :) On Fri, Sep 11, 2009 at 2:45 PM, manigault manig...@gmail.com wrote: 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

[android-beginners] Re: Empty list

2009-09-10 Thread Martin Obreshkov
Thanks :) On Thu, Sep 10, 2009 at 2:16 PM, Mark Murphy mmur...@commonsware.com wrote: manigault wrote: id=@id/android:empty works for ListActivity but when i use it for a listview which is in a regular activity it doesn't. How to show text when the list is empty for a listview. For an

[android-beginners] Re: ListView item stay selected

2009-08-28 Thread Martin Obreshkov
AM, Martin Obreshkov manig...@gmail.com wrote: Thanks for the reply but if this is not the recommended way what is the solution for it. For example i have a list with mails and when i select given mail there are actions i can perform(delete, reply). What is the best way to implement

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

2009-08-26 Thread Martin Obreshkov
android:textColorHint=# sry for the post On Wed, Aug 26, 2009 at 12:21 PM, manigaultmanig...@gmail.com wrote: How can i change the color of the EditBox hint text. Thanks :) -- When I raise my flashing sword, and my hand takes hold on judgment, I will take vengeance upon mine

[android-beginners] Re: ListView item stay selected

2009-08-25 Thread Martin Obreshkov
Thanks for the reply but if this is not the recommended way what is the solution for it. For example i have a list with mails and when i select given mail there are actions i can perform(delete, reply). What is the best way to implement this, should i use listview at all. Thanks in advance. On

[android-beginners] buttons in listview

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

[android-beginners] ListView Item lost focus event

2009-08-06 Thread Martin Obreshkov
Hi when i select item in listview and then scroll it the selected item in no more highlighted. Can e register listener for this event ( when the item come unselected ). -- When I raise my flashing sword, and my hand takes hold on judgment, I will take vengeance upon mine enemies, and I will

[android-beginners] Send Mail NOT from user account

2009-06-18 Thread Martin Obreshkov
Hi, i want to send a e-mail from a android activity using alternative smtp server ( for example smpt.myserver.com) and not using the user account (example u...@myserver.com). I can do this using external java libraries ( JavaMail ) but is there a way to do this using the android sdk. -- When I