Problem with continuos animation of children on long press of keys in a Viewgroup.

by Romain Guy » Sat, 07 Mar 2009 00:46:56 GMT


Sponsored Links
 Just call startAnimation(), but no need to start a thread.








-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Native code segfault on Tegra2

First, you should try android-porting, not android-ndk

Do you know what the code that crashes does exactly? You should have a stack
trace that tells you where the problem is located, which might give you some
ideas.
What compiler flags are you using when building with the gcc-4.4.0
toolchain. Not using the correct one is going to produce invalid machine
code (that's why there is an NDK in the first place).
Also, keep in mind that Tegra2 doesn't support NEON or VFPv3-D32 (but you
would get a SIGILL fault instead, so it's probably unrelated).




> 

2. NullPointerException when creating an activity.

Hello,

I am making an application consisting of 5 views, I get a
NullPointerException when trying to call the next activity from the main
class. I would appreciate it if someone could please have a look at it.

Main class,

public class UIPlay extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        try{
        Button green_button = (Button)findViewById(R.id.green);
        green_button.setOnClickListener(new OnClickListener(){

            public void onClick(View v)
            {
                Toast.makeText(v.getContext(), "Green Button", 1).show();
            Intent i = new Intent(UIPlay.this, GreenActionButton.class);
            UIPlay.this.startActivity(i);
            }



        });
.
.
. //more code continues...
.


public class GreenActionButton extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        // TODO Auto-generated method stub
        super.onCreate(savedInstanceState);
        setContentView(R.layout.green);
.
.
.
.//More code here.
.
.
.


I get a null pointer exception on the onCreate method of the second class.

Also, i see a AndroidManifest.out.xml file being generated everytime i run
in it on my emulator.

Thanks.

Cuil

-- 

3. IMSI is null when airplane mode is not on.

4. /sys/class/gpio not registered

5. Location of display code in android 2.6.36 kernel.

6. Google Updates buat SPICA Froyo 2.2 (CM)

7. Secure love one鈥檚 life with e conomic support