Android :: Display Simple Text Label / Description Bubble When User Taps On OverlayItem In MapView?
Dec 29, 2009
I would like to further annotate the custom markers I have placed on a MapView (using ItemizedOverlay) by displaying a simple text label that appears for a particular item when the onTap event is fired.
This is a trivial exercise in the Google Maps JavaScript API and in MapKit on iPhone, but it is not obvious to me what the best or easiest way to do this is on Android.
View 1 Replies
Oct 5, 2010
Okay, so I'm writing my first Android app and am basically stuck. The app is a short 4 question quiz with two choices per question. This creates 16 possible results, which I've created descriptions for. I want the app to display the description corresponding to the user's responses on each of the questions after the 4th question is answered. Right now I am storing the values in a string, which is supposed to build upon the previous string answer, after each question. So the first answer is t1, the second answer is t2, and so on. Here is the code for the second question: My problem is that the strings won't hold the values I assign them in the previous question. I have a textview that briefly displays the values returned by the question's answer string (t2 for Question2) and it displays null alpha or nullbeta, depending on the user's response. How do I retain the t1's previously assigned value into Question2 so I can add to it? For instance, if T = "alpha" from Question1, and the user selects button b1 in Question2 how do I make t2 actually equal "alphagamma" instead of "nullgamma"? Is this even possible with strings?
View 1 Replies
View Related
Mar 20, 2010
I currently have implemented an overlayitem that shows an icon for geopoint on a map application in Android. When the icon is clicked, it brings up an AlertDialog from the onTap method below.Does anyone know how to display a map message bubble directly above the icon overlayitem with 2 callout buttons one to the left of the title and one to the right of the bubble? Does anyone know how to make the overlayitem draggable so I can press and hold it and drag it across the map. I am trying to duplicate the draggable icon behavior that's available on the iPhone.
View 2 Replies
View Related
Jun 23, 2010
There's no method available to us to display a callout / bubble above an ItemizedOverlay item when, tapped, right? I don't think there is, just wondering if I'm missing this in the docs before I start my own.
View 4 Replies
View Related
Dec 29, 2009
I am trying to make only satellite view without label. How to do it.
View 2 Replies
View Related
Jan 10, 2010
I want to detect when a user taps anywhere in a view in my Android application. My code looks like this:
linearLayout = (LinearLayout) findViewById(R.id.linearLayout); // main layout
// ...
linearLayout.setOnTouchListener(this);
// ...
public boolean onTouch(View v, MotionEvent event) {
Toast.makeText(this, "Touch!", 1000);
if (event.getAction() == MotionEvent.ACTION_DOWN) {
Toast.makeText(this, "Down!", 1000);
return true;
}
return false;
}
but when I click on the view, I don't get Toast! Do touch events work in the emulator -- or have I got something wrong in my code?
View 2 Replies
View Related
Oct 27, 2010
I was wondering how can I display a bubble (a bubble like when you use Google map and you click on a marker there is that bubble that appear with a picture ans some informations) when I tap on one of my Marker that are on my Android Google map?
View 2 Replies
View Related
Nov 10, 2010
I need the code to display a label in the layout and attach a timer and keep on updating it. since i am new to android i need some help on this context.
View 1 Replies
View Related
Oct 6, 2010
I'm working on my new project but I can't figure out how to add a text under my Gallery.
I have 3 pictures, if I slide on picture 2 I can see under picture 1 and 3 the correct description but it doesn't appear the description under the selected picture (in this case the number 2).
This is my code...
View 2 Replies
View Related
Jun 27, 2010
I have a MapActivity. If it's set to an appropriate location and zoom level to see traffic none is shown after it's first created until you interact with the map (click on it, drag, etc) at which point traffic shows up. Naturally I want traffic to show up without any user interaction after it loads but I've been unable to figure out how to trigger it. Any ideas?
View 3 Replies
View Related
Oct 9, 2010
I have an Android app with 3 tabs in a TabHost (text labels, no images). I set up the tabs like so:
intent = new Intent().setClass(this, AnnouncementsActivity.class);
spec = tabHost.newTabSpec("news").setIndicator("News").setContent(intent);
tabHost.addTab(spec);
I start up a background thread to fetch announcements from my server and I want to update the text label on the tab to tell the user how many new announcements there are. For example, I want to change the text on the Tab to "News (3)". How can I access and change the text label on the tab?
View 1 Replies
View Related
Sep 26, 2010
New Evo owner here. (almost a full 24 hours old) I am coming from an iPhone, so I am still learning. I have lurked here for months, downloaded the User's Manual a month or so ago, and am still trying to learn all I can. All I can say is, in this little bit of time, I love this phone so much more than my old paper weight. But I don't want to get into that, and make another one of those threads. Earlier today I received a photo text from a friend, and when I went to view the text it was in a "bubble-like" format. I sort of liked it more than the standard format. I also noticed you could change the background colors, etc. But, being the newb I am, I pressed another option and it went away. I am lost as to how to get back to that set-up and look around at that format. Can anyone help me out with this? I would truly appreciate it.
View 4 Replies
View Related
Aug 26, 2010
My Android application has a MapView. I want to divide that MapView into a grid according to latitude and longitude, and shade the different cells of that grid different colors based upon a certain criteria. What's the simplest way to do this?
I could create semi-transparent, solid-color PNG Drawable rectangular images and put them in an ItemizedOverlay centered on the central points of the cells, but then the rectangles would grow and shrink as the user zoomed in and out on the map. I could extend MapView and override the zoom functions so that the rectangles got re-sized when the user zoomed, but that seems really complicated for something that should be simple! Please tell me a better way to do it?
View 1 Replies
View Related
Jun 10, 2010
Is there a way to display a MapView without extending MapActivity? I have other Activity class which I'm extending and I would prefer not to change that... I've seen that you can inflate using MapActivity, but didn't find any spec/examples on how to do it.
View 1 Replies
View Related
Oct 11, 2009
I want to have a different text string for my icon and the text that appears in Searchable Items (QSB). I have the following lines in my AndroidManifest.xml -How do I specify a different text string for Searchable Items. Code...
View 2 Replies
View Related
Sep 22, 2010
I have a EditText in android in which i want the user to enter the text and checks for the condition "BYE"
Code sample..
How can i make user to enter the text?The UI should wait for the text to be entered(something like we have InputStreamReader in java applications).
View 2 Replies
View Related
Feb 23, 2009
How do I display a simple yes/no or ok/cancel dialog with a title and react to the user choice?
View 3 Replies
View Related
Dec 28, 2013
how to create an android app that would display a simple .txt document?
View 1 Replies
View Related
Oct 13, 2009
Just got the HTC Hero from Sprint and so far am loving almost everything about it. One question that I hope someone can help me with:Is there a way to change the size of icon's text or label (or perhaps the text itself)? For example, I have a screen with several Google apps on it, but they look like this: "Google M..." (for Google Maps); "Google S..." (for Google Sky), etc. It would be great if I could just change this to "Maps" or "Sky."
View 2 Replies
View Related
Sep 7, 2010
I have a series of imageviews that I want to display, but on a button press there needs to be less or more. These imageviews are stored in a list. Is there a simple way to hide or display them?
View 1 Replies
View Related
Jul 12, 2010
I am calling one webservice.Result of webservice I am storing in an Array list. Result of webservice I want to display as list view. For ListView I am using SimpleAdapter. and SimpleAdapter is something like this:- SimpleAdapter adapter = new SimpleAdapter(this,hashmap, layout, from, to);
I am not able to put array list into hashmap. Is there anyway to do this?
View 2 Replies
View Related
Jul 10, 2010
There are a number of posts (both here & elsewhere) about why a MapView might not be displaying tile info (personally, I've liked http://stackoverflow.com/questions/1809507/android-hello-mapview-tutorial-map-tiles-do-not-load, but there are other good ones, too).
My question is slightly different: I'm not getting tile info to show up (on my handset or in the emulator), and I'm looking for advice on what to try in order to debug this problem. As far as I can tell I've correctly located my debug.keystore, and used the Java JDK keytool to get the signature from it, which I then plugged into the Google web page, and then plugged THAT key back into my XML file. The app runs ok, it just doesn't display any tiles.
I was hoping that if I did something wrong here I'd see an error message in, say, logcat (or an exception that Eclipse might catch) that would confirm that this is the source of the error.
So here's my question - what would y'all recommend someone try in order to figure out what the actual problem is?
View 1 Replies
View Related
Sep 7, 2010
I'm looking for a simple animation example using the android SDK for displaying a little animation between views.
Basically when we have a list view and a detail view - lets have a 'transition' animation between them.
View 2 Replies
View Related
Sep 23, 2010
Is there a widget that exists that will simply display the high and low temperatures for the previous day. And possibly also precipitation totals for the previous day, if any...
View 3 Replies
View Related
May 12, 2010
I thought this would be easy to find:
A text editor that can create/edit text files from the SD card.
i.e. Windows Notepad on the Desire?
View 4 Replies
View Related
Jun 23, 2010
I am trying to display a dialog box in a simple Java class that is called from my main Activity but not successful. Please help me to figure it out.
I am passing the required values as parametrs.
I have two class: class MainActivity extends Activity :: Main *starting point *of Application class ShowMyDialog :: a simple java program In which I *generate an URl* and *display a dialog with WebView*.
I am passing the Acitivity from my MainActivity to this class as a parameter in function.
But I am *unable to call* the onCreateDialog method that I have *defined in the simple java class.
However, If I define the *onCreateDialog method in MainActivity, I am able to display it successfully.
What Should I pass as Parameter to the non Activity class from MainActivity class so that I am able to display the dialog as defined by showdialog method in JAVA class ???*
My steps of source code is as follow:
code:.........................
View 3 Replies
View Related
Jan 16, 2014
Any app that can do the following: simply display a dismissible notification if the phone has booted. Sometimes my phone does a random reboot, and if it's a hot reboot, it doesn't request the SIM code -- I don't even know the reboot occured. This little app could tell me of these hot reboots.
View 3 Replies
View Related
Jan 17, 2014
can i get the source code for the simple map display on android emulator?
View 1 Replies
View Related
Nov 12, 2009
I'm trying to draw some text onto an MapView on Android. The drawing of the text goes fine, but it's very hard to read the text because it's white with no black border (like the rest of the text that appears naturally on MapViews to denote cities, states, and countries). I can't seem to figure how to draw the text with a black border. This is the sort of code I'm using right now (this is just example code, found in one of my overlays):
@Override
public void draw(Canvas canvas, MapView mapView, boolean shadow) {
Paint textPaint = new Paint();
textPaint.setARGB(255, 255, 255, 255);
textPaint.setTextAlign(Paint.Align.CENTER);
textPaint.setTextSize(16);
textPaint.setTypeface(Typeface.DEFAULT_BOLD);
canvas.drawText("Some Text", 100, 100, textPaint);
super.draw(canvas, mapView, shadow);}
View 3 Replies
View Related
Nov 23, 2009
In my application I would like to mark different spots on a map. What I'm now wondering is if there's a way to use a simple 9-patch image and add the spot's name as text to it or would I need to draw everything myself (including the text) in the draw() method of ItemizedOverlay?
View 1 Replies
View Related