I'm trying to adapt my OpenGL game to use the stereoscopic display on the EVO 3D. My game layout.xml is a GLSurfaceView inside a RelativeLayout. There are a couple of views stacked on top of the GLSurfaceView. Right after inflating the layout, I call
Code:
boolean formatResult = DisplaySetting.setStereoscopic3DFormat(
surface.getHolder().getSurface(),
DisplaySetting.STEREOSCOPIC_3D_FORMAT_SIDE_BY_SIDE);
This is the same situation as in the Stereoscopic Demo that HTC provides together with their SDK. Only in my game, formatResult=false and the screen doesn't switch. There is no logging with any hint about the failure.
Unfortunately there is preciously little documentation about preconditions for this call and HTC did not respond to my email about the problem.
Does anybody have any experience or insight about this?
And BTW, using the Real3D (LG) equivalent was no problem at all, it worked beautifully in the emulator.
TIA Guus Bloemsma
guuscb said:
surface.getHolder().getSurface(),
TIA Guus Bloemsma
Click to expand...
Click to collapse
just going out on a limb, but for holder and surface would you need to specify a range/value in the parenthesis?
No, these are just simple getters.
Well, I found the problem after all. I will post it here in case someone else encounters the same problem.
Basically you cannot switch the screen while the activity is still starting up. Originally I tried to do it from within the activity's onCreate() method. Apparently this is too early.
Now I set the 3D mode in the onSurfaceChanged() method of the GLSurfaceView's Renderer. It kind of makes sense that some necessary data structures are only then available.
Hope this helps somebody.
Cheers, Guus
guuscb said:
Well, I found the problem after all. I will post it here in case someone else encounters the same problem.
Basically you cannot switch the screen while the activity is still starting up. Originally I tried to do it from within the activity's onCreate() method. Apparently this is too early.
Now I set the 3D mode in the onSurfaceChanged() method of the GLSurfaceView's Renderer. It kind of makes sense that some necessary data structures are only then available.
Hope this helps somebody.
Cheers, Guus
Click to expand...
Click to collapse
Yea, all my 3D games start in 3D, even the Gameloft intro screen, 3D is on.
Glad you got it working. Any background info on this game?
As the title says, I need an app for my son and I want to pay for it..
So here is the deal:
If anyone can make me an super simple card game where you basicly have
a deck of cards, and when you swipe the deck (left to right) an animation
pushes the top card a way and the next card appears.
The cards must me stored in a array, xml or database (what ever is best)
so that i can add info for each card. IE: If the card is a "6 of dimonds" i want
to show description for that card.
This must be a simple task (I hope)? So, who is up for it and how much will
it cost me? If I get an response I will send the mockup for how the game works.
In the mean time, here is an tiny, simple javascript example I made just now.
http://jsbin.com/eluseh/edit#preview
I was thinking both, just that the tablet version had a diffrent layout.?
I'm a web-developer, so i know my way around PHP, Javascript and MySql Databases. I was also thinking this was a nice way for me to get an insight on
how android apps work, so if you can do this, It would be nice if you add a lot of comments in the code
If you send me an e-mail to myusername at gmail.com, I can send you my sketches?
Mr.Ox said:
I'm going to give it a try, I'm currently learning and this would be a nice exercise. When i succeed i'd send it to you, but not for money.
*Edit:
Should it be an application for phones or for tablets, which android version?
Sent from my HTC Desire using xda premium
Click to expand...
Click to collapse
After working around a while, I've got a button which prints a random card with a random card type and a random card number with the remaining cards.
But still I've got the issue that the program doesn't yet list all the drawn cards. It just draws e.g. "Cards left: 38 Card: spades 51
But the draws before are removed.
Mr.Ox said:
After working around a while, I've got a button which prints a random card with a random card type and a random card number with the remaining cards.
But still I've got the issue that the program doesn't yet list all the drawn cards. It just draws e.g. "Cards left: 38 Card: spades 51
But the draws before are removed.
Click to expand...
Click to collapse
Did you look at the javascript code here http://jsbin.com/eluseh/3/edit#source ?
As you can see there, when the game is created, an array containing the cards are created. When ever a new card is delt, one card is removed from the array. Now what you can do, is first put in in a new array, ie. "deltcards". Then remove it from the deck..
Questions or Problems Should Not Be Posted in the Development Forum
Please Post in the Correct Forums
Moving to Q&A
lufc said:
Questions or Problems Should Not Be Posted in the Development Forum
Please Post in the Correct Forums
Moving to Q&A
Click to expand...
Click to collapse
I'm sorry, but i thought this was the relavant forums since it is a request for software development and not an Question or Problem regarding software.
Does anyone know how to move the private pics from photovault over from one android to another. I just came from the Evo 3d to the 4G LTE and i installed photo vault but None of my private pics show up. I dont know what folder to look at on the sdcard to move them over. Has any one had to do this.
My Galaxy Nexus and Transformer Prime both stop recording at a 2gb file size, is this true of all android devices? Is there any way around it, an app or something? I've tried a couple that didn't work but maybe I missed one that does. I'd like to be able to record at 1080p until the memory card is full. Any help is much appreciated.
I am not exactly sure if this is true for all, but my htc evo 3d is also limited to 2gb.
I've seen conflicting reports, some say 2gb limit, some say they can record until card is full. I'm starting to think nobody can get passed 2gb.
Well in any case you won't be able to record continuously till the SD card is full, because Android uses the fat32 file system for SD card which has a maximum limit of 4GB per file. But 2GB, that's weird, I would think that they at least limit it somewhere near the maximum. Maybe their intention was to keep it at a safe limit to avoid data corruption or something. Plus the Galaxy Nexus has a unified storage (no SD card) which runs the ext4 file system, and that has no small limitation on file size like fat32. So yeah, seems pointless to have a 2GB cap.
Sent from my Desire HD using xda premium
It doesn't make much sense, both the prime and Gnex can save file sizes above 4gb so I dont think they are formatted in fat32. There has got to be a way around it but I haven't been able to search it out.
Yeah, they're not fat32. They're formatted to ext4. I mentioned that previously. Stumps me too why the video size should be limited.
I'm guessing there are some custom ROMs which have this limit increased/removed? Try to search in the development section of GNex forum to find any posts related to this.
Sent from my Desire HD using xda premium
It doesn't make sense, bump one more time to see if anyone knows a way around this.
As sashank said FAT32 normally is limited to 4GB. I read somewhere, that integer which stores size is type unsigned int, so it has range from -2GB to 2GB.
So can galaxy nexus have the FAT32 limit removed on the camera, as it is ext4? Surely, someone has done this.
Did anyone tested video recording on the Nexus 4 ? Does it go over the 2GB limit (on an external EXT card) ?
Has anyone figured out a solution for this? I want to record long videos with the phone fixed at a position. But for me too the size doesn't go above 2gb. I am using a Galaxy Nexus running 4.2.2.
And sorry to bump an old thread.
AbhishekS said:
Has anyone figured out a solution for this? I want to record long videos with the phone fixed at a position. But for me too the size doesn't go above 2gb. I am using a Galaxy Nexus running 4.2.2.
And sorry to bump an old thread.
Click to expand...
Click to collapse
I'm having the same problem. I'm using GS3 i9305 with cm10.1, and the video recording stops at 2GB, full hd 1080p. In stock rom though, the video stopped at 4GB, and showed the message "maximun size reached" or something. I've tried 3rd part apps like Camera JB+ but nothing, it stops at 2GB.
I can transfer files bigger than 4GB to the phone though without any problems (I tried with an 8GB iso file), so I don't know what the problem is. I'm using the internal storage only, no sd card...
also would like a solution for this.
im having the same troubles with my lg thrill 4g.
would be nice to have something automatically split the video file into 2gb chunks as your recording and i could then stitch them together later..
(and no restarting the camera after it auto stops recording wont work as you miss several seconds of whatever it is you are filming )
finally found this thread full of posts from people facing the same dilemma and looking for answers. apparently, there isn't a great deal of interest in the scene for overcoming this limit, judging by the limited amount of threads and discussion on this issue and the fact that there isn't some customisations, mods, roms etc that include element that allow the video recording limit to be exceeded.
it is telling in a way, that the majority of smartphone users never bother or care enough for the issues to be raised and discussed more extensively in the community.
same oroech
hi,
i am still looking for solution the buildin camera apk, but if you are interested in third party apk then visit my thread
http://forum.xda-developers.com/showthread.php?t=2485063
all apk can record unlimited size and duration so it is the camerabuild in restricted from recording over limit and it is nothing to do with fat 32 format, because if it is why other 3rd party apk will work with no issue but i prefer the build in cam apk that is why i like to see solution for that and that is only possible by programmer to decompile . modify and recompile it again, i tired to decompile myself to see if i can get my head around, but i get error when decompiling it while i can decompile some other apk with no problem.
thank you
i think, it's the way how the apps create the file. The Camera app is recording in it's virtual memory backend. And as you know, a 32bit proccess can't allocate more than 2gb ram. I tested several dashcam software and they all crashed while reaching 2GB of recording data. Those apps let you choose to save the record to chunks of x minutes.
just my thought.... maybe i'm completly wrong
TrusterX said:
i think, it's the way how the apps create the file. The Camera app is recording in it's virtual memory backend. And as you know, a 32bit proccess can't allocate more than 2gb ram. I tested several dashcam software and they all crashed while reaching 2GB of recording data. Those apps let you choose to save the record to chunks of x minutes.
just my thought.... maybe i'm completly wrong
Click to expand...
Click to collapse
Probably this particular issue is not technical, although next to that there would be the 4GB limit on FAT32.
It seems that this is an Android limitation imposed due to legal reasons or financial ones, depending how you look at it.
There are several articles on this issue but not just Android, it covers all digital cameras, they have a 30min. recording cap which usually falls on the 2GB limit for most standard Android devices. This is due to a taxation on video recording devices which I'm guessing have one class for less than 30min. continuous recording time and a different class for greater than 30 min. continuous recording time.
According to a few articles I've read, the Word Trade Organization has specified these parameters in their Information Technology Agreement.
Google must have capped this to prevent a bigger taxation on the devices than it already is. I'm guessing the average person doesn't need more than 30 min. of continuous video but even if they do they just have to press 'recording' again. Of course that doesn't change the fact that this thread exists because some people really want the continuous and automated recording to go beyond 30 minutes. I wonder if some Android guru is able to find anything on Android kernel where this is set up as a limitation. Would be awesome to defeat the WTO with one line of code.
Hi guys,
first off, if this is the wrong place for my post, please move it =)
My problem is as follows:
I have a embedded device running Android, that is being programmed using a SD card. For testing and development purposes, it is quite uncomfortable to utilize a SD card everytime.
What I would need, is a hardware/software combination to emulate a physical SD card and access files stored remotely on the LAN. WiFi, as well as Bluetotth and NFC are no options because I have several sensitive processes that may interfere or be interfered when WiFi is used.
My question is:
Does anybody know if such an adapter (LAN to SDcard) and/or software solution exists, and could that somebody please kindly point me in the right direction?
If anyone can hint me at a solution, that would be very cool.
Thanks in advance,
Chris