Android :: MapActivity To Work On 1.5r2?
Jun 17, 2009
I'm having problems getting a MapActivity to work on 1.5r2. As far as I can tell I've done everything I need to do, but what am I missing? The Google Maps key was generated on the Google Maps website using the Debug keystore at the location in my Android setup.
What does "Unable to resolve superclass of Lcom/bgies/truckerphonetest/DirectionActivity;" actually mean? As far as I can tell, the activity is setup properly.... At least it is setup exactly the same way I have other activities setup... with the exception that it's the only activity that has a mapView in it.
I can't run it either on my G1 or the emulator... so I assume it's something I am doing wrong. The project setup does have the Google APIs [Android 1.5], and the AVD for the emulator does show the target as Google APIs when I select it.
From my Android Manifest :
CODE:....................
View 2 Replies
Aug 19, 2009
I want to display my two point on maps. I saw many example but they are using MapActivity when i used MapActivity in my sdk which is 1.5. it seems it is not available in it. So is it true that it is not available in 1.5 API. So is there any other alternative for it. can i do it using the following code sniiipt. I can do it for one code snippt but i do not know how can i display two point.
CODE:.....................
View 7 Replies
View Related
Aug 25, 2010
I have a DROID using Android 2.2
I am attempting to get the simplest MapActivity to run on the device. (NetBeans latest and greatest using a Google Api build target.)
I have all the appropriate Manifest entries, the simplest OnCreate --- > all it does is setContextView() to the xml with a mapview in it.
View 4 Replies
View Related
May 22, 2009
I have a problem with firing an activity that extends MapActivity. When it gets called, it throws a java.lang.NoClassDefFoundError... not sure what this is supposed to mean. I think something goes wrong with the external implementation of the maps API (maps.jar). Has anyone come across that problem? Here's the srack trace:
CODE:....................
View 8 Replies
View Related
Mar 3, 2009
I want to add a MapActivity in an ActivtyGroup. As only single level inheritance is supported, my class can either extend from either MapActivity or ActivityGroup. As far as I know MapActivity is not a part of ActivityGroup. I want an activity to extend MapActivty as well be a part of an ActivityGroup.
View 2 Replies
View Related
Jan 7, 2010
I've got an app using MapActivity.onCreate() to initialize the map and show it on screen. Now I would like to add a menu to my app. From what I've found out I can't add a menu from MapActivity and need to use Activity (correct me if I'm wrong).
Now I have no idea how to "initialize" the map from my Activity-class.
And how would I have to fix the views, will I wrap my activity-layout around my Map-layout?
View 5 Replies
View Related
Jul 8, 2009
I have attached a mapview to my layout and have a it showing a compass and my current location, the problem I have is that there is no street map shown in the view, so basically I just see the compass and my current location over a blank grid.
View 3 Replies
View Related
Oct 7, 2009
Is it possible to use the terrainview in a MapActivity. The only way for now i could think to use the terrainview is using the browser- based version of Google Maps rather than using the native implementation, but that would not be my preferred way.
View 2 Replies
View Related
Nov 24, 2010
I have created a release keystore using the Eclipse IDE. I signed it using keytool and registered on Google Maps. I plugged in the key but my map doesn't show up. Maps show up properly when I use the key associated with my debug keystore. How can I diagnose this? I followed the same steps as i did with debug, for release.
UPDATE: Here is my manifest file:.................
View 2 Replies
View Related
May 6, 2010
I have a TabActivity that loads in 3 activity classes.In those Activity classes I have a button and an OnClickListener that tries to open a MapActivity class.I have searched to find an example of an Activity class launching a MapActivity class but cannot find one. If I swap out my MapActivity class with a Activity class it works.
View 2 Replies
View Related
Jul 27, 2010
Currently in my design I've got a base abstract class that all of my activities extend from, however I discovered recently that in order to use a MapView you need to make your activity extend MapActivity. Since Java does not have multiple inheritance I was wondering if there is any way I can use a MapView without having to recreate my design for my application.
View 1 Replies
View Related
Sep 14, 2010
I tried to update my mapactivity with toast as the sensor data changes.
However, my first Toast appears and it never change despite detecting changes in sensor values.
What could be the reason?
Below is the snippet of my SensorListener:
CODE:................
View 2 Replies
View Related
Jul 27, 2010
My app force closes when I try to launch the same MapActivity from the HelloGoogleMaps tutorial. I am launching it from my main activity which is just a list:
CODE:...............
HelloGoogleMaps works fine by itself and the class is in my manifest. I tried tracing the problem with the debugger and it crashes somewhere when create my Intent.
View 1 Replies
View Related
Dec 17, 2009
shall we use map application in android2.0?..
I tried to install map application in android1.5 , but it is showing "Installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY".
In android1.1 it is working.
View 5 Replies
View Related
Nov 20, 2009
An Activity that extends from MapActivity Uses ItemizedOverlay to show some balloons on the map ZoomControls are enabled
The ItemizeOverlay implements onTap(...) which works perfectly ok when tapping one of the overlay items.
The question is: How to identify a tap on another part of the map (with the intention of getting the location and center'ing on that point)
View 1 Replies
View Related
Dec 27, 2009
Have you seen this exception : I am trying to make Satellite Map view for my application. But no succeed, when start activity that calls Satellite Map Activity following exception throws :
CODE:...................
View 1 Replies
View Related
Sep 1, 2010
I have an application which has 11 different activities. One of these activities is an extension of MapActivity (it is a map for data visualization). To get to this activity the user must first travel through the launch activity, then 3 other activities.
The code to launch the MapActivity is:
CODE:..............
When this is executed I get the following output from the Log:
CODE:.......
I do have the target set to Google APIs, this is an app meant for Android 1.5, and specifies the minsdk to be level 3 in the manifest file. uses-library for maps is also in manifest file.
CODE:..........
I have been at this for almost 2 days now with no results. It seems that there are a lot of people having issues launching a MapActivity from other activities but there are no solutions anywhere.
View 2 Replies
View Related
Mar 12, 2010
I wanted to use the MapActivity but i dont find the google api add on its not available for download as well. i checked the <sdk>/addon folder. but its empty. could some one please tell me how to download them
View 5 Replies
View Related
Sep 19, 2010
I get a result as http://i3.6.cn/cvbnm/e1/71/e9/19008bd7258eaf858be73dc6431b1f8b.jpg,
i want to get two tab,could you help me? Code...
View 2 Replies
View Related
Oct 24, 2010
I was surprised to see a couple major shortcomings in the design of MapView and MapActivity.
First, MapView requires itself to be hosted in a MapActivity. According to the documentation,
A MapView can only be constructed (or inflated) by a MapActivity<http://code.google.com/android/add-ons/google-apis/reference/com/goog...>.
> This is because it depends on threads which access the network and > filesystem in the background; these threads must be shepherded by the > lifecycle management in MapActivity<[url]...>. > Tiles are cached on the filesystem in your application's directory. The > cache is auto-managed so you don't need to do anything with it, and can > delete it at any time.
View 4 Replies
View Related
Jun 3, 2010
How can i start a Mapactivity from a normal Activtiy?
View 2 Replies
View Related
Aug 31, 2010
I create new MapActivity class ClassProba.
From main Activity I want to show MapActivity, on bitton click event I put this code:
CODE:..............
But I receive Force close error.
In my xml file I use this code:
CODE:......
In log I receive this error :
CODE:..
Line 7 is com.google.android.maps.MapView
When I remove this code form xml file :
CODE:.....
Blank black screen appear (there is no error)
In manifest file I have:
CODE:..............
UPDATE
CODE:...............
View 1 Replies
View Related
Apr 26, 2010
I'm trying to use google maps on my android app but when i extend MapActivity instead of Activity in my activity file, there is an error that MapActivity cannot be resolved to a type...? I have <uses-permission android:name="android.permission.INTERNET"/> as a child of manifest and <uses-library android:name="com.google.android.maps" /> as a child of application too.....
Moreover, when i try to import com.google,android.maps.MapActivity, it says com.google cannot be resolved....
View 2 Replies
View Related
Aug 30, 2010
I want to create new class MapActivity from Eclipse.
I go File-> New -> Class on Superclass-> Browse, and when I type MapActivity there is no results.
In Windows-> Android SDK and AVD Manager there is no new updates, I have installed SDK from version 1.5 to 2.2
View 2 Replies
View Related
Jul 12, 2010
I know I cannot create two MapViews in a MapActivity. And I cannot create two MapActivities in a process. Is there a work around that will enable me to display two mapviews side by side?
View 6 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
Dec 8, 2009
I've got an Activity that extends MapActivity. it uses ViewGroup.removeAllViews() & LayoutInflater.inflate() to changes parts of itself. if it creates then deletes then [re]creates a MapView using the above method, it gets an exception during inflate that says: "You are only allowed to have a single MapView in a MapActivity"
How to I get MapActivity to forget the previous MapView instance?
View 2 Replies
View Related
Feb 17, 2010
When i extends the MapActivity class it shows an error.
error is: cant resolved datatype. why?
How to add a maps.jar in my project?
View 1 Replies
View Related
Oct 7, 2010
Why I have to code so much for it. Like, I dont want to care about...the position of the balloon (I just want to assign a geopoint) the layout of a basic balloon (Later on I might want to implement a xml based layout) the number of shown balloons (only display one at a time) the open/close behaviour of the balloon (close, when an other bollon is tabbed)
View 1 Replies
View Related
Apr 23, 2010
I tried using the MapActivity as given in the following link. http://developer.android.com/guide/tutorials/views/hello-mapview.HTML
I get the error in LogCat : DalvikVm: unable to open stack trace file android '/data/anr/traces.txt' Permission Denied. May I know why this happens. However, after making some changes in the code as shown below, I get the map view perfectly.code...
View 2 Replies
View Related