Jump to content

Dave Nottage

Members
  • Content Count

    182
  • Joined

  • Last visited

  • Days Won

    2

Dave Nottage last won the day on July 18

Dave Nottage had the most liked content!

Community Reputation

57 Excellent

1 Follower

Technical Information

  • Delphi-Version
    Delphi 10.3 Rio

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Dave Nottage

    TListView multi selection?

    Come to think of it, I did something like this back around the XE3 era and like you had to fight with it to make it work. Sadly, I may not have the code any more, but I'll take a look later just in case.
  2. Dave Nottage

    Android in VMWare

    I'm using a VirtualBox VM with Android x86 ISO installed on it, which has the ability to bridge to ARM (using libhoudini). See my earlier replies.
  3. Dave Nottage

    Android in VMWare

    You use a logcat viewer to view the logcat messages coming from the app. I have one called DeviceLens, which can be found here: https://github.com/DelphiWorlds/MiscStuff/blob/master/Test/DeviceLens.zip You may find that the Processes list does not populate (still bugs to iron out), however you should be able to press the "Play" button and watch the messages, as well as filter on text or the application package name (type it in to the package name edit and hit enter). In the Android VM, if you go to settings, there may be an entry named Android x86 Options (just after the Sound option). Tap that, then enable the Enable native bridge option (i.e. bridge from x86 to ARM). Then run Terminal Emulator (still in the Android VM) and run the following commands: su /system/bin/enable_nativebridge If you don't have the Android x86 options in Settings you may have to install a later Android x86 ISO. I used the latest available, from here: https://www.android-x86.org/ Sadly after doing all that, it still would not work for me. The app doesn't get past the splash screen, however it also does not crash. It might turn out different for you (I use VirtualBox)
  4. Dave Nottage

    Android in VMWare

    If the IDE can "see" the device, are you able to use a logcat viewer to determine what the crash is?
  5. Dave Nottage

    Delphi + Android java class + init function problem

    What library are you using? Perhaps I can find a solution for you
  6. Dave Nottage

    Delphi + Android java class + init function problem

    You cannot, until this is fixed: https://quality.embarcadero.com/browse/RSP-10150 As per Loki's comment, one solution is to write Java code to wrap the class. Alternatively, you might be able to decompile the Java, modify the method name and recompile the jar in question.
  7. Dave Nottage

    TListView multi selection?

    Does this help? https://delphiaball.co.uk/2014/07/09/using-the-tlistview-to-select-multiple-items/
  8. Dave Nottage

    Put a control into the menu bar?

    I have a demo of how to do this on macOS, here: https://github.com/DelphiWorlds/KastriFree/tree/master/Demos/macOSStatusBar It relies on files in the Kastri Free project: https://github.com/DelphiWorlds/KastriFree For Windows, use a TTrayIcon. I think there's plenty of examples around the internet of how to use it.
  9. Dave Nottage

    Setting Environment Variables

    Additional info here: https://stackoverflow.com/a/3637349/3164070
  10. Dave Nottage

    Communicating RFID with APDU commands

    If you're going to do any Android development that's even slightly outside of the scope of what's provided for you with Delphi, you need to at least have the basics for Java. I highly expect it is possible; it's a matter of knowing enough Java/Kotlin to be able to translate examples into Delphi code.
  11. Dave Nottage

    Rules for changing cursor to HourGlass and back

    Consider if DoSomeLongProcess causes an exception.. what will happen to the cursor if there was no try..finally? Consider also if the cursor was something other than the default before you changed it to an HourGlass? Should you restore it to default, or to what it was before you changed it?
  12. Dave Nottage

    Rules for changing cursor to HourGlass and back

    These days, I avoid changing the cursor at all, but provide feedback in other ways. If it's a long running process, it'll be performed in a background thread. If you really must change the cursor, be sure to save its current value, and wrap it all in a try..finally, e.g. SaveTheCurrentCursorAndChangeToHourGlass; try DoSomeLongProcess; finally RestoreCursorToWhatItWas; end;
  13. Dave Nottage

    Communicating RFID with APDU commands

    In Kotlin, however does this help at all? https://medium.com/the-almanac/how-to-build-a-simple-smart-card-emulator-reader-for-android-7975fae4040f It uses the IsoDep class to send the APDU commands
  14. Dave Nottage

    Issue with a new and a (rather old) App for iOS with Rio

    Sounds like your .deployproj may have problems and/or your IDE. Make a backup of the .deployproj file, delete the existing one, do a Clean, Build, and try again.
  15. Dave Nottage

    installing support for Android and Linux platforms

    If you installed via ISO, you need to uninstall, then re-install selecting all desired platforms. If you installed via ESD, you'll have an option from the Delphi menu in Tools|Manage Platforms
×