Android : Use Tabhost By Extending MapActivity
Sep 19, 2010I 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...
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...
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 RelatedI 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:.....................
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.
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:....................
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:....................
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 RelatedI'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?
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 RelatedIs 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 RelatedI 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:.................
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 RelatedCurrently 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 RelatedI 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:................
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.
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.
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)
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:...................
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.
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 RelatedI 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.
How can i start a Mapactivity from a normal Activtiy?
View 2 Replies View RelatedI 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:...............
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....
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
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 RelatedMy app uses a TabHost containing one tab with a ListView and another tab with a simple form. When the keyboard is slid out in order to write into the form fields, I don't get automagic scroll bars added to the LinearLayout around my form elements.
The resource xml follows.
CODE:................
I'm trying to create multiple tabs, each with a different Activity. The only downside is i'm using a custom layout file thus my class extends an Activity rather than a TabActivity. While trying to run, it fails and suggests calling TabHost.Setup(ActivityGroupManager agm)
View 3 Replies View RelatedIn a TabHost widget, I can create a new tab with its content (Intent) using TabHost.addTab(TabHost.TabSpec tabSpec).
We can remove all tabs we created by calling clearAllTabs(), but I can't figure out how to remove the tab or just replace the content (Intent) inside the tab with new Intent.
so what I need something like removeTab(int index)
I have a tabhost...
in this tabhost is a Intent,and in the activity must change to other activity,
question is I hope the other activity at same tabhost switch?
Can do this?