[Solved] Access phone information [closed]

You can use the TelephonyManager class for IMEI , Phone Number and use the LocationManger class for location. Use this code: TelephonyManager tm = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE); // get IMEI String imei = tm.getDeviceId(); //get The Phone Number String phone = tm.getLine1Number(); 1 solved Access phone information [closed]

[Solved] Android Qr code generation [closed]

Try this public void generateQRCode_general(String data, ImageView img)throws WriterException { com.google.zxing.Writer writer = new QRCodeWriter(); String finaldata = Uri.encode(data, characterEncoding); BitMatrix bm = writer.encode(finaldata, BarcodeFormat.QR_CODE,bitmapWidth, bitmapHeight); ImageBitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight,Config.ARGB_8888); for (int i = 0; i < bitmapWidth; i++) { for (int j = 0; j < bitmapHeight; j++) { ImageBitmap.setPixel(i, j, bm.get(i, j) ? … Read more