Android :: OnLongClickListener On ChildView Disables OnTouchListener On ParentView

Sep 15, 2010

I have an AbsoluteLayout which has an OnTouchListener. Inside this layout there is a much smaller LinearLayout positioned dynamically. The OnTouchListener works as expected.

Now the problem comes when I add a LongClickListener to my LinearLayout. That disables my OnTouchListener if the touch hits the LinearLayout but it is still triggered, if the LinearLayout was not hit by the touch.

My listeners:

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

How can I delegate the touch on the LinearLayout where the OnLongClickListener is registered, to the parent?

Android :: OnLongClickListener on childView disables OnTouchListener on parentView


Android :: How To Know Which Childview Is Shown On Current Screen In A Scrollview

Aug 5, 2010

How can I know which childview is shown on the current device screen, in a scrollview?

I want to make an infinite Ruler App, so I need to dynamically add and remove view when the view is flipping, but how and where can I find out which childview is shown on the current device screen, so I can add or remove the correct view when I get that childview changed notify?

Or, can anyone who can give me some other idea to realize this function?

View 1 Replies View Related

Android :: OnTouchListener & OnClickListener ?

Apr 16, 2009

On a picture I need to do two differents behaviours when user click on it or slide on it.

The management of the touch event (slide) is done on a parent view. So I put setOnTouchListener on my imageview and implement ACTION_MOVE to dispatch the event to its parent.

To manage the click event, I put a setOnClickListener on my image but the event was not catched. With debug, I understand that the ACTION_MOVE was still called and the onClick event was forgotten by the onTouchListener.

I decided to try to catch the event ACTION_UP on onTouch event...

Finally, I can set only ONE event and not the both. If I can click, I can't slide and if I can slide, I can't click....

View 2 Replies View Related

Android : GridView And OnTouchListener

Jul 26, 2010

My application have three pages (three tabs) and I want to switch beetween two gridviews by moving finger horizontaly. The touch code works fine but I can't click anymore on the grid items! I use the method onItemClickListener (onClickListener don't works on Gridview) but the grid item is not clicked.

The code is :

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

View 1 Replies View Related

Android : How To Detect Device Support Multi Touch Without OnTouchListener's Event?

Sep 3, 2010

I want to get information of how to detect device support multi touch without OnTouchListener triggers event.

View 4 Replies View Related

Android :: Subclassed Drawable Disables AlphaAnimation

Dec 21, 2009

I have been applying a simultaneous rotate and alpha animation to an ImageView using AnimationSet. It was working fine when I set a Bitmap as the image with Image.setImageBitmap(my_bitmap).

I then extended the Drawable class with my own drawing routine. In my custom drawable I do some porter-duff compositing on the bitmap i was using earlier. I set the image with Image.setImageDrawable( new MyCustomDrawable( my_bitmap ) Now my animation rotates but no longer performs the alpha transition!

One of the things I have tried is returning different values from getOpacity() in my Drawable. None of PixelFormat.TRANSLUCENT, PixelFormat.TRANSPARENT, PixelFormat.OPAQUE, or PixelFormat.UNKNOWN work.

View 2 Replies View Related

Android :: App That Disables Wifi When Lock Phone

Jul 29, 2010

I did some searching and couldn't find an app like this, figured I'd try here. Anyone know of a app that will disable your wifi when you lock your phone, and enable it when it's unlocked?

View 9 Replies View Related

HTC EVO 4G :: Froyo - Android 2.2 - Update Disables USB Tethering

Aug 3, 2010

Just FYI my co-worker has upgraded his Evo to run Froyo today. The update takes quite a while to execute so be patient, but one thing I noticed was that the USB tethering no longer works. On my phone (still running 2.1) I can plug in the USB cable, enable the 4G radio, and then go to Menu -> Settings -> Wireless & networks and click on the "Internet sharing" option. Once I do this, my computer automatically picks up the new USB device and can use it for internet access (it shows up as "usb0" in my ifconfig on Ubuntu 10.04). Note that this USB tethering ONLY works when the phone has a connection to the 4G network, otherwise tapping the "Internet sharing" option will produce an error 67 message.

I tested on my co-worker's phone after he upgraded to 2.2 and found that:

1) The "Internet sharing" option has been renamed to "USB tethering"
2) Tapping the "USB tethering" option will immediately disconnect your phone from the 4G network. Consequently, this means that you cannot tether.

