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. Making the Account API better

Recently I added usage of the Android Account APIs to my application.
I'm using the user's google account credentials to perform a read
operation from a specific Google site, and consequently, my app
requires the GET_ACCOUNTS and USE_CREDENTIALS permissions.

Surprisingly, I have NOT had a huge amount of push back from users on
the app requiring these permissions, but there has been some.  For the
most part, the questions have been "why do you need this, and what
accounts are you asking to use?".  Once I provide an explanation, most
user's are satisfied.

One things that occurs to me is that it would be great if we could be
a bit more fine-grained and explicit in our declaration of
permissions.  For example, if I could parameterize the permission
request, something like this:

        <uses-permission android:name="android.permission.GET_ACCOUNTS"
param="account=google"/>
        <uses-permission android:name="android.permission.USE_CREDENTIALS"
param="site=docs.google.com"/>

and have the effect be that I would only be able to retrieve the
"google" account, and only be able to use credentials from that
account on the site docs.google.com, the permission description for
end users could be much more explicit (and thus "less scary").

Obviously this also assumes that there is a reasonable way to
implement these kinds of restrictions.  I realize that's big
assumption, but it certainly would improve the overall Account API
experience, IMO.

Dave

-- 

2. Paging desire user

Selamat malam RR id android,,
Mau paging desire user nih,,untuk memaksimalkan desire,,apa yang harus saya 
lakukan,?

Mau nanya juga khusus mengetik keyboard pada saat ketik sms,,HH tersebut 
vibrate,,bagaimana yah caranya pada saat tap keyboard pada saat sms HH tidak 
vibrate

*makasih*


pelita baru cell
jl.konggoasa no.34
kendari 93127

: 08114005999
: michael.anjr...@gmail.com

-- 
"Indonesian Android Community [id-android]" 

3. Spinner Widget Selection

4. How to load from database GeoPoint on demand?

5. Client server setup in android

6. how can I get the Google account or Gmail address from the phone

7. gayda