Android :: Android - Want To Display Map But No Current Position?
Oct 19, 2010
In my actual project I need to draw a MapView with a given running/walking/cycling path on top of it. I don't need the current position so I added an overlay just for the path (no MyLocationOverlay). The path is painted but I don't see the Map in the emulator - only the grey tiles. The apiKey is set in the layout (MapView) and INTERNET permission is set in the Manifest. So I'm wondering if I need more. Is it the emulator simply not working well (I do have 3G and 2 bars in the emulator) or do I need something else? Do I need to build an additional overlay or add additional permissions (xxxLOCATION) to the Manifest.
View 1 Replies
Aug 12, 2010
Can anybody tell me how to get the current position of the index while reading the binary file from DataInputStream? I have seen a mark() method but one is Boolean type and the other is void. I need to read the indexes on separate locations to use them again.
View 1 Replies
View Related
Aug 31, 2010
I want to insert a constant string into an EditText by the press of a button. The string should be inserted at the current position in the EditText.
If I use EditText.append the text gets inserted at the end of the EditText.
How can I do that? I couldn't find a suitable method.
View 3 Replies
View Related
Feb 5, 2009
How do i find the current orientation of the phone (portrait or landscape) How do i find the slider position?
View 2 Replies
View Related
May 29, 2009
I am new in Android application programming.I need to develop an android application which simply displays the cursor position (co ordinates) very urgently.If any has some pointers in same would be a great help to me.
View 4 Replies
View Related
Aug 5, 2010
I'm currently developing an app for Android which uses google map service. Because users will be able to see thousands of markers I would like to load only those which are currently within the map bounds (i.e. when user look at specific map tile). I know how to do it with javascript/html. However, Android doesn't seem to provide any similar methods such as containsLatLng(latlng) or getBounds (I only found getLatitudeSpan and getLongitudeSpan, but don't know how can I use them in order to achieve the similar effect). Can anyone give me some hint on that?
View 4 Replies
View Related
Feb 22, 2012
how do you actually get the co-ordinates ofyour position in java? I thought I had it figured out but i seemto be getting a nullpointerException so it must not be getting anything.
Code:
LocationManager lm = (LocationManager) getSystemService(Context.LOCATION_SERVICE);
Location location = lm.getLastKnownLocation(LocationManager.GPS_PROVIDER);
double lati = location.getLatitude();
double longi = location.getLongitude();
GeoPoint me = new GeoPoint((int)(lati*1E6), (int) (longi*1E6));
View 9 Replies
View Related
Mar 6, 2010
I have an XML preferences screen which is handled by addPreferencesFromResource. On it, there is a ListPreference, for which I want the summary to contain the current value of that preference. I think this would be a common requirement, as otherwise you could not see the present value of the preference without expending a click. I read that the summary field supports resource references, and I see that I can refer to preferences as android:summary="@+preference/prefname" in my ListPreference. Clearly this is why resource references would be supported in this field. However, when I try this, instead of the present value of prefname, the text "false" appears as the summary. Does anybody know how to display a current value without taking the seemingly ridiculous step of rewriting the entire (large) preference screen in Java?
View 5 Replies
View Related
Feb 10, 2009
This must come up very often. When the user is editing preferences in an Android app, I'd like them to be able to see the currently set value of the preference in the Preference summary.
Example: if I have a Preference setting for "Discard old messages" that specifies the number of days after which messages need to be cleaned up. In the PreferenceActivity I'd like the user to see:
"Discard old messages" <- title
"Clean up messages after x days" <- summary where x is the current Preference value
Extra credit: make this reusable, so I can easily apply it to all my preferences regardless of their type (so that it work with EditTextPreference, ListPreference etc. with minimal amount of coding).
View 6 Replies
View Related
Oct 14, 2010
I am new to android and not being able to display current location on map so can you provide me the code for displaying Location with manifest.xml and main.xml.
View 2 Replies
View Related
Apr 21, 2009
I am calling the ZXing scanner from Screen-A using intents. Once the scan is done control of course returns to the code behind Screen-A and I do some other work before calling Screen-B. Problem is the screen is black during this work period and I cannot determine the proper context to use to display a "working..." Toast/msgbox.
View 2 Replies
View Related
Dec 8, 2009
The native calendar widget doesn't display the current days events only the upcoming ones. Is there a way to change this or a different calendar app that is better?
View 18 Replies
View Related
Feb 16, 2010
How to display current date and time in android application?
View 3 Replies
View Related
Nov 1, 2011
Is a mod possible that displays the current data/network traffic speed in the status bar whenever there is any traffic? The text should be displayed whenever there is any traffic and hides automatically when there is no traffic. The place where date is displayed should be good.
View 4 Replies
View Related
Sep 1, 2009
I've had my Hero on Orange for 4 or 5 days now and apart from when I first switched on the phone the weather app has just said "No weather data available" and the clock/weather widget has just had my location. I have the "location by cell" thing switched on, and I did manage to get it working once with the GPS, but other than that it just displays my location. It's the same whatever location I am in. The other cities download the weather just fine (London, Paris, New York, etc.). It's not like I'm somewhere tiny either, I am in Bromley. It doesn't make any difference whether I'm using WiFi or 3G.
View 49 Replies
View Related
Nov 1, 2010
I am getting a date/time string from web in the format of "yyyy/mm/dd'T'HH:MM:SS'Z'" and it is in UTC. Now i have to identify the current time zone of device and then convert this time to my local time. (FYI, Currently, UTC time is 10:25 AM, in india current time is 3:55 PM)
View 1 Replies
View Related
Mar 18, 2012
Any widget that will display a moving google map with my current location centered? There are a couple apps I've found that are close, they just don't update in realtime. The reason I ask is because I have my 7" galaxy tab mounted in my truck. I use a program called torque to add gauge widgets (coolant temp,boost pressure, rpm,etc) to my home screen and would like to have a moving map display as well. I understand this would be a battery hog,but the tablet is always plugged in.
View 1 Replies
View Related
Sep 29, 2010
On my htc i was looking through display, i see g sensor calibration and i perform this calibration and after i do so the screen seems to have a delay when switch from the horizontal position to the vertical position. its weird because when i switch to the phone horizontally it switch normally and responds fast. but when i switch back to vertically it takes almost 7 seconds to actually switch back, sometimes it switch within 2 or 3 secs but never as quick as switching horizontally.
MQuote:
Originally Posted by Rigmaster
Make sure you have the latest updates, which impact speed on the device in some unpredictable and unexpected ways. During system updates, your Evo may reboot and will take the g-sensor changes as last calibrated.
If you're already updated, shut down and repower (soft reboot) should do the trick. I actually updated my phone and after it started to do this. I restarted the phone plenty of times i even took the battery out for 30 seconds. It only does it when im texting on the browser, basically everything but the camera. He camera screen rotation is perfect. I even rooted the phone but i havent figured out how to use the root to fix the problem. Should i do a firmware update? Because i just did the htc software update.
View 1 Replies
View Related
May 13, 2010
The default behavior of an activity when BACK softkey is pressed is, GO BACK TO PREVIOUS ACTIVITY. If some the same activity is waiting for some response from server or some data updation is going on and then press BACK, I want to wait on the same screen till the current task is completely processed and then move out to the previous activity.
You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscribe@googlegroups.com For more options
View 12 Replies
View Related
May 4, 2010
Is it possible to disable title bar display dynamically after setting the content view by setting the NoTitlebar theme?
All the posts I have read told that any title bar changes we can make only before setContentView() call.
View 4 Replies
View Related
Sep 20, 2010
I am facing one problem in message view. Bacically what I need to do is in message view I want to mark any telephone number or web address in different color. Can anyone please tell me where exactly the text is been written in Message View? On clicking this items it should launch appropriate event. If anyone touches a telephone number it should launch the dialer or if it is a valid email address then it should launch the Compose message event and so on.
Another question is whether to display message is Android uses the WebView?
View 2 Replies
View Related
Oct 30, 2010
I am dispalying some data by using sqlite .when i click on one button data come from database. It takes some time. At that time the screen is black .At that time I want to display the rotating spinner before the data dispaly.
View 4 Replies
View Related
Sep 29, 2010
I have an issue with displaying videos on android devices.When any video is displayed it does not take the entire screen size of device even though i have given android:layout_width="fill_parent".There will being some blank space on either sides.for eg.if i have a video of 480 by 320 it will work on 480 by 320 device fine but on a device like say Nexus one it wont take the entire display of device ,there will be some blanl spaces on two sides. Is this a default feature of android devices or is there a solution to resolve this ?Why does not the "fill_parent" attribute work?
View 4 Replies
View Related
Nov 12, 2010
In one application, when an activity start I use the getLastKnownLocation to get the last know position, using something like: Location position=mlocManager.getLastKnownLocation(mlocManager.getBestProvider(new Criteria(), true)); (in the onCreate)
After this, my application register a listener in the onResume() (and removes it in the onPause()), something like:........................
View 5 Replies
View Related
Nov 16, 2009
I have a new Motorola Droid and am wondering if anyone knows of an app that ties the GPS position to photos that the camera takes? It would be nice to have Geolocation info tagged automatically on photos. Thanks in advance!
View 2 Replies
View Related
Sep 22, 2010
I'm trying to create a context menu that changes the available options depending on which row was clicked. But I can't figure out how to get the row position in the listview for row that was clicked, until after the menu is created.
View 1 Replies
View Related
Jan 8, 2010
Can anyone give me a tip for how to get the position of a view what is a child of an AbsoluteLayout? I want to do this for drag and drop the selected view.
View 2 Replies
View Related
Dec 30, 2009
On methods like these kind, onItemClick(AdapterView parent, View view, int position, long id), what's the difference between position and id.
View 2 Replies
View Related
Aug 26, 2009
When i try to edit and already stored notepad ,i see the cursor at the end of first line.I want to make it appear to the end of the text.Please help me in this.
View 2 Replies
View Related
Feb 18, 2010
I want to read my cursor position so that, after a tap, I can convert the screen x,y coordinates to a Geopoint for distance calculations.I found a snippet to convert x,y coordinates to a Geopoint and probably could use Projection instead, but how do I input those screen x,y values in the first place? This is probably straightforward, but I'm confused.The class Cursor seems to be something different than what I need
View 2 Replies
View Related