Barcode Scanner Result redirect to a new php page

I have a barcode scanner application . I want the barcode to be scanned on the android app itself but the result/barcode number to be redirect to a new php page. Anyone have any clue on how to do this? The code below is our coding for scanning the barcode:

public class CameraTestActivity extends Activity
 {
private Camera mCamera;
private CameraPreview mPreview;
private Handler autoFocusHandler;
URL url;


TextView scanText;
Button scanButton;

ImageScanner scanner;

private boolean barcodeScanned = false;
private boolean previewing = true;

static {
    System.loadLibrary("iconv");
} 

public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    setContentView(R.layout.activity_scan);

    setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);

    autoFocusHandler = new Handler();
    mCamera = getCameraInstance();

    /* Instance barcode scanner */
    scanner = new ImageScanner();
    scanner.setConfig(0, Config.X_DENSITY, 3);
    scanner.setConfig(0, Config.Y_DENSITY, 3);

    mPreview = new CameraPreview(this, mCamera, previewCb, autoFocusCB);
    FrameLayout preview = (FrameLayout)findViewById(R.id.cameraPreview);
    preview.addView(mPreview);

    scanText = (TextView)findViewById(R.id.scanText);

    scanButton = (Button)findViewById(R.id.ScanButton);

    scanButton.setOnClickListener(new OnClickListener() {
            public void onClick(View v) {
                if (barcodeScanned) {
                    barcodeScanned = false;
                    scanText.setText("Scanning...");
                    mCamera.setPreviewCallback(previewCb);
                    mCamera.startPreview();
                    previewing = true;
                    mCamera.autoFocus(autoFocusCB);
                    Intent viewIntent =
                            new Intent("android.intent.action.VIEW",
                                        Uri.parse("http://172.20.138.136/searchform.php"));
                            startActivity(viewIntent);
                }
            }
        });

}

public void postdata()
{

}

public void onPause() {
    super.onPause();
    releaseCamera();
}


/** A safe way to get an instance of the Camera object. */
public static Camera getCameraInstance(){
    Camera c = null;
    try {
        c = Camera.open();

read more

Barcode Scanner Result redirect to a new php page

I have a barcode scanner application . I want the barcode to be scanned on the android app itself but the result/barcode number to be redirect to a new php page. Anyone have any clue on how to do this? The code below is our coding for scanning the barcode:

public class CameraTestActivity extends Activity
 {
private Camera mCamera;
private CameraPreview mPreview;
private Handler autoFocusHandler;
URL url;


TextView scanText;
Button scanButton;

ImageScanner scanner;

private boolean barcodeScanned = false;
private boolean previewing = true;

static {
    System.loadLibrary("iconv");
} 

public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    setContentView(R.layout.activity_scan);

    setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);

    autoFocusHandler = new Handler();
    mCamera = getCameraInstance();

    /* Instance barcode scanner */
    scanner = new ImageScanner();
    scanner.setConfig(0, Config.X_DENSITY, 3);
    scanner.setConfig(0, Config.Y_DENSITY, 3);

    mPreview = new CameraPreview(this, mCamera, previewCb, autoFocusCB);
    FrameLayout preview = (FrameLayout)findViewById(R.id.cameraPreview);
    preview.addView(mPreview);

    scanText = (TextView)findViewById(R.id.scanText);

    scanButton = (Button)findViewById(R.id.ScanButton);

    scanButton.setOnClickListener(new OnClickListener() {
            public void onClick(View v) {
                if (barcodeScanned) {
                    barcodeScanned = false;
                    scanText.setText("Scanning...");
                    mCamera.setPreviewCallback(previewCb);
                    mCamera.startPreview();
                    previewing = true;
                    mCamera.autoFocus(autoFocusCB);
                    Intent viewIntent =
                            new Intent("android.intent.action.VIEW",
                                        Uri.parse("http://172.20.138.136/searchform.php"));
                            startActivity(viewIntent);
                }
            }
        });

}

public void postdata()
{

}

public void onPause() {
    super.onPause();
    releaseCamera();
}


/** A safe way to get an instance of the Camera object. */
public static Camera getCameraInstance(){
    Camera c = null;
    try {
        c = Camera.open();

read more

Using case function in tableau to draw charts

So here is the scenario: Inside one image, there are three rectangle area coordinates.The user will plot three or more points in this image. I have to make calculated field to check if any of three points that user plotted are fall inside which area coordinate out of three. The area coordinate that points fall inside are displayed as number of count and other area coordinates will display as 0. There will also be another column which displays the points that do not fall inside any of the area coordinates. Is there any way I can use to come up with formula using case function?

read more

Using case function in tableau to draw charts

So here is the scenario: Inside one image, there are three rectangle area coordinates.The user will plot three or more points in this image. I have to make calculated field to check if any of three points that user plotted are fall inside which area coordinate out of three. The area coordinate that points fall inside are displayed as number of count and other area coordinates will display as 0. There will also be another column which displays the points that do not fall inside any of the area coordinates. Is there any way I can use to come up with formula using case function?

read more

select random rows in mysql

I have one table named Mydata as follows

     id        name          type
--------------------------------------------
     1         vinu            1
     2         rinu            2
     3         dilu            1
     4         raju            2
     5         manu            3
     6         saju            3
     7         ragu            3
     8         sonu            1
     9         sam             1
     10        rag             1
--------------------------------------------

I want to print records with alternating type, for example:

First row with type =1
Second row with type =2
Third row with type =3
4th row type=1
5th row type=2 and so on

Required result as follows

     id            name            type
   -----------------------------------------
     1              vinu            1
     2              rinu            2
     5              manu            3
     3              dilu            1
     4              raju            2
     6              saju            3
     8              sonu            1
     7              ragu            3
     9              sam             1
     10             rag             1
 ----------------------------------------------

read more