gtin=(EditText) findViewById(R.id.editText1); gtin.setText(sGtin); serial=(EditText) findViewById(R.id.editText2); serial.setText(sSerial); batch=(EditText) findViewById(R.id.editText3); batch.setText(sBatch); expiry=(EditText) findViewById(R.id.editText4); expiry.setText(sExpiry);
Log.i("Send SMS", ""); Intent smsIntent = new Intent(Intent.ACTION_VIEW); smsIntent.setData(Uri.parse("smsto:")); smsIntent.setType("vnd.android-dir/mms-sms"); smsIntent.putExtra("address" , new String ("7598149597")); smsIntent.putExtra("sms_body" , "Found illegal medicine"); smsIntent.putExtra("sSerial", "serial"); try { startActivity(smsIntent); finish(); Log.i("Finished sending SMS...", ""); } catch (android.content.ActivityNotFoundException ex) { Toast.makeText(ScanScreen.this, "SMS faild, please try again later.", Toast.LENGTH_SHORT).show(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)