Write your core app in cross-platform C++, decoupling the UI (maybe using MVP or similar approaches), then switch to another platform.
"Help! My compact got stuck in the snow"
"Buy a 4x4 and replace the wheels with tracks, that will get you going anywhere"