Search Results

Search found 1570 results on 63 pages for 'sam holder'.

Page 7/63 | < Previous Page | 3 4 5 6 7 8 9 10 11 12 13 14  | Next Page >

  • Alternative approach to OpenGL View on top of Camera

    - by Mr. Roland
    Hi, the traditional way of doing a camera preview background with OpenGL on the front is to take two SurfaceViews(one for the camera another for OpenGL) and stack them on top of each other. The problem is that stacking SurfaceViews is discouraged: http://groups.google.com/group/android-developers/browse_thread/thread/4850fe5c314a3dc6 So what alternatives are there? I was considering the following: Subclass GlSurfaceView, and then call set the Camera preview onto the holder of this subclass: Camera.setPreviewDisplay(mHolder); Don't use GLSurfaceView, instead create your own SurfaceView subclass where you display the Camera preview onto the holder and also draw your openGL. This would require to use OpenGL without GLSurfaceView, has anyone done this before? I'm not sure if this even is possible or makes sense, since it implies displaying the camera preview onto the holder of the surface and at the same time drawing OpenGL on the same surface. Is there any other sensible alternative to solving the problem without using two SurfaceViews? Thanks!

    Read the article

  • JavaScript BubbleSort

    - by Alyn
    Hi, Have a bubblesort routine similar the this. I need to make it more efficient by stopping the loop when the array is sorted or if the array is already sorted. function sortNumbers(listbox) { var x, y, holder; // The Bubble Sort method. for(x = 0; x < ranarray.length; x++) { for(y = 0; y < (ranarray.length-1); y++) { if(ranarray[y] > ranarray[y+1]) { holder = ranarray[y+1]; ranarray[y+1] = ranarray[y]; ranarray[y] = holder; } } }

    Read the article

  • Adding Values to a Byte Array

    - by rross
    I'm starting with the two values below: finalString = "38,05,e1,5f,aa,5f,aa,d0"; string[] holder = finalString.Split(','); I'm looping thru holder like so: foreach (string item in holder) { //concatenate 0x and add the value to a byte array } On each iteration I would like to concatenate a 0x to make it a hex value and add it to a byte array. This is what I want the byte array to be like when I finish the loop: byte[] c = new byte[]{0x38,0x05,0xe1,0x5f,0xaa,0x5f,0xaa,0xd0}; So far all my attempts have not been successful. Can someone point me in the right direction?

    Read the article

  • Android liveWallpaper background

    - by Beginer Developer
    How do I scroll the background image on an ACTION_MOVE event? Here is my code used to draw the background image: void drawFrame() { final SurfaceHolder holder = getSurfaceHolder(); Canvas c = null; try { c = holder.lockCanvas(); if (c != null) { c.drawBitmap(myBg, 0, 0, mPaint); } } finally { if (c != null) holder.unlockCanvasAndPost(c); } // Reschedule the next redraw mHandler.removeCallbacks(mDrawAnim); if (mVisible && mAnime) { mHandler.postDelayed(mDrawAnim, 50 ); } }

    Read the article

  • requestRouteToHost android

    - by Sam
    Greetings everyone! I'm getting rather fed up with android's ConnectivityManager class. I've been trying for 5 hours to get the requestRouteToHost to work. I'm running my code on the emulator but the requestRouteToHost always fails. I know I have connectivity because I called getActiveNetworkInfo() and it was connected. I've added the ACCESS_NETWORK_STATE and CHANGE_NETWORK_STATE permissions to no avail. Any tips would be greatly appreciated. Sam

    Read the article

  • Getting Response.End() behavior in JSP

    - by Sam Ingrassia
    Thanks to everyone in advance - I am aware of closing the jspwriter/outputstream and returning as a method to stop further execution in the main context. Has anyone found a way to stop execution outside of the main context? From my understanding of how jsp is 'compiled' etc I do not think this is possible, but I thought I should see if anyone has any clever solutions - Thanks, Sam

    Read the article

  • JSON array deserialization is crashing the Dalvik VM

    - by Sam
    I have some code grabbing a JSON array from my server and initially storing it as a string. This all works fine until I try and deserialize it using google's gson fromJson method. LogCat spits out the error: 04-08 17:46:35.163: ERROR/dalvikvm(401): Can't shrink stack: curFrame is in reserved area (0x41049000 0x410491c4) My code that causes the error is: String[] results = gson.fromJson(returnString, String[].class); Can anyone shed some light on what I am doing wrong? Cheers, Sam

    Read the article

  • i want to send 20000 messages from JMeter to JMS Queue through web methods and get/capture responses

    - by sam
    Blockquote Hi i'm trying to post JMS messages to JMS queue through web methods,JNDI. i want to post 20000 messages using one connection. i want to read the responses back once returned by wMethods. i want to capture the request & response for all 20000 messages i'm using JMeter is there any other opensource, easily usable tool available for this testing? thanks in advance. regards, Sam Blockquote

    Read the article

  • removing objects from arrays

    - by Sam Jarman
    Hey All I have an array(NSMutableArray) with 8 objects. I then remove number 5 (removeObjectAtIndex:4) does the array now count only 7 objects? or 8 with a space? I need to know. I plan to 'drain the array' after doing a thing with each object. Cheers Guys Sam

    Read the article

  • cover/image that will hide a UIButton, but still let it be touched

    - by Sam Jarman
    Any ideas on how to create a cover that has alpha 100 but is able to let a button behind it be touched, and an action to be called. i dont want to apply the action to the cover, nor change the buttons image - as a convaluted set up is required for each one. any ideas? what im after is effective not a see-through button, but a touch through button... Cheers in advance guys sam

    Read the article

  • TinyMCE Editor acts weird on IE

    - by Sam Kong
    Hi, I use TinyMCE and it works fine on FireFox but it shows weird icons on IE 8.0. As you can see, forecolor and backcolor icons are repeated. This doesn't happen on FF. Has anybody seen this? How do I fix this? Sam

    Read the article

  • Help with jQuery 'zoom' script

    - by Sam
    Hi All I'm using this script on my site - http://www.suuronen.org/esa-matti/projects/panfullsize/ Got it all working fine, only problem is that it always defaults to the zoomed image when you load a page. I'd rather it showed the scaled down image first, and then zoomed when requested. Anyone know how I can fix it? Cheers Sam

    Read the article

  • Need help in implementing DICOM in JAVA

    - by sam
    hi all, I want to implement Dicom using JAVA. And also i should not use any existing API and i have to develop from the scratch. I spent almost 10 days in understanding DICOM itself,i got some vague idea so kindly help how implement it in java , where to start,architechture etc... Regards, Sam

    Read the article

  • how do I call create a name of a button variable in a code, with a number in it? (hard to explain)

    - by Sam Jarman
    Ive got a int, that is changed in a previous method, that now has to be part of the name of a button variable eg int numberFromLastOne; numberFromLastOne = 4; I then want to get 'button4' to do something. Could i use something like this? [[button@"%d", numberFromLastOne] doSomethign:withSomethignElse]; Ive never had to do something this before.... Any ideas would be appreciated :) Sam

    Read the article

  • Why don't this toggle animation execute in all browsers

    - by Sam Horner
    Hey guys This file isn't executing in any browser other than firefox on mac. Added everything i can think to get it sorted. http://samhorner.co.uk/dev/samhorner/ Clicking on the twitter bar should close it, then open it again when you click on it again, only one click works on the other browsers. The blue box is a flash area in the background. Thanks or the help. Cheers Sam

    Read the article

  • IB Linking iPad SplVC table view

    - by Sam Jarman
    hey guys When you have an iPad Project, and you want to put a table view in your landscape view... I did this i dragged in a UITableView. but what do you 'hook' the data source to? there are about 3 options that all seem to crahing for me... when not hooked up, app launches fine. Any help would be appreciated. Cheers Sam

    Read the article

  • Has anybody developed an auto part ecommerce site?

    - by Sam Kong
    Hi, I need to develop an e-Commerce site that sells auto parts. For that, I need a database that has year/make/model information that each part is applicable to. As far as I know, we need to purchase the database and subscribe updates. Is there any database available for free? (I may not need updates) Thanks. Sam

    Read the article

< Previous Page | 3 4 5 6 7 8 9 10 11 12 13 14  | Next Page >