Category Archives: android

A simple java socket client

This is part two of my example of communicating between android and a pc over usb. This shows a simple java client based on this oracle tutorial and I use it to test communication between android and the PC. Here’s the code: package com.rga.vzw; import; import; import; import; import; import

Read More

fillBefore and fillAfter attributes don’t work for LayoutAnimations

When you create layoutAnimations and you set the fillBefore or fillAfter in the animation sets referenced by the layoutAnimation the xml attributes of dont work. You have to set them through code. //doesn’t work! You have to set through code: LayoutAnimationController layoutAnim = AnimationUtils .loadLayoutAnimation(this, R.anim.landingpage_right_anim_out); Animation anim = layouAnim.getAnimation(); anim.setFillEnabled(true); anim.setFillBefore(true); anim.setFillAfter(true);