how to handle parse error in android?
<p>I have done application for set wallpaper.It is successfully running on my computer but while installing apk on my phone it gives parse error also when I am doing cleanup and rebuild it gives same error.I am also having FATEL EXCEPTION:main. Why anyone help me?</p>

<p>here is my code:</p>

<pre><code>package com.example.wallpaper;

import java.io.IOException;
import java.io.InputStream;
import android.os.Bundle;
import android.app.Activity;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ImageView;

public class MainActivity extends Activity implements OnClickListener {

    ImageView display;
    int onScreen;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        display = (ImageView) findViewById(R.id.IVdisplay);
        ImageView image1 = (ImageView) findViewById(R.id.IVimage1);
        ImageView image2 = (ImageView) findViewById(R.id.IVimage2);
        ImageView image3 = (ImageView) findViewById(R.id.IVimage3);
        ImageView image4 = (ImageView) findViewById(R.id.IVimage4);
        ImageView image5 = (ImageView) findViewById(R.id.IVimage5);
        ImageView image6 = (ImageView) findViewById(R.id.IVimage6);
        ImageView image7 = (ImageView) findViewById(R.id.IVimage7);
        ImageView image8 = (ImageView) findViewById(R.id.IVimage8);
        ImageView image9 = (ImageView) findViewById(R.id.IVimage9);
        ImageView image10 = (ImageView) findViewById(R.id.IVimage10);
        ImageView image11 = (ImageView) findViewById(R.id.IVimage11);
        ImageView image12 = (ImageView) findViewById(R.id.IVimage12);
        ImageView image13 = (ImageView) findViewById(R.id.IVimage13);
        ImageView image14 = (ImageView) findViewById(R.id.IVimage14);
        Button setWall = (Button) findViewById(R.id.BsetWallpaper);

        image1.setOnClickListener(this);
        image2.setOnClickListener(this);
        image3.setOnClickListener(this);
        image4.setOnClickListener(this);
        image5.setOnClickListener(this);
        image6.setOnClickListener(this);
        image7.setOnClickListener(this);
        image8.setOnClickListener(this);
        image9.setOnClickListener(this);
        image10.setOnClickListener(this);
        image11.setOnClickListener(this);
        image12.setOnClickListener(this);
        image13.setOnClickListener(this);
        image14.setOnClickListener(this);
        setWall.setOnClickListener(this);

    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_main, menu);
        return true;
    }

    public void onClick(View v) {
        // TODO Auto-generated method stub
        switch (v.getId()){
        case R.id.IVimage1:
            display.setImageResource(R.drawable.a);
            onScreen = R.drawable.a;
            break;
        case R.id.IVimage2:
            display.setImageResource(R.drawable.b);
            onScreen = R.drawable.b;
            break;
        case R.id.IVimage3:
            display.setImageResource(R.drawable.c);
            onScreen = R.drawable.c;
            break;
        case R.id.IVimage4:
            display.setImageResource(R.drawable.d);
            onScreen = R.drawable.d;
            break;
        case R.id.IVimage5:
            display.setImageResource(R.drawable.e);
            onScreen = R.drawable.e;
            break;
        case R.id.IVimage6:
            display.setImageResource(R.drawable.f);
            onScreen = R.drawable.f;
            break;
        case R.id.IVimage7:
            display.setImageResource(R.drawable.g);
            onScreen = R.drawable.g;
            break;
        case R.id.IVimage8:
            display.setImageResource(R.drawable.h);
            onScreen = R.drawable.h;
            break;
        case R.id.IVimage9:
            display.setImageResource(R.drawable.i);
            onScreen = R.drawable.i;
            break;
        case R.id.IVimage10:
            display.setImageResource(R.drawable.j);
            onScreen = R.drawable.j;
            break;
        case R.id.IVimage11:
            display.setImageResource(R.drawable.k);
            onScreen = R.drawable.k;
            break;
        case R.id.IVimage12:
            display.setImageResource(R.drawable.l);
            onScreen = R.drawable.l;
            break;
        case R.id.IVimage13:
            display.setImageResource(R.drawable.m);
            onScreen = R.drawable.m;
            break;
        case R.id.IVimage14:
            display.setImageResource(R.drawable.n);
            onScreen = R.drawable.n;
            break;
        case R.id.BsetWallpaper:
            InputStream is = getResources().openRawResource(onScreen);
            Bitmap bt = BitmapFactory.decodeStream(is);
            try{
                getApplicationContext().setWallpaper(bt);   
            }catch(IOException e){
                e.printStackTrace();    
            }
            break;
        }


    }
}
</code></pre>
