Microflows cannot be called in pages that are used in the offline part of the app. So you cannot call Java actions too.
You could call your Java action from a microflow that gets called in a before commit or after commit event of an object that was created in the offline app and then synchonized with the server.