android-event Questions

2

In Android, can you create a Listener for catching changes in a View's properties (width / height / margin / position relative to top of the screen)? I want to trigger an event when layout_marginT...
Entrain asked 8/10, 2013 at 13:10

11

Solved

In my application, I need to handle both move and click events. A click is a sequence of one ACTION_DOWN action, several ACTION_MOVE actions and one ACTION_UP action. In theory, if you get an ACTI...
Demandant asked 1/4, 2012 at 15:37

9

Solved

I have a RadioGroup rg1 and I want to get the value of the selected radio button. I know that I can get the id of the selected radio button by using: if(rg1.getCheckedRadioButtonId()!=-1) int id...
Hinduism asked 25/6, 2012 at 17:46

5

Solved

Hi, I've developed an application using a stylus (e.g., Samsung pen). As you know, when we click a button on the stylus, "Air command" (pop-up window) appears. My goal is "Overriding the air comman...
Auxiliaries asked 13/1, 2018 at 13:17

2

Solved

I'm implementing a custom TextView and I want to do some action when the view is touched. I figured the onTouchEvent method would give me the full range of touches on the view without having to use...

9

I am macking a custom navigation bar to Android 4.0.3.r1 and want to send key events like "Home" and "Back". My application is not a system therefore: IWindowManager mWindowManager = IWindowManage...
Sack asked 23/10, 2012 at 8:39

3

Solved

Can someone explain how to use EXDATE when adding event to android calendar? The documentation is pretty unclear about the format in which the EXDATE should be put. I tried many formats, these are ...

7

I have a SlidingUpPanelLayout that holds a image as a top view, and a view pager that needs to slide. The viewpager has 3 fragments and two of them are list views. So I want to be able to expand th...

7

Solved

I have a layout which contains some views. I want to set some actions when a user clicks anywhere on the layout, so I have set an OnClickListener for the layout which works as it should. But how ca...
Joppa asked 6/8, 2014 at 7:55

2

Using this mGestureDetector = new GestureDetector(context, new GestureDetector.SimpleOnGestureListener() { @Override public boolean onSingleTapUp(MotionEvent e) { return true; } Only detect...
Benefactor asked 7/6, 2015 at 11:57

7

I have a view that need to process onTouch gestures and onClick events. What is the proper way to achieve this? I have an onTouchListener and an onClickListener set on the view. Whenever I do tou...
Masterson asked 23/1, 2013 at 13:4

2

I am trying to detect showKeyboard and hidekeyboard events on phonegap. For that purpose, on deviceready event I placed following code: bindEvents: function() { document.addEventListener('devicer...

2

Solved

Can anyone explain to me why is the onTouchEvent executed twice and how can I set it to run only once? I couldn't find an explanation. Thanks. @Override public void onCreate(Bundle savedInstanceSt...
Airboat asked 3/10, 2011 at 21:23

1

i=0; public boolean onKeyDown(int keyCode, KeyEvent event) { System.out.println("In Key Down Method." + event.getKeyCode()); if (event.getKeyCode() == KeyEvent.KEYCODE_POWER) { i++; Sys...
Prevenient asked 11/5, 2016 at 9:8

3

Solved

I want to define an onClick Listener for an EditText in the Layout-XML of may activity, but it always fails with an obscure Exception. The Layout is injected with setContentView()in the onCreate-...
Wondawonder asked 27/5, 2015 at 8:43

1

Background: I'm trying to detect edge swipes in my app (to bring up a menu), and searching stackoverflow seems to indicate that the way to detect swipes is to start with fling detection. I'm tryin...
Oppugnant asked 19/7, 2015 at 17:42

1

Resume of the problem : dispatch touch event on a layout to his WebView sibling achieving the same scroll than the default WebView scroll (with fling) I have a frameLayout over an WebView followin...
Forenoon asked 22/12, 2014 at 9:58

2

Solved

How to customize the Android Share Intent for Facebook App. When I am using the share Intent, I am getting the following dialog. But I am using Facebook sdk for post the image and text. And how ...

4

I'm trying to override Back button to stop an audio player and close media player activity, but I noticed that volume buttons are not working anymore. I imagine there is a mistake in overriding cod...

1

I have created a custom view which uses an dummy TranslateAnimation to setup some layout properties. I use the Interpolator to calculate height, and apply it to a view inside the applyTransformatio...
Clamworm asked 29/9, 2011 at 17:3

1

Solved

I am working on Calender Events reminder . There is no native Calender events reminder in Android so user install different calender apps. Now these apps can be different on reminding events like ...

1

Solved

What is difference between:getEventTime() and getDownTime()? In documentation http://developer.android.com/reference/android/view/MotionEvent.html Both seems to do the same thing but they output di...
Eventide asked 17/3, 2013 at 22:53

2

Solved

My app has a login activity and it checks the credentials via an internet website. To do so, I (have to) use an AsyncTask class. When login is successful, a global variable is set to true. Because...
Pamphylia asked 25/1, 2013 at 0:10

3

Solved

In my little app, I receive a series of queued onEventXXX(), from the system (not controlled by me). The timing of those onEventXXX() is not guaranteed. The only thing guaranteed is that they are ...
Downer asked 30/3, 2012 at 15:22

1

Solved

In listening for key events in ActionBarSherlock in order to show the overflow menu on pre-ICS devices and am I'm facing an interesting problem. It would seem that I am unable to differentiate a si...
Cosmology asked 29/3, 2012 at 18:4

© 2022 - 2024 — McMap. All rights reserved.