Question [SOLVED] Xiaomi 12 Hard Brick Help - Xiaomi 12

Unfortunately, I've ran into a bit of a mess with my Xiaomi 12 (China). I tried flashing a rom and it's now stuck in a fastboot bootloop and I'm stumped on how to get this thing out of it. It refuses to boot into recovery as well. **My bootloader is unlocked and confirmed with fastboot oem device-info**
Things I've tried:
Fastboot boot -whatever the android 13 twrp is-, it gives this error -> "'Failed to load/authenticate boot image: Device Error'"
Fastboot reboot recovery (After flashing a recovery image) -> just causes the device to reboot back into fastboot
I've flashed stock firmware with the miui flasher, all it does is reboot the device when it's finished and it again boots to fastboot
Tried to type fastboot continue in order to bypass fastboot to the rom -> "'Failed to load image from partition: Device Error'"
Tried using another fastboot rom to install, no luck at all.
Tried the flash_all.bat file instead of just using miui flasher.
I'm assuming the partitions are messed up somehow however, everything installs properly when using miui flasher. The device absolutely refuses to do anything other than fastboot. It won't even show the mi boot logo, it just instantly boots to fastboot. Any help would be much appreciated! Thank you all!
*EDIT* Xiaomi Repair Center was the result.

Could you post the Miflash log(+or- 25 kb,starts with Miflash,Miflash/log folder)?

