[android-developers] Re: How to create a reminder

2010-10-26 Thread avigadl
Thanks.

-- 
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 create a reminder

2010-10-25 Thread avigadl
We would like to create a reminder that will be poped-up on given
date.
We would like to do this without having our application running at the
backgroud.
Any ideas how to do this?

Thanks.

-- 
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: How to create a reminder

2010-10-25 Thread avigadl
The alarm manager clears the reminders after the device reboots.
We need that our reminders will still be fired after rebooting.
Do you have any ideas?

-- 
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: PNG file with transparent drop shadow that appears as solid

2010-10-04 Thread avigadl
No one knows what to do?

On Oct 3, 11:10 pm, avigadl avig...@gmail.com wrote:
 Hi,

 I have a PNG file with drop shadow that is supposed to be blended
 using multiply operation.
 I'm using an ImageView to show it.

 However, the shadow is shown as solid gray.

 What am I doing wrong?

 Thanks.

-- 
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] PNG file with transparent drop shadow that appears as solid

2010-10-03 Thread avigadl
Hi,

I have a PNG file with drop shadow that is supposed to be blended
using multiply operation.
I'm using an ImageView to show it.

However, the shadow is shown as solid gray.

What am I doing wrong?

Thanks.

-- 
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: Track the moment when an activity is actually visible

2010-09-15 Thread avigadl
The onResume()  is almost adequate.
The problem is that it is called before the animation of the entering
activity starts.
Practically speaking that's not the time when the activity is actually
visible.
Any other ideas ?

-- 
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] Replica Island - code inspection

2010-09-15 Thread avigadl
For Chris Pruett: (hope he will read this) GREAT WORK!

I would like to understand how this game works (design and
implementation aspects).
Any ideas where to start ?

Thanks

-- 
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: Replica Island - code inspection

2010-09-15 Thread avigadl
Yep.

-- 
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: Track the moment when an activity is actually visible

2010-09-15 Thread avigadl
Apperently not enough :)

Will try it.

-- 
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] Track the moment when an activity is actually visible

2010-09-14 Thread avigadl
Hi,
I would like to apply animations as soon as it is possible, that is,
when the activity is visible.
How can I track this moment?
Thanks.

-- 
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: How to use D-Pad control in Android

2010-09-03 Thread avigadl
Several suggestions:
1. Note that all the directions has value 0, this might be a poblem
wen you want to distinguish between directions. You have to set  a
unique value to eac direction.
2. We suggest to use switch case statement instead of if else if.

Hope this helps.



On Sep 3, 12:35 pm, dhrumil dhrumilsh...@gmail.com wrote:
 Hello 2All,

 I have a problem in handling my ball using D-Pad control.

 Here is my code of handling a ball.

 public static final int DIRECTION_RIGHT = 0, DIRECTION_UP = 0,
 DIRECTION_DOWN = 0, DIRECTION_LEFT = 0;
 private int direction = 0;
 protected volatile boolean running = true;
 public boolean onKeyDown(int KeyCode, KeyEvent event){
         if(KeyCode==KeyEvent.KEYCODE_DPAD_CENTER){

                         if(running == true){

                         if(KeyCode == KeyEvent.KEYCODE_DPAD_RIGHT){
                         setDirection(DIRECTION_RIGHT);
                 }
                 else if(KeyCode == KeyEvent.KEYCODE_DPAD_DOWN){
                         setDirection(DIRECTION_DOWN);
                 }
                 else if(KeyCode == KeyEvent.KEYCODE_DPAD_LEFT){
                         setDirection(DIRECTION_LEFT);
                 }
         }
         }
         else {
                 running = false;
         }

         return true;
     }

         public void setDirection(int direction) {
                 this.direction = direction;
         }

         public int getDirection() {
                 return direction;
         }

-- 
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] Please Help - key down behaves badly

2010-09-01 Thread avigadl
I have a linear layout with several custom view and button.

Whenever I press a  key down I would like that only one view will
respond to it.

However, now when I press a key I see that te focus goes to the button
in that layout.

How to make an activity to respond to te key down event before moving
te focus to the button?

Thanks in advance!

-- 
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: startLayoutAnimation in reverse order

2010-08-23 Thread avigadl
I far as I can see questions regarding animations do not get serious
attention from Android team.
I have posted 3 questions, none of them got a respond.
Sorry.

-- 
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] The onAnimationEnded() event is unreliable

2010-08-18 Thread avigadl
By looking at the code of the ViewGroup class at the function
private void finishAnimatingView(final View view, Animation animation)
{}
it is clear that after the animation ended the view goes through  last
revalidation process.

I suspect that this cause a major bug since we get this event before
the actual animation is ended. The side effect is annoying flickering.

In any case, the question is how to get the real end of animation
event?

-- 
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] Animating layout.

2010-07-16 Thread avigadl
I would like to apply an animation to a layout. However, I need to
apply  different animation to each one of its child
view simultenously.
How should I do it?

-- 
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] Animation and flickering - a possible solution

2010-07-14 Thread avigadl
I have a code that after a TraslateAnimation() ends the layout gets
recomputed (by using AnimationListener). This cause to flickering
effect.

I suspect that this problem  happens since the onAnimationEnd event is
called before the drawing of the last frame.

My solution was to postpone the layout process by a few milliseconds
and set the fillAfter(true) for the animation.

This will persist  the last frame of the animation before the re-
layout.

Hope this helps.

Lidor




-- 
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