Android :: Gl DeleteTextures Produces Strange Error (5572216)

Aug 23, 2010

I'm trying to get my head around how the vram is used in opengl, specifically when and how to clean it up. The Story So Far. I have a GLSurfaceView into which I set a Renderer implementation (called OpenGLRenderThread). This view is created (manually, by calling "new") in the main Activity of the app. When the onSurfaceCreated method of the OpenGLRenderThread is called, I load a bunch of textures in a fairly standard way: the app runs fine, however when I try to clean up these textures at the end of the "level" (the app is a game. I do the following: On the emulator it works fine, but on the device (HTC Desire, 2.1) I get a GL Error 5572216 I have no idea what this error code is as I can't seem to find any reference to it. I understand that the VRAM references are bound to the thread that created them. Hence they can only be destroyed by the same thread. In my case, this thread is the OpenGLRenderThread (Renderer) during the onSurfaceCreated call.Unfortunately the Renderer interface does not expose an "onSurfaceLost" method, so I created my own. When the Level is complete, my main activity queues a request on the OpenGLRenderThread using the following call to the GLSurfaceView: According to javadoc for queueEvent: "Queue a runnable to be run on the GL rendering thread" Ok fine, so this should mean that the OpenGLRenderThread is performing the call to onSurfaceLost. This method is the one that then calls glDeleteTextures, and produces the error. what am I doing wrong here? I am not destroying the OpenGLRenderThread or the GLSurfaceView at any point (other than game exit) so I'm worried that if I don't explicitly delete the textures my vram will eventually fill up, or worse get into a corrupt state. The only other thing that may be relevant is the use of a ViewFlipper. Because I want to load each level asynchronously I am using a ViewFlipper in the main activity to flip to a loading screen while all the level resources are rebuilt. Hence when the call to glDeleteTextures is made, the GLSurfaceView is not actually visible not sure if this is meaningful or not.

Android :: Gl DeleteTextures produces strange error (5572216)


Android :: IOException - Strange Error

Jul 29, 2009

I'm trying to write a basic application with http get request. Eclipse validated my code, but when I using IOException in Android console I have this strange messages:

CODE:...............

And my application doesn't load into the emulator.

This is my code:

CODE:..................

View 3 Replies View Related

Android :: Strange Error With AdMob

Jan 21, 2010

