How can MapActivity obtain data

by Michel » Wed, 15 Apr 2009 02:05:52 GMT


Sponsored Links
 He guys
I have a question, I'm using a TabHost with 3 tabs
1)First view class with textbox and variable
2)Second view class with textbox and variable
3)I launch mapActivity like this for view google map:
Intent startMap = new Intent(this, MyMapView.class);

mTabHost.addTab(mTabHost.newTabSpec("tab_test2").setIndicator
("MAP").setContent(new Intent(this, MyMapView.class)));

And works for now,
Now i want know how mapActivity can obtain data from first e second
class.
I'm new in Android and I want know the best choose
With normal Java i will create in mapActivity two variable referance
to first and second class:
FirstClass first
SecondClass second

But after i can use the intent...
thanks all of you.
Michel

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Urgent Requirement:Android Developer

Hi All,

We have following urgent positions with our direct client. Please send
me your consultant's resume with Rate and contact details:



Job-Description

Location - Warren ,NJ

Duration:12 months

Position Title: Developer - 2 nos.

Required Skills:


a. Expertise and experience in Android development at least 12-18+
months of experience in this space alone.


b. Should have led/participated in requirement capture, analysis &
design besides development







Thank you,
Lokesh Joshi
lokesh.jo...@pyramidci.com
(770) 255-7718
11100, Atlantis Place,
Alpharetta, GA - 30022
www.pyramidci.com

CMMi Level 4 Certified Offshore center
GMSDC- Supplier of the Year (Class IV) - 2008
Deloitte - Technology Fast 50 in Georgia - 2006, 2007
ABC - Georgia Fast 50 Pacesetters Award - 2005, 2006, 2007, 2008

-- 

2. Purpose of client in native MediaPlayer and MediaPlayerService?

What is the purpose of all the client code in the MediaPlayer and
Camera code in the native code?

I have the need to implement a new Java side class that talks to a
native service via Binder since I am passing a Surface to another
process. I have similar interfaces as to what is in the MediaPlayer
(like setDisplay) so I planned to clone pasrts of the MediaPlayer code
and remove what I don't need. There will be only one application that
will need the use of the native side service.

I understand all the code from MediaPlayer.java to
android_media_MediaPlayer.cpp to mediaplayer.cpp to
MediaPlayerService.cpp. The a bit lost in all the client/base code.
Pretty clsoe to having my code working, but wanted to make sure I was
not missing anything.

Is that code there to allow the MediaPlayer to talk to multiple media
processing - like PacketVideo, etc? Meaning this is client code on the
native side - it has nothing to do with multiple clients on the JAVA
app side?

In my case where I only have one application and one native side
service, is it fine not to need all the client code? Are there any
things I should add in the Jave or Jni parts to ensure only one app
can be in use at a time? Or just have it fail when it tries to create
the native side service?

Thanks, Mas

-- 

3. Deploying Custom Configuration with My Android App

4. Android OS localization

5. 2.2 Google Api emulator not booting up

6. add image in textview in appwidget

7. Messaging application