Problems with start a Map Activity from other Activity

by Carlos Moreira » Wed, 14 Apr 2010 03:03:42 GMT


Sponsored Links
 Hello every one!

It's my first time mailing for a solution, I hope find the solution
for this...

Any way, I am developing an aplication. This one is designed to login
a user, then select how find a place, using simple data or using a
map. When I try to set in the event OnClick for select the "Map
way" (using intent):

startActivity(new Intent(getApplicationContext(),
MapviewController.class));

I have problems and didn't work.

My class and manifest are:

public class MapviewController extends MapActivity {

        @Override
        public void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.view_map);

            //Definicin del mapa a usar en la vista
            MapView mapView = (MapView) findViewById(R.id.map_view);
            mapView.setBuiltInZoomControls(true);
            mapView.setSatellite(true);


-----

<application android:label="@string/app_name" android:icon="@drawable/
sitefinder">
        <activity android:name=".LoginController"
                  android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category
android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
                <activity android:name=".ElegirARMapsController"
                  android:label="@string/app_name">
            <intent-filter>

            </intent-filter>
        </activity>
        <activity android:name=".MapviewController"
                  android:label="@string/app_name"
                  android:theme="@android:style/Theme.NoTitleBar">
            <intent-filter>
                <action android:name="android.intent.action.VIEW" />
                <category
android:name="android.intent.category.DEFAULT" />
            </intent-filter>
        </activity>
    </application>

-------------

Do you know any way to call the MapActivity from other?

Thx a lot for read this and trying to help me.

PD:Sry for my English!

Carlos J. Moreira Muoz

--



Other Threads

1. DROID Incredible Getting Android 2.3, Says HTC

Horeeee

http://phandroid.com/2011/04/13/droid-incredible-getting-android-2-3-says-htc/

by Quentyn Kennemer on April 13th, 2011 at 5:55 pm

More OTA confirmation by way of online HTC support representatives. This
time, the helpful bunch have confirmed that the HTC Droid

Incredible (the original) will be getting Android 2.3. They offer ummeras far as a window goes, but wel believe it when we see it. Wee glad to
see HTC being as vocal as they can be regarding forthcoming upgrades. [via
Android Central]

-- 
===============

2. aplikasi ppt remote via Bluetooth

mohon info rr,

ada ga ya aplkasi buat remote ke pc via bt
tapi yang free ya..

thanks a lot

-- 
===============

3. In-App Purchase broken?!

4. How to verify the Activity on the foreGround

5. don't duplicate data in database

6. How can I get current activity from context?

7. Static class variables reset to null after task kill/restart