Anyone else notice this issue after moving to Froyo? I have downloaded the update but I haven't applied it yet (for this and other horror stories I have heard). If you do lose the ability to perform USB tethering after the upgrade, have you been successful with tethering the Evo to a Linux machine? I have tried these two tutorials and been unsuccessful:

Linux + GNU = Humans Enabled: How to Tether your Android to Ubuntu(or Fedora) GNU+Linux for Internet Connectivity

James Titcumb Blog Archive Tethering your HTC Magic Android Phone in Ubuntu 9.04 (Jaunty Jackalope)

View 23 Replies View Related

Android :: App That Disables Letter Pop Up In Stock Keyboard

Feb 28, 2010

i cannot stand those letters popping up. distracting on dro

View 2 Replies View Related

Android : Any Alternative To Screenmodewidget That Disables Lock Screen

Jan 9, 2010

Droid 2.0.1 screenmodewidget 'awake stay' not working (is supposed to disable lock screen)

mylock also has problems. Anyone (ON DROID!) found an app or widget that disables lock screen that works without problems?

View 3 Replies View Related

Android :: Froyo 2.2 Disables RequestWindowFeature - Window.FEATURE NO TITLE

May 26, 2010

Just trying to get a confirmation, has anyone else found that since updating to 2.2 the following line has no effect: requestWindowFeature(Window.FEATURE_NO_TITLE);. Is there a new permission required?

View 4 Replies View Related

HTC Hero :: Charger Disables The Touch Screen

May 31, 2010

when charging my Hero the touch screen will not work, when not charging it works fine, is this normal.

View 5 Replies View Related

General :: Car Bluetooth Disables Navigation Voice

Jun 9, 2013

I drive a VW Jetta with bluetooth, which has easily paired with my last two phones (Bionic and S4, respectively). While Google map's turn-by-turn map navigation works fine with my phone's bluetooth on, in so far as I can see directions on the map, the navigation voice is disabled. Only when my phone's bluetooth is off do I hear a voice. I'm not sure if this is a function of my phone or my car.

View 1 Replies View Related

HTC Desire :: App That Disables Unlock Screen After I Press Top Power Button?

Apr 19, 2010

is there an app that disables the unlock screen after i press the top power button? (i hate having to currently press the power button and then swipe down every time i want to use the device)

View 21 Replies View Related

HTC Droid Eris :: Otterbox Case Disables Proximity Sensor

Mar 14, 2010

