Android :: Set Clickable Areas Of Single Image?
I want to create a scrollable map and trigger different actions when the user touches a different areas. With iPhone, it was easy by putting buttons on top of the image. How do I do it in Android? I used a custom view to enable scrolling in both directions. Now how do I make different parts of the image trigger different events on click?
View Complete Thread with Replies
Sponsored Links:
Related Forum Messages:
Android :: Way To Make Clickable Map Image?
I need to display a pretty image of a map of Europe, and I want my app to, e.g. bring up a different activity, when the user clicks each country - each country on the map needs to have a different onClickListener (or equivalent). Essentially, I need to be able to call a different function when the user taps on France rather than Spain in an image such as this:http://commons.wikimedia.org/wiki/File:Blank_map_of_Europe_cropped.svg How would I best go about this on Android?
View Replies!
View Related
Android :: Want To Create Multiple Images In Single Image
i want to create a bitmap / image which has many images like "Collage" which has more then one images in a single picture. I have stored all my images in a grid view but now i want to create a single image from all those images. And even i want to make few images click able so what can be the road map to do this ? any sort of help / example will be helpful. search for a for collage image image in google . one can see what it is exactly.
View Replies!
View Related
Android :: Show Single Image With Zooming / Panning
I have a png and a jpg image on disk. I'd like to use any built-in intent (if any are available) to view the image (just a single one at a time). Something like this: Intent intent = new Intent(); intent.setImagePath("/blah/myimage.jpg"); startActivity(intent); is there a built-in intent in android to do this, or do I have to write my own image viewing-activity? It would be cool if there was one that had panning/zooming as found in WebView.
View Replies!
View Related
Android :: Single Intent To Take Picture / Pick Image From Gallery
I'm developing an app for Android 2.1 upwards. I want to enable my users to select a profile picture within my app (I'm not using the contacts framework). The ideal solution would be to fire an intent that enables the user to select an image from the gallery, but if an appropriate image is not available then use the camera to take a picture (or vice-versa i.e. allow user to take picture but if they know they already have a suitable image already, let them drop into the gallery and pick said image). Currently I can do one or the other but not both. If I go directly into camera mode using MediaStore.ACTION_IMAGE_CAPTURE then there is no option to drop into the gallery. If I go directly to the gallery using Intent.ACTION_PICK then I can pick an image but if I click the camera button (in top right hand corner of gallery) then a new camera intent is fired. So, any picture that is taken is not returned directly to my application. (Sure you can press the back button to drop back into the gallery and select image from there but this is an extra unnecessary step and is not at all intuitive). So is there a way to combine both or am I going to have to offer a menu to do one or the other from within my application? Seems like it would be a common use case, surely I'm missing something?
View Replies!
View Related
Android :: What Are Some Techniques To Create Scrollable Areas?
I'm getting started with OpenGL ES on Android and I'd looking to learn some techniques to have a game map larger than the visible area.I'm assuming I've somehow got to ensure that the system isn't rendering the entire scene, including what's outside of the visible area.I'm just not sure how I'd go about designing this.This is for simple 2D top-down tile based rendering. No real 3D except what's inherent in OpenGL ES itself.Would anyone be able to get me started on the right path? Are there options that might scale nicely when I decide to start tilting my perspective and doing 3D?
View Replies!
View Related
Android :: Block Guest Users From Going Through Certain Areas Of Phone?
When my nephew is at my house, he likes to mess around with my HTC Desire. He usually plays games on my phone. Recently, he's been going into places in my phone that I don't want him to go in. My email, my contacts, and other files. Once, he even sent out a massive test to random people on my contact list. So, I banned him from playing with my phone until I find an app that blocks guest users from going through parts of my phone that I don't want them too.
View Replies!
View Related
HTC Hero :: Overheating In Particular Areas While Talking On Phone
Just got my sprint hero last week. I noticed that while talking on the phone for longer than 5 minutes the phone seems to get extremely hot. In particular the speaker in the front and where the camera is in the back. The heat generated is really intense and is really uncomfortable after a certain amount of time. What I want to know is anybody else having this issue?
View Replies!
View Related
HTC Droid Eris :: Polish Chrome-like Areas?
I noticed some small scratches on the chrome-painted headphone jack today. I assume it's just a chrome paint and would probably wear off with even the slightest effort. But I figured it wouldn't hurt to ask if anyone has ever tried to polish something like that with any luck.
View Replies!
View Related
HTC Desire :: Poor Performance In Weak Signal Areas
I have never had any problems at home with either my trusty unlocked N95 or Orange Sony Ericsson T610 (remember them?) so I had no qualms over ordering a nice shiny (dark brown) HTC Desire. 3G coverage is a bit iffy in the area as I'm right on the border of an excellent to good area so I never expected to have super fast data over the air, but I have wifi locally for that anyway. So you can imagine my disappointment when the first call with the mobile from home cut off quite suddenly. A retry to reconnect failed with a no service message and no signal strength. I then spent the next hour playing around with the settings turning off wifi, data, setting the phone to 3G only (no chance) and then GSM only. When the phone was working and making a call the audio was not clean and very digital. There was also a chance that mid call you would be cut off for no reason. When it wasn't playing ball at all the signal strength varied from three bars down to zero without moving the phone. Sometimes upon initiating the call it came back immediately with no signal and cutting the call off. Picking the phone up from sitting on the side in sleep mode you were usually presented with a no service message. Orange were excellent and immediately replaced the phone, a courier arriving at 6:15pm upon reporting the problem at 8:30am that morning. Unfortunately the replacement was exactly the same. Even worse, my place of work is in a designated poor reception area. There are a number of us on Orange as it is the only network that can at a pinch be picked up inside. My Desire...no signal at all. Moving to a window seat got me two bars but the phone refused to connect or hold a call. The only time it did calling 150 sounded like I was listening to a recording of a Darlek. A Nokia 5300 on Orange alongside was nice and clear, with very good tone by comparison. By chance another member of staff also had recently signed up with Orange on a Desire (500mins, unlim texts, 500Mb, free phone, 20). In a back to back test both phones were the same. We even tried swapping SIMs. Luckily for him he has no problems with reception when at home so is quite happy with the Desire. Contacting Orange again I did not get much further. Talking to technical support they were not much help and suggested that they did not warrant the phone to work inside the building and as I could make a continuous call outside then they did not class the phone at fault. This included my problems at home in what is termed an excellent coverage area! When I pointed out that two other phones I owned did work in the very same location I was told that mobile designs differ and positions of antennas vary considerably. Frustrated I decided the only course of action was to use my right to cancel within 7 days as it was apparent that I was not going to be able to resolve the issue. Even last night it performed perfectly for a couple of calls and then failed miserably an hour later. As a gadget I was smitten. Even as I handed the package over to the Post Master today I was inwardly screaming �GIVE IT BACK!� Unfortunately I need to be able to make calls on it when I want, not when it wants. I have only seen a couple of other members note a similar problem on these forums but I have noticed a large number of Nexus problems that sound very similar. I would be interested to hear if anyone else has experienced this or do you all live in 5/5 coverage areas?
View Replies!
View Related
Samsung Captivate :: Screen Not Respondiong To Input In Some Areas
I just got my Captivate's screen replaced at Dr Phonez. Fast service great people. but now on right side of the screen is not responding to input, the So The letters O,P,L the delete key, and the search icon can not be used. any ideas what may cause this? can it be fixed, I contacted the repair people but, I'm just trying to see if anyone here knows of anything.
View Replies!
View Related
Motorola Droid :: Turn Off Sync In Areas Of Poor Coverage?
I have a Verizon brand car charger but have never had the need to use it until this weekend when I traveled from NJ to VT for skiing. I had the navigation and pandora going the entire trip with the charger pluged in. However when I got there and unplugged the battery was almost completely dead. Does the car charger not supply enough power to charge and run the droid with all the data and gps usage going? Also the area where I was staying had very poor coverage and once the droid was charged it lost its charge very quickly. should I turn off sync in areas of poor coverage?
View Replies!
View Related
HTC EVO 4G :: Battery Life In 4G Areas / Loud Ringers To Easily Hear At Busy Places
Two questions: 1) After reading several reviews, it seems that in 4G areas/use the battery lasts about a half to full day. This is very concerning to me especially since I'm in a 4G area and would like to take advantage of it. Has anyone had experience with the phone in a 4G market and used 4G heavily in 1 day? 2) Are the ringers loud in addition to the speakerphone? Can you hear the phone ring at its highest setting on a busy street? I had an iphone 1st gen and even with the ringer at its highest volume, I'd miss a lot of calls.
View Replies!
View Related
Android :: How To Set Clickable Layout?
I noticed something odd. I have a listview with custom BaseAdapter, and getView() inflates a layout. On 1.6 SDK (I've been developing on a G1), if I set android:clickable="true" on the layout, then the item is NOT clickable (but otherwise the item is clickable). Is this the correct behavior? It seems backwards to me. Furthermore, no matter now matter how i set android:clickable for the same layouts using 2.2 SDK (run using emulator), the layout always is clickable... eh? I'm really bothered by this.
View Replies!
View Related
Android :: Way To Make Images Clickable?
I am trying to make the images I have clickable so that when they are pressed it will send the user to another page or link. How do I go about this? Currently each row in the gridview has 2 buttons. How will it know which item in the gridview is clicked so that it performs a certain action, specific to the item that was clicked.
View Replies!
View Related
Android :: ImageView Clickable Overlays
I have a ImageView and draw some things on that view. Now I want to have the position of the click in the onClickListener. Although I think that's not really possible (storing the position in the onTouchListener is not working), I want to ask, if there is any other way to accomplish that? The goal is to have a image with some overlays, that should be clickable. I thought about AbsolutLayout, but that is depracated, so what now?
View Replies!
View Related
Android :: Button In IME's Suggestion Bar Not Clickable
I'm subclassing InputMethodService to create my own personal keyboard. A lot of stuff already works quite nice. But now I'm playing around with the suggestion bar (also called "candiate view"). For now I'm just trying to load a static layout with one button in it: @Override public View onCreateCandidatesView() { LayoutInflater mLayoutInflater = LayoutInflater.from(this); mView = mLayoutInflater.inflate(R.layout.suggestion_bar, null); return mView; } The result looks like this: Which is exactly what I expected, but with one big issue: the button in the suggestion bar is not selectable or clickable at all.
View Replies!
View Related
Android :: Clickable Photo Frame?
So I waste a bit of screen real estate on my Droid with a few photos of my family. I just like to have a photo on each page. I was wondering if anyone has run across a Photo Frame app that is clickable to a defined action like "Call Wife". Anyone run across an app like that? Seems like a pretty easy app to write, but I am having a hard time finding one...
View Replies!
View Related
Android :: Way To Implement A Down State On Clickable TextView?
I have a clickable TextView with a drawable as its background. I'm looking for the right way to implement a down-state drawable so the background changes when the user presses down. I have been able to almost perfectly replicate this behavior by listening for MotionEvents and changing the background when the user is pressing down.. The only thing that doesn't match up with system-wide down state behavior here is that if the user keeps holding down and moves their finger off the button, the state remains down until they release their finger from the screen... whereas in Maps overlays or Buttons or ListViews or anything else the state immediately goes back to off when the finger moves from the object.
View Replies!
View Related
Android :: Need Clickable TextView With Linkified Links
I have a TextView in my layout which has an attribute "clickable=true" set in XML. This is to allow it behave like a button with both text and icon. Now, I add to that TextView HTML text via call HTML.fromHtml(), and apply Linkify.addLinks after that. The problem is: in such configuration, links are not clickable. Is there any suggestion, how to allow user click on links, other from creating custom TextView-based class?
View Replies!
View Related
Android :: How To Make A ViewGroup Clickable On Droid?
I have a ViewGroup (LinearLayout) which contains a couple of TextViews and one ImageView. I want to make this entire group clickable. However, clicks on the TextViews or ImageViews or on the area enclosed by the ViewGroup above doesn't result in the handler being called. Any suggestions on how I can make a whole ViewGroup clickable?
View Replies!
View Related
Android :: Hidden Links Still Clickable On Browser
I've got a contextual menu that appears when a button is clicked. This menu has some links and after some seconds is hidden again. The problem is that after the menu has disappeared the links are still there. They are not shown but are clickable and the green border appears. And after some seconds they disappear. I've tryied many ways of hiding the menu: display: none, visibility: hidden, width: 0, height: 0, jquery hide, jquery fadeout... but none worked. Also hidding the links. Does anyone have a idea about what's happening? With the rest of the browsers it works without problem
View Replies!
View Related
Android :: Showing Small Clickable Item On Map
I'm working on maps on Android; i create at runtime overlays and, when clicked, i show a dialog that,when clicked, goes to a new activity; i don't like so much the dialog so i would like to show a smaller clickable object (like in foursquare or in photos application for iphone).has anyone done something similar?
View Replies!
View Related
Android :: InputType Makes Item Un-clickable
I have a ListView in which each item has a complex layout that contains, at some point, a TextView with android:inputType="text" and android:ellipsize="marquee". My problem is that inputType="text" does something that renders the whole listview item un-clickable. I've tried: CODE:........................ Nothing worked. The reason why I use android:inputType="text" on a TextView is so that it becomes single-line and android:ellipsize="marquee" actually works. I've done my homework: android:singleLine is deprecated android:lines="1", as suggested here, doesn't work, the text still wraps, you just don't get to see the second line, so the marquee effect does not appear. or is it? My Ctrl+Space in Eclipse says this about android:singleLine (emphasis mine): Constrains the text to a single horizontally scrolling line instead of letting it wrap onto multiple lines, and advances focus instead of inserting a newline when you press the enter key. * Deprecated: This attribute is deprecated and is replaced by the textMultiLine flag in the inputType attribute. Use caution when altering existing layouts, as the default value of singeLine is false (multi-line mode), but if you specify any value for inputType, the default is single-line mode. (If both singleLine and inputType attributes are found, the inputType flags will override the value of singleLine.). [boolean] However, the docs do not say anything about any deprecation.
View Replies!
View Related
Android : Buttons Are Not Clickable In Incall Screen / Way To Fix
I have a Querry, I am trying to add buttons to the Incall screen. But after adding the buttons, my buttons are not Clickable. That's UI is present in the screen. I am able to select the Buttons using the up down arrow Key. And on pressing OK control is going to my OnClickListener But I am not able to Click the Buttons directly on the UI. It looks like some kind of Blocking is there for Click events on the Incall Screen, But still I need to get rid of it. Do suggest. What's the possible way? My code is as follows...
View Replies!
View Related
Android :: Space In URL - Not Shown As Clickable Link In Email
It is perfectly legal for a URL to contain an embedded space in certain situations, such as in this example: http://maps.google.com/maps?q=37.265632,+-122.2468(10:33 PM)&iwloc=A&hl=en. But when this URL is pasted into the body of an email from Android code, it breaks at the space, rendering it useless as a clickable link. Is this a bug or a feature?
View Replies!
View Related
Android :: How To Set All Buttons Clickable / Unclickable At Same Time Using SetClickable?
The screen displays four buttons. When a button is pressed, a media player plays a sound. The problem I'm having is implementing setClickable for all buttons at the same time. Once a button is clicked, I want all buttons to be unclickable until the media player is finished playing the sound associated with the button click. Then I want all buttons to be set back to clickable. The code runs fine until I enable the setClickable code--the code for buttonOne is disabled in my code sample below. The test phone locks up and tells me the application has stopped and to try again. Unfortunately, without setClickable, the user could press any button and hear any sound before the first selected sound is finished playing.
View Replies!
View Related
|