Android : How To Know Screen Position Where User Touched Screen?

Sep 7, 2010

In my app I draw an image covering the entire screen. I want to now how can I know where the user touched the screen?

Android : How to know screen position where user touched screen?


HTC EVO 4G :: Screen Cant Be Touched Untill Press Top Button And It Goes Back To Screen Lock

Sep 11, 2010

it just flips out goes up and down and the screen cant be touched untill i press the top button and it goes back to the screen lock, i have it rooted and running 2.2 im not all up on what this does should i just reset to og settings?

View 1 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

HTC EVO 4G :: Screen Rotation - Delay When Switch From Horizontal Position To Vertical Position

Sep 29, 2010

On my htc i was looking through display, i see g sensor calibration and i perform this calibration and after i do so the screen seems to have a delay when switch from the horizontal position to the vertical position. its weird because when i switch to the phone horizontally it switch normally and responds fast. but when i switch back to vertically it takes almost 7 seconds to actually switch back, sometimes it switch within 2 or 3 secs but never as quick as switching horizontally.

MQuote:

Originally Posted by Rigmaster

Make sure you have the latest updates, which impact speed on the device in some unpredictable and unexpected ways. During system updates, your Evo may reboot and will take the g-sensor changes as last calibrated.

If you're already updated, shut down and repower (soft reboot) should do the trick. I actually updated my phone and after it started to do this. I restarted the phone plenty of times i even took the battery out for 30 seconds. It only does it when im texting on the browser, basically everything but the camera. He camera screen rotation is perfect. I even rooted the phone but i havent figured out how to use the root to fix the problem. Should i do a firmware update? Because i just did the htc software update.

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

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

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

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

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

Android : Can I Get Absolute Screen Position?

Nov 4, 2009

View.getLeft() and View.getTop() give the position of the view relative to the parent.

Is there a way to get the absolute screen position of that view?

Either a way to translate those coordinates into screen coordinates to make a call to get the position in screen coordinates.

View 2 Replies View Related

Android :: Screen Rotation - Keep Notification Bar Etc In Same Position

Aug 22, 2009

I have an activity which I have defined to keep in portrait position.

However I would still like to change things (slightly) when the screen is rotated, what is the best way of doing this? I notice onConfigurationChanged is still called, but this still reports portrait mode.

I want to keep the notification bar etc in the same position if possible.

View 4 Replies View Related

Android :: Change Position Of A Bitmap Where Ever I Touch On Screen?

Oct 28, 2010

I have a large image on the screen and I want to display a small image on that image where I touch the screen. but I do not know how to change the position of the image when I touch on the screen and the small image must display where ever I touch on screen.

View 3 Replies View Related

Android :: Setupe Position Of A AlertDialog Off Screen At Top In Droid?

Jul 1, 2010

I want to set the AlertDialog position behind the status bar, when the content in my Dialog will increase, How to do that? I am creating a custom AlertDialog using my own layout.

View 1 Replies View Related

Android :: My Location Overlay - Customizing Compass Position On Screen?

Nov 3, 2010

I am using these three lines to add a compass on the MapView: mMyLocationOverlay = new MyLocationOverlay (this,mapView);mMyLocationOverlay. enableCompass(); mapView.getOverlays() .add(mMyLocation Overlay) ; However the default position of the compass showing on the screen is not too good for my apps, and I want to move it to somewhere else. Anyone knows how I can achieve that?

View 2 Replies View Related

Android :: Draw Custom View On Specific Position Of Screen?

Apr 5, 2010

I have a custom component which consists of 2 text view and 4 toggle buttons. I want to draw this view at some specific position on the screen. How is that possible?

View 1 Replies View Related

HTC Incredible :: Way To Change Home Screen Position?

Sep 18, 2010

So I have had the Incredible for a while now and I absolutely love the phone. The only thing that has really bugged me from day one is the positioning of the home screen. The phone is suppose to be fully customizable but it seems that the one thing I have yet to figure out is how to change where my home screen is located. I would much rather have my home screen set as the left most screen instead of having it directly in the middle of my seven available screens. You know, sort of like how the iphone is and what not. Does anyone know if something like this is possible?

