Android :: Draw Line On Map And Not Disappear On Selecting Tab
Jun 8, 2010
I'm having some difficulty with drawing a line on a map. I'm basically drawing it etc. but when I select other tab and then come back to the "map tab" the line disappears. How can I prevent that so the line stays there all the time? Please can someone help me to solve this?
View 1 Replies
Sep 1, 2010
how to draw a line in android give example
View 1 Replies
View Related
Nov 1, 2010
How to draw dotted-line? I know someone already asked this question, but i cann't find the annals. how to draw it or record the message sen
View 2 Replies
View Related
Dec 20, 2009
How to draw line on MapView given coordinates?
AFAIK, on iPhone it is possible.
View 1 Replies
View Related
Apr 13, 2009
Want to draw a line when I touch screen at two points. I can see OnTouch been invoked but after than everything breaks looks, the application crashes
I am using drawLine in Canvas.
CODE:......................
View 5 Replies
View Related
Sep 28, 2010
I want to draw a straight vertical line on my Android activity, when a button is pressed. Please explain how I can draw the line with a position & length I want.I have a linear layout with vertical orientation. A set of buttons constitute this linear layout. When I press one button, I want a line to appear to the right of these buttons, like dividing the screen halfway - a straight line of width=2dip and height=200dip.
View 1 Replies
View Related
Feb 1, 2010
I'v been busy for a long long long time finding out how to draw a line between two (gps) points on the map in HelloMapView but with no luck.Could anyone please tell me how to do so.Suppose I use the HelloMapView which extends MapView. Do I need to use overlays? If so do I have to override the onDraw() method of the overlay and draw a line here? I actually tried these things but with no result.
View 5 Replies
View Related
Jan 1, 2010
This is really frustrating, I am trying to get a carriage return drawn in my custom view and nothing is working. I have tried 'System.getProperty("line.separator")' but that makes it say null and I have tried '
' and '
' and those just both draw a little square. I am using the canvas.drawText meathod.
View 2 Replies
View Related
Sep 5, 2010
In my android application I use this method in "draw" Overlay class for draw route on map. Can someone tell me if this method is good (in terms of performance) for route draw on map or I must to put code in Thread ??
I'm new to android.
public synchronized void draw(Canvas canvas, MapView mapView, boolean shadow) {
if (pointsAndTimes.isEmpty()) {
return;
}
Projection projection = mapView.getProjection();
Paint paint = new Paint();
paint.setARGB(250, 255, 0, 0);.............
View 1 Replies
View Related
Jul 10, 2010
I have a text file in my res/raw directory. I want to read the file line by line, but FileReader and BufferedReader fail, because of Android's security restriction. How else can I do it?
View 1 Replies
View Related
Sep 10, 2010
Recently I have been having issues with viewing my email messages in the Yahoo Mail App. When I open some messages all is see is line after line of code instead of the message text. It doesn't seem to matter what the source email is (gmail, hotmail, etc). Some emails are ok some are not. Anyone else have this problem? Any fixes?
View 1 Replies
View Related
Jul 10, 2009
The browser does this by calling public void emulateShiftHeld() method on the WebView which is hidden in the SDK.
View 3 Replies
View Related
Jun 30, 2010
Is there a way similar to ACTION_PICK to select multiple contacts from the address book and then return to previous activity?
View 1 Replies
View Related
Aug 31, 2010
Can we align our text line by line(I mean whatever the text we have selected that should be aligned instead of the whole text) in android text-view dynamically!
View 1 Replies
View Related
Apr 6, 2010
I'm starting gallery from my app to select photo. Everything is fine until i select photo from picasa. Result in onActivityResult is just an empty string "". Here is my code:......................
View 2 Replies
View Related
Jun 15, 2010
I've just started using Handcent on my HTC Desire and I was so impressed with it.But I've just seen that when I want to creat a new message, and I start typing the recipients name into the "To:" box, it isn't bringing up any of my contacts.The "messages" program that comes with the phone doesn't have this problem. any ideas?
View 1 Replies
View Related
Aug 30, 2010
I have two different activities in my project.I intend to pass data from one activity to another. (As per user interface, I select an item from The spinner in one activity and send it as text msg.) The coding for text msg is done in another activity i.e the second activity.I m successfully able to select the desired item from the Spinner but am not able to pass it as text message. to select the item from first activity. It functions well BUT HOW DO I CAPTURE/RECEIVE THIS In the second activity that will send it as a text message.
View 3 Replies
View Related
Sep 25, 2010
In my application the user selects an image. When the ACTION_GET_CONTENT intent is launched it displays the dialog to select one of the available image viewers installed on the device. However I need the built in Gallery app to be chosen because upon selecting an image it launches the screen to crop the image (same thing that comes up when choosing the home screen wallpaper) which only the Gallery chooser offers.
Is it possible to skip this chooser dialog and launch the Gallery automatically? Or at least remove the other options from the list so only Gallery displays?
View 3 Replies
View Related
Feb 13, 2010
I would like to give the users of my app the possibility of selecting a language from within the application. All languages are supplied the standard way via the values resource directory. However, I don't want Android to select which resource directory to use but let the user decide instead. Any ideas how to accomplish that? The rationale for this: - some languages are not supported by the Android framework and can not be selected as a locale via the system settings - if you buy a phone in Spain, it will typically not have a system setting for Russian language, if you purchase in Russia, you will have that setting. So a Russian person in Spain would prefer using the Russian language included with the app, but can't access it
View 10 Replies
View Related
Oct 25, 2010
Am I right discovering that one cannot select and copy text in the native mail client (Motorola X, 2.2)? I can do this with K-9 and within other apps. I've tried switching keyboards (the two included, SwiftKey) to no avail.
View 3 Replies
View Related
Apr 5, 2010
I'm trying to modified the way TimePicker works as asked in my question here http://stackoverflow.com/questions/2580216/android-timepicker-minutes-to-15
To be able to do that I need to know if the + and - button was clicked and to disable the input field.
So can I target the elements in a TimePicker? (i.e the + and - button and the input field)?
Also is there anyway to determine if the + or the - button was clicked?
View 1 Replies
View Related
Jul 4, 2010
I have a Motorola i1 which has the 1.5 software.When I press *#*#4636#*#* on the i1, it accesses the hidden menu.when i do that, and select 'phone information' i get the error 'com.android.phone' has stopped unexpectedly.does anyone else get this error? I'm trying to access this menu to change the SMS service number which i believe is there
View 2 Replies
View Related
Feb 14, 2010
Its me again. I tried the last hours, how to change content of a spinner. ok, lets start from the beginning.
I have three spinners. They all have initial values. The first spinner is the main spinner and the other two spinners depend on the vale chosen in the first one. So i want to update the last two spinners after making a selection in spinner one. *edit: All spinners are on the same activity.
How can i achieve this? My problem is that i can only make changes in the spinners onitemselectadapter but thats a whole new class. I cannot reach the activity where my other spinners are.
View 2 Replies
View Related
Apr 19, 2010
Android's messaging app, located in projects/platform/packages/apps/Mms.git has a class called RecipientsEditor. I would like to be able to create MultiAutoCompleteTextView that will filter contacts the same way, to make contact selection easy in my app. using the mms app is cumbersome since it uses internal apis and has everything split across classes.
Has anyone made an easy way to do this?
View 1 Replies
View Related
May 26, 2010
I have been having a problem with a notification not opening/going to the correct activity when it has been clicked. My notification code (located in a class which extends Service):
Context context = getApplicationContext();
CharSequence contentTitle = "Notification";
CharSequence contentText = "New Notification";
final Notification notifyDetails = new Notification(R.drawable.icon, "Consider yourself notified", System.currentTimeMillis());
Intent notifyIntent = new Intent(context, MainActivity.class);
PendingIntent intent = PendingIntent.getActivity(context, 0,notifyIntent, PendingIntent.FLAG_UPDATE_CURRENT | Notification.FLAG_AUTO_CANCEL);
notifyDetails.setLatestEventInfo(context, contentTitle, contentText, intent);
((NotificationManager)getSystemService(NOTIFICATION_SERVICE)).notify(NOTIFICATION_ID, notifyDetails);
If I click the notification while the application which created the service is open, the notification disappears (due to the FLAG_AUTO_CANCEL) but the activity does not switch. If I click the notification from the home screen, the notification disappears and my app is brought to the front, however it remains on the activity which was open before going to the home screen, instead of going to the main screen. How do I specify the activity that will be pulled up?
View 1 Replies
View Related
Feb 23, 2009
I'm displaying the contacts in a Multi-select "Ok, Cancel" dialog box. I've implemented Filterable for the adapter that displays the contacts in the dialog. The problem is, once i try and select(check) a contact while i'm using a type ahead, the check box in that particular position is checked and not the contact.
The initial screen goes like
After type-ahead,
When I hit backspace, the screen appears as,
This is my activity.
CODE:...............
The adapter goes like,
CODE:..................
View 4 Replies
View Related
Jun 21, 2010
I want to have a elmenent with a 2 color border outline. I can do a single color outline using the element, but this only allows me to draw a single line. I tried using 2 elements within my but that didnt work either. Is there a way to either draw a shape within a shape or draw 2 lines around my shape (which has rounded corners btw).
View 3 Replies
View Related
Jun 22, 2010
I was able to long press on the screen to get the text selection popup thing to show for other email account but for some reason that technique doesnt work for gmail.Has anyone else had a similar issue? I am trying to copy addresses and names from email and paste into a text message.
View 13 Replies
View Related
Nov 11, 2010
The calendar widget is frustrating me. I enter details about an upcoming meeting, hit save and the event appears. About 20 seconds later it disappears without me doing anything. I figured I would try to delete the app and reinstall it but when I go to settings/app/manage app and try to delete it, the "delete" function is grayed out. Any suggestions?
View 3 Replies
View Related
Apr 1, 2010
I have a EditText on simple activity with a button.
when every i move from one activity to this acivity focus is automatically set to EditText and keyboard appears in phone.
i don't want to open keyboard until i click on editText.
can any one guide me what should i do?
View 2 Replies
View Related