| WTB | htc hero / qliq......

by salman faris » Thu, 22 Apr 2010 02:15:26 GMT


Sponsored Links
 maaf repost....


lg pengen ganti nih hp
pgn coba hero atau motorola qliq atau mngkin motondroid

barangkali ada yg punya jual baik 2nd maupun baru garansi resmi...mohon di
tawarkan ya all....

lokasi di surabaya dan prefer sby...

monggo segera japri ya all...thx

-- 
"



Other Threads

1. how install webapp on emulator?

Hi...how I can install a webapp on emulator?

regards
--~--~---------~--~----~------------~-------~--~----~

2. How to build a appliication with the camera preview but not fullscreen?

I see the ApiDemos src.
But it is fullscreen, i try to build one but it crashed.


java file:


public class CameraRec2 extends Activity {
    @Override
        protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.main);
        }
}
class Preview extends SurfaceView implements SurfaceHolder.Callback {
    SurfaceHolder mHolder;
    Camera mCamera;
    Preview(Context context) {
        super(context);
        mHolder = getHolder();
        mHolder.addCallback(this);
        mHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
    }
    public void surfaceCreated(SurfaceHolder holder) {
        mCamera = Camera.open();
        try {
           mCamera.setPreviewDisplay(holder);
        } catch (IOException exception) {
            mCamera.release();
            mCamera = null;
        }
    }
    public void surfaceDestroyed(SurfaceHolder holder) {
        mCamera.stopPreview();
        mCamera = null;
    }
    public void surfaceChanged(SurfaceHolder holder, int format, int
w, int h) {
        Camera.Parameters parameters = mCamera.getParameters();
        parameters.setPreviewSize(w, h);
        mCamera.setParameters(parameters);
        mCamera.startPreview();
    }

}



layout file: main.xml



<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/
android"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:orientation="horizontal">
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/
android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    >


</LinearLayout>
 <com.example.android.camerarec2.Preview
        android:id="@+id/surface_view"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:layout_centerInParent="true"/>
</RelativeLayout>


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

3. how to instal android in mobile

4. matching prebuilt kernel sources

5. compilation of glibc for android

6. Install Android on my pocket pc

7. onTap display toast or message