View 1 Replies View Related

HTC EVO 4G :: Move Screen With Extra Apps To That Position?

Jun 6, 2010

When i slide to the right i get my contact screen. I want to move the screen with my extra apps to that position. how do I do that?

View 6 Replies View Related

HTC EVO 4G : Landscape Position Line Divided Screen Left Right

Jun 16, 2010

I was sitting at my local Dunn Bros surfing the web on my EVO when I noticed a line that divided the screen in half. If held in the landscape postion the line divided the screen left right and if in portrait upper and lower. As time went on I noticed a lot of off color streaks that ran the length of the screen. Now about an hour later the whole screen is very washed out looking, and no my brightness is not on high either. Text is almost unreadable. It almost looks like when you take a magnet to a CRT screen. And no my EVO has never gotten wet, dropped, or abused in anyway.

Anyone out there experienced this. It really sucks because I don't have the screen separation issue or any other issues that people are experiencing but now my screen is completely dying.

View 16 Replies View Related

HTC Droid Eris :: Camera Screen Dims In The Horizontal Position

Jun 25, 2010

After the OTA and a factory reset my screen dims when I tilt the the phone in camera mode. It's fine when the phone is vertical but when I go to take a horizontal landscape shot it dims the screen to black. It will do the dimming proportionally to the angle the phone is rotated off the vertical axis and front to back (freaky) It will still take the shot but I have no idea how centered I am on the shot. I changed auto dimming to "off " but it still blanks it.

View 7 Replies View Related

HTC Hero :: Touchscreen - Screen Takes Right Horizontal Position Of My Finger - Not The Vertical

Feb 8, 2010

I have got one big problem with the touch input of my Hero. The screen is too sensitive. I can navigate on the screen while my finger is about 5 cm away from it. I can choose what I want, but the screen takes the right horizontal position of my finger, but not the vertical. Anything I want to take, the screen takes the one on the bottom of the screen. The same when I want to write a message or something like this. I choose the "W" or "E", but the screen takes the "X" or "C". If the display goes on Standby and I wake it again, everything is good for a few seconds, but than the same mistake comes again. I already tried to wipe and install a new MCR, but nothing helps. I think, but I am not sure, that I have that problem after I have installed the htc keyboard on android 2.1, as I tried it for a few hours.

View 5 Replies View Related

HTC Droid Eris :: Password Screen Locks And When Asks For User Name And Password It States Invalid User Name / Password

Mar 3, 2010

I have had this same problem happen twice to me on 2 different phones on 2 different Verizon accounts!

The password screen locks and when it asks for the user name and password it states invalid user name / password!

Is this a known problem since when I called and talked to both Verizon and HTC the only thing they could tell me was to do a hard reset and they weren't aware of this problem?

View 1 Replies View Related

Android :: Run Method When User Returns To Home Screen

Jul 10, 2010

when a user leaves the current activity by pressing the home screen button, how can i make this trigger a method? This doesn't seem to call onResume(), onPause(), or onDestroy().

View 1 Replies View Related

Android :: How To Detect User Has Screen Unlock Pattern?

Feb 15, 2010

Is there a way, some API one can call to detect if the user has set a screen unlock pattern or not?

View 2 Replies View Related

Android :: User Preference (Any Way To Force Screen Rotation)

Apr 18, 2010

I've got an app that I don't want to auto-rotate. Currently, I've got it setup so that it is always in portrait mode. However, I'd like to add a setting to my preferences where the user can choose either portrait or landscape mode. Is there a way to force screen rotation? Or, could I perhaps make two different layout XML files, one for portrait and one for landscape, and programmatically choose which to use?

View 9 Replies View Related

Android :: Draw Circle When User Touches Screen

Aug 1, 2009

I've this code:

Java: (http://nopaste.me/4449 )
package com.patrick.games.whackgroundhog; import android.app.Activity;
import android.content.Context; import android.graphics.Canvas;
import android.graphics.Color; import android.graphics.Paint;
import android.os.Bundle; import android.view.MotionEvent; import android.view.View;
public class Game extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState); setContentView(new Ground(this));
} class Ground extends View { public Ground(Context context) { super(context);
} public void onDraw(Canvas canvas) { canvas.drawColor(Color.BLACK);
} @Override public boolean onTouchEvent(MotionEvent event) {
if (event.getAction() == MotionEvent.ACTION_DOWN) {
//TODO: draw the circle } return true;
} } }

View 2 Replies View Related

Android :: Can View Appear At Location Where User Touches Screen

Nov 19, 2010

I'm new to android development. Is it possible for a view (with a particular layout) to "appear" at the location where the user "touches"? If so, how? Like the idea of right-clicking on your computer - a menu pops down wherever you right-click and when you navigate away, it disappears.

View 1 Replies View Related

Android :: Push A Bookmark To A User's Home Screen?

May 19, 2010

Android 2.1 (not sure how much that matters) My test hardware is a Motorola Droid (not sure how much that matters either)

I want to push a bookmark/internet-shortcut to a user's home screen as a result of them clicking on a link-via their browser of choice.

I know they can usually set the bookmark themselves and then choose to put it on their home screen. But I'd like to provide a link like "Put a shortcut to this page on your home screen" that takes care of everything kind of in the background/underneath.

What parts of the framework would I need access to to make it happen?

View 1 Replies View Related

Android :: Intent That Is Fired When A User Unlocks Their Screen?

May 10, 2010

Is there an intent that is fired when a user unlocks their screen? I want my app to adjust the brightness when the screen turns on, but the problem im running into is that the screen on intent is fired on the lock screen and it does not adjust the display on that screen.

View 1 Replies View Related

Android :: Activity Is Displayed After User Unlocks The Screen

Mar 31, 2010

I was wondering if anyone understood how to make your application be displayed when you unlock the screen. I have an application where the user turns on a Bluetooth device, it connects to the phone, and the user should be presented with a UI. Having them hunt for the app or using the notification menu is not a workable option (too much work and not the obvious behavior).

The problem is that:
When the screen is unlocked:
- you can popup the activity from the background service when Bluetooth connects to a device
- User is happy because the UI is right there

When the screen is locked:
- The application gets started but is destroyed
- User unlocks the phone and nothing is there but the homescreen

One work around would be to disable the keyguard when the application gets woken up but the nuclear option is a pretty bad option. I know the standard Android assumption is that you shouldn't do this. In the normal case this behavior is fine, but in this case I explicitly did something I want the phone to respond without adding more work for the user to do. As per Google's guidelines if you don't like this behavior there can be an option for you to turn this off or you can not use the application.

A few more details, so after looking at this a bit more the problem isn't necessarily that you can't have an activity running when the screen is locked, unlock and expect it to be waiting. That does work if you do something like the following: lock your device run an app through Eclipse while the phone is locked/off unlock and it will be waiting for you.

But in the case the Activity is already running and I'm brining up a new window (which happens to be a transparent one, saying you're connected and asking what they want to do).

The problem is that it gets killed

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

The setup here is as follows:

MyBackgroundService is a serivce that handles Bluetooth state (waits for connections, turns on Bluetooth if the user starts the app, etc.). It triggers a popup BackgroundPOPUP activity that runs a ViewFlipper.

MyBackgroundService starts BackgroundPOPUP through an intent.

BackgroundPOPUP is an activity with a Translucent theme (Theme.Translucent to be precise), it shows a ViewFlipper with some instructions and presents some options.

View 1 Replies View Related

Android :: How Can I Make Page Slide As User Finger On Screen?

Apr 23, 2010

How can i make my page slide as the user slides finger on the screen in android? Any example code? I just require the same feel as it is on my android g-phone's home screen.The screen moves as the finger moves(also includes the elastic effect).

View 3 Replies View Related







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