[android-developers] Re: Hmm... at last ADC2 is out of our way ... tell about your app and experience

2009-09-02 Thread pmilosev

Hi everyone


 Social: A-GLOBAL-MIND
 http://a-global-mind.blogspot.com/
 Description: Q/A social network
 By: AGM Team
 Feedback: Many sleepless nights
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Screen not updating when calling ResourceCursorTreeAdapter.notifyDataSetChanged()

2009-08-05 Thread pmilosev

I have a similar problem:

I have BaseAdapter and a provider class that loads in background.
When loading is finished I call notifyDatasetChanged/
notifyDataSetInvalidate
but the view does not update.

I guess there is some bug in the SDK, but the strange thing is there
is nothing similar
reported so far.

any hint ?

On Jun 12, 11:42 am, sebster svan...@gmail.com wrote:
 Hi,

 I have a ResourceCursorTreeAdapter which queries data from my
 database.

 When I change the underlying data (i.e., delete a group), and then do
 myAdapter.notifyDataSetChanged() the screen does not update. However
 when I first do myAdapter.getCursor().requery(), the screen *does*
 update.

 Anybody know why I have to manually requery? What is the proper way to
 edit the database (i.e, delete items, rename items, etc), and have the
 view updated in response?

 Regards,
 Sebastiaan
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Screen not updating when calling ResourceCursorTreeAdapter.notifyDataSetChanged()

2009-08-05 Thread pmilosev

Ok, after some time it turned out that it was my bug due to some old
code.

Anyway if you call notifyDataSetChanged() from the main thread it will
update the view
If you do so from a background thread it will throw an exception.

If you are not getting an exception then something is not connected as
it should (like in my case above)
If you are trying to load data in bg thread here is a usefull howto:
http://developer.android.com/guide/appendix/faq/commontasks.html#threading

regards

On Aug 5, 6:16 pm, pmilosev pmilo...@gmail.com wrote:
 I have a similar problem:

 I have BaseAdapter and a provider class that loads in background.
 When loading is finished I call notifyDatasetChanged/
 notifyDataSetInvalidate
 but the view does not update.

 I guess there is some bug in the SDK, but the strange thing is there
 is nothing similar
 reported so far.

 any hint ?

 On Jun 12, 11:42 am, sebster svan...@gmail.com wrote:

  Hi,

  I have a ResourceCursorTreeAdapter which queries data from my
  database.

  When I change the underlying data (i.e., delete a group), and then do
  myAdapter.notifyDataSetChanged() the screen does not update. However
  when I first do myAdapter.getCursor().requery(), the screen *does*
  update.

  Anybody know why I have to manually requery? What is the proper way to
  edit the database (i.e, delete items, rename items, etc), and have the
  view updated in response?

  Regards,
  Sebastiaan


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] rating bar padding problem

2009-03-29 Thread pmilosev

Hi

I have noticed that if I add some padding to the rating bar (small) it
will shift the bar but the star on the right will be truncated (e.g.
if I add 5px padding from left or right the right most star will be
missing 5 pixels)

Is there something I am missing, or is this a SDK bug ?

regards
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] problems when setting / removing color filter to image views

2009-01-28 Thread pmilosev

Hi

I have several state-full custom buttons, each composed of three parts
(image views): back, middle, front.
On state change color filter (tint) is applied / removed to the middle
and front part.
On focus change color filter is applied / removed to the back part of
the button (the image on the bottom).

Randomly, after several filters are applied (due to state change) the
filters will start to be rendered incorrectly.
E.g. On next focus change all the buttons would be marked as they have
changed state.
   The color filter will not be removed when the button lose
focus.
Sometimes only portions of the button is tinted (although it
should not be affected).
Sometimes the transparent parts of the image are affected,
although I use SRC_ATOP mode.

To apply color filter I use:
myImageView.setColorFilter(myColor, Mode.SRC_ATOP);

To remove color filter I have tried:
myImageView.setcolorFilter(null); OR myImageView.setColorFilter
(Color.TRANSPARENT, Mode.SRC_ATOP);

Please note that everything works fine until several color filters are
applied, after that tinting errors appear randomly;

Am I missing something (e.g calling some method to force view to
redraw) since I could not find anyone having
similar problems ?

regards
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: problems when setting / removing color filter to image views

2009-01-28 Thread pmilosev

 Drawable d1 = getResources().getDrawable(R.drawable.my_image);
 Drawable d2 = getResources().getDrawable(R.drawable.my_image);

 The two drawables are different objects but they both use the same
 constant state (it's the actual name of the implementation) which
 contains, among other things, the alpha value, the bitmap... and the
 color filter.

Aughhh ... thats why it started after I added several buttons using
same
image for resource.
So I guess in this moment the solution would be to have several copies
of the same resource.

Is this a known issue or should we fire a bug report ?

10x for the reply
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] how to get the list of notification

2009-01-21 Thread pmilosev

Hi

In my project I need to have a list of all notification (replacing /
duplicating the status bar).
From what I have found so far (from the android source) the
notification icon is directly pushed
on the status bar by the notification manager service (status bar is
part of the system).

Is there any chance that my application can be notified about new
notification (or can query the system for all notification)
without modifying the android source code ?

regards
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---