Category : barcode-scanner

I have an android webview app in VS2019. I am trying to call a JS function which in turn invokes a JS Interface and opens the QR scanner. What i am unable to do it reach JS interface code through remote URL… Here is my code… MainActivity.cs using Android.App; using Android.OS; using Android.Support.V7.App; using Android.Runtime; ..

Read more

protected void onActivityResult (int requestCode, int resultCode, Intent data){ super.onActivityResult(requestCode, resultCode, data); IntentResult result = IntentIntegrator.parseActivityResult(requestCode, resultCode, data); if (result != null){ setContentView(R.layout.activity_main); myDAO = new DAO(this); myDBhandler = myDAO.dbHandler; SQLiteDatabase db = myDBhandler.getWritableDatabase(); String query = " select * from table_produk where id = ‘"+result.getContents()+"’"; Cursor cursor = db.rawQuery(query,null); cursor.moveToFirst(); final AlertDialog.Builder builder = ..

Read more