Animate *actual* position of a View

by Lance Fetters » Mon, 16 Nov 2009 12:47:20 GMT

Sponsored Links
 I am attempting to port a simple "tap the moving target" iPhone game
to Android (1.6). The game animates the position of a button, moving
it to random locations, while the user tries to tap it.

With the iPhone, moving the button is rather simple:

  [UIView beginAnimations:nil context:nil]; = CGPointMake(x, y);
  [UIView commitAnimations];

I have attempted to duplicate this on Android using Animation/
TranslateAnimation, but have found that this only affects where the
image of the button appears, not the tap boundaries. In other words,
even though the button appears to be moving, it is not possible to tap

Is there a way to animate the actual position of a View in Android? If
not, does anyone have any suggestions on the "Android-way" of making
such a game?


Other Threads

1. CertPathValidatorException: TrustAnchor for CertPath not found.

I'm trying to make an SSL connection to a host that is not using one
of the "standard" CAs.  I'm attempting to do this in the ordinary way:
you create an SSLContext, and then you call

sslContext.init(clientKeyManagers, trustManagers, secureRandom);

Very simple stuff.

I've confirmed that trustManagers is correct and contains the
certificate for the CA and also (just for good measure) the
certificate of the host I'm connecting to.  In other words, I'm
saying, "Joe's certificate is trusted" by putting it in the trust
manager, and yet... I'm getting:

Caused by: TrustAnchor for
CertPath not found.
W/SocketTest( 1010):    at
W/SocketTest( 1010):    at

Is this a bug in Android?  I looked at the code and there a lot of
sections that are labeled "android-changed" where the validation is
taking place.

Is there some trick to this, or am I doing something wrong, or should
I go through and trace through the whole tangle of SSL code to find
out what I can do to make it work?

In some searches I have seen that other people have encountered the
same issue, but haven't seen any resolution of it.

What's the scoop?  Can I get SSLContext to accept a KeyStore of
certificates to use as trusted certs?



2. Motorola to release ten Android phones in next 6 months?

Patut disimak neh...

Posted on 18 September 2009 by Shane McGlaun

Most Android fans are still waiting to see the second Android phone debut form 
Motorola that is widely believed to be heading to Verizon. While that handset 
has yet to get official, BusinessWeek is already reporting that Motorola is set 
to release ten new Android phones in the next six to ten months. 

A report released from a Global Equities Research analyst is the source of the 
claim. The phones are expected to be sold to mobile users for $39 to $399. An 
Android device at $39 would certainly be a big deal and put pressure on other 
phone makers.

There is no speculation on what carriers would get the phones, but we can bet 
that all of the major carriers and many of the smaller ones have their eye on 
Android devices. There has been no official confirmation from Motorola on this 
twitter: meykel | GTalk & Email: | YM: mikey4nancy |
Kirim 'masih' pake BerryHitam. Next time pake HTC Hero G2...! :))
Google Groups "Indonesian Android Community [id-android]" group.

To post to this group, send email to

To request to subscribe to this group, please visit the following page:

3. Is Service capable of showing Error Messages in the form of transient notices?

4. very urgent - how to remove temp files?

5. WiFi & Bluetooth Drivers

6. J2ME applications on android device

7. change the angle of pixel