NOSS8 said:
Could you post the Miflash log(+or- 25 kb,starts with Miflash,Miflash/log folder)?
Click to expand...
Click to collapse
[2023-05-23 01:20:16:874:874658]:lsusb path:"C:\Users\Cody\Desktop\MiFlash20220507\Source\ThirdParty\Qualcomm\fh_loader\lsusb.exe"
[2023-05-23 01:20:16:921:921452]:ls ubs :Qualcomm HS-USB QDLoader 9008 (COM3)
[2023-05-23 01:20:17:051:051836]:Specified cast is not valid. at XiaoMiFlash.code.Utility.UsbDevice.GetAndroidDevices(TreeViewUsbItem item, List`1& outItems)
[2023-05-23 01:20:17:110:110861]:add device COM3 index 3
[2023-05-23 01:20:34:730:730567]:lsusb path:"C:\Users\Cody\Desktop\MiFlash20220507\Source\ThirdParty\Qualcomm\fh_loader\lsusb.exe"
[2023-05-23 01:20:34:764:764601]:ls ubs :Qualcomm HS-USB QDLoader 9008 (COM3)
[2023-05-23 01:20:34:792:792706]:Specified cast is not valid. at XiaoMiFlash.code.Utility.UsbDevice.GetAndroidDevices(TreeViewUsbItem item, List`1& outItems)
[2023-05-23 01:20:34:834:834600]:FlashingDevice.flashDeviceList.Remove COM3
[2023-05-23 01:20:34:840:840254]:add device COM3 index 3
[2023-05-23 01:20:34:844:844258]:dl not exit ffufilelist
[2023-05-23 01:20:34:846:846725]:Thread start,thread id 7,thread name COM3
[2023-05-23 01:20:37:021:021765]:lsusb path:"C:\Users\Cody\Desktop\MiFlash20220507\Source\ThirdParty\Qualcomm\fh_loader\lsusb.exe"
[2023-05-23 01:20:37:059:059736]:ls ubs :Qualcomm HS-USB QDLoader 9008 (COM3)
[2023-05-23 01:20:37:080:080667]:Specified cast is not valid. at XiaoMiFlash.code.Utility.UsbDevice.GetAndroidDevices(TreeViewUsbItem item, List`1& outItems)
[2023-05-23 01:20:37:121:121505]ulicate device COM3
[2023-05-23 01:20:37:123:123520]:dl not exit ffufilelist
[2023-05-23 01:20:37:123:123520]:COM3 already in flashing
[2023-05-23 01:20:38:148:148474]:lsusb path:"C:\Users\Cody\Desktop\MiFlash20220507\Source\ThirdParty\Qualcomm\fh_loader\lsusb.exe"
[2023-05-23 01:20:38:186:186868]:ls ubs :Qualcomm HS-USB QDLoader 9008 (COM3)
[2023-05-23 01:20:38:208:208280]:Specified cast is not valid. at XiaoMiFlash.code.Utility.UsbDevice.GetAndroidDevices(TreeViewUsbItem item, List`1& outItems)
[2023-05-23 01:20:38:250:250516]ulicate device COM3
[2023-05-23 01:20:38:252:252219]:dl not exit ffufilelist
[2023-05-23 01:20:38:252:252219]:COM3 already in flashing
[2023-05-23 01:20:48:320:320865]:lsusb path:"C:\Users\Cody\Desktop\MiFlash20220507\Source\ThirdParty\Qualcomm\fh_loader\lsusb.exe"
[2023-05-23 01:20:48:356:356307]:ls ubs :Qualcomm HS-USB QDLoader 9008 (COM3)
[2023-05-23 01:20:48:378:378170]:Specified cast is not valid. at XiaoMiFlash.code.Utility.UsbDevice.GetAndroidDevices(TreeViewUsbItem item, List`1& outItems)
[2023-05-23 01:20:48:421:421246]:FlashingDevice.flashDeviceList.Remove COM3
[2023-05-23 01:20:48:423:423245]:add device COM3 index 3
[2023-05-23 01:20:48:426:426245]:dl not exit ffufilelist
[2023-05-23 01:20:48:432:432155]:Thread start,thread id 15,thread name COM3
[2023-05-23 01:20:49:473:473780]:lsusb path:"C:\Users\Cody\Desktop\MiFlash20220507\Source\ThirdParty\Qualcomm\fh_loader\lsusb.exe"
[2023-05-23 01:20:49:511:511351]:ls ubs :Qualcomm HS-USB QDLoader 9008 (COM3)
[2023-05-23 01:20:49:532:532152]:Specified cast is not valid. at XiaoMiFlash.code.Utility.UsbDevice.GetAndroidDevices(TreeViewUsbItem item, List`1& outItems)
[2023-05-23 01:20:49:573:573666]ulicate device COM3
[2023-05-23 01:20:49:575:575672]:dl not exit ffufilelist
[2023-05-23 01:20:49:576:576678]:COM3 already in flashing
[2023-05-23 01:20:57:082:082349]:lsusb path:"C:\Users\Cody\Desktop\MiFlash20220507\Source\ThirdParty\Qualcomm\fh_loader\lsusb.exe"
[2023-05-23 01:20:57:122:122570]:ls ubs :Qualcomm HS-USB QDLoader 9008 (COM3)
[2023-05-23 01:20:57:146:146811]:Specified cast is not valid. at XiaoMiFlash.code.Utility.UsbDevice.GetAndroidDevices(TreeViewUsbItem item, List`1& outItems)
[2023-05-23 01:20:57:188:188872]:FlashingDevice.flashDeviceList.Remove COM3
[2023-05-23 01:20:57:189:189872]:add device COM3 index 3
[2023-05-23 01:20:57:193:193864]:dl not exit ffufilelist
[2023-05-23 01:20:57:194:194969]:Thread start,thread id 19,thread name COM3
[2023-05-23 01:21:17:339:339111]:lsusb path:"C:\Users\Cody\Desktop\MiFlash20220507\Source\ThirdParty\Qualcomm\fh_loader\lsusb.exe"
[2023-05-23 01:21:17:376:376647]:ls ubs :Qualcomm HS-USB QDLoader 9008 (COM3)
[2023-05-23 01:21:17:400:400041]:Specified cast is not valid. at XiaoMiFlash.code.Utility.UsbDevice.GetAndroidDevices(TreeViewUsbItem item, List`1& outItems)
[2023-05-23 01:21:17:440:440706]:FlashingDevice.flashDeviceList.Remove COM3
[2023-05-23 01:21:17:443:443706]:add device COM3 index 3
[2023-05-23 01:21:17:446:446187]:dl not exit ffufilelist
[2023-05-23 01:21:17:447:447194]:Thread start,thread id 4,thread name COM3
[2023-05-23 01:21:26:086:086018]:authentication edl error:Object reference not set to an instance of an object.
[2023-05-23 01:21:29:869:869534]:Thread stopped, thread id 7, thread name COM3
[2023-05-23 01:21:33:247:247120]:lsusb path:"C:\Users\Cody\Desktop\MiFlash20220507\Source\ThirdParty\Qualcomm\fh_loader\lsusb.exe"
[2023-05-23 01:21:33:307:307163]:Specified cast is not valid. at XiaoMiFlash.code.Utility.UsbDevice.GetAndroidDevices(TreeViewUsbItem item, List`1& outItems)
[2023-05-23 01:21:33:348:348161]:FlashingDevice.flashDeviceList.Remove COM3
[2023-05-23 01:21:33:352:352349]:dl not exit ffufilelist
[2023-05-23 01:21:33:597:597614]pen serial port COM3
[2023-05-23 01:21:33:598:598637]:System.IO.IOException: The requested resource is in use.
at System.IO.Ports.InternalResources.WinIOError(Int32 errorCode, String str)
at System.IO.Ports.SerialStream..ctor(String portName, Int32 baudRate, Parity parity, Int32 dataBits, StopBits stopBits, Int32 readTimeout, Int32 writeTimeout, Handshake handshake, Boolean dtrEnable, Boolean rtsEnable, Boolean discardNull, Byte parityReplace)
at System.IO.Ports.SerialPort.Open()
at XiaoMiFlash.code.bl.SerialPortDevice.registerPort(SerialPort port) at System.IO.Ports.InternalResources.WinIOError(Int32 errorCode, String str)
at System.IO.Ports.SerialStream..ctor(String portName, Int32 baudRate, Parity parity, Int32 dataBits, StopBits stopBits, Int32 readTimeout, Int32 writeTimeout, Handshake handshake, Boolean dtrEnable, Boolean rtsEnable, Boolean discardNull, Byte parityReplace)
at System.IO.Ports.SerialPort.Open()
at XiaoMiFlash.code.bl.SerialPortDevice.registerPort(SerialPort port)
[2023-05-23 01:21:33:599:599637]:System.Exception: [2023-05-23 01:21:33:598:598637]:System.IO.IOException: The requested resource is in use.
at System.IO.Ports.InternalResources.WinIOError(Int32 errorCode, String str)
at System.IO.Ports.SerialStream..ctor(String portName, Int32 baudRate, Parity parity, Int32 dataBits, StopBits stopBits, Int32 readTimeout, Int32 writeTimeout, Handshake handshake, Boolean dtrEnable, Boolean rtsEnable, Boolean discardNull, Byte parityReplace)
at System.IO.Ports.SerialPort.Open()
at XiaoMiFlash.code.bl.SerialPortDevice.registerPort(SerialPort port) at System.IO.Ports.InternalResources.WinIOError(Int32 errorCode, String str)
at System.IO.Ports.SerialStream..ctor(String portName, Int32 baudRate, Parity parity, Int32 dataBits, StopBits stopBits, Int32 readTimeout, Int32 writeTimeout, Handshake handshake, Boolean dtrEnable, Boolean rtsEnable, Boolean discardNull, Byte parityReplace)
at System.IO.Ports.SerialPort.Open()
at XiaoMiFlash.code.bl.SerialPortDevice.registerPort(SerialPort port)
at XiaoMiFlash.code.Utility.Log.w(String msg, Boolean throwEx)
at XiaoMiFlash.code.Utility.Log.w(String deviceName, String msg, Boolean throwEx)
at XiaoMiFlash.code.bl.SerialPortDevice.registerPort(SerialPort port)
at XiaoMiFlash.code.bl.SerialPortDevice.XiaomiFlashNew() at XiaoMiFlash.code.Utility.Log.w(String msg, Boolean throwEx)
at XiaoMiFlash.code.Utility.Log.w(String deviceName, String msg, Boolean throwEx)
at XiaoMiFlash.code.bl.SerialPortDevice.registerPort(SerialPort port)
at XiaoMiFlash.code.bl.SerialPortDevice.XiaomiFlashNew()
[2023-05-23 01:21:33:613:613634]pen serial port COM3
[2023-05-23 01:21:33:613:613634]:System.IO.IOException: The requested resource is in use.
at System.IO.Ports.InternalResources.WinIOError(Int32 errorCode, String str)
at System.IO.Ports.SerialStream..ctor(String portName, Int32 baudRate, Parity parity, Int32 dataBits, StopBits stopBits, Int32 readTimeout, Int32 writeTimeout, Handshake handshake, Boolean dtrEnable, Boolean rtsEnable, Boolean discardNull, Byte parityReplace)
at System.IO.Ports.SerialPort.Open()
at XiaoMiFlash.code.bl.SerialPortDevice.registerPort(SerialPort port) at System.IO.Ports.InternalResources.WinIOError(Int32 errorCode, String str)
at System.IO.Ports.SerialStream..ctor(String portName, Int32 baudRate, Parity parity, Int32 dataBits, StopBits stopBits, Int32 readTimeout, Int32 writeTimeout, Handshake handshake, Boolean dtrEnable, Boolean rtsEnable, Boolean discardNull, Byte parityReplace)
at System.IO.Ports.SerialPort.Open()
at XiaoMiFlash.code.bl.SerialPortDevice.registerPort(SerialPort port)
[2023-05-23 01:21:33:613:613634]:System.Exception: [2023-05-23 01:21:33:613:613634]:System.IO.IOException: The requested resource is in use.
at System.IO.Ports.InternalResources.WinIOError(Int32 errorCode, String str)
at System.IO.Ports.SerialStream..ctor(String portName, Int32 baudRate, Parity parity, Int32 dataBits, StopBits stopBits, Int32 readTimeout, Int32 writeTimeout, Handshake handshake, Boolean dtrEnable, Boolean rtsEnable, Boolean discardNull, Byte parityReplace)
at System.IO.Ports.SerialPort.Open()
at XiaoMiFlash.code.bl.SerialPortDevice.registerPort(SerialPort port) at System.IO.Ports.InternalResources.WinIOError(Int32 errorCode, String str)
at System.IO.Ports.SerialStream..ctor(String portName, Int32 baudRate, Parity parity, Int32 dataBits, StopBits stopBits, Int32 readTimeout, Int32 writeTimeout, Handshake handshake, Boolean dtrEnable, Boolean rtsEnable, Boolean discardNull, Byte parityReplace)
at System.IO.Ports.SerialPort.Open()
at XiaoMiFlash.code.bl.SerialPortDevice.registerPort(SerialPort port)
at XiaoMiFlash.code.Utility.Log.w(String msg, Boolean throwEx)
at XiaoMiFlash.code.Utility.Log.w(String deviceName, String msg, Boolean throwEx)
at XiaoMiFlash.code.bl.SerialPortDevice.registerPort(SerialPort port)
at XiaoMiFlash.code.bl.SerialPortDevice.XiaomiFlashNew() at XiaoMiFlash.code.Utility.Log.w(String msg, Boolean throwEx)
at XiaoMiFlash.code.Utility.Log.w(String deviceName, String msg, Boolean throwEx)
at XiaoMiFlash.code.bl.SerialPortDevice.registerPort(SerialPort port)
at XiaoMiFlash.code.bl.SerialPortDevice.XiaomiFlashNew()
[2023-05-23 01:21:33:681:681707]:lsusb path:"C:\Users\Cody\Desktop\MiFlash20220507\Source\ThirdParty\Qualcomm\fh_loader\lsusb.exe"
[2023-05-23 01:21:33:747:747328]pen serial port COM3
[2023-05-23 01:21:33:748:748319]:System.IO.IOException: The requested resource is in use.
at System.IO.Ports.InternalResources.WinIOError(Int32 errorCode, String str)
at System.IO.Ports.SerialStream..ctor(String portName, Int32 baudRate, Parity parity, Int32 dataBits, StopBits stopBits, Int32 readTimeout, Int32 writeTimeout, Handshake handshake, Boolean dtrEnable, Boolean rtsEnable, Boolean discardNull, Byte parityReplace)
at System.IO.Ports.SerialPort.Open()
at XiaoMiFlash.code.bl.SerialPortDevice.registerPort(SerialPort port) at System.IO.Ports.InternalResources.WinIOError(Int32 errorCode, String str)
at System.IO.Ports.SerialStream..ctor(String portName, Int32 baudRate, Parity parity, Int32 dataBits, StopBits stopBits, Int32 readTimeout, Int32 writeTimeout, Handshake handshake, Boolean dtrEnable, Boolean rtsEnable, Boolean discardNull, Byte parityReplace)
at System.IO.Ports.SerialPort.Open()
at XiaoMiFlash.code.bl.SerialPortDevice.registerPort(SerialPort port)
[2023-05-23 01:21:33:748:748319]:System.Exception: [2023-05-23 01:21:33:748:748319]:System.IO.IOException: The requested resource is in use.
at System.IO.Ports.InternalResources.WinIOError(Int32 errorCode, String str)
at System.IO.Ports.SerialStream..ctor(String portName, Int32 baudRate, Parity parity, Int32 dataBits, StopBits stopBits, Int32 readTimeout, Int32 writeTimeout, Handshake handshake, Boolean dtrEnable, Boolean rtsEnable, Boolean discardNull, Byte parityReplace)
at System.IO.Ports.SerialPort.Open()
at XiaoMiFlash.code.bl.SerialPortDevice.registerPort(SerialPort port) at System.IO.Ports.InternalResources.WinIOError(Int32 errorCode, String str)
at System.IO.Ports.SerialStream..ctor(String portName, Int32 baudRate, Parity parity, Int32 dataBits, StopBits stopBits, Int32 readTimeout, Int32 writeTimeout, Handshake handshake, Boolean dtrEnable, Boolean rtsEnable, Boolean discardNull, Byte parityReplace)
at System.IO.Ports.SerialPort.Open()
at XiaoMiFlash.code.bl.SerialPortDevice.registerPort(SerialPort port)
at XiaoMiFlash.code.Utility.Log.w(String msg, Boolean throwEx)
at XiaoMiFlash.code.Utility.Log.w(String deviceName, String msg, Boolean throwEx)
at XiaoMiFlash.code.bl.SerialPortDevice.registerPort(SerialPort port)
at XiaoMiFlash.code.bl.SerialPortDevice.XiaomiFlashNew() at XiaoMiFlash.code.Utility.Log.w(String msg, Boolean throwEx)
at XiaoMiFlash.code.Utility.Log.w(String deviceName, String msg, Boolean throwEx)
at XiaoMiFlash.code.bl.SerialPortDevice.registerPort(SerialPort port)
at XiaoMiFlash.code.bl.SerialPortDevice.XiaomiFlashNew()
[2023-05-23 01:21:33:750:750290]:Specified cast is not valid. at XiaoMiFlash.code.Utility.UsbDevice.GetAndroidDevices(TreeViewUsbItem item, List`1& outItems)
[2023-05-23 01:21:33:800:800703]:dl not exit ffufilelist
[2023-05-23 01:21:36:268:268077]:lsusb path:"C:\Users\Cody\Desktop\MiFlash20220507\Source\ThirdParty\Qualcomm\fh_loader\lsusb.exe"
[2023-05-23 01:21:44:275:275260]:lsusb path:"C:\Users\Cody\Desktop\MiFlash20220507\Source\ThirdParty\Qualcomm\fh_loader\lsusb.exe"
[2023-05-23 01:21:44:384:384253]:Specified cast is not valid. at XiaoMiFlash.code.Utility.UsbDevice.GetAndroidDevices(TreeViewUsbItem item, List`1& outItems)
[2023-05-23 01:21:45:010:010597]:lsusb path:"C:\Users\Cody\Desktop\MiFlash20220507\Source\ThirdParty\Qualcomm\fh_loader\lsusb.exe"
[2023-05-23 01:21:45:071:071057]:Specified cast is not valid. at XiaoMiFlash.code.Utility.UsbDevice.GetAndroidDevices(TreeViewUsbItem item, List`1& outItems)
[2023-05-23 01:21:45:513:513401]:lsusb path:"C:\Users\Cody\Desktop\MiFlash20220507\Source\ThirdParty\Qualcomm\fh_loader\lsusb.exe"
[2023-05-23 01:21:45:568:568650]:Specified cast is not valid. at XiaoMiFlash.code.Utility.UsbDevice.GetAndroidDevices(TreeViewUsbItem item, List`1& outItems)
[2023-05-23 01:21:54:909:909942]:lsusb path:"C:\Users\Cody\Desktop\MiFlash20220507\Source\ThirdParty\Qualcomm\fh_loader\lsusb.exe"
[2023-05-23 01:21:54:972:972426]:Specified cast is not valid. at XiaoMiFlash.code.Utility.UsbDevice.GetAndroidDevices(TreeViewUsbItem item, List`1& outItems)
[2023-05-23 01:21:55:488:488138]:lsusb path:"C:\Users\Cody\Desktop\MiFlash20220507\Source\ThirdParty\Qualcomm\fh_loader\lsusb.exe"
[2023-05-23 01:21:55:547:547108]:Specified cast is not valid. at XiaoMiFlash.code.Utility.UsbDevice.GetAndroidDevices(TreeViewUsbItem item, List`1& outItems)
[2023-05-23 01:21:55:655:655917]:lsusb path:"C:\Users\Cody\Desktop\MiFlash20220507\Source\ThirdParty\Qualcomm\fh_loader\lsusb.exe"
[2023-05-23 01:21:55:712:712941]:Specified cast is not valid. at XiaoMiFlash.code.Utility.UsbDevice.GetAndroidDevices(TreeViewUsbItem item, List`1& outItems)
[2023-05-23 01:21:55:822:822235]:lsusb path:"C:\Users\Cody\Desktop\MiFlash20220507\Source\ThirdParty\Qualcomm\fh_loader\lsusb.exe"
[2023-05-23 01:21:55:880:880721]:Specified cast is not valid. at XiaoMiFlash.code.Utility.UsbDevice.GetAndroidDevices(TreeViewUsbItem item, List`1& outItems)
[2023-05-23 01:21:56:186:186823]:lsusb path:"C:\Users\Cody\Desktop\MiFlash20220507\Source\ThirdParty\Qualcomm\fh_loader\lsusb.exe"
[2023-05-23 01:21:56:244:244272]:Specified cast is not valid. at XiaoMiFlash.code.Utility.UsbDevice.GetAndroidDevices(TreeViewUsbItem item, List`1& outItems)
[2023-05-23 01:22:16:493:493770]:lsusb path:"C:\Users\Cody\Desktop\MiFlash20220507\Source\ThirdParty\Qualcomm\fh_loader\lsusb.exe"
[2023-05-23 01:22:16:532:532807]:ls ubs :Qualcomm HS-USB QDLoader 9008 (COM4)
[2023-05-23 01:22:16:554:554053]:Specified cast is not valid. at XiaoMiFlash.code.Utility.UsbDevice.GetAndroidDevices(TreeViewUsbItem item, List`1& outItems)
[2023-05-23 01:22:16:598:598004]:add device COM4 index 4
[2023-05-23 01:22:17:147:147923]:lsusb path:"C:\Users\Cody\Desktop\MiFlash20220507\Source\ThirdParty\Qualcomm\fh_loader\lsusb.exe"
[2023-05-23 01:22:17:187:187410]:ls ubs :Qualcomm HS-USB QDLoader 9008 (COM4)
[2023-05-23 01:22:17:210:210110]:Specified cast is not valid. at XiaoMiFlash.code.Utility.UsbDevice.GetAndroidDevices(TreeViewUsbItem item, List`1& outItems)
[2023-05-23 01:22:17:253:253182]:FlashingDevice.flashDeviceList.Remove COM4
[2023-05-23 01:22:17:257:257773]:add device COM4 index 4
[2023-05-23 01:22:18:491:491569]:lsusb path:"C:\Users\Cody\Desktop\MiFlash20220507\Source\ThirdParty\Qualcomm\fh_loader\lsusb.exe"
[2023-05-23 01:22:18:529:529940]:ls ubs :Qualcomm HS-USB QDLoader 9008 (COM4)
[2023-05-23 01:22:18:551:551866]:Specified cast is not valid. at XiaoMiFlash.code.Utility.UsbDevice.GetAndroidDevices(TreeViewUsbItem item, List`1& outItems)
[2023-05-23 01:22:18:594:594929]:FlashingDevice.flashDeviceList.Remove COM4
[2023-05-23 01:22:18:596:596492]:add device COM4 index 4
[2023-05-23 01:22:18:599:599493]:dl not exit ffufilelist
[2023-05-23 01:22:18:603:603495]:Thread start,thread id 17,thread name COM4
[2023-05-23 01:23:11:516:516248]:vboytest: out_size0
[2023-05-23 01:23:13:600:600871]:Thread stopped, thread id 17, thread name COM4
[2023-05-23 01:23:17:603:603195]:lsusb path:"C:\Users\Cody\Desktop\MiFlash20220507\Source\ThirdParty\Qualcomm\fh_loader\lsusb.exe"
[2023-05-23 01:23:17:647:647456]:ls ubs :Qualcomm HS-USB QDLoader 9008 (COM4)
[2023-05-23 01:23:17:671:671047]:Specified cast is not valid. at XiaoMiFlash.code.Utility.UsbDevice.GetAndroidDevices(TreeViewUsbItem item, List`1& outItems)
[2023-05-23 01:23:17:721:721634]:FlashingDevice.flashDeviceList.Remove COM4
[2023-05-23 01:23:17:723:723323]:add device COM4 index 4
[2023-05-23 01:23:17:726:726937]:dl not exit ffufilelist
[2023-05-23 01:23:17:727:727937]:Thread start,thread id 12,thread name COM4
[2023-05-23 01:23:35:422:422758]:lsusb path:"C:\Users\Cody\Desktop\MiFlash20220507\Source\ThirdParty\Qualcomm\fh_loader\lsusb.exe"
[2023-05-23 01:23:35:462:462065]:ls ubs :Qualcomm HS-USB QDLoader 9008 (COM4)
[2023-05-23 01:23:35:539:539108]:Specified cast is not valid. at XiaoMiFlash.code.Utility.UsbDevice.GetAndroidDevices(TreeViewUsbItem item, List`1& outItems)
[2023-05-23 01:23:35:581:581877]:add device COM4 index 4
[2023-05-23 01:23:36:719:719221]:lsusb path:"C:\Users\Cody\Desktop\MiFlash20220507\Source\ThirdParty\Qualcomm\fh_loader\lsusb.exe"
[2023-05-23 01:23:36:756:756733]:ls ubs :Qualcomm HS-USB QDLoader 9008 (COM4)
[2023-05-23 01:23:36:778:778129]:Specified cast is not valid. at XiaoMiFlash.code.Utility.UsbDevice.GetAndroidDevices(TreeViewUsbItem item, List`1& outItems)
[2023-05-23 01:23:36:819:819142]:FlashingDevice.flashDeviceList.Remove COM4
[2023-05-23 01:23:36:824:824700]:add device COM4 index 4
[2023-05-23 01:23:36:828:828345]:dl not exit ffufilelist
[2023-05-23 01:23:36:831:831334]:Thread start,thread id 9,thread name COM4
[2023-05-23 01:23:46:831:831945]:Thread stopped, thread id 9, thread name COM4
[2023-05-23 01:25:26:640:640245]:lsusb path:"C:\Users\Cody\Desktop\MiFlash20220507\Source\ThirdParty\Qualcomm\fh_loader\lsusb.exe"
[2023-05-23 01:25:26:706:706721]:Specified cast is not valid. at XiaoMiFlash.code.Utility.UsbDevice.GetAndroidDevices(TreeViewUsbItem item, List`1& outItems)
[2023-05-23 01:25:26:753:753163]:FlashingDevice.flashDeviceList.Remove COM4
[2023-05-23 01:25:26:753:753163]:add device f7814c51 index 1
[2023-05-23 01:25:32:637:637963]:lsusb path:"C:\Users\Cody\Desktop\MiFlash20220507\Source\ThirdParty\Qualcomm\fh_loader\lsusb.exe"
[2023-05-23 01:25:32:681:681563]:ls ubs :Qualcomm HS-USB QDLoader 9008 (COM3)
[2023-05-23 01:25:32:702:702322]:Specified cast is not valid. at XiaoMiFlash.code.Utility.UsbDevice.GetAndroidDevices(TreeViewUsbItem item, List`1& outItems)
[2023-05-23 01:25:32:743:743182]:FlashingDevice.flashDeviceList.Remove f7814c51
[2023-05-23 01:25:32:744:744181]:add device COM3 index 3
[2023-05-23 01:25:33:862:862664]:lsusb path:"C:\Users\Cody\Desktop\MiFlash20220507\Source\ThirdParty\Qualcomm\fh_loader\lsusb.exe"
[2023-05-23 01:25:33:900:900515]:ls ubs :Qualcomm HS-USB QDLoader 9008 (COM3)
[2023-05-23 01:25:33:922:922325]:Specified cast is not valid. at XiaoMiFlash.code.Utility.UsbDevice.GetAndroidDevices(TreeViewUsbItem item, List`1& outItems)
[2023-05-23 01:25:33:963:963247]:FlashingDevice.flashDeviceList.Remove COM3
[2023-05-23 01:25:33:965:965245]:add device COM3 index 3
[2023-05-23 01:25:33:968:968487]:dl not exit ffufilelist
[2023-05-23 01:25:33:969:969487]:Thread start,thread id 6,thread name COM3
[2023-05-23 01:26:27:721:721099]:vboytest: out_size0
[2023-05-23 01:26:31:826:826960]:Thread stopped, thread id 6, thread name COM3
[2023-05-23 01:27:28:913:913788]:lsusb path:"C:\Users\Cody\Desktop\MiFlash20220507\Source\ThirdParty\Qualcomm\fh_loader\lsusb.exe"
[2023-05-23 01:27:28:953:953803]:ls ubs :Qualcomm HS-USB QDLoader 9008 (COM3)
[2023-05-23 01:27:28:976:976788]:Specified cast is not valid. at XiaoMiFlash.code.Utility.UsbDevice.GetAndroidDevices(TreeViewUsbItem item, List`1& outItems)
[2023-05-23 01:27:29:017:017425]:FlashingDevice.flashDeviceList.Remove COM3
[2023-05-23 01:27:29:019:019429]:add device COM3 index 3
[2023-05-23 01:27:29:023:023872]:dl not exit ffufilelist
[2023-05-23 01:27:29:025:025658]:Thread start,thread id 11,thread name COM3
[2023-05-23 01:27:36:853:853085]:Thread stopped, thread id 11, thread name COM3
[2023-05-23 01:27:57:161:161008]:lsusb path:"C:\Users\Cody\Desktop\MiFlash20220507\Source\ThirdParty\Qualcomm\fh_loader\lsusb.exe"
[2023-05-23 01:27:57:200:200009]:ls ubs :Qualcomm HS-USB QDLoader 9008 (COM3)
[2023-05-23 01:27:57:224:224479]:Specified cast is not valid. at XiaoMiFlash.code.Utility.UsbDevice.GetAndroidDevices(TreeViewUsbItem item, List`1& outItems)
[2023-05-23 01:27:57:269:269479]:FlashingDevice.flashDeviceList.Remove COM3
[2023-05-23 01:27:57:270:270478]:add device COM3 index 3
[2023-05-23 01:27:57:274:274405]:dl not exit ffufilelist
[2023-05-23 01:27:57:275:275407]:Thread start,thread id 17,thread name COM3
[2023-05-23 01:28:47:057:057856]:vboytest: out_size0
[2023-05-23 01:28:51:899:899885]:Thread stopped, thread id 17, thread name COM3

It's not the right log but whatever, the phone is in EDL mode.

Related

Outlook Web access with MDAIII, it won't display my messages

Guys,
Any idea why i can not see me messages in on Outlook Web access. I am able to log into the network with pocket IE using my RSA SecurID, pin and user name. I'm then able to log into Outlook Web Access page with my userID and password. next I only see our corp logo that allows me to disconnect (back to were I need to inter RSA, Pin and username) and that is it. On the PC I see 3 panes, the directories, messages headers and the body of currently selected message.
I installed the Java from the O2 .181 Rom but that didn't help. below is the souce for the center pane off of my PC displaying the message headers. Please let me know if you see anything that could point to what is missing in the PocketIE.
Thanks,
**************************
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8"><script src="/dana-cached/js/ie.js"></script><script src="/dana-cached/js/sessiontimeout.js"></script><script>var dsnodocwrites = 0 ; var DanaCookie="sessionid=2f354b31-5fb3-4e03-954b-de5691b28c7e,0x409"; var DSHost="ems.cadence.com"; var DSObfuscateHostname=0;</script><script>var DSToolBarOn = 1;</script>
<HTML xmlns:MSIE DIR=LTR>
<XML:namespace prefix="WM">
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="0">
<LINK rel="stylesheet" type="text/css" href="/exchweb/6.5.6944.0/controls/owastyle.css,DanaInfo=exowa01sj+">
<LINK rel="stylesheet" type="text/css" href="https://ems.cadence.com/exchweb/themes/0/owacolors.css,DanaInfo=exowa01sj+">
<LINK id="cssFont" rel="stylesheet" type="text/css" href="/exchweb/6.5.6944.0/controls/style30.css,DanaInfo=exowa01sj+">
<SCRIPT language="javascript">
var g_sDrafts = "Drafts";
var g_sCalendar = "Calendar";
var g_sContacts = "Contacts";
var g_sTasks = "Tasks";
var g_sBase = "http://exowa01sj/exchange/paulmc" + "/";
var g_szFolder = "Inbox";
var g_szVirtualRoot = "http://exowa01sj/exchweb";
var g_szAcceptLang = "en-us";
var g_sDelItems = "Deleted%20Items";
var g_sJunkItems = "Junk%20E-mail";
var g_fIsPublic = false;
var g_sUserDisp = "Paul xxx";
var g_tzOffsetJan = Number("420");
var g_tzOffsetJul = Number("360");
var g_szSessionId = "2f354b31-5fb3-4e03-954b-de5691bxxxx";
var g_fIsDelegate = "0";
var g_fIsUnix = "0";
var g_fAddToContacts = true;
var g_iDefaultAddrSearch = 0;
var g_fRulesEnabled = true;
var g_fJnkFltrEnbld = false;
var g_nPPMarkRead = 1;
var g_iPPMarkReadDelay = 5;
var g_iSendRR = 0;
var g_iPreview = 1;var g_iViewWidth = 510;var g_iViewHeight = 250;
var g_fIsMimeEnabled=1;
var g_fIsIE6Tpl = true;
var g_sMimeVersion = "6,5,6942,0000";
var g_thid = 0;
</script>
<script>DanaFlushWrite()
</SCRIPT>
<SCRIPT src="https://ems.cadence.com/exchange/paul/,DanaInfo=exowa01sj,CT=js+?cmd=script&template=loc_note&cache=1&ver=6.5.6944.0"></SCRIPT>
<SCRIPT src="https://ems.cadence.com/exchange/paul/,DanaInfo=exowa01sj,CT=js+?cmd=script&template=loc_view_contextmenu&cache=1&ver=6.5.6944.0"></SCRIPT>
<SCRIPT src="https://ems.cadence.com/exchange/paul/,DanaInfo=exowa01sj,CT=js+?cmd=script&template=loc_keystrokes&cache=1&ver=6.5.6944.0"></SCRIPT>
<SCRIPT id="scr_utlOWA" src="/exchweb/6.5.6944.0/controls/util_owa.js,DanaInfo=exowa01sj,CT=js+"></SCRIPT>
<SCRIPT src="/exchweb/6.5.6944.0/controls/util_view.js,DanaInfo=exowa01sj,CT=js+"></SCRIPT>
<SCRIPT src="/exchweb/6.5.6944.0/controls/vw_message.js,DanaInfo=exowa01sj,CT=js+"></SCRIPT>
<SCRIPT id="util_Buttons" src="/exchweb/6.5.6944.0/controls/util_buttons.js,DanaInfo=exowa01sj,CT=js+"></SCRIPT>
<SCRIPT FOR="cbButton" EVENT="onmousedown()" LANGUAGE="JavaScript" >
return onCbMouseDown(this);
</script>
<script>DanaFlushWrite()
</SCRIPT>
<SCRIPT FOR="cbButton" EVENT="onclick()" LANGUAGE="JavaScript" >
return onCbClickEvent(this);
</script>
<script>DanaFlushWrite()
</SCRIPT>
<SCRIPT FOR="cbButton" EVENT="oncontextmenu()" LANGUAGE="JavaScript" >
return(event.ctrlKey);
</SCRIPT>
<STYLE>
@media all
{
MSIE\:clientCaps {behavior:url(#default#clientcaps)}
}
</STYLE>
<MSIE:clientCaps ID="oClientCaps" />
<STYLE>.tbDivider{border-right:1px solid;}</STYLE>
</HEAD>
<BODY id="mainbody" class="mainBody">
<XML id="xmlDefaultView">
<view xmlns="http://schemas.microsoft.com/schemas/view" ><imagepath>/exchweb/img/</imagepath><transform>tf_Messages.xsl</transform><viewstyle cellpadding="0" cellspacing="0">table-layout:fixed;width:100%;</viewstyle><viewname>Messages</viewname><byteabbreviation>B</byteabbreviation><kilobyteabbreviation>KB</kilobyteabbreviation><megabyteabbreviation>MB</megabyteabbreviation><tasks>false</tasks><none>None</none><width>percent</width><column><heading>Importance</heading><type>i4</type><prop>http://schemas.microsoft.com/exchange/x-priority-long</prop><sortable>1</sortable><bitmap>1</bitmap><multivalued>0</multivalued><visible>1</visible><headerstyle nowrap="true">width:13px;cursor:hand;text-align: center;</headerstyle><style nowrap="true">text-align:center;padding-left:3px;padding-left:3px;</style></column><column><heading>Item Type</heading><type>string</type><prop>http://schemas.microsoft.com/exchange/outlookmessageclass</prop><sortable>1</sortable><bitmap>1</bitmap><multivalued>0</multivalued><visible>1</visible><headerstyle nowrap="true">width:20px;cursor:hand;text-align: center;</headerstyle><style nowrap="true">text-align:center;padding-left:3px;padding-left:3px;</style></column><column><heading>FlagStatus</heading><type>i4</type><prop>http://schemas.microsoft.com/mapi/proptag/x10900003</prop><sortable>1</sortable><bitmap>1</bitmap><multivalued>0</multivalued><visible>1</visible><headerstyle nowrap="true">width:20px;cursor:hand;text-align: center;</headerstyle><style nowrap="true">text-align:center;padding-left:3px;padding-left:3px;</style></column><column><heading>Attachment</heading><type>boolean</type><prop>urn:schemas:httpmail:hasattachment</prop><sortable>1</sortable><bitmap>1</bitmap><multivalued>0</multivalued><visible>1</visible><headerstyle nowrap="true">width:15px;cursor:hand;text-align: center;</headerstyle><style nowrap="true">text-align:center;padding-left:3px;padding-left:3px;</style></column><column><heading>From</heading><type>string</type><prop>http://schemas.microsoft.com/mapi/sent_representing_name</prop><sortable>1</sortable><bitmap>0</bitmap><multivalued>0</multivalued><visible>1</visible><headerstyle nowrap="true">width:23%;cursor:hand;text-align: ;padding-right:3px;padding-left:3px;</headerstyle><style nowrap="true">cursor:default;text-align: ;padding-left:3px;</style></column><column><heading>Subject</heading><type>string</type><prop>http://schemas.microsoft.com/mapi/subject</prop><sortable>1</sortable><bitmap>0</bitmap><multivalued>0</multivalued><visible>1</visible><headerstyle nowrap="true">width:40%;cursor:hand;text-align: ;padding-right:3px;padding-left:3px;</headerstyle><style nowrap="true">cursor:default;text-align: ;padding-left:3px;</style></column><column><heading>Received</heading><type>date</type><prop>urn:schemas:httpmail:datereceived</prop><sortable>1</sortable><bitmap>0</bitmap><multivalued>0</multivalued><visible>1</visible><headerstyle nowrap="true">width:26%;cursor:hand;text-align: ;padding-right:3px;padding-left:3px;</headerstyle><style nowrap="true">cursor:default;text-align: ;padding-left:3px;</style><dateformat>ddd M/d/yyyy</dateformat><timeformat>h:mm tt</timeformat></column><column><heading>Size</heading><type>i4</type><prop>http://schemas.microsoft.com/mapi/proptag/x0e080003</prop><sortable>1</sortable><bitmap>0</bitmap><multivalued>0</multivalued><visible>1</visible><headerstyle nowrap="true">width:11%;cursor:hand;text-align: right;padding-right:3px;padding-left:3px;padding-right:3px</headerstyle><style nowrap="true">cursor:default;text-align: right;padding-left:3px;padding-right:3px</style></column><filter>"http://schemas.microsoft.com/mapi/proptag/0x67aa000b" = false AND "DAV:isfolder" = false</filter><orderby><order><prop>http://schemas.microsoft.com/mapi/sent_representing_name</prop><sort>ASC</sort><type>string</type></order></orderby><headerstyle>background-color:buttonface</headerstyle></view>
</XML>
<TABLE class="vwTbl" cellpadding="0" cellspacing="0">
<TR>
<TD>
<TABLE id="tblTitleBar" class="fldrTitleBar vwFldrRw" cellpadding="0" cellspacing="0"> <TR> <TD nowrap style="width:1%;height:100%;">/exchweb/img/icon-folder.gif,DanaInfo=exowa01sj+<SPAN class="vwFldrTtl">Inbox</SPAN></TD> <TD nowrap class="vwName" style="width:50%;">‎(<SPAN class="vwName" style="padding-right:5px;" id="viewName" curView="Messages">Messages</SPAN>
)‎</TD> <TD><DIV id="idFontSize" style="visiblity:hidden"></DIV></TD> <TD style="height:100%" align="right"> <TABLE id="tblPageControls" style="height:100%;visibility:hidden;" cellpadding="0" cellspacing="0"> <COLGROUP SPAN="3" nowrap style="color:#FFFFFF;vertical-align:middle;text-align:center"></COLGROUP> <TR> <TD nowrap>Items</TD> <TD><INPUT title="Go To Item" style="text-align:center;vertical-align:middle;WIDTH:3em;margin-left:2px;margin-right:2px;margin-top:1px;margin-bottom:3px" id=idPageControl_ItemStartRange onkeydown="changePage()"></TD> <TD nowrap id="tdItemsRange" rangeText="to %1 of %2"></TD> </TR> </TABLE> </TD> <TD id="idPageControl_Images" align="center" nowrap style="vertical-align:middle;width:120px;height:100%;visibility:hidden;">
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
</TD> </TR> </TABLE>
<TABLE id="statusbar" width="100%" style="border:1 solid infotext;;display:none" cellpadding="1" cellspacing="0" class="rnStatusBar"><TR width="100%" style="height:1.1em;display:none"><TD width="1%" nowrap VALIGN="TOP" ALIGN="CENTER">/exchweb/img/status-info.gif,DanaInfo=exowa01sj+</TD><TD id="customStatusCell" width="99%"></TD></TR><TR width="100%" style="display:none;height:1.1em"><TD width="1%%" nowrap VALIGN="TOP" ALIGN="CENTER">/exchweb/img/status-info.gif,DanaInfo=exowa01sj+</TD><TD id="idSMimeVersion" width="99%">The S/MIME control installed on this computer is out-of-date. Install the newest version of the control from the Options page.</TD></TR></TABLE>
<TABLE class="cbToolbar" id="idToolbar" cellpadding='0' cellspacing='0'>
<TR>
<TD class="tbDivider" nowrap>
<A class="tbButton" name="cbButton" id="newMessage" overelements="newmenu" href="#"
Title="New">
New
</A>
<A class="tbButton" name="cbButton" id="newmenu" sticky=true overelements="newMessage" href="#" submenu='openMessageMenu'>
</A>
</TD>
<TD nowrap>
</TD>
<TD class="tbDivider" nowrap>
</TD>
<TD nowrap>
</TD>
<TD nowrap>
</TD>
<TD class="tbDivider" nowrap>
</TD>
<TD class="tbDivider" nowrap>
</TD>
<TD nowrap>
</TD>
<TD nowrap>
</TD>
<TD class="tbDivider" style="display:none" nowrap>
</TD>
<TD class="tbDivider" style="display:none">
</TD>
<TD class="tbDivider" nowrap>
</TD>
<TD class="tbHelp">
<A id="help" class="tbButton" onclick="return onCbClickEvent(this)" href="#" title="Help"><NOBR>
Help</NOBR>
<SPAN id="idHelpLinkText" style='display:none;'>
http://exowa01sj/exchweb/help/USA/ie5/default.htm?noteview.htm
</SPAN>
</A>
</TD>
<TD width="100%"></TD>
<TD nowrap>
Log Off</TD>
</TR>
</TABLE>
<TABLE id='openMessageMenu' cellpadding=0 cellspacing=0 style='display:none;' tabIndex='0' class='cbSubmenu'>
<TR>
<TD nowrap>
<SPAN>Message</SPAN></TD>
</TR>
<TR><TD nowrap>
<SPAN>Appointment</SPAN></TD></TR>
<TR><TD nowrap>
<SPAN>Contact</SPAN></TD></TR>
<TR><TD nowrap>
<SPAN>Distribution List</SPAN></TD></TR>
<TR><TD nowrap>
<SPAN>Task</SPAN></TD></TR>
<TR><TD nowrap>
<SPAN>Post in This Folder</SPAN></TD></TR>
<TR>
<TD nowrap>
<SPAN>Folder</SPAN></TD>
</TR>
</TABLE>
<TABLE id='selectViewMenu' cellpadding=0 cellspacing=0 style='display:none;' tabIndex='0' class='cbSubmenu'><TR><TD nowrap>Messages</TD></TR><TR><TD nowrap>Unread Messages</TD></TR><TR><TD nowrap>Two-Line View</TD></TR><TR><TD nowrap>By Sender</TD></TR><TR><TD nowrap>By Subject</TD></TR><TR><TD nowrap>By Conversation Topic</TD></TR><TR><TD nowrap>Unread By Conversation Topic</TD></TR><TR><TD nowrap>Sent To</TD></TR></TABLE>
<TABLE id='togglePreviewPane' cellpadding=0 cellspacing=0 style='display:none;' tabIndex='0' class='cbSubmenu'> <TR><TD nowrap>
<SPAN>Right</SPAN></TD></TR> <TR><TD nowrap>
<SPAN>Bottom</SPAN></TD></TR> <TR><TD nowrap>
<SPAN>Off</SPAN></TD></TR> </TABLE>
</TD>
</TR>
<TR>
<TD style="height:100%">
<TABLE id="tblView" class="vwTbl" cellpadding="0" cellspacing="0" onselectstart="return false;">
<TR id=trPreVwRight height="100%">
<TD id=tdViewer valign="top" colspan=3 width="100%">
<DIV id="idMsgViewer"
class = "msgViewer"
acceptLang = "en-us"
rowsPerPage = "25"
url = "http://exowa01sj/exchange/paul/Inbox/"
onReady = "onViewReady()"
onRefresh = "onViewRefresh()"
onBeforeRefresh = "onBeforeViewRefresh()"
onkeydown = "onViewKeyDown()"
onkeypress = "onViewKeyPress()"
oncontextmenu = "return(false);"
refreshThreshold = "20%"
viewDescriptor = "xmlDefaultView"
onChangeSort = "persistSortOrder()"
onError = "onViewError()"
onNavigate = "onViewNavigation()"
onSelectionChange = "updatePreviewPane()"
allowQuickFlag = "1"
followUpText = "Follow up"
loadingText = "Loading"
nextSelDir = 1
>
<DIV id=idLoading><CENTER>Loading...</CENTER></DIV>
</DIV>
<DIV id="idVwMenu" class="divCtxtMenu" onaction="cmAction();"></DIV>
<DIV id="selRowDiv" class="dummy selRow"/>
<DIV id="shdwRowDiv" class="dummy shdwRow"/>
<DIV id="ctxmnuBarDiv" class="dummy ctxmnuBar"/>
<DIV id="ctxmnuMnuDiv" class="dummy ctxmnuMnu"/>
</TD>
<TD id=tdResizeRight width=4 style="display:none">
</TD>
<TD id=tdPreVw style="display:none" class="vwPrvwTD" vAlign="top">
<DIV id="idNoItemsDIV" style="display:none"><CENTER>No items are currently selected.</CENTER></DIV>
<IFRAME name="previewPane" frameborder=0 class="msgPreview" src="/exchweb/6.5.6944.0/controls/blank.htm,DanaInfo=exowa01sj+" style="height:100%;" ></IFRAME>
</TD>
</TR>
<TR id=trResizeBottom height=4 style="display:none;">
<TD colspan=3>
</TD>
<TR>
<TR id=trPreVwBottom class="vwPrvwTD"></TR>
</TABLE>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>
</noscript><script>dstb()</script><script>if(chk() == 1) { tAboutToExpireID=parent.setTimeout("dsSessionAboutToExpire(1099636939,1099636939,2700,28800,600,-69)", 2100000);tExpiredID=parent.setTimeout("dsSessionExpired(1099636939,1099636939,2700,28800,600,-69)", 2700000);}</script>
************************
Paul,
1st, OWA is a MS Exchange component, so I don't think installing Java would help
OWA is just plain HTML and some JavaScript.
There is a problem in the configuration somewhere.
If you lookup the JavaScript code, you'll find at least two variable that didn't translated the internal OWA Server name for the public name:
var g_sBase = "http://exowa01sj/exchange/paulmc" + "/";
should read
var g_sBase = "https://ems.cadence.com/exchange/paulmc" + "/";
and
var g_szVirtualRoot = "http://exowa01sj/exchweb";
should read
var g_szVirtualRoot = "https://ems.cadence.com/exchweb";
Since you're using SSL maybe the SSL session is not terminated at the OWA Server but before (reverse proxy) and OWA has not been configured for SSL Offloading.
tde,
Thanks for taking a look. The source above is from my Windows 2K machine when I log on to the site, not the pocketPC. So this code works fine on the PC but not the PocketPC.
OWA used to work about 9 months ago before the did an update. The look of OWA is different now and does not display on my PocketPC after the update.
I attached the PC code to see if anyone could identify java or something else that worked on a win2K machine but was known to not work on a pocketIE.
The attaced screen shot is what I see on the win2k machine which doesn't work on the pocketIE.
Thanks,
Paul
again
sorry, didn't see the image all the way to the right and thought the attachment was forgotten.
Outlook Web Access on Exchange 2003
We use Exchange 2003 and Outlook Web Access does work correctly on my PDA2K. You might want to check if Outlook Mobile Access works. It's a much faster option which is better-suited to viewing on a PocketPC and is normally accessible at https://servername/oma
Good luck!
Malcolm
Paul
They probably upgraded from Exchange 2000 OWA to Exchange 2003 OWA.
In this case, try to use
https://ems.cadence.com/oma (Outlook Mobile Access) from your Pocket PC.
Solution to the problem
Dear Paul,
You weren't accessing Exchange server 2003 directly from your Pocket PC PDA, you logged into a SSL-VPN IVE device first in order to access the Cadence Intranet to get your email, then you had to log into the Exchange Server 2003 and the problem was related with the SSL- VPN device only which did not have the correct code to handle the new Exchange Server display and more. The SSL-VPN is running the latest version of OS now which works better with Exchange Server 2003 and fixes other bugs in general. I hope I did not confuse you, but in this case nothing was done at the Exchange Server level, we just improve the functionality with Exchange Server 2003 using the IVE( Instant Virtual Extranet) SSL-VPN device for our Cadence Users.
Best Regards,
Raquel
Exchange Web access, version 5.5 SP4
We have the above version of Exchange server back-end; apparently an upgrade to 2003 isn't planned yet. I see something similar to the attached screenshot (taken from a PC) but I can't click on the Emails. Is it because IE can't handle popups, or Javascript, or is there a way I can see the messages?
(Universal/MDA Pro)
Thanks
Nick

Windows Mobile 5/6/.. - Customize ControlBox

Hello!
Couldn't find a similar question, sorry if it's been posted before.
I'm working on a mobile application written in C# .Net CF 2.0 for WM 5/6/6.1
Currently the client has asked us to customize the Close(X)/Ok button on the right upper corner of the screen (the button that closes the form/application).
I'm talking about this button.
He wants us to change it's look&feel (meaning that the button would be represented using a picture, and upon clicking a form should open.)
Like this:
Is this possible? I know this means redrawing the NonClient area, but how exactly do i do this?
And could this be done using API calls? what api calls should me made in this case?
Thanks.
cmooon guys, the deadline is getting closer
Okay. With the delivery set for tonite, I've managed to pull it through. In order to do this, we have to get the handle of the task Bar, using p/Invoke FindWindow("HHTaskBar",...). Then using a Graphics object created from the device context of the window "found" above, we paint a picture over the "OK" button (the form must have it's properties set to MinimizeBox = false and ControlBox = true, in order for the custom WndProc to handle messages when clicking the region of the task bar where we are painting. Below is the code sample. Cheers mates
Code:
public class MyForm : System.Windows.Forms.Form
{
#region members and delegates
delegate IntPtr WndProcDelegate(IntPtr hWnd, uint msg, IntPtr wParam, IntPtr lParam);
[DllImport("CoreDll.dll", SetLastError = true)]
public static extern IntPtr FindWindow(string className, string WindowsName);
[DllImport("coredll.dll", EntryPoint = "GetWindowLong")]
private static extern IntPtr GetWindowLong(IntPtr hWnd, int nIndex);
[DllImport("coredll.dll")]
static extern int SetWindowLong(IntPtr hWnd, int nIndex, IntPtr newWndProc);
[DllImport("coredll.dll")]
static extern IntPtr CallWindowProc(IntPtr lpPrevWndFunc, IntPtr hWnd, uint Msg, IntPtr wParam, IntPtr lParam);
[DllImport("coredll.dll")]
public static extern IntPtr GetWindowDC(IntPtr hWnd);
[DllImport("coredll.dll")]
public static extern int ReleaseDC(IntPtr hWnd, IntPtr hDC);
private const int GWL_WNDPROC = -4;
private static WndProcDelegate newWndProc;
private static IntPtr oldWndProc = IntPtr.Zero;
bool userPressed = false;
ResourceManager resManager;
#endregion
#region ctor
public MyForm ()
{
InitializeComponent();
}
#endregion
#region meths
private void InitializeComponent()
{
this.ControlBox = false;
this.Closing += new System.ComponentModel.CancelEventHandler(this.OnClosing);
this.Load += new System.EventHandler(this.OnLoad);
resManager = new ResourceManager("PATH_TO_PICTURE", Assembly.GetCallingAssembly());
}
private void OnLoad(object sender, EventArgs e)
{
newWndProc = new WndProcDelegate(WndProc);
oldWndProc = GetWindowLong(this.Handle, GWL_WNDPROC);
int success = SetWindowLong(this.Handle, GWL_WNDPROC, Marshal.GetFunctionPointerForDelegate(newWndProc));
}
public IntPtr WndProc(IntPtr hWnd, uint msg, IntPtr wParam, IntPtr lParam)
{
//we are targeting a specific sequence (31 , 273) that will tell us when the user clicks on the picture
IntPtr retVal = IntPtr.Zero;
switch (msg)
{
case 273:
if (userPressed)
{
userPressed = false;
Execute();
}
break;
case 31:
userPressed = true;
break;
default:
if (msg != 307)
userPressed = false;
DrawCustomBtn();
//retVal = CallWindowProc(oldWndProc, this.Handle, msg, wParam, lParam);
break;
}
return IntPtr.Zero;
}
private void Execute()
{
//do something
}
public void DrawCustomBtn()
{
try
{
IntPtr hwnd = FindWindow("HHTaskBar", null);
if (!hwnd.Equals(IntPtr.Zero))
{
IntPtr hDC = GetWindowDC(hwnd);
Graphics g = Graphics.FromHdc(hDC);
g.DrawImage((Bitmap)resManager.GetObject("icon_upper_right"), this.Width - ((Bitmap)resManager.GetObject("icon_upper_right")).Width - 4, 4);
g.Dispose();
ReleaseDC(hwnd, hDC);
}
}
catch (DllNotFoundException dllex)
{
throw dllex;
}
catch (Exception ex)
{
throw ex;
}
}
public void OnClosing(object sender, System.ComponentModel.CancelEventArgs e)
{
}
protected override void OnResize(EventArgs e)
{
base.OnResize(e);
try
{
if (Microsoft.WindowsCE.Forms.SystemSettings.ScreenOrientation != Microsoft.WindowsCE.Forms.ScreenOrientation.Angle0)
Microsoft.WindowsCE.Forms.SystemSettings.ScreenOrientation = Microsoft.WindowsCE.Forms.ScreenOrientation.Angle0;
}
catch (Exception ex)
{
Log.WriteInfoLog("RESIZING : rotation failed in : " + this.Name + " Message: " + ex.Message );
}
}
#endregion
}
an another work around could be to make the app full screen, later create a picturebox
Thanks for the suggestion!
Yes, indeed you are right, when it can be applied, i too recommend that the application be made full screen and the buttons be added after.
But the solution above is for the case when there is still need for the "start" button and status bar to be shown. anyways, i've solved the issue, the management is happy, the client is happy so everything went okay

Reading/Writing WM Registery

a little help please brother? (and sisters) i need to Read a registery key in a text box and then write that reg key with another value using C#, but im getting no where i've looked at thousand of samples but cant get it to read nor write, every time diff error pops up
any help?
Ather,
Try this :-
you will need, a form, two textboxes txbKey and txbValue, two buttons btnRead and btnUpdate. The code for Form1.cs follows. VS 2005 .NET CF2.0 project created as DevApp
The trick is to use the last '\' to split the subkey from the key.
It works but there is no error checking, I'll leave that to you. If the SubKey does not exist, rk is returned as 'null' and the following GetValue or SetValue will fail.
Registry.CurrentUser takes you down the HKCU hive of the registry, you'll need to change this if you need HKLM etc.
Good Luck!
P.S. the damn formatter insists on inserting a space in LastIndexOf on the first button. There is no space.
P.P.S This method will only work for Strings. To write binary values, doublewords etc. will need more work, but you should get the idea.
Code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Microsoft.Win32;
namespace DevApp
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void btnRead_Click(object sender, EventArgs e)
{
String SubKey=txbKey.Text.Substring(0,txbKey.Text.LastIndexOf('\\'));
String Key=txbKey.Text.Substring(txbKey.Text.LastIndexOf('\\')+1);
RegistryKey rk = Registry.CurrentUser.OpenSubKey(SubKey);
txbValue.Text = rk.GetValue(Key).ToString();
}
private void btnUpdate_Click(object sender, EventArgs e)
{
String SubKey = txbKey.Text.Substring(0, txbKey.Text.LastIndexOf('\\'));
String Key = txbKey.Text.Substring(txbKey.Text.LastIndexOf('\\') + 1);
RegistryKey rk = Registry.CurrentUser.OpenSubKey(SubKey,true);
rk.SetValue(Key, txbValue.Text);
}
}
}
wow Thanks, will try it and let you know ;]
hmm, lets say i want to read the value "Skin" from HKEY_CURRENT_USER\Software\Microsoft\Today, what will be the code for it? i tried to use :
Code:
String SubKey = txbKey.Text.Substring(0, txbKey.Text.LastIndexOf("\\Software\\Microsoft\\Today"));
String Key = txbKey.Text.Substring(txbKey.Text.LastIndexOf("\\Skin") + 1);
RegistryKey rk = Registry.CurrentUser.OpenSubKey(SubKey);
txbValue.Text = rk.GetValue(Key).ToString();
it builds fine, but when i run it, and click the button, nothing happens :O
OK let's go back a step.
Here the @ prefix can be used so you can enter slashes in strings as single slashes. To read a registry key both the Subkey and the Key/Value pair MUST exist, or the GetValue will return a null object, causing the ToString() to fail. Does this key exist? Check it out with remote registry viewer in Visual Studio Remote tools, can be used with the emulator or your real PPC
When the value is being written, it does not have to exist first as SetValue will overwrite it if already present, and add it if not.
Code:
RegistryKey rk = Registry.CurrentUser.OpenSubKey(@"\Software\Microsoft\Today");
if(rk!=null)
{
if(rk.GetValue(@"\Skin") != null)
String value=rk.GetValue(@"\Skin").ToString();
else
// Error Key/Value not found.
}
else
//Error Subkey not found
:-/ still nothing
Here is the whole code (im sure it works for windows too)
Code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Microsoft.Win32;
namespace DevApp
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void btnRead_Click(object sender, EventArgs e)
{
String SubKey = txbKey.Text.Substring(0, txbKey.Text.LastIndexOf(@"\Software\HimaFlash\"));
String Key = txbKey.Text.Substring(txbKey.Text.LastIndexOf(@"ModelID") + 1);
RegistryKey rk = Registry.CurrentUser.OpenSubKey(@"\Software\HimaFlash\");
txbValue.Text = rk.GetValue(Key).ToString();
}
private void btnUpdate_Click(object sender, EventArgs e)
{
String SubKey = txbKey.Text.Substring(0, txbKey.Text.LastIndexOf(@"\Software\HimaFlash\"));
String Key = txbKey.Text.Substring(txbKey.Text.LastIndexOf(@"ModelID") + 1);
RegistryKey rk = Registry.CurrentUser.OpenSubKey(@"\Software\HimaFlash\");
rk.SetValue(Key, txbValue.Text);
}
private void btnRead_Click_1(object sender, EventArgs e)
{
//ignore this...
}
}
}
again thanks for all your help
Well I hardly ever use C#, but it seems your not setting the RootKey to HKEY_LOCAL_MACHINE anywhere.
Chainfire - The Registry.CurrentUser sets an implied root of HKEY_CURRENT_USER for HKEY_LOCAL_MACHINE use Registry.LocalMachine
Ather, right, lets ignore parsing the textbox and use this, the subkey does not end in a slash, and the key does not begin with one.
Code:
RegistryKey rk = Registry.CurrentUser.OpenSubKey(@"Software\HimaFlash");
txbValue.Text = rk.GetValue("ModelID").ToString();
It should work. I can't test your values above as they don't exist on my phone or on the emulator, but I have just run the following on the Mobile 5 SDK emulator
Code:
RegistryKey rk = Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\ActiveSync");
txbValue.Text = rk.GetValue("Device").ToString();
And the text in the value box changes to "PPC", the value that you would expect.
wow it worked, and do you know what was the fault?
i was puting the code under :
private void btnRead_Click(object sender, EventArgs e)
this time i tried under :
private void btnRead_Click_1(object sender, EventArgs e)
and it worked
ok i can now read the registery, how do i write it?
ok never mind, found the writing part my self :
Code:
RegistryKey rk = Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Today", true);
rk.SetValue("Skin", txbValue.Text);
and here is the final result
Code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Microsoft.Win32;
namespace DevApp
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
//telling the program to load the current reg entry on startup
RegistryKey rk = Registry.CurrentUser.OpenSubKey(@"\Software\merlot\AudioChecker");
txbKey.Text = rk.GetValue("StartApplication").ToString();
}
private void btnUpdate_Click_1(object sender, EventArgs e)
{
//this command sets the value of txtValue(textbox) to your desired setting
RegistryKey rk = Registry.CurrentUser.OpenSubKey(@"\Software\merlot\AudioChecker", true);
rk.SetValue("StartApplication", txbValue.Text);
}
private void menuItem1_Click(object sender, EventArgs e)
{
Application.Exit(); //Exit Key
}
private void menuItem2_Click(object sender, EventArgs e)
{
MessageBox.Show("AudioCatcher Config\nThanks to merlot\nand stephj :)"); //About Key
}
private void button1_Click(object sender, EventArgs e)
{
//this does the same as the startup code does, what it does is that it will display the reg entry set :>
RegistryKey rk = Registry.CurrentUser.OpenSubKey(@"\Software\merlot\AudioChecker");
txbKey.Text = rk.GetValue("StartApplication").ToString();
}
}
}
//thanks again to stephj
Glad you got it all to work.
The code in the original post up at the top, using the LastIndexOf('\\') method was designed to split the contents of the textbox into the subkey and key automatically. If the textbox contents were 'Software\Microsoft\ActiveSync\Device' then it would place 'Software\Microsoft\ActiveSync' into the string Subkey and 'Device' into Key. I didn't try it if there is no slash in the field. It probably needs a bit of tidying up.
ah so that code would have worked too, but like i said, i was putting it on the wrong handler

[Q] How to Communicate with Virtual Comm Port using usb cable with Single end point

Hi,
This is Lakshmansundeep. I am developing an application that sends the data android device to micro controller as vice versa via VIRTUAL COMM PORT using usb cable. I did my usb connection establishment successfully,coming to the communication part i.e. Communication from Android Device to micro controller and the application was crashed because of having single end point to the virtual comm port.please help me how to communicate to virtual comm port having single end point...please it was a little bit urgent.
Here is my Android Activity java code after my method called:
public boolean Check_Devices_Available()
{
int i,j;
boolean Device_Found;
String as[];
UsbEndpoint tOut = null;
UsbEndpoint tIn = null;
UsbManager manager = (UsbManager) getSystemService(Context.USB_SERVICE);
HashMap<String, UsbDevice> deviceList = manager.getDeviceList();
i = deviceList.size();
if(i==0)
{
Toast.makeText(Loginpage.this,"No Devices Attached",Toast.LENGTH_LONG).show();
return false;
}
as = new String;
deviceList.keySet().toArray(as);
Device_Found=false;
for(j=0;j<i;j++)
{
device_details = (UsbDevice)deviceList.get(as[j]);
if((device_details.getVendorId()==targetVendorID) && (device_details.getProductId()==targetProductID))
{
Toast.makeText(Loginpage.this,"Device Connected",Toast.LENGTH_LONG).show();
Device_Found=true;
break;
}
}
if(Device_Found==false)
{
Toast.makeText(Loginpage.this,"No Devices Attached with Req Vendor ID",Toast.LENGTH_LONG).show();
return false;
}
if(manager.hasPermission(device_details)==true)
{
Toast.makeText(Loginpage.this, "Permission Granted", Toast.LENGTH_LONG).show();
// Device_Settings(Device_Detials,j);
}
else
{
//PendingIntent intent = null;
Toast.makeText(Loginpage.this, "No Permission", Toast.LENGTH_LONG).show();
manager.requestPermission(device_details, null);
}
UsbEndpoint Device_End_Point = null;
UsbInterface usbinterface = device_details.getInterface(j);
if (usbinterface == null)
{
Toast.makeText(Loginpage.this, "Device Found But UnKnown Exception-1", 50000).show();
return false;
}
Device_End_Point=usbinterface.getEndpoint(j);
Toast.makeText(Loginpage.this, ""+Device_End_Point, 50000).show();
tIn=tOut=Device_End_Point;
if(Device_End_Point==null)
{
Toast.makeText(Loginpage.this, "End Point Error ", 50000).show();
return false;
}
UsbDeviceConnection Device_Connection=null;
if(device_details!=null)
{
Device_Connection=manager.openDevice(device_details);
if (Device_Connection != null )
{
Toast.makeText(Loginpage.this, "Checking", Toast.LENGTH_LONG).show();
Device_Connection.controlTransfer(0x21, 34, 0, 0, null, 0, 0);
Device_Connection.controlTransfer(0x21, 32, 0, 0, new byte[] { (byte) 0x80, 0x25, 0x00, 0x00, 0x00, 0x00, 0x08 }, 7, 0);
byte []Communication_Byte=new byte[1];
Communication_Byte[0]='&';
selectedendpoint = listusbendpoint.getType();
Toast.makeText(Loginpage.this,""+selectedendpoint, Toast.LENGTH_LONG).show();
//usbDeviceConnection.bulkTransfer(tOut,Communication_Byte, 1, 0);
}
if(Device_Connection==null)
{
Toast.makeText(Loginpage.this, "Unable to open device", 50000).show();
return false;
}
}
return true;
}
Thank you in advance

[Completed] Unable to Send data from One Activity to Another Activity

**FIRSTACTIVITY**
Code:
public class FirstMarks extends Activity {
TextView tv_Subjects1, tv_Internal1, tv_External1;
EditText et_Int_Eng, et_Int_M1, et_Int_MM, et_Int_Phy, et_Int_Chem, et_Int_Cp, et_Int_ElcsLab, et_Int_EpLab, et_Int_ItLab, et_Int_Draw;
EditText et_Ext_Eng, et_Ext_M1, et_Ext_MM, et_Ext_Phy, et_Ext_Chem, et_Ext_Cp, et_Ext_ElcsLab, et_Ext_EpLab, et_Ext_ItLab, et_Ext_Draw;
Button btn_Cal1;
int IEng, IM1, IMM, IPhy, IChem, ICp, IElcsLab, IItLab, IEpLab, IDraw;
int EEng, EM1, EMM, EPhy, EChem, ECp, EElcsLab, EItLab, EEpLab, EDraw;
int ITotal1 =0, ETotal1 =0, Total1 =0;
float Percentage1=0;
String STotal1=" ", SPercentage1=" ";
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.marks_1);
//SETTING FONT.
Typeface mytypeface = Typeface.createFromAsset(getAssets(), "font.ttf");
//INITIALISING VIEWS.
//INITIALISING TEXT VIEWS.
tv_Subjects1 = (TextView) findViewById(R.id.tv_Subject1);
tv_Internal1 = (TextView) findViewById(R.id.tv_Internal1);
tv_External1 = (TextView) findViewById(R.id.tv_External1);
//INITIALISING EDIT TEXT.
//INTERNAL
et_Int_Eng = (EditText) findViewById(R.id.et_Int_Eng);
et_Int_M1 = (EditText) findViewById(R.id.et_Int_M1);
et_Int_MM = (EditText) findViewById(R.id.et_Int_MM);
et_Int_Phy = (EditText) findViewById(R.id.et_Int_Phy);
et_Int_Chem = (EditText) findViewById(R.id.et_Int_Chem);
et_Int_Cp = (EditText) findViewById(R.id.et_Int_Cp);
et_Int_ElcsLab = (EditText) findViewById(R.id.et_Int_ElcsLab);
et_Int_EpLab = (EditText) findViewById(R.id.et_Int_EpLab);
et_Int_ItLab = (EditText) findViewById(R.id.et_Int_ItLab);
et_Int_Draw = (EditText) findViewById(R.id.et_Ext_Draw);
//EXTERNAL
et_Ext_Eng = (EditText) findViewById(R.id.et_Ext_Eng);
et_Ext_M1 = (EditText) findViewById(R.id.et_Ext_M1);
et_Ext_MM = (EditText) findViewById(R.id.et_Ext_MM);
et_Ext_Phy = (EditText) findViewById(R.id.et_Ext_Phy);
et_Ext_Chem = (EditText) findViewById(R.id.et_Ext_Chem);
et_Ext_Cp = (EditText) findViewById(R.id.et_Ext_Cp);
et_Ext_ElcsLab = (EditText) findViewById(R.id.et_Ext_ElcsLab);
et_Ext_EpLab = (EditText) findViewById(R.id.et_Ext_EpLab);
et_Ext_ItLab = (EditText) findViewById(R.id.et_Ext_ItLab);
et_Ext_Draw = (EditText) findViewById(R.id.et_Ext_Draw);
//INITIALISING BUTTON
btn_Cal1 = (Button) findViewById(R.id.btn_Cal1);
//INITIALISING FONT.
tv_Subjects1.setTypeface(mytypeface);
tv_Internal1.setTypeface(mytypeface);
tv_External1.setTypeface(mytypeface);
btn_Cal1.setTypeface(mytypeface);
//GETTING VALUES FROM EDIT TEXT.
//ENGLISH.
try {
IEng = getInt(et_Int_Eng);
EEng = getInt(et_Ext_Eng);
} catch (NumberFormatException e) {
Log.i("Log", "Not a ENGLISH Number");
}
//M1.
try {
IM1 = getInt(et_Int_M1);
EM1 = getInt(et_Ext_M1);
} catch (NumberFormatException e) {
Log.i("Log", "Not a M1 Number");
}
//MM.
try {
IMM = getInt(et_Int_MM);
EMM = getInt(et_Ext_MM);
} catch (NumberFormatException e) {
Log.i("Log", "Not a MM Number");
}
//PHYSICS.
try {
IPhy = getInt(et_Int_Phy);
EPhy = getInt(et_Ext_Phy);
} catch (NumberFormatException e) {
Log.i("Log", "Not a PHYSICS Number");
}
//CHEMISTRY
try {
IChem = getInt(et_Int_Chem);
EChem = getInt(et_Ext_Chem);
} catch (NumberFormatException e) {
Log.i("Log", "Not a CHEMISTRY Number");
}
//CP.
try {
ICp = getInt(et_Int_Cp);
ECp = getInt(et_Ext_Cp);
} catch (NumberFormatException e) {
Log.i("Log", "Not a CP Number");
}
//DRAWING.
try {
IDraw = getInt(et_Int_Draw);
EDraw = getInt(et_Ext_Draw);
} catch (NumberFormatException e) {
Log.i("Log", "Not a DRAW Number");
}
//ELCS LAB.
try{
IElcsLab = getInt(et_Int_ElcsLab);
EElcsLab = getInt(et_Ext_ElcsLab);
}catch (NumberFormatException e){
Log.i("Log", "Not a ELCS Number");
}
//EP/EC LAB.
try{
IEpLab = getInt(et_Int_EpLab);
EEpLab= getInt(et_Ext_EpLab);
}catch (NumberFormatException e){
Log.i("Log", "Not a EP LAB Number");
}
//IT LAB.
try{
IItLab = getInt(et_Int_ItLab);
EItLab = getInt(et_Ext_ItLab);
}catch (NumberFormatException e){
Log.i("Log", "Not a ITLAB Number");
}
//TOTALING ALL SUBJECTS
//TOTALING INTERNAL MARKS.
ITotal1 = (IEng + IM1 + IMM + IPhy + IChem + ICp + IElcsLab + IEpLab + IItLab + IDraw);
//TOTALING EXTERNAL MARKS.
ETotal1 = (EEng + EM1 + EMM + EPhy + EChem + ECp + EElcsLab + EEpLab + EItLab + EDraw);
//TOTALING INTERNAL & EXTERNAL MARKS.
Total1 = (ITotal1 + ETotal1);
//CONVERTING INT TOTAL1 INTO STRING.
//STotal1 = String.valueOf(Total1);
//PERCENTAGE CALCULATION.
Percentage1 = (float) Total1 / 10;
//SPercentage1 = String.valueOf(Percentage1);
//WHEN BUTTON CALCULATE IS CLICKED.
btn_Cal1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent i = new Intent(FirstMarks.this, FirstResult.class);
Bundle bundle = new Bundle();
bundle.putInt("res1", Total1);
bundle.putFloat("per1", Percentage1);
i.putExtras(bundle);
startActivity(i);
finish();
}
});
}
//FUNCTION TO GET TEXT FROM EDIT TEXT AND CONVERT INTO INTEGER.
private int getInt(EditText et) throws NumberFormatException {
return Integer.valueOf(et.getText().toString());
}
}
**SECOND ACTIVITY**
Code:
public class FirstResult extends Activity {
EditText et_Total1,et_Percentage1;
Button btn_Exit1;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.result_first);
//INITIALISING VIEWS.
et_Total1 = (EditText) findViewById(R.id.et_Total1);
et_Percentage1 = (EditText) findViewById(R.id.et_Percentage1);
btn_Exit1 = (Button) findViewById(R.id.btn_Exit1);
//GETTING DATA FROM PREVIOUS ACTIVITY.
Bundle b = getIntent().getExtras();
int res1 = b.getInt("res1", 0);
float per1 = b.getFloat("per1", 0);
//CONVERTING TO STRING.
String sres1 = String.valueOf(res1);
String sper1 = String.valueOf(per1);
//SETTING RESULTS.
et_Total1.setText(sres1);
et_Percentage1.setText(sper1);
//WHEN EXIT IS CLICKED.
btn_Exit1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
finish();
System.exit(0);
}
});
}
}
Hi!
Can you elaborate here? I have no idea what you are attempting. Can you explain in plain english? And perhaps I can find you a place for help.
Cheers,
Darth

Categories

Resources