I got an Otterbox (IMPACT) case for my wife's Droid Eris. I have verified that when the case is on, the proximity sensor does not operate at all. Take case off, works fine. Case is on correctly (there's not a whole lot of ways to have it on wrong). Pressing it harder onto my head (which one shouldn't have to do) or holding it farther away don't help, either. Does the other Otterbox case do this?

View 11 Replies View Related

Android :: Android How To Send Data From Server To Android With No Request From Android?

Oct 19, 2010

today i meet the problem.i need technic can control the android machine from server.then i want send data from server to android with no request from android.

View 2 Replies View Related

Android :: Android 1.6 - Android - View - WindowManager$BadTokenException - Unable To Add Window - Token Null Is Not For An Application

Apr 14, 2010

I'm trying to open a dialog window, but every time I try to open it it throws this exception:

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

I'm creating it by calling showDialog with the display's id. The onCreateDialog handler logs fine and I can step through it without an issue, but I've attached it since it seems like I'm missing something:

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

Is there something missing from this? Some questions have talked about having this problem when creating a dialog from onCreate, which happen because the activity isn't created yet, but this is coming from a call from a menu object, and the appContext variable seems like it is correctly populated in the debugger.

View 3 Replies View Related

Android :: Android WebView Not Loading A JavaScript File But Android Browser Loads It Fine

Jun 3, 2010

I'm writing an application which connects to a back office site. The backoffice site contains a whole slew of JavaScript functions, at least 100 times the average site. Unfortunately it does not load them, and causes much of the functionality to not work properly. So I am running a test. I put a page out on my server which loads the FireBugLite javascript text. Its a lot of javascript and perfect to test and see if the Android WebView will load it. The WebView loads nothing, but the browser loads the Firebug Icon. What on earth would make the difference, why can it run in the browser and not in my WebView? Any suggestions.
More background information, in order to get the stinking backoffice application available on a Droid (or any other platform except windows) I needed to trick the bakcoffice application to believe what's accessing the website is Internet Explorer. I do this by modifying the WebView User Agent.Also for this application I've slimmed my landing page, so I could give you the source to offer me aid. package ksc.myKMB;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.app.ProgressDialog;
import android.content.DialogInterface;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.Window;
import android.webkit.WebChromeClient;
import android.webkit.WebView;
import android.webkit.WebSettings;
import android.webkit.WebViewClient;
import android.widget.Toast;
public class myKMB extends Activity {
I already have JavaScript on the web browser on, the problem is the web view is acting to different from the web browser.

View 1 Replies View Related

Android :: Resolve The Error - Com.android Internal R Cannot Be Resolved - Using Android File MultiAutoCompleteTextView.java

Aug 15, 2010

I want to implement my own Tokenizer base on the file
"MultiAutoCompleteTextView.java",

but I encounter an error "com.android.internal.R cannot be resolved" when I try to

import "MultiAutoCompleteTextView.java" to my project.

code:.................

I haven't research any solutions to resolve this problem.How to correct "com.android.internal.R.attr.autoCompleteTextViewStyle" my own attr?

View 1 Replies View Related

Android :: Does Android Eclair Code Base Support Plugins In Android Browser?

Jan 11, 2010

1- Does Android Browser (Éclair code base) support the "plug-in" or not?

2- Why "Google Gears" support is removed from the clair code base?

I searched the forum and came to know that earlier version of the Android does not support it at all? Here is the link for that, but this query asked in Dec'2008.

View 2 Replies View Related

Android :: Android How To Edit Specific Record From Database In Android Programming

Jan 5, 2010

At first,I have a database created by using Ruby on rails.I just already implement insert function(HTTPPost) in my Android Application and it's work.But I don't know how to retrieve specific record from my databases and insert it back to specific record in Android (Like edit function in RoR)This is my insert code :
private void insertComment() {DefaultHttpClient client = new DefaultHttpClient();HttpPost post = new HttpPost("http://10.10.3.87:3000/comments");
// Configure the form parameters
List<NameValuePair> nvps = new ArrayList<NameValuePair>();
nvps.add(new BasicNameValuePair("comment[content]", t_comment.getText().toString();
nvps.add(new BasicNameValuePair("comment[id_account]", "1"));
nvps.add(new BasicNameValuePair("comment[id_place]", Integer.toString(position)I really try many ways out but it doesn't work and it takes very long time to fight with this piece of code. Actually, I really don't know how to specify RowID to HTTPPost.

View 2 Replies View Related

Android :: Android.. How To Upload Data From Android Phone To Remote Database?

Sep 17, 2010

I am doing some android development, and now I need to send some android application generated data onto a remote server (a database)?How can I do that? can I use direct JDBC connection and sql?

View 1 Replies View Related

Android :: Sending Info From Android Phone To An Computer IP With Android Emulator

Oct 9, 2010

So i am making a android app, and i want it to be so if i call lets say 911 it sends my GPS coordinents to a certain IP, i know everything but how i make it so if i call 911 it sends the info and how i can make it send the info to the IP via 3g,

View 3 Replies View Related

Android :: Android Market Hiding Apps With Bluetooth Permissions From Android 1.5 And 1.6

Jul 10, 2010

I released updates of my apps yesterday and they are being hidden from android 1.5 and 1.6 phones.

This is due to a Market bug which hides apps with bluetooth permissions from android 1.5 and 1.6.

Come on Google fix the market. We spend countless hours making are apps work on ALL android versions and now you do this...

This issue has been raised since June, but has only affected me since i made an update to the market yesterday.

View 1 Replies View Related

Android :: Mock And Performance Tests Available In Android For Testing Android Application

Dec 23, 2009

What exactly are mock tests... I need to know the mock and performance tests available in android for testing android apps..what is the best tool for testing android apps and how..

View 1 Replies View Related

Android :: Android - Add Menu Item To Android's Built-in Apps

Aug 17, 2009

I'd like to add a menu option to the Android camera app. Is this possible to do using the current SDK? I know I need to add an intent-filter tag in my activity. But I don't know what I should put in the mime type. I want to be able to process the live camera previews if the user selects the menu option. So what do I put into the type tag of the intent-filter? Also I suppose I won't be using ALTERNATIVE or SELECTED-ALTERNATIVE for the category as I want to deal with the whole intent?

View 3 Replies View Related

Android :: Does The Android Market Check Installed Android's Version ?

Jan 21, 2010

I was wondering if the market checks if the application can be installed on the device. For example, if I have an Android 1.6 and if I try to install an application with :"<uses-sdk android:minSdkVersion="7" />" on its manifest. What will happend ?

View 4 Replies View Related

Android :: Android IRC Office Hours - Android Bluetooth RSSI

Jan 27, 2010

I have a question about bluetooth RSSI functionality on the Android (either 2.0 or 2.1):

It's easy enough to get the RSSI value when a bluetooth connection is created, but how can you repeatedly get the RSSI value of a connection that is already active? It's really important to be able to do this, because this lets you determine if bluetooth devices are close to each other or far away, but I can't find any appropriate function calls in the Android API.

View 2 Replies View Related

Android :: Moto Android Stuck On Android Splash Screen

Feb 5, 2010

I am having a bit of a problem with my Android. So what happened was I downloaded "DroidRootPro" from the market. I rooted my phone with this, installed the 800MHZ ROM image, rebooted and the phone came up great. I was actually surprised on how fast it became. Once the phone came back up, I tried installing one of the custom themes that came with that app (I know I should have left it alone). The phone than rebooted and I was never able to bring it back up. It gets stuck in this endless loop where it tries to boot but doesn�t get past the "Droid" splash screen, it just keeps rebooting every time.

Things I have tried:

-Wipe data/factory reset (in recovery mode), no go.
-Wipe cach partition, no go
-Restore from a "nandroid" backup, no go. I tried pretty much every combination of restores and am unable to bring the phone up.

Is there anyway I can download the factory image that comes with the phone, put it on an SD card and restore to that? I have looked all over but cant find any information on this.

View 1 Replies View Related

Android :: How To Reference R.java Of Other Apps In Android - Like Com.android.music

Sep 29, 2010

I am trying to develop an app to supplement the built-in music player. I've used git to download the com.android.music package and looked around at its code. I can launch the music player by copying some of its code and launching activities with intents.

Now what I need to do is get a handle to its current view. In the MusicUtils.java file, I see a line that says

View nowPlayingView = a.findViewById(R.id.nowplaying);

I'd like to do the same thing. Only I don't have access to the R.java file, so I can't write e.g. R.id.nowplaying. How do I do this? How do I reference the music players R.java? I do know the R.java stuff is declared public so that shouldn't be a problem. Right?

Is it even possible? I saw this related question and am now wondering: http://stackoverflow.com/questions/2437271/how-to-load-com-android-music-code-into-eclipse-and-compile

I'm working against the Android 2.2 SDK, but it'd be helpful to know if the answer is different for older versions such as 1.5.

View 2 Replies View Related







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