General :: Android - SurfaceView Flickers And Sometimes Does Not Apply Proper Paint

Apr 3, 2012

The issue I am experiencing is that the SurfaceView I am using flickers. Once in a while, the objects I draw flicker and they change their size or colour.

It looks like that sometimes the application skips my calls to 'Paint.setColor()' and the one to 'Paint.setStrokeWidth()'.

I have made methods which change the used paint and then, in order to try to fix this issue, to set it back to the default paint values. Still the issue persists. I have also read that the problem might be due to the double buffering. Is it the case? I am using this code for the DrawingThread:

I also tried to use a dirty Rectangle to try to see if the issue can be fixed, but still nothing. [I might not have understood what it actually does.

Code:
class DrawingThread extends Thread {
private SurfaceHolder _surfaceHolder;
private CustomView _cv;
private boolean _run = false;

[Code] .....

I have read somewhere I should draw on a single bitmap and then draw the bitmap on the canvas. I have tried several times but I cannot manage to do so.

General :: Android - SurfaceView flickers and sometimes does not apply proper paint


General :: Home Button Doesn't Work - Flickers

Sep 27, 2010

Like 2 weeks ago this problem first started, first it would go to the navigator app when I pressed the home button..I force killed navigator and it fixed itself, sometimes it wouldnt work but most of the time when i pressed hom ei went home.

i have to press back like 40 times to get home.

i can't use my phone properly.

i tried a hard reset, formatted SD card

i have stock 2.1 hero downloaded the update today, but i had this problem likebefore the update but it wasn't as bad. if i could go back to the old verison like whatever was released today, the one before it that would be cool..

View 2 Replies View Related

Android :: SurfaceView Vs Custom View / SurfaceView Is Slower

Aug 20, 2010

One using a Surfaceview, and the other using a custom view. According to the android SDK development guide, using a surface view is better because you can spawn a separate thread to handle graphics. Th SDK development guide claims that using a custom view with invalidate calls is only good for slower animations, less intense graphics.However, in my simple app, I can clearly see that using a custom view with calls to invalidate seems to render faster.What do you guys know/think about this?My touchEvent code is exactly the same, and my drawing code is exactly the same. The only difference is that one is all in the UI thread, and the other is using a tread to handle the drawing.

View 1 Replies View Related

Android :: OpenGL Texture Wrapping Flickers?

Jul 6, 2010

I'm drawing 5 rectangles with OpenGL. They are texture mapped, and use the following parameters/binding:

..................

When I start the activity, the shapes all flash as if the textures were supposed to wrap (ie, i see more than one texture per shape), then the screen quickly corrects itself. Is there some manual buffering I'm supposed to do while the textures get mapped and unwrapped?

View 2 Replies View Related

HTC EVO 4G :: Screen Flickers - When Unlock

Jul 8, 2010

I've noticed when I unlock the phone sometimes it flickers for just a second almost as if the autobrightness is adjusting abruptly, does anyone else have this sometimes? This only happens when I unlock I think and 10% of the time.

View 1 Replies View Related

General :: Android 2.2 - Applying Animation To SurfaceView

Feb 17, 2012

I'm working on a puzzle game for Android 2.2, what I want to do is a simple fade-in fade-out of the whole game screen, during level changing. I tried with an AlphaAnimation from 1.0f to 0.0f and vice-versa, and it works perfectly if I start it from a View, but if I try to start it from the SurfaceView which I used to write my game engine nothing happens.

I put a completely black ImageView on top of my surfaceview, and applied the animation to this imageView. This is my layout

Code:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="<not allowed to post external links...>"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"

[Code] ......

View 1 Replies View Related

Sony Ericsson Xperia X10 :: Screen Flickers And The Switch On/off Button Is Not Working

Oct 28, 2010

I just cannot believe whats happening with my brand new cell phone. Initially when i purchased it , this device started restarting. And when i complain to the SE they told me the battery connecter is damaged. So they sent my cell phone to Dubai SE. Got it replaced, and no restart yet. BUT the right side screen flickers and the switch on/off button is not working. So i cannot switch off my cell phone. If i remove battery and then again insert it, then phone start automatically without using the switch on button. What must be done, i have purchased this cell phone in Qatar and now i am in India. Please help this is so kinda heartbreaking

View 8 Replies View Related

General :: How To Set Up Proper Directories On SD Card

May 24, 2013

set up the proper directories on my SD card? I just formatted it, and presently all there is is DCIM and LOST.DIR.

Where do I put Music, ringtones, documents, voice notes, and stuff like that?

View 1 Replies View Related

General :: Proper Chmod For Specific Folder?

Jun 14, 2013

I need to batch apply a set of permissions to these two folders and all files contained within. I'm moving my ringtones to these so that they preserve upon an SD Unmount, but I need to know the proper command in Terminal Emulator to do so. The files need rw-r-r-

/system/media/audio/ringtones

/system/media/notifications

View 1 Replies View Related

General :: Proper Way To Remove Package From Source?

Feb 2, 2014

I am working on a custom CyanogenMod ROM (10.2) for my own use. I've managed to accomplish most of my goals. One thing remains: removing packages that I don't want/need from the build. Technically, I am able to do so already by modifying the Android.mk file of the package so that it produces errors during the build procedure, skips building the package, but doesn't stop the entire build process. However, that is just a lousy hack.

the correct .mk/.sh/.whatever files in the repository I would need to edit (there are probably several) so that I can skip building the packages I don't want included in my ROM? I want to avoid using a "kitchen" if I can. I won't actually learn anything if I use a kitchen.

View 1 Replies View Related

General :: Proper Lockdown Of Google Play?

Jul 4, 2013

I have a son who is 11 and has 2 android devices one gift and one hand me down. He also has Google store play gift certificates redeemed on his account.I have a daughter who is 7 and she has one hand me down android device.

I tried setting Google play to require a password but I noticed "free" labeled items were still allowed to be downloaded. I want to monitor what my kids put on their devices so this was not an option as some of the goriest items are labeled as free. Right now I am using a parental control device that Blocks Google play altogether. The problem is I then have to go on the web to unlock their device just to allow them to browse the store to see if there is something they want and then I have to relock the device down.

What I REALLY would like is a program that lets them browse the store at their leisure but disallow ANY download without a password free or paid. Basically is there any program that allows for non full app blocking but does block any attempted download from the store without a password.

View 8 Replies View Related

Android :: Paint & OnTouch

Oct 25, 2009

I have a problem with one of my app. I try to make a paint application but nothing is draw on the screen (except the first circle which is draw on the launch).The log Cat seems to be correct and i get the right x/y coordinates.I think i do something wrong on the ondraw.do you see my problem?

View 3 Replies View Related

Android :: Paint On A VideoView

Sep 14, 2010

I am trying to code an app where you can paint (Finger paint) free hand on a running video in a VideoView.I have the two things running separately but not together.I can draw my paint on a balance screen and i can play my video on my videoView, which is implementer in an xml layout.Is there a way to overlay the xml videoview View with an other View which can be drawable?

View 1 Replies View Related

Android :: Making A Paint App

Jan 12, 2010

I'd like to include a simple draw feature on my app. A friend told me I can't use canvas because I need to control the frame buffer and not redraw the entire screen every for every frame.He suggested I find a openGL 2d engine.I've searched around and I've only found Rokon which doesn't have any documentation and the examples aren't quite what I need.Any suggestions?

View 2 Replies View Related

General :: Hotmail Account - How To Find Proper Settings

Mar 10, 2012

I have a Hotmail account and I downloaded the Hotmail app and set up my email. However, when I delete an email on the phone I would like it NOT to delete on the server. I have tried looking everywhere for this setting ("Never delete from server") on both the app and on the server itself with no luck. I noticed the native email app has this setting but I prefer to use the hotmail app. I have also tried K-9, and while I really like the UI it has not been reliable in delivering my hotmail (gmail gets delivered right away).

how to find the proper setting? Or is there not a setting like this yet?I have a SGS2(HD LTE) running gingerbread.

View 8 Replies View Related

General :: Android 4.1.2 Jelly Bean - Unable To Apply Update From SD Card?

Oct 22, 2013

I have a samsung galaxy young s6312, stock android 4.1.2 jellybean, rooted, stock recovery. Now I have been wanting to install cwm recovery on my device since a long long time, and rom manager isn't compatible with my device. I finally found a cwm.zip file for my device somewhere. The site told me to flash it via stock recovery, by the apply update from sdcard option. So I went into recovery, and when I click on apply update from sdcard option, I see only ../ I don't see a list of files on my external sd card. I tried formatting my sdcard, tried reinserting it, nothing worked.

View 3 Replies View Related

General :: Apply Mod To Custom ROM?

Mar 10, 2013

i m moding a CM9 ROM and i want to add some mods that usually are in flasheable zips but... how can i ad this zips to my ROM?

View 1 Replies View Related

Android :: Need Width / Using Paint Object

Jul 1, 2009

I have to get the height of the text for i have specified the text size. is this possible? i need to get the width using the Paint object and without.

View 2 Replies View Related

Android :: Wall Paint Preview App

Mar 29, 2010

Is there an app out there that lets you take a picture of your room with the camera,then preview different wall colors?

View 1 Replies View Related

General :: How To Apply Miui Theme

Nov 4, 2013

I DOWNLOAD alot of miui theme v5 from this topics

[URL]

but i cant apply these themes !! means i donno how i should use these themes

stock explorer didnt any Theme section!!

how i can apply ?

View 1 Replies View Related

Android :: Setting Unit For Paint.set TextSize

Jun 17, 2010

Is it possible to change the unit for Paint.setTextSize?As far as I know,it's pixel but I like to set the text size in DIP for multiple screen support.

View 1 Replies View Related

Android :: Implement A Paint-update Loop ?

Sep 8, 2010

I want to create a paint and update loop in android for game animation on a canvas but I am having trouble as I can't seem to get the threading to work appropriately. It seems to crash almost immediately.

Here is what I have tried:

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

Also when I drop the wait down lower it crashes faster. Is there a more appropriate way to approach this?

Changed to this:

CODE:........

This results in the same error...

View 2 Replies View Related

General :: Aroma Installer Doesn't Apply Changes

Sep 30, 2013

I wrote simple aroma installer for 4 apps and one mod. Everything runs well, but after I reboot my device, there are no changes done!

This is my aroma config: [URL]
This is my updater scripts: [URL]

As you can see, it's very simple

but I still can't find what is wrong that it doesn't apply selected mods :/

View 1 Replies View Related

General :: Apply Nandroid Backup Onto AVD Emulator?

Apr 8, 2013

On my HTC Nexus One, I recently made a leap from GingerBread with Cyanogen Mod 7.1 to JellyBean 4.2.1 with Cyanogen Mod 10.1.

I started with an Amon-RA nandroid backup, and later on, I had to use BlackRose in order to change partition sizes.

I thought I backed up all my applications, but it turns out that I lost valuable data during the switch.

Now I'm afraid to load the prev. nandroid into the current configuration due to the modified partition sizes (I also do not know what were the prev. partition sizes).

So I was wondering if there's any way I could load the nandroid backup onto a virtual AVD machine, in order to extract my data files? If there's a better way to read data from a nandroid backup.

View 1 Replies View Related

Android :: Create Simple Paint Program With Zoom?

Aug 21, 2010

I'm new to Android and Java programming and I've manage to create a simple paint program, but how do I add a zoom feature? Right now I'm just extending the View class and using the "on Draw()" method. Do I have to use a Drawable to be able to add zooming functionality? I'm not really understanding the differences between the two. If I am way off base then please point me to a good tutorial on paint/zooming.

View 1 Replies View Related

Android :: Default Paint Size Too Small On New Device

Jun 2, 2010

My app uses a custom View that does a lot of text drawing.To ensure my text is always readable I've been using the result of calling getTextSize() on a newly-created Paint() instance as the minimum size. Docs say calling 'new Paint()' sets attributes like text size to default values.One of my European users just got a Motorola Milestone phone and reports that some text is unreadably small.I believe I've duplicated this using the WVGA854 skin in a 2.1 emulator.Run in that emulator my app's smallest TextViews look fine, but the text I'm drawing myself using Paint instances where I haven't changed the text size from the default is too small. I confirmed this by commenting out all setTextSize() calls in my View subclass: the text becomes too small to read comfortably.

View 5 Replies View Related

Android :: Paint Program / Photoshop (full) Alternative?

Nov 24, 2010

I'm looking for an application that will allow one to open an image (or pdf, preferably) of a worksheet and allow one to "do" that worksheet; in other words draw/write on the image/pdf.

View 4 Replies View Related

Android :: How To Paint Transparency - Swiss Cheese Style

Apr 4, 2010

To explain i have a bitmap which is constructed as follows

Paint a rectangle color yellow I want now to paint a smaller circle over the top of the rectangle, but i want to use transparency. so that the circle results as a hole in the rectangle. {like swiss cheese with holes }

So if i painted the bitmap over a background the background would still be visible in the Circle/hole.

setting the drawcolor drawColor(Color.TRANSPARENT) just paints a transparent object. i.e. it doesn't erase the circle area of the rectangle.

How to do...?

One option is to set the circle color to say black and then look for an option to replace black with transparent within the bitmap.... but i can't find a solution for this either.

View 5 Replies View Related

General :: Apply Ice Cream Sandwich Layout And Morph?

Jan 22, 2012

Is it possible to apply an ice cream sandwich layout and a morph (so you have both of them applied? I have the ics status bar layout and whenever I apply the morph, before or after applying the patch, I get tons of FCs. I was just wondering if there is a way to have both.

View 1 Replies View Related

General :: How To Apply Icon Pack To Custom Apps

Jan 25, 2014

I've just downloaded an icon pack and used KKlauncher to install the theme.

Most of my apps in the drawer become the same style as the icon pack but still some of the apps remained unchanged. e.g. Whatsapp+, custom camera apps.

Is it possible to apply the icon pack to the rest of the apps?

View 1 Replies View Related







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