Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Kivy Option "softinput_mode" does not work on Android with bootstrap=sdl2 #847

Closed
mrhdias opened this issue Jul 19, 2016 · 7 comments
Closed
Assignees

Comments

@mrhdias
Copy link
Contributor

mrhdias commented Jul 19, 2016

The Kivy Option "softinput_mode" does not work on Android with bootstrap=sdl2. I have successfully used the same code on Android with pygame.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@akshayaurora akshayaurora self-assigned this Jul 21, 2016
@mrhdias
Copy link
Contributor Author

mrhdias commented Jul 21, 2016

https://github.com/kivy/kivy/blob/master/kivy/core/window/__init__.py

Perhaps the problem is in following code snippet:

    def _get_android_kheight(self):
        if USE_SDL2:  # Placeholder until the SDL2 bootstrap supports this
            return 0
        global android
        if not android:
            import android
        return android.get_keyboard_height()

@inclement
Copy link
Member

Yep, that's the problem.

@mrhdias
Copy link
Contributor Author

mrhdias commented Jul 21, 2016

I commented the code and build the app again, but I get the following error:
ImportError: No module named android

    def _get_android_kheight(self):
        # if USE_SDL2:  # Placeholder until the SDL2 bootstrap supports this
        #    return 0
        global android
        if not android:
            import android
        return android.get_keyboard_height()

@inclement
Copy link
Member

To fix this error, you'd need to add the android module to the
requirements. It is optional with SDL2, not built automatically as before.

However, the android module does not itself have code for this that will
work with SDL2. You would need to add this to the PythonActivity java
code, and ideally call it from Kivy with pyjnius rather than the android
module (which we'd rather keep optioal).

On 21/07/16 17:30, Henrique Dias wrote:

I commented the code and build the app again, but I get the following error:
ImportError: No module named android

|def _get_android_kheight(self): # if USE_SDL2: # Placeholder until the
SDL2 bootstrap supports this # return 0 global android if not android:
import android return android.get_keyboard_height() |


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#847 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABNQm9ERCNWpLN8knnCirbo7twYumNIOks5qX56zgaJpZM4JQBYz.

@ghost
Copy link

ghost commented Aug 24, 2016

Any updates on this issue?

@inclement
Copy link
Member

I think qua-non has been working on it.

On 24/08/16 23:05, Rafał Kaczor wrote:

Any updates on this issue?


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#847 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABNQm-vz_o58DDY2O3mJwqpcdpjJwJ69ks5qjMBDgaJpZM4JQBYz.

@inclement
Copy link
Member

Fixed by kivy/kivy#4665

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

No branches or pull requests

3 participants