Function That Returns Pixel Touched?

Oct 10, 2011

As title, i need a function that returns the pixel that i'm touching...

for example i have an image in background and i want that, if i keep touching a point for a little bit, it appears a menu where i can do something on that exact position like adding a draw on the picture in background...

already exists a function like that?

Function that returns pixel touched?


Android :: Faster Way To Set A (PNG) Bitmap Color Instead Of Pixel By Pixel

Nov 22, 2010

I have some png files that I am applying a color to. The color changes depending on a user selection. I change the color via 3 RGB values set from another method. The png files are a random shape with full transparency outside the shape. I don't want to modify the transparency, only the RGB value. Currently, I'm setting the RGB values pixel by pixel (see code below).I've come to realize this is incredibly slow and possibly just not efficient enough do in an application. Is there a better way I could do this? Here is what I am currently doing. You can see that the pixel array is enormous for an image that takes up a decent part of the screen

View 1 Replies View Related

Android :: Detecting Where Has Been Touched

Jul 7, 2010

I have a single bitmap with several individual pictures in (each one is an option) and I would like to detect when the user touches these pictures. I am using the event.getX and event.getY to detect where is pressed, I know the top left X Y and bottom right location of each of the pictures. What is the best way of detecting which one is pressed? (i.e. tieing up the event press and which picture has been pressed?

View 2 Replies View Related

Android :: Know Touched Cube In Opengl?

Feb 24, 2010

I drew cubes using opengl,

GLSurfaceView has onTouchEvent method. but I'd like to know

what cube was touched ?

cubes can move anywhere in the viewport...

View 2 Replies View Related

Android :: Edit Text Not Highlighted When Touched

Oct 28, 2010

I assumed this feature would be activated by default. How do I set an Edit Text box to do the normal orange highlighting when a user touches it?

View 1 Replies View Related

Android :: How To Get Size / Limits Of A Touched Area?

Jul 26, 2010

I'd like to know if there's a way to get the size or the limits of a touched area ? So for instance, it could give me how many pixel the finger is covering.

View 1 Replies View Related

Android :: No Callback When List Item Is Touched

Feb 1, 2009

I have a ListView that is populated with a custom adapter. When an item is clicked with the trackball, it works fine, i.e. I can catch the event and move on, though when I touch an item with my finger there is no callback from the listener.The item does respond to the touch, by turning orange for that moment.What am I missing? Is there another listener I need to configure?

View 11 Replies View Related

Android :: App's Map Pins Not Appearing Until Screen Is Touched

Oct 5, 2010

I am experiencing a problem with my app. The 1st screen that appears is a map that displays pins that are located based on an XML file that is loaded from our server.

Sometimes the app loads as expected. Other times, the map loads but none of the pins appear until you touch the screen.

View 2 Replies View Related

KitKat 4.4 :: Touch Screen Only Working When Touched Twice?

Mar 11, 2014

This may be an Android 4.4 or Nexus 4 problem, but I suspect the former. I encrypted the device (using the in-built encryption stuff) and have found that now the touchscreen will only register if another part of it is touched. For example, when entering my PIN once I get into the OS itself, I have to hold down a finger somewhere else on the screen (usually having to move it between some of the later numbers).

When it comes to multi-touch features (zooming etc.), these work fine but still require another finger held down somewhere to work.

This is definitely a software problem as the touchscreen works fine when putting in the password to decrypt storage.

Is this supposed to happen - part of the encryption process - or is this a bug?

View 1 Replies View Related

Android :: ListView Items Won't Show Focus When Touched

Jun 20, 2010

I've got a ListView that works just great, except for this minor annoyance. I can use the trackball/dpad to move up and down my list, and the background changes according to which row has focus. But when I touch the row (click or long click), there's no background change letting me know what's been focused. I've tried setting 'focusable' and 'focusable in touch mode' to true on the rows, but it still doesn't work.

Just in case it matters somehow:

I am setting onClickListeners for each row. The row is comprised of LinearLayouts, TextViews, and a single ImageView. Focusable/clickable is 'true' for each row. Have not specified values for these on the ListView.
Trackable does act funny. I can only move between rows after touching inside the ListView. If I scroll trackball above the first item, it's impossible for me to scroll back into the list.

View 1 Replies View Related

Sprint HTC Hero :: Games Stutter When Screen Is Being Touched

Mar 7, 2010

Ever since I bought my hero in December, I have had this problem where if I'm in a game, and it requires the screen to be touched, the game stutters. This happened when I had the stock 1.5. I needed to trade my hero for another when a lot of dust showed up under the screen, so Sprint gave me another one, only this one worked perfectly. No stuttering at all. So I decide to root it, and now it's running Aloysius, and the stuttering is back. Does anyone know what could be causing this? It happens in both the official and unofficial firmware. I can't seem to find an answer anywhere. Games it does this in includes: Nesoid and snesoid, and Raging Thunder to name a few. These games worked perfectly to my shock when I got the new phone, as I originally thought it was just a hero problem. I even emailed the developer of Nesoid but he didn't know the cause. Any suggestions?

View 2 Replies View Related

Android :: Add Marker On Touched Location Using Google Map In Phone?

Jan 31, 2010

How do I add a marker on a particular location in the map?

I saw this code that shows the coordinates of the touched location. And I want a marker to pop or be shown in that same location everytime it is touched. How do I do this? Code...

View 2 Replies View Related

HTC Legend :: Notification Panel Open Randomly When Screen Touched

Sep 11, 2010

On Aug 10, 2010 I purchased an unlocked HTC Legend (A6365 - HSPA 850/1900/2100 Mhz). The phone operated wonderfully until Sep 8, 2010. At that time, the Notification bar couldn't be "pulled-down" anymore. Additionally, without rhyme or reason, when I touch the screen, the notification panel will open randomly. This renders the phone useless since every time I touch the screen, the notification panels opens. I tried a softboot and a factory reset. Neither action resolved the issue. I contacted HTC USA support and they suggested clearing the calendar data and vigorously rubbing my hands together and then touch the screen whenever the issue occurred. No success. This issue occurs whether the SIM card is installed or not. I can safely say that no new applications were installed within 48 hours of the issue starting.

I search the available forums and found at least three other instances of this same issue:
http://www.htclegendforum.com/htc-legend-troubleshooting/touchscreen-bug/
http://www.htcforums.com/legend/5838-touchscreen-bug.html
http://androidforums.com/htc-legend/153561-notification-area-swipedown-not-working.html
Regrettably, none of these threads have any answers. HTC support then recommended for me to contact HTC Return Merchandise Authorization & Repair Center. This group (in the USA) cannot accept the phone for troubleshooting because this phone is not available in the USA. Based on the behavior thus far, I suspect this is an issue with the firmware becoming unstable. The phone hasn't been exposed to any drastic environmental changes (heat, cold, excessive dust, etc).

Software info follows:
Firmware version: 2.1-update 1
Baseband version: 47.37.35.09U_7.09.35.05
Kernel version: 2.6.29-9e497c43
Build number: 2.02.666.3 CL1777708 release-keys
Software number: 2.02.666.3
Browser version: WebKit 3.1
By know, HTC should have received multiple complains of this issue and I hope they have a solution for it. The options of the phone are great, reception is wonderful and performance is superb (except for this issue).

View 5 Replies View Related

HTC Hero :: Hepatic Feedback - Dialpad Vibrate When Touched Is Not Working?

Feb 19, 2010

When I'm generally sending an SMS or using the text pad, there is a hepatic response which is welcome in my opinion. However when dialing, I don't get any vibration feedback. I swear remembering this was so

My firmware is 1.5.Can anyone suggest as to how to turn it on? Vibration is enabed in Touch Input btw

View 1 Replies View Related

Android :: Use Gl.gluUnproject In OpenGL ES 1.1 Phone App To Know What Is Touched In 3D Space From Screen

Mar 21, 2010

How do I use gl.gluUnproject in my OpenGL ES 1.1 android app to determine what is selected when the user touches the screen?

My understanding is that the touch event results in a line and I have to find the first "thing" it intersects with.

Are there any tutorials on how to do this?

View 4 Replies View Related

Android : Playing Small Music File When Image Is Touched

Nov 4, 2010

I am New to android, My task is to playing a small audio file when we touch an image?

View 2 Replies View Related

Sony Ericsson Xperia X10 :: Phone Connect Incoming Calls Without Being Touched / Why Is So?

Sep 16, 2010

When the Bluetooth is on and I am near my laptop, incoming calls are connected without the phone being touched. I have seen a few comments about this in other threads, so it is not just me and this is the 3rd replacement phone, so it is not just a one-off fault.

Advice and guidance please?

View 1 Replies View Related

General :: MTK6589 GT-I9500 Touch Screen Works Up Whenever Lower Part Is Touched

Apr 4, 2014

I was able to flash ROM from : LNK1 but I have a problem with touchscreen which works upside down. When I press screen on top it actually shows that I pressed at bottom of screen. I was looking for solution many days and have learned a lot from many sites and different forum threads, but surprisingly non of the solution works for me. I am not able to reach proper file to change proper property to change this behavior. Most probably i need to set somewhere: ctp_revert_y_flag = 1 as described here: LNK2, but I am not able to find nor edit script.bin on my phone, here I found some info: LNK3 and also here is very interesting info about partitions: LNK4 but I can't find this script.bin on my phone.

My phone is china phone 1:1 Real MTL 6589 GT-I9500, I was able to flash several ROM's using SP Flash tool from LNK5, I know how to do this, but no matter which ROM I flash no matter which recovery image I flash this touch screen behavior is still upside down as described.

1. set ctp_revert_y_flag = 1 in script.bin on my phone - I can't mount proper partition, don't know which partition should I mount, can't find this file

2. set ctp_revert_y_flag = 1 in script.bin on ROM file before flashing - don't know where to look for this file and don't know how to edit ROM before flashing.

What I know: how to root my phone, how to get to it using adb, how to use android-sdk, how to flash using SP flash tools, how to use recovery mode, clean user data, how to use SP Flash tool, how to switch on developer mode, switch on USB debugging, switch on "show touches".

View 3 Replies View Related

HTC EVO 4G :: Got A Dead Pixel What Should I Do?

Jun 30, 2010

I got my evo last Friday and I have noticed a dead pixel. It's on the e key when the keyboard is up and can only be seen on a white screen. My question is should I exchange it or is one dead pixel nothing to worry about? It looks like a little purple or red speck.

View 24 Replies View Related

HTC EVO 4G :: Dead / Black Pixel

Jun 8, 2010

So when I bought the Evo, the first unit had a crack on the bottom of the LCD, then I got a replacement that same day and it had a dead pixel. Sprint said they couldn't exchange three in one day, so they said they will call me when my replacement unit comes in, but I want to know if there is anyway to fix this one dead pixel?
This is a dead pixel, not a stuck one. I can only see it on a white background and its a black dot. Any thoughts?

View 13 Replies View Related

Android :: Get Pixel Value From Display?

Jul 14, 2010

I'm not even concerned with the camera per se. I want at the closest thing to the display screen. Meaning: it could even be the desktop the user is looking at, completw w/ the background and the icons she moves back and forth.

Let's say, at time t=1 sec, the app goes to pixel (78, 300) on that display and obtains its value. What may be at (78, 300) could be a portion of the icon or some speck of tree leaf on the photo being used as desktop background.

I'm familiar with BitmapFactory.decodeFile() for getting at the pixel contents of a file. But what about the display?

View 1 Replies View Related

Android :: OpenGL ES Pixel ?

Aug 24, 2009

I am new to Android and OpenGL world. I've created a new ap using openGL ES. The package is attached with this mail. Android Simulator LCD size is 320 x 455 and i've set same size for OpenGL Viewport. But For creating visible rectangle i've to use vertices, which are of very high value.

E.g.

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

View 2 Replies View Related

Motorola Droid X :: What Would You Do If You Had A Dead Pixel?

Jul 16, 2010

This might be really nit picky but there's a dead pixel on my screen and it's very obvious when I surf the web with the white background. I'm coming from the iPhone apple would replace the phone..do you think verizon would or should I just suck it up?

View 7 Replies View Related

Motorola Droid X :: Do You Have A Dead Pixel?

Aug 31, 2010

Do you have a dead pixel? Are you living with it?

View 14 Replies View Related

Motorola Droid :: Anyone Getting A Dead Pixel Or Two?

Nov 9, 2009

I got my new Moto Droid on the day of release, which so far I absolutely love. However, I just looked at it and noticed that there was a single dead pixel in the top left corner. I wouldn't have even noticed it had it not been on the gray background of the top status bar the rest of my wall paper is black so it would've been easy to miss.Has anyone else experience dead pixel(s) on their new phone? I'm going to try to get it swapped out this afternoon which I think they should do. It just makes me mad that I have too.

View 4 Replies View Related

HTC Desire :: Dead Pixel And T-Mobile

Mar 31, 2010

My desire is fantastic, was delivered when they said it would be and all the staff I've dealt with have been fab. The only gutting thing was that my desire had a stuck red pixel in the middle of the screen that was visible on any white background like a web page or the dialer. It is small but it is annoying so I decided to phone up T-Mobile. Amazingly they have arranged for a swap to happen tomorrow. Can't fault them at all.

View 11 Replies View Related

HTC Desire :: Is 1 Dead Pixel Acceptable?

May 29, 2010

My poor Desire appears to have 1 dead pixel. I can't see any others. Would you accept this? I am tempted to take it back and get a replacement, but I am worried that the replacement might have more? I have always been unlucky with dead pixels.

View 24 Replies View Related

Android :: How To Read Pixel Data?

Jun 24, 2010

File file = new File(fileName);
Iterator iter = ImageIO.getImageReadersByFormatName("Reader");
ImageReader reader = (ImageReader) iter.next();
ImageReadParam param= reader.getDefaultReadParam();
ImageInputStream iis = ImageIO.createImageInputStream(myFile);
reader.setInput(iis, false);
BufferedImage myJpegImage = reader.read(0, param);

How can i write equivalent codes for above codes on Android? Are there any hints how to read pixel data?

View 1 Replies View Related

Android :: Pixel Format Conversion In SF

Nov 26, 2009

I am looking at the source code of a Camera Preview application and learning that the preview buffers coming from the sensor is in YUV422 format. However, this preview frame is showed on the display in RGB. Can someone please let me know where the pixel format conversion happens? Is it inside Surface Flinger? If yes, can you please point me to the code?

View 5 Replies View Related

Android :: Screen Pixel Size

Apr 12, 2010

I need to know how many pixels wide and tall the screen is. I know that there are a bunch of different localization folders that I could make for different views but I just need to know, programmatically, how many pixels are on the screen so I can do some drawing. How can I detect this?

View 4 Replies View Related







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