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

[Android] Expose the ANativeActivity to the user #680

Closed
AlexAUT opened this Issue Aug 17, 2014 · 5 comments

Comments

5 participants
@AlexAUT
Contributor

AlexAUT commented Aug 17, 2014

At the moment it's impossible to get the ANativeActivity (except with a awful hack). But the user need it to load assets, call JNI function, access the savedstates...

Maybe the getSystemHandle() should return a struct containing a pointer to the ANativeActivity and the ANativeWindow.

@tiaanl

This comment has been minimized.

Show comment
Hide comment
@tiaanl
Contributor

tiaanl commented Aug 25, 2014

@MarioLiebisch

This comment has been minimized.

Show comment
Hide comment
@MarioLiebisch

MarioLiebisch Oct 12, 2014

Member

Thought about this a bit more. I'd say leave sf::Window::getSystemHandle() alone and instead add a new non-class function returning a system handle for the actual process (on desktop systems) or activity (Android). Adding my thoughts to the forum thread.

Member

MarioLiebisch commented Oct 12, 2014

Thought about this a bit more. I'd say leave sf::Window::getSystemHandle() alone and instead add a new non-class function returning a system handle for the actual process (on desktop systems) or activity (Android). Adding my thoughts to the forum thread.

@Sonkun Sonkun modified the milestone: 2.3 Oct 16, 2014

@eXpl0it3r eXpl0it3r removed the s:unassigned label Jan 8, 2015

@eXpl0it3r eXpl0it3r removed this from the 2.3 milestone Feb 23, 2015

@eXpl0it3r

This comment has been minimized.

Show comment
Hide comment
@eXpl0it3r

eXpl0it3r Feb 23, 2015

Member

Removed milestone due to missing progress.

Member

eXpl0it3r commented Feb 23, 2015

Removed milestone due to missing progress.

@MarioLiebisch MarioLiebisch added this to the 2.4 milestone Oct 14, 2015

@MarioLiebisch MarioLiebisch self-assigned this Oct 14, 2015

@MarioLiebisch

This comment has been minimized.

Show comment
Hide comment
@MarioLiebisch

MarioLiebisch Oct 14, 2015

Member

Essentially got this ready, just missing updated documentation (waiting on #961) and some testing.

Member

MarioLiebisch commented Oct 14, 2015

Essentially got this ready, just missing updated documentation (waiting on #961) and some testing.

MarioLiebisch added a commit that referenced this issue Oct 17, 2015

Android: Exposed the Native Activity
Also updated the documentation accordingly.
This fixes #680 and allows users to implement their own NDK calls outside SFML.

@eXpl0it3r eXpl0it3r added s:accepted and removed s:undecided labels Apr 20, 2016

@eXpl0it3r

This comment has been minimized.

Show comment
Hide comment
@eXpl0it3r

eXpl0it3r May 4, 2016

Member

Added in 9f6f02f

Member

eXpl0it3r commented May 4, 2016

Added in 9f6f02f

@eXpl0it3r eXpl0it3r closed this May 4, 2016

@eXpl0it3r eXpl0it3r added this to Done in Android Backlog Jan 25, 2018

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