First of all, pelya, thank you so very much
for this port! I've made a couple of games
using it. I even won some money competing with them, so if you're accepting donations somewhere, I'd be glad to do it (if it's even possible from this ****hole of a country I live in).
Second, I recently found out that my application switching in my new project isn't working anymore. When I switch back, I just get a black screen, but the sound is playing, and the game is still working and responding to commands (knowing where they are on screen, I can still use them). I wrestled with the GL context destruction and texture reloading a while ago and I solved it. Now, I looked at my own logs and there were no errors reported related to that. If it was the textures, I'd still be seeing single-colored rectangles floating around. So I open up LogCat, and see an endless flow of:
- Code: Select all
E/BufferQueue( 1857): [SurfaceView] dequeueBuffer: SurfaceTexture has been abandoned!
E/[EGL-ERROR](15164): void __egl_platform_dequeue_buffer(egl_surface*):1269: failed to dequeue buffer from native window (0x53095ba8); err = -19, buf = 0x5198b404
This was reproduced across several different phones. And the weird thing is - several builds later, it started working again, and then a build later - same old, black screen. Do you have any clue what might this be? I did some modifications to your source, so I've been hesitant to try newer versions, but I'll try that in the meantime. Which leads me to...
Third, what would be the "correct" setup for an app that needs just the raw accelerometer data? I never seemed to figure this out, I tried all kinds of combinations (using accelerometer, using joystic, arrow keys emulation, etc.), I stared at the source and even tried modifying it to get what I wanted, but I'm assuming there was an easier way. I just need acceleromer reading (preferably as an SDL joystick, as I've already written the code to enumerate and read them), since I'm building games ground-up for this, not porting. So, no calibration, sensitivity, setting up center position, arrow keys emulation, or anything extra drawn on screen. I just need access to accel data from my C++ code (again, probably through SDL joysticks, as it (kinda) works now). Also, I want to completely hide "device configuration" from user, so this would have to be set up as the default state. Is there already a "correct" combination of settings to achieve this bare-bones accelerometer-as-joystick wrapping? Or if not, could you possibly implement such a feature?
Thank you for your time.
EDIT: I also needed launching a browser with a specified URL, so I tried it using system() call, as you wrote a page back. Internet says I just need INTERNET permission (which is already there), but looking at my logcat (and trying it out manually in terminal emu), it appears I'm required to have INTERACT_ACROSS_USERS_FULL permission. I even tried adding it to my AndroidManifest.xml, but no luck. What am I missing?