Hi all

I'm stuck on a tought problem that's been kepeing me busy for a couple
of days :

I have a MapActivity wich is using an Overlay.
The overlay is  instanciated like this in the MapActivity

               mPickDriverOverlay=new
PickDriverOverlay(this,rideRequests,myMapView);
                myMapView.getOverlays().add(mPickDriverOverlay);

On this Overlay , i'm listening for onKeydown and when the center of
the dpad is pushed , i'm trying to start a new Activity:

                Intent intent=new
Intent(activity,AskDriverForARideActivity.class);
                activity.startActivity(intent);

My problem is that this activity is launched but not displayed : i can
see that in the logs :

11-10 16:09:27.564: VERBOSE/PickDriverOverlay(1096): Adding a new
Overlay with 1 rides founds
11-10 16:09:34.174: WARN/KeyCharacterMap(1096): No keyboard for id 0
11-10 16:09:34.189: WARN/KeyCharacterMap(1096): Using default keymap: /
system/usr/keychars/qwerty.kcm.bin
11-10 16:09:34.193: VERBOSE/PickDriverOverlay(1096): KEY Down :23
11-10 16:09:34.284: INFO/ActivityManager(53): Starting activity:
Intent { comp={com.piggyBack/
com.piggyBack.activities.AskDriverForARideActivity} (has extras) }
11-10 16:09:34.354: VERBOSE/RideActivity(1096): onPause
11-10 16:09:34.484: VERBOSE/AskDriverForARideActivity(1096): onCreate
11-10 16:09:34.874: VERBOSE/AskDriverForARideActivity(1096): onResume

so , i can see the first activity beeing paused and the new one
started , but nothing is displayed on the screen.

if i'm pushing again the key , i have this log :

11-10 16:11:39.084: VERBOSE/PickDriverOverlay(1096): KEY Down :23
11-10 16:11:39.173: INFO/ActivityManager(53): Starting activity:
Intent { comp={com.piggyBack/
com.piggyBack.activities.AskDriverForARideActivity} (has extras) }
11-10 16:11:39.203: VERBOSE/AskDriverForARideActivity(1096): onPause
11-10 16:11:39.244: VERBOSE/AskDriverForARideActivity(1096): onCreate
11-10 16:11:39.524: VERBOSE/AskDriverForARideActivity(1096): onResume

but this time , the view is displayed

when i'm trying to close the application , i can see that the view was
hiden behind the map view.

I've been trying a lot of things like setting the Flags
FLAG_ACTIVITY_NEW_TASK,
FLAG_ACTIVITY_BROUGHT_TO_FRONT
trying to call the makeActive() method in the new Activity,...

Does anyone see what's wrong with or how to solve this and how tu put
an Activity on the top of the stack (from the doc , a new Activity
should start on the top?

Thanks

Chris




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to