Skip to content

MainWindow updates for Android and example configurations#1542

Merged
f4exb merged 6 commits intof4exb:masterfrom
srcejon:android
Dec 21, 2022
Merged

MainWindow updates for Android and example configurations#1542
f4exb merged 6 commits intof4exb:masterfrom
srcejon:android

Conversation

@srcejon
Copy link
Collaborator

@srcejon srcejon commented Dec 20, 2022

Allow sampling devices to be refreshed while SDRangel is running. (Possibly need to add a mutex and MainCore::releasePluginManager to go with MainCore::getPluginManager, so only can be used by one thread)
Add option to automatically update My Position based on GPS. This is started in MainCore, so we get position as soon as possible.
Don't set QFileDialog::DontUseNativeDialog on Android, as Qt's file dialog can't access user storage. Set globally for Linux/Windows, rather than for each dialog.

MainWindow:

  • Add welcome dialog for Android.
  • Don't show menu bar or status bar on Android to save screen space.
  • On Android, change tab position when screen orientation changes.
  • Load example configurations and presets first time SDRangel is run.
  • Change loadConfiguration to use a QProgressDialog rather than QMessageBox, as the latter was crashing on Android. (Possibly still needs to run in a thread.)
  • Use DialogPositioner to ensure dialogs are on screen.

(Possibly need to add a mutex for MainCore::getPluginManager, so only
can be used by one thread)
Add option to automatically update My Position based on GPS. This is
started in MainCore, so we get position as soon as possible.
Don't set QFileDialog::DontUseNativeDialog on Android, as Qt's file
dialog can't access user storage. Set globally for Linux/Windows, rather
than for each dialog.

 MainWindow:
 - Add welcome dialog for Android.
 - Don't show menu bar or status bar on Android to save screen space.
 - On Android, change tab position when screen orientation changes.
 - Load default configurations and presets first time SDRangel is run.
 - Change loadConfiguration to use a QProgressDialog rather than
   QMessageBox, as the latter was crashing on Android.
   - Use DialogPositioner to ensure dialogs are on screen.
@srcejon srcejon changed the title Android MainWindow updates for Android and example configurations Dec 20, 2022
@f4exb f4exb merged commit 53c1fdb into f4exb:master Dec 21, 2022
@f4exb
Copy link
Owner

f4exb commented Dec 21, 2022

So is it now possible to generate an .apk for Android? I suppose one needs to set up a special environment for this (cross compiler at least). Are there or will there be instructions to do this?

@srcejon
Copy link
Collaborator Author

srcejon commented Dec 21, 2022

Need a few more patches. Also need built libraries and I had to build a custom version of Qt in order to fix a couple of bugs. Yep, you will need a cross compiler. Will add some instructions eventually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants