title: ZXing completely included, but camera rotated
body: <p>i have included completely the zxing in my app,to make it stand-alone.
  it works, but the camera is rotated (i think 90 counterclockwise), and it has a strange padding aroud.
  my java:</p>
  
  <pre><code>package it.mi.action.codmmunicator_2ddecoder;
  
  import android.os.Bundle;
  import android.widget.Toast;
  import android.graphics.Bitmap;
  import com.google.zxing.Result;
  import com.google.zxing.client.android.CaptureActivity;
  
  public class Lettore extends CaptureActivity{
  @Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.lettore);
  }
  @Override 
  public void handleDecode(Result rawResult, Bitmap barcode) {
      Toast.makeText(this.getApplicationContext(), "Scanned code " +     rawResult.getText(), Toast.LENGTH_LONG);
  }
  }
  </code></pre>
  
  <p>and my xml (which take the activity of zxing like include):</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="fill_parent" android:layout_height="fill_parent"     android:orientation="vertical"&gt;
  &lt;ImageView android:src="@drawable/head" android:layout_width="wrap_content"     android:layout_height="wrap_content" /&gt; 
  &lt;FrameLayout android:layout_width="fill_parent" android:layout_height="250dip"&gt;
      &lt;include layout="@layout/capture" android:toDegrees="90" /&gt;
  &lt;/FrameLayout&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>the padding is this: <a href="https://dl.dropbox.com/u/16047047/Untitled-1.jpg" rel="nofollow">https://dl.dropbox.com/u/16047047/Untitled-1.jpg</a></p>
  
  <p>can someone post a solution?</p>
  
  <p>thanks a lot</p>