Welcome to the Android Central Forums Create Your Account or Ask a Question Answers in 5 minutes - no registration required!
+ Reply Subscribe
Results 1 to 2 of 2
  1. Thread Author  Thread Author    #1  
    AC Question
    AC Question's Avatar
    Guest

    Post i faced a problem that when i devloping live wallpaper at testing on a device it shows stopping

    i faced a problem that when i devloping live wallpaper at testing on a device it shows stopping while it falling the snow

    i am using In
    public void drawSnow(Canvas canvas, Paint paint){
    Matrix matrix = new Matrix();
    matrix.reset();
    matrix.postTranslate(-bitmap.getWidth() / 2, -bitmap.getHeight() / 2); // Centers image
    matrix.postRotate(angle);
    float px=x+bitmap.getHeight()/2;
    float py=y+bitmap.getWidth()/2;
    matrix.postTranslate(px, py);
    canvas.drawBitmap(bitmap, matrix, paint);
    }
    (in Snow class)
    public void handleFalling(boolean fallingDown){
    if(fallingDown){
    this.y += this.speedY;
    this.x += this.xOffset;
    angle=angle+2;
    if(this.y >= this.heightBound){
    this.y = -this.bitmap.getHeight();
    this.x = rawX;
    System.gc();
    }
    }else{
    angle=angle+2;
    this.y -= this.speedY;
    this.x += this.xOffset;
    if(this.y <= -this.bitmap.getHeight()){
    this.y = this.heightBound;
    this.x = rawX;
    System.gc();
    }
    }

    }
    (in same class)
    But still it shows some flickering effect
    If any one have any suggestion
    Plz-Send the solution-bishnu.oca22@gmail.com
  2. #2  
    Golfdriver97's Avatar

    Posts
    17,278 Posts
    Global Posts
    17,630 Global Posts
    ROM
    Liquidsmooth ROM

    Default Re: i faced a problem that when i devloping live wallpaper at testing on a device it shows stopping


    Phone Timeline
    'If we could change ourselves, the tendencies in the world would also change.' - Mahatma Gandhi
    Community Guidelines and also here

Similar Threads

  1. Bluetooth won't sign in automatically on my Galaxy s5
    By klauspabst in forum Ask a Question
    Replies: 4
    Last Post: 06-17-2014, 07:43 AM
  2. Replies: 1
    Last Post: 06-16-2014, 11:07 AM
  3. It is a phone isn't it?
    By AC Question in forum Ask a Question
    Replies: 2
    Last Post: 06-16-2014, 10:06 AM
  4. Samsung s3 battery problems ?
    By AC Question in forum Ask a Question
    Replies: 1
    Last Post: 06-16-2014, 06:38 AM
  5. why isnt my android mobile phone aint switching on
    By AC Question in forum Ask a Question
    Replies: 1
    Last Post: 06-16-2014, 05:23 AM

Posting Permissions