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);

("MAP").setContent(new Intent(this, MyMapView.class)));

And works for now,
Now i want know how mapActivity can obtain data from first e second
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.


Other Threads

1. Setting preferred home activity from application code

Hi folks!

I'm trying to have my home-screen application register itself as the
default home-screen so the user is not prompted with the
IntentResolver's list of all the available home-activities.

this is my code:

        private void makePreferred() {
                PackageManager pm = getPackageManager();
                IntentFilter f = new IntentFilter("android.intent.action.MAIN");
                ComponentName cn = new ComponentName("",
                pm.addPreferredActivity(f, IntentFilter.MATCH_CATEGORY_EMPTY, 

I have the android.permission.SET_PREFERRED_APPLICATIONS set in the
manifest. After executing the code above, the logs claim things have
been added like expected (same logs as when I tick off "Make default"
from IntentResolver's list). However, when I proceed by clicking home,
the list still shows up and the logs say:

INFO/PackageManager(52): Result set changed, dropping preferred
activity for Intent { act=android.intent.action.MAIN cat=
[android.intent.category.HOME] flg=0x10200000 } type null

So it seems the resolver deletes the default entry. Am I doing
something wrong, or is this a security measure? What are the ideas
behind this?

Thanks folks!

2. launch an activity right into the background

Complicated layouts definitely have a huge impact on speed...  Perhaps some
of the pointers on these pages could help:


There are only 10 types of people in the world...
Those who know binary and those who don't.

> > >

3. launch an activity right into the background

4. A problem of drawing on WVGA screen

5. scaling game images according display sizes

6. (wta) external batt charger magic

7. Reference Board for Android Porting