I have already posted on their developer group but based on everything I've seen I don't expect a reply. I have a strange problem. When I added and adview to my app it imported a bunch of comments that all start with /** Eclipse is acting like it is not a comment. Although it isn't erroring out it has now marked anything starting with R.id as not existing. Is this something I can remedy in eclipse or is it time to chuck my dreams of being mega rich off of all the admob revenue I will be receiving? Writing code is one of few things that teaches me I don't know everything. Join the Closed Beta of Call Girl Manager http://www.fuligin.com/forums

View 5 Replies View Related

Android :: XML Parsing Strange Error

Jun 28, 2010

I am trying to parse XML with a simple sax parser. Interestingly i am able to see desired output in the emulator. but when i run the program on a device program shows no output. I tried many different way for example putting the XML file in a raw folder but every time no out put on device. Tried this on two different handset and everywhere get the same error.

View 2 Replies View Related

Android :: Strange Instance Of App Not Responding Error

Aug 31, 2010

A customer just notified me that she's experiencing the infamous "app not responding / wait, force close" message during a specific operation. By just waiting enough, the app resumes ok. Now, that specific operation is indeed long and in fact it has been programmed in a background thread, with a progress dialog signaling the wait. I can't reproduce the problem on my development phone - I suppose because it's perhaps faster than the phone of the user. But I can't reproduce the problem either with the emulator, which I suppose is slow enough. Generally speaking, I think I could be able to solve this specific problem with the customer giving me the proper feedback. It's the general issue that hassles me. This part of the application is very good covered by tests at different levels, including automated black-box tests with Robotium that drive the UI as the user would do, and even in "stress mode" (repeating the test multiple times). So I supposed to be very safe in that area and I'm disappointed to discover that it was a false sense of safety. What am I possibly missing? Also, is it possible / does make sense to "slow down" a phone during tests? I was thinking of a service running in background just consuming some CPU cycles to make the phone less responsive. Fabrizio Giudici - Java Architect, Project Manager Tidalwave s.a.s. - "We make Java work. Everywhere." a.net/blog/fabriziogiudici - www.tidalwave.it/people Fabrizio.Giud...@tidalwave.it -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.14 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

View 3 Replies View Related

Android :: Strange Error With Return String From Web Service

Aug 13, 2010

I have a strange issue. I am using KSOAP2 to create a soap request to a .net webservice. I do this in a few other places and everything works fine. The webservice basically queries a data base and takes the values from the data reader and creates a string. This string is then returned. When I run the webservice on my local machine(Without using android) it works fine. When I run it from the webserver (still not android) it works fine. When I call it from my phone however the line: String hazards = (String)envelope.getResponse().toString () ; //Get response from .net Web service Simply is filled with anyType{}. Now if I go to the webservice and I manually type in the contents from the database to represent what the string concatenation should be it works perfectly. The line: String hazards = (String)envelope.getResponse().toString(); //Get response from .net Web service Now returns the string value i need. Does anyone have any idea why this is happening or know a better place to ask this question?

View 4 Replies View Related

Android :: Strange Error When Building / Using Prebuilt Tool Chain

Jan 17, 2009

When I using default pre-built android-toolchain to build android on linux, the following errors occur: hucheng@hucheng-bj:~/temp$ uname -a Linux 2.6.18.5-gg42workstation-mixed64-32 #1 SMP Tue Nov 25 21:45:59 PST 2008 x86_64 GNU/Linux Have you met it before? Institute of High Performance Computing, Department of Computer Science and Technology,

View 2 Replies View Related

Samsung Behold 2 :: Strange Error With Contacts?

Jan 17, 2010

I was trying to make a call today, but every time I pressed contacts a TouchWiz style error message would pop-up and say "Initializing, try again later." The wording may not be exact, but that's pretty close. Then it would dump me back to the home screen. I ended up rebooting and now it works fine. But when things that should be a basic function of the phone don't work, I get kind of ticked off.

View 11 Replies View Related

HTC Desire :: Strange Contacts / Facebook Error

Jun 13, 2010

Having a few problems ringing people on my phone. I get a voice saying "the number you have called has not been recognised". I looked at the number and it start 447xxxxxxxxxx I went to edit the number in phonebook and it's fine cos it starts off as 07xxxxxxxxx, i have to edit the number each time i wanna ring these person now unless they're in my previous call list! They are linked to their facebook profile but they don't store their number of facebook so why is it being converted to 447xxxxxxxxxx if it has the + before the 44 i think it would be an issue! I've never had this issue before either

View 2 Replies View Related

Media :: XML ITunes Produces For Android

Nov 7, 2010

I read somewhere that the native player can "eat" what iTunes produces, which allegedly is some form of XML.

View 14 Replies View Related

Android : How To Create A Button That Produces Same Result As Hitting Down Key

Aug 19, 2010

How do you create a button in an Android app that produces the same result as hitting the down key on the D-Pad?

View 1 Replies View Related

Android : Playing Bigger Size Audio Wav Sound File Produces Crash

Mar 25, 2010

I am trying to play the bigger size audio wav file(which is >20 mb) using the following code(AudioTrack) on my Android 1.6 HTC device which basically has less memory. But i found device crash as soon as it executes reading, writing and play. But the same code works fine and plays the lesser size audio wav files(10kb, 20 kb files etc) very well.

P.S: I should play PCM(.wav) buffer sound, the reason behind why i use AudioTrack here. Though my device has lesser memory, how would i read bigger audio files bytes by bytes and play the sound to avoid crashing due to memory constraints. Code...

Could someone guide me please to play the AudioTrack code for bigger size wav files?

View 1 Replies View Related

HTC Desire :: Photo Uploading To Picasa Produces Grey Stripe?

Jul 12, 2010

Uploaded a batch of photos from my phone to Picasa - quite a few towards the end of the batch ended up with a grey bar across the bottom half of the photo.Anyone know what causes this? Saw one or two previous posts have been made about it, but no one seems to know why it happens.

View 13 Replies View Related

Android :: Strange Looking Rounded Rectangles?

Nov 2, 2010

I'm using the following to draw rounded-corner rectangles in my Android application and it seems to be working alright but with one minor problem:

CODE:.......

(Adding labels to the rectF's defined above follows) ...

The strange thing is that the two ends of the rectangle aren't rounded over the same. The left-size quarter circles are noticeably smaller than the ones on the right.

Anybody experienced anything similar? It's weird enough that I might change my mind about the round corners if I can't do anything about it.... And if I knew how to do a screen capture from my Android, I would.

The rectangles in question are 78 pixels wide and 48 tall, if that helps (and since ykatchou may be onto something).

View 1 Replies View Related

Android :: GestureOverlayView Causes Strange TableRow Blending

Jul 2, 2010

With the XML layout shown below, I have some views wrapped in a GestureOverlayView. As shown below, my first row is blended with the second row, as-if the first row is transposed right on top of the second. Now when I take the GestureOverlayView out of the code and leave everything else as-is, my table looks fine - the rows are separate and not on top of each other..........

View 1 Replies View Related

Android :: Keep Getting A Text Message From Strange Sender

Nov 14, 2010

Bit of an odd one this...Every now and again I get a blank text. The sender is stated as ...

View 1 Replies View Related

Android :: Strange Delays When Doing Wifi Scans

Aug 19, 2010

I have a simple app that just initiates a wifi scan every two seconds and then logs the results. I am observing some strange behaviour, and was wondering if anyone could shed some light. When I start scanning, if the phone (Nexus One running latest Froyo OTA release) is just sitting on my desk (screen on or off, it doesn't matter), I receive the wifi scan results about 800ms after initiating the scan, fairly consistently. At most, it takes a second and a half to receive the results. However, if I get up and start to walk around the building that I'm in, the time between initiating the scan and receiving the result begins to vary greatly. What is interesting is that I start to see a pattern where it will take about 40 seconds to receive results, then I will get three or four results two seconds apart, then it takes 40 seconds to receive the next set of results, then I get three or four results two seconds apart, etc.

I've tried obtaining a wifilock, both the FULL and SCAN ones, and that doesn't help. Same with a partial wakelock. I've also tried setting up a thread that pings the supplicant every second and reports when it is unreachable, and it appears to always be responsive (ie., I never see the report). I thought that maybe the problem was that I am unable to receive the result of scans when I am switching between base stations (which might happen when I move around), but if I manually switch between two different networks, it does not cause a delay in my scans (ie., I can still get the results with only a one second delay while it's associating with the new network). Anyway, for my application, it would be incredibly useful to get wifi results at a fairly consistent rate, and so I was hoping that someone on this list might have some suggestions as to how I can achieve this.

View 2 Replies View Related

Android :: Strange JAVA Syntax - Specifics?

Apr 1, 2009

I am a C programmer before, and I am looking into android source code right now, some JAVA syntax is confusing, I am not sure whether or not it's android related, see:

CODE:..........

1) What's the meaning of Override? Is it ommitable?

2) What does the "synchronized" mean?

View 5 Replies View Related

Android :: SensorManager Strange Behaviour Of GetOrientation

Jul 7, 2010

I need to retrieve the orientation of my phone. At the moment i wrote this :

CODE:................

This code allows me to get the orientation of the phone if i leave the phone on a flat surface and i rotate it over the surface.

What i did not understand is why if i move the phone upwards the value of this.actual_orientation[0] ,which is the rotation on the zed axis as described [here][1], the value increases although there was no rotation.

Did someone know what happens?

Another strange thing..

I tried my application in the office at work and it had the strange behaviour i described before..
I tried in the same office(same situation) a compass app that i took from the market and it has the same behaviour of mine..when i moved the phone upwards the value changed consistently..
I tried in the same office(same situation) the i-phone compass and it didn't have that strange behaviour!

Then when i arrived at home i tried both, my application and the compass app of my android phone, and they worked!even if i move upwards the phone the value are stable...

View 1 Replies View Related

Android :: Strange Behavior After Installing Anti-virus

Aug 28, 2010

Last night I downloaded antivirus free by droidSecurity inc.I ran a scan and it said I had something suspicious but would not allow me to view any details. Eh lame, I removed the app and jumped into bed.Today I was out driving around and got a warning my internal Phone memory was low. I took a look and it said 150 MB free.so I rebooted the phone and maybe I was being dumb because I thought you could cancel the SIM password and use the device as a PDA with no access to make phone calls.Anyhow I restored my clockwork recovery nandroid backup from a couple of days ago and now things seem better. Phone has 0.9 GB free.Are there any good applications to help manage the available memory on the phone?

View 4 Replies View Related

Android :: Strange Exceptions When Deleting And Reading Contacts

Sep 8, 2010

I am getting following exceptions when I try to read/delete contacts from my application using Contacts Content Provider. What does the following mean? ERROR/IMemory(1349)

View 3 Replies View Related

Android :: Camera Preview - Strange On Samsung Galaxy S

Jul 9, 2010

In my activity I show the camera preview on a surfaceView. It works perfectly fine on Nexus One and HTC Desire, but on Samsung Galaxy S I see strange lines, weird proportions and everything three times. see the Screenshot below.

The issue seems to be similar to this one: http://stackoverflow.com/questions/2053440/camera-preview-on-androd-strange-lines-on-1-5-version-of-sdk but none of the comments there helped. I tried to swap height,width for the camera parameters, but not much of a difference.

(Side note: my activity is always in landscape mode, fixed. I have that fix in my manifest as screenOrientation parameters, in case that matters somehow).

The code of my SurfaceHolderCallback (the relevant inner class in my activity):

CODE...................

View 2 Replies View Related

Android :: Camera Preview - Strange Lines On 1.5 Version Of Sdk

Jan 13, 2010

I am developing the camera module for an android application. In main application when user clicks on 'take picture' button, new view with SurfaceView control is opened and camera preview is shown. When users click on dpad center, camera takes picture and save it to the disc. Pretty simple and straightforward.

Everything works fine on my device - HTC Tattoo, minsdkversion 1.6...but when I tested application on HTC Hero minsdkversion 1.5, when camera preview is shown,some strange lines occur. altough preview is crashed, taking of pictures works fine

Here is the picture:

View 3 Replies View Related

Android :: Strange Or Blank Emails From Users Emailing From Market

Jul 23, 2010

I am getting several weird emails a day from users who have clicked on the 'send email to developer' link in the Market app where either the mail has not contents or is just rubbish such as zbxnbcvnxbnb. Are other devs getting similar and is this just users typing rubbish accidentally or is this another problem with the market interface?

View 3 Replies View Related

Android :: Strange ListView Loading / Default Values Displayed

Jun 24, 2009

I have a listview that is populated by a couple threads that pull in data from the network. Before that data comes in, there are some default values displayed. When the screen loads, there are 6 items displayed, each with the default data. The 1st (index 0) loads and is updated on the screen, and then number 6 (index 5) is updated with that same info. Then, item 2 (index 1) loads, and then item 5 (index 4) mirrors that data. Then item 3 loads, then item 4 reloads with the correct data, then then item 5 with the correct data, then item 6. Why are items 5 and 6 briefly showing the data from other elements in the list? I can't figure out what in the world could be causing this.

View 7 Replies View Related

Android :: OpenGL Strange Exception - Nexus One Upgrade To 2.2 Causes App To Crash

Jul 5, 2010

I've made some edits to my application but I'm pretty sure it crashing is linked to my updating my Nexus One. I've included the error as well as all code I think is relevant.

CODE:..................

View 3 Replies View Related

Android :: Camera Preview - Strange On Samsung Galaxy S - 2.1update1

Jul 9, 2010

In my activity I show the camera preview on a surfaceView. It works perfectly fine on Nexus One (2.1update1, 2.2) and HTC Desire (2.1update1), but on Samsung Galaxy S (2.1update1) I see strange lines, weird proportions and everything three times. see the screenshot http://img249.imageshack.us/img249/7466/device1s.png

The issue seems to be similar to this one: [url] but none of the comments there helped. I tried to swap height,width for the camera parameters, but not much of a difference.

My activity is always in landscape mode, fixed. I have that fix in my manifest as screenOrientation parameters, in case that matters somehow).

CODE:..................

Full code of my SurfaceHolderCallback (the relevant inner class in my activity) http://pastebin.com/YmcwEVn8.

View 4 Replies View Related

Android :: Strange ListView Scrolling - Rows Turn Light Green

Aug 16, 2010

I have a ListView in my app that has a background image. All of the rows are a semi transparent white (#35FFFFFF). Whenever I scroll the list, the rows turn a light green that obscures the background image until I stop scrolling (usually--sort of unpredictable). Sometimes it flickers between the background image/color and the green. And yes, I have set the cache color hint to #00000000. Any advice about this would be appreciated.

ListView xml:

<ListView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/list"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="7px"
android:cacheColorHint="#00000000"..............

View 2 Replies View Related

Android :: Strange Force Close On Acore When Adding A Home Screen Shortcut

Jan 2, 2010

I want to add home screen shortcuts to individual chat rooms, in my app.

Here's my code to do so:

CODE:.............

When I go to add the shortcut to my home screen, I get a Force Close, not on my own process, but on com.android.acore(!). I've run the debugger and verified that my code gets executed all the way to the call to finish().

If I do this instead for the EXTRA_SHORTCUT_ICON:

intent.putExtra(Intent.EXTRA_SHORTCUT_ICON, R.drawable.icon);

It works fine and places the shortcut, and the shortcut behaves correctly -- but of course the shortcut has the stock Android icon, not mine, since this isn't the proper way to specify the icon.

When I look at the source code of other apps that have done this, and at the one example of it in the official Android reference area, my code looks identical. My icon's a standard 48x48 png that I use for the app's main icon, without problems. I've verified this problem on an emulator running stock 1.6, haven't tested other versions.

View 1 Replies View Related

General :: Samsung Galaxy S2 - Strange Android Icon Showing On Notification Area

Oct 21, 2012

today a strange icon started to show up in the notification area. It has no notification attached to it, restarting the device doesn't make it go away and neither am I aware of any app installed that could have caused this. Due to the resemblance the icon bears to the ICS logo, I thought it might be some system-based event (something like an android anniversary date or whatnot), yet it persisted through GMT midnight, which makes it seems less likely then it did when I found out. I tried an image-based search for any images and screenshots containing the said icon, but came out empty-handed. As Henzman said, it's the new icon of the Power Toggles app.

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved