title: Displaying SVG file on android real device
body: <p>I want to display svg file in android. I use <code>Library svg-android</code> . However it does not work. i downloaded the sample project . It gives 'app1 is stopped` error on device. Also, i tried the hardware part. I used this code part. </p>
  
  <pre><code>super.onCreate(savedInstanceState);
  
      setContentView(R.layout.activity_main);
  
      SVG svg = SVGParser.getSVGFromResource(getResources(),R.raw.listitemsvg);
   //   Picture picture = svg.getPicture();
      Drawable drawable = svg.createPictureDrawable();
     // Button button1 =   (Button) findViewById( R.id.button1 ) ;
      ImageView image = (ImageView) findViewById(R.id.imageView1 );
      image.setLayerType(View.LAYER_TYPE_SOFTWARE, null);
       image.setImageDrawable(drawable);
      // button1.setBackground(drawable);
  </code></pre>
  
  <p>As you see, first i tried it on button view. After that, i tried it on imageview. Both do not work.I want to know why it does not works on android device?</p>
  
  <p>Logcat:</p>
  
  <blockquote>
    <p>08-21 23:10:31.800: I/dalvikvm(4660): Could not find method com.larvalabs.svgandroid.SVGParser.getSVGFromResource, referenced from method com.example.budogui.MainActivity.onCreate
    08-21 23:10:31.800: W/dalvikvm(4660): VFY: unable to resolve static method 8440: Lcom/larvalabs/svgandroid/SVGParser;.getSVGFromResource (Landroid/content/res/Resources;I)Lcom/larvalabs/svgandroid/SVG;
    08-21 23:10:31.800: D/dalvikvm(4660): VFY: replacing opcode 0x71 at 0x000f
    08-21 23:10:31.880: D/AndroidRuntime(4660): Shutting down VM
    08-21 23:10:31.880: W/dalvikvm(4660): threadid=1: thread exiting with uncaught exception (group=0x40ec3930)
    08-21 23:10:31.880: E/AndroidRuntime(4660): FATAL EXCEPTION: main
    08-21 23:10:31.880: E/AndroidRuntime(4660): java.lang.NoClassDefFoundError: com.larvalabs.svgandroid.SVGParser</p>
  </blockquote>
  
  <p>File:
  <a href="http://imgh.us/listitemsvg.svg" rel="nofollow">http://imgh.us/listitemsvg.svg</a></p>