[android-developers] Re: Camera + GLSurfaceView frame rate
Thanks for your response. On the Nexus 4 when I query for frame rate ranges I get 30 as a max but trying to set the frame rate doesn't have any effect. I'm not doing any format conversion in my code for the video frames but maybe there's some way to specify a different format? I'd particularly like to know if anybody's gotten this all working at a high frame rate purely from Java or if it's necessary to dig into the NDK. On Tuesday, August 13, 2013 2:39:35 PM UTC+7, gjs wrote: Hi, What camera preview frame rate are you using ? I think you might be able to adjust this between at least 2 values, 15fps maybe 30fps options. Are you converting YUV to JPG camera preview frames ? If yes you will need to try to make this conversion as efficient as possible for good fps. Regards On Monday, August 12, 2013 8:55:03 PM UTC+10, Miles Egan wrote: I've set up a very minimal app that captures video frames from the camera and dumps them directly to a GLSurfaceView via a SurfaceTexture. This works fine but the frame rate is poor on both a Galaxy S3 and a Nexus 4. In the latter case I can't get better than about 10fps even when I don't do anything at all in my actual GL render callback. I can post actual code but before I dig much further than this I'd just like to know if I should be able to get better frame rates than this or if this is the best I should expect. There are camera apps in the store like Camera 2 that are much smoother than this but maybe they're using the NDK + lower level APIs to achieve this? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Camera + GLSurfaceView frame rate
I've set up a very minimal app that captures video frames from the camera and dumps them directly to a GLSurfaceView via a SurfaceTexture. This works fine but the frame rate is poor on both a Galaxy S3 and a Nexus 4. In the latter case I can't get better than about 10fps even when I don't do anything at all in my actual GL render callback. I can post actual code but before I dig much further than this I'd just like to know if I should be able to get better frame rates than this or if this is the best I should expect. There are camera apps in the store like Camera 2 that are much smoother than this but maybe they're using the NDK + lower level APIs to achieve this? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[android-developers] Odd ICS only, ScrollView/ListView, landscape only shadow at top of View
I am seeing an odd dark shadow at the top of all ScrollView and ListViews in my application that I can't seem to get rid of. The odd part about it, it ONLY appears in landscape mode on the Galaxy Nexus or in the emulator. It doesn't appear on any emulators running 2.2 or 2.3.x, nor does it appear on my Captivate running 2.3.3. Also, it doesn't appear on my Asus Transformer Prime running 4.0.3 in landcape mode, so it seems like the issue is localized to the Galaxy Nexus and the Android emulator with a 4.0.x based AVD. I do not have anything within the app that would provide a different theme/layout/style for orientation, nor OS version. Can anyone provide me some guidance here? Here are two snippets of a screenshot, one in landscape, the other in portrait https://lh4.googleusercontent.com/-6_zGD6D58sg/T5rJQYsstLI/H60/unOKwwXjs4Q/s1600/anotated.pnghttps://lh5.googleusercontent.com/-EOunVBMNXz0/T5rJeDp6rfI/H7A/ujyLWFP7Ta0/s1600/missing.png https://lh4.googleusercontent.com/-6_zGD6D58sg/T5rJQYsstLI/H60/unOKwwXjs4Q/s1600/anotated.png -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] device testing on iOS app port
I've completed an iOS app for a client and they've asked me to do an Android port for them. I haven't written any real Android apps before but I've been hacking around on some of my own apps and studying the docs long enough to feel confident that I understand the APIs and conventions well enough to do the port. However, I'm a little concerned about testing. I don't currently own any Android devices at all. I'm willing to buy 2-3 devices for testing purposes but I don't have the budget to buy more than this or to subscribe to one of the online testing services. So before I commit to this project, I'd like to ask people with more experience this: are two or three different phones enough to test a relatively simple app before release or would I need more to represent the large number of different devices out there? -- miles -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Browser Plugin development requires valid signature
Hi, If I develop a plugin for the DEFAULT Android web browser, do I need to have it signed with a proper signature? Currently I've heard that only the Adobe FLASH package signature is supported by the browser. Indeed I cannot load my test plugin in an actual 2.3 device, but I am able to load it in the emulator Has anybody been successful in running their browser plugin on an Android device? Is this signature limitation true? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] ValidityTimeStamp is always null
I use test account and real account, but validityTimeStamp(VT) is always null. I want to know the value of the VT normally, Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Hook event listeners for activity/application lifecycle events
Hi, Is there any way to to listen for activity/application lifecycle events without having to extend the classes? Reason for this is we are providing a component that needs to detect when an activity/application is paused or resumed. And for convenience sake we don't want the client to have to notify the component every time activity lifecycle changes. If possible we just want the component to hook into the lifecycle events and be informed automatically by the android system. We could make the component extend Activity and let the client extend the component, but this would be more complicated for the client. We want to keep things simple for the client as possible even if it makes our component more complex. So is there a way to hook event listeners for lifecycle events? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Recursive entry to executePendingTransactions
Yeah I've been having the exact same problem. I suspect the answer will be to do what ever actions you need to ONCE the view is rendered fully. Still it's not ideal (assuming it even works) On Sep 5, 11:19 am, Saul Diaz seff...@gmail.com wrote: Good morning: I am developing a Honeycomb 3.0 application and I am using Android Compatibility Library in order to get available the ViewPager component. I am suffering a Recursive entry to executePendingTransactions exception while trying to replace another Fragment with one composed only with a LinearLayout and a ViewPager. Seems to be caused when the PagerAdapter has some data. If the list in the Adapter is empty, it loads without a problem. Has somebody faced this problem before and I am missing anything? Thanks in advance. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Emulator web access behind proxy using HttpURLConnection()
Hi, I'm behind a proxy and have set-up the correct proxy settings in the emulator. I am therefore able to browse the net using the emulator browser. But in my app when using HttpURLConnection to open an input stream to any website I get a connection timeout. This only happens in the emulator, running the app on the device works fine. My question is if the HttpURLConnection uses the same proxy settings as set on the emulator. Or does it access the net some other way? As such it might be blocked by our firewall. Thanks! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to show the soft keyboard on native activity
When I try to use ANativeActivity_showSoftInput(), it doesn't bring up the soft keyboard. I have tried using ANativeActivity_showSoftInput(engine-app- activity, ANATIVEACTIVITY_SHOW_SOFT_INPUT_FORCED) and ANativeActivity_showSoftInput(engine-app-activity, ANATIVEACTIVITY_SHOW_SOFT_INPUT_IMPLICIT) to show softinput, but also failed. I read the source code, and I found after start nativeActivity, NativeContentView(extend View) will be created, and when call ANativeActivity_showSoftInput, it will call showSoftInput() in java side. I think maybe the softkeyboard is not turned on. Can you help me? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: 3D MapView - Is it possible?
I could easily create my own but I guess using Google map tiles would be against the TOS, even if I did display the necessary legal text/ acknowledgments at the bottom of the screen? On Oct 20, 6:24 pm, Mark Murphy mmur...@commonsware.com wrote: mscwd01 wrote: Is there a way to manipulate a MapView so it is given perspective? I.e. the Tiles at the bottom of the view are wider than those drawn at the top of the view? Not with Google Maps, no. I cannot speak for alternative map systems. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy _The Busy Coders' Guide to *Advanced* Android Development_ In Print! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Hmm... at last ADC2 is out of our way ... tell about your app and experience
Hi JP, Yes you are probably right, the sensors in modern Smartphones are really to inaccurate and liable to interference in vehicles which is a pity. AugSatNav was always intended to be used on foot anyway and it works brilliantly finding your way around urban environments. We shall also be adding the ability to create off-road routes yourself which you can share with friends to enable you to follow/find someone. Exciting times! ) -Miles On Sep 12, 9:18 pm, JoaJP joachim.pfeif...@gmail.com wrote: Not taking away from app functionality or presentation... inside vehicles you'll probably find that the earth magnetic field is disturbed to a degree that the compass readings are off for about any combination of device and vehicle. The ongoing proliferation of vehicles with electric propulsion systems, at least here in the Bay Area... won't make things easier going forward. Good luck though. JP On Sep 12, 9:02 am, Miles milesco...@gmail.com wrote: It's probably about time we introduced our app to the world, here goes... Application: AugSatNav Category: Travel Description: AugSatNav is the world’s first “true” augmented reality application to overlay navigation information directly upon a live video feed of the road ahead. Extended description and screenshots are available at our website:http://www.phyora.com/ Please excuse the reflections on the screen of my HTC Hero (its very hard taking photos of your screen outside) The app itself works great on foot, the compass in our HTC Hero suffers from interference when used inside a vehicle. It was a challenging app to build but I think it has the wow factor we were going for! As with most other devs, we have made significant improvements since the deadline; ultimately though, the app still works as intended. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Hmm... at last ADC2 is out of our way ... tell about your app and experience
It's probably about time we introduced our app to the world, here goes... Application: AugSatNav Category: Travel Description: AugSatNav is the world’s first “true” augmented reality application to overlay navigation information directly upon a live video feed of the road ahead. Extended description and screenshots are available at our website: http://www.phyora.com/ Please excuse the reflections on the screen of my HTC Hero (its very hard taking photos of your screen outside) The app itself works great on foot, the compass in our HTC Hero suffers from interference when used inside a vehicle. It was a challenging app to build but I think it has the wow factor we were going for! As with most other devs, we have made significant improvements since the deadline; ultimately though, the app still works as intended. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: MP3 to PCM 16 Bit
I really can't believe I never thought of using a local proxy. It seems all so simple now! As I understand the concept, but not the actual implementation, would you know of any tutorials or sample apps that go about the same lines that I could look into? On May 6, 10:29 am, Marco Nelissen marc...@android.com wrote: On Wed, May 6, 2009 at 10:19 AM, Vimae mi...@vimae.com wrote: With the new 1.5 now finally being released, I'm trying to give my app a second go. I currently have a service where you can stream your music library from the web. However, each stream has to be authenticated with a cookie or the server returns a 500 error, so the standard MediaPlayer will not work, because I cannot pass a cookie with the Uri! You could have a local proxy in your app that does that for you. I noticed that the API now has an AudioTrack class within android.media. It can take a raw stream of PCM 16 BIT. I was wondering if anyone has any tips or ideas on progmatically transcoding MP3 stream to PCM 16 for playing through. You would have to find an mp3 decoder to include in your app. Using one written in Java would perform poorly, and using a native one would require writing some JNI code and passing data back and forth. The proxy approach might be easier. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Detect shaking
As I haven't really implemented anything with the accelerometer yet, I don't know exactly, but I would go about it by monitoring normal, non-shaking values from the sensor, then anything that fell out of those ranges for a certain amount of time would be considered shaking. my 2 cents. On Sun, Mar 1, 2009 at 2:18 PM, J. Pablo Fernández pup...@pupeno.comwrote: Hello, Is there an easy way to detect shaking of the phone? Or do I have to implement it myself by monitoring the sensors? If so, any hints on how shaking looks like from the sensor point of view? Thanks. -- J. Pablo Fernández pup...@pupeno.com (http://pupeno.com) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Cookies
How does one go about setting a cookie? I have an website that sends mp3's to clients, but the request must have a cookie attached to it. How would I go about setting a cookie for a MediaPlayer URL request? Is that even possible? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] kSOAP2 with SDK1.0
I'm having a helluva time trying to get ksoap2 working with Android. All the samples I see (including the modified .jar with AndroidHttpTransport in it) fail because of the relocation of org/apache/commons/httpclient/SimplehttpconnectionManager. Can someone provide me with a tutorial, sample, anything that will show me how to at least get the library working correctly? It seems like a major oversight for Google to not include some way of parsing WS correctly! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---