[android-developers] Bluetooth RFCOMM connection dying immediately after .connect()

2010-04-19 Thread Max Gilead
Hi! I'm trying to connect to Zeemote (http://zeemote.com/) gaming controller from Moto Droid running 2.0.1 firmware. The test application below does connect to the device (LED flashes) but connection is dropped immediately. I can connect to the device perfectly fine using bluez tools (log

Re: [android-developers] Opengl

2010-04-19 Thread Max Gilead
On 19 April 2010 04:42, risha risha.kott...@wipro.com wrote: Let me know how to set up a background image in opengl Before you render your scene set up an ortho projection and render a quad with aspect ratio equal to your screen aspect (or just square quad if your background is a tiling image)

[android-developers] Re: Bluetooth RFCOMM connection dying immediately after .connect()

2010-04-19 Thread Max Gilead
Any Bluetooth fellow devs willing to try and give some hints maybe? :) The updated version of this issue is at: http://stackoverflow.com/questions/2660968/how-to-prevent-android-bluetooth-rfcomm-connection-from-dying-immediately-after Cheers, Max On 18 April 2010 02:36, Max Gilead max.gil

Re: [android-developers] Re: Android Bluetooth Development - Problem connecting

2010-04-19 Thread Max Gilead
Hi Serge! Moto Droid 2.0.1 here. I described the issue in much more (and up to date) detail on Stack Overflow: http://stackoverflow.com/questions/2660968/how-to-prevent-android-bluetooth-rfcomm-connection-from-dying-immediately-after What kind of timing issue you think about? Cheers, Max On

Re: [android-developers] 2.1 Bluetooth support still needs work

2010-04-20 Thread Max Gilead
Hi Anders! You can search list archives for others with BT-related issues. I for one am having problems with it too (Droid with 2.0.1 firmware, still waiting for OTA 2.1 update). When every other phone/laptop I tried can connect to a device and even my Droid can connect to is using low-level

Re: [android-developers] Re: compatibility with nonexistant classes

2010-04-20 Thread Max Gilead
Dianne, what's wrong with checking version number? Unless there's some problem with it I'd suggest going with Mark's solution (also covered in http://devtcg.blogspot.com/2009/12/gracefully-supporting-multiple-android.html). You can use it for most cases and it's much cleaner (and definitely stay

Re: [android-developers] Re: Android on Symbian

2010-04-21 Thread Max Gilead
Chirayu, these were actually quite good answers. As javame_android mentioned, Android is Linux-based so theoretically you can port it to any device that supports installing 3rd party OS on it as long as kernel is ported to its CPU architecture and you've got necessary drivers. It would be best to

Re: [android-developers] Re: Android on Symbian

2010-04-21 Thread Max Gilead
On 21 April 2010 11:52, Chirayu Dalwadi chirayu.dalw...@gmail.com wrote: javame_android's reply was perfect. But i was annoyed by Disconnect's reply Welcome to the internet ;) You may need to grow a thick skin and keep your head cool if you want to talk on tech forums :) -- You received this

Re: [android-developers] Re: code for capturing screenshot of android device

2010-04-27 Thread Max Gilead
You don't need to root your phone. While not obvious it's quite easy. I should have some code for that,I'll try to find it tomorrow if you still need it (it's for capturing screenshot of your Activity). Capturing phone's desktop is also possible w/o rooting, see iSteam app from the Market but I

Re: [android-developers] Drawing a differnt lines in OpenGL ES

2010-04-28 Thread Max Gilead
Quad + texture or a mesh, depends on your needs. On 28 April 2010 15:14, satish bhoyar getsatonl...@gmail.com wrote: Hi all guys, how to draw different types of lines like thick line, dashed line etc using opengl android? thanks satish -- You received this message because you are

Re: [android-developers] How to overlay a GLSurfaceview on a surfaceview?

2010-04-28 Thread Max Gilead
On 27 April 2010 09:16, Paolo brand...@gmail.com wrote: is there anyone who knows how to overlay a GLSurfaceview on a Surfaceview? The Surfaceview is used for the camera preview. You can put camera preview image on a textured quad and render it in the background (reset camera to ortho view,

Re: [android-developers] Re: code for capturing screenshot of android device

2010-04-28 Thread Max Gilead
Max , I will check out he app , also please let me know the code. Thanks a lot On Apr 28, 6:07 am, Max Gilead max.gil...@gmail.com wrote: You don't need to root your phone. While not obvious it's quite easy. I should have some code for that,I'll try to find it tomorrow if you still need

Re: [android-developers] [OpenGL] change coodinate system

2010-04-28 Thread Max Gilead
Sure there is, you just have to multiply by a suitable matrix. A simple google query will tell you how it should be done. On 28 April 2010 03:13, Juan Aranda-Alvarez juan.arandaalva...@gmail.comwrote: OpenGL works in 3D space, so if you would like another orientation you could rotate the scene

Re: [android-developers] Receive Bluetooth Serial Data and Graph

2010-04-28 Thread Max Gilead
Hi Bonchai! See this Stack Overflow discussion: http://stackoverflow.com/questions/2660968/ At first try to use code similar to Test Application No. 1 as createRfcommSocketToServiceRecord(UID) is the 'official' way of connecting to a Bluetooth device (if it supports it that is :) ). Failing that

Re: [android-developers] Re: Bluetooth pairing request

2010-04-28 Thread Max Gilead
Just a wild guess but maybe there is a way to pull down notification area programmatically so it's obvious to the user that there's something to click on? It's obviously a workaround but would be better than nothing. On 28 April 2010 17:16, Ryan DeVore ryan.dev...@fs.utc.com wrote: I'm

Re: [android-developers] Re: bluetooth - IOException: Connection refused

2010-04-28 Thread Max Gilead
I was getting connection refused errors as well and had to use reflection to get to non-public method that allows you to connect using RFCOMM channel number directly: http://stackoverflow.com/questions/2660968/ If that helps you hit bug http://code.google.com/p/android/issues/detail?id=5427 HTH,

Re: [android-developers] Re: How to create Android library in Eclipse?

2010-05-04 Thread Max Gilead
There's even more hackish but perfectly working solution AND you get all the Android project niceties with it :) 1. Create regular Android project 2. Manually remove Android nature from .project file 3. Done :) Cheers, Max 2010/5/4 Mario Zechner badlogicga...@gmail.com Actually, i do

Re: [android-developers] Common code reuse

2010-05-10 Thread Max Gilead
As Mark said, resources are going to be an issue. For code though there's a simple way which would allow you to edit the shared code on the fly. Create a standard Android project and manually remove Android nature from its .project file (it you do this from inside Eclipse it'll all get

Re: [android-developers] Re: blank screen with opengl

2010-06-16 Thread Max Gilead
I'd suggest going with some basic tutorial like http://insanitydesign.com/wp/projects/nehe-android-ports/ and building on what you learn, modifying code little step by step so you're always a couple of Ctrl-Zs from a working version. Max -- You received this message because you are subscribed to