Maps and M5, impossible??

by Altais » Thu, 06 Nov 2008 00:51:33 GMT


Sponsored Links
 Hi,

We have an application developed with M5-rc15 SDK that uses maps.
Migrate it  to 1.0 its a hard work and application is only for demo
purpose. (we need to show it only one more time!!)

Is there any way to show now a map in M5?

Thanks,

Altais.
--~--~---------~--~----~------------~-------~--~----~



Maps and M5, impossible??

by JP » Thu, 06 Nov 2008 01:02:29 GMT


 You're out of luck there. In 0.9 and now 1.0, the MapView constructor
has changed to pass the now required Google Maps API key. Manual here:
 http://code.google.com/android/toolbox/apis/mapkey.html 




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


Sponsored Links


Maps and M5, impossible??

by Altais » Thu, 06 Nov 2008 01:09:15 GMT


 We know the changes. The emulator is better, butwe always can make a
Power Point presentation.

Thanks!




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



Other Threads

1. Changing text size on spinner example

I've been trying to do this for a couple of days so I thought I would share
how I eventually did it.

I created a new xml file with the name spinnerrow.xml (Notice that there are
no underscores and no caps, I had trouble with xml files with those
characters)

<?xml version="1.0" encoding="utf-8"?>

<CheckedTextView xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:textSize="5pt"
    android:singleLine="True"
    android:id="@+id/spinnerTarget"
    android:textColor="#000000"
    android:gravity="center"
/>

In my main xml file I had the following definition:

<Spinner android:id="@+id/Spinner01" android:layout_width="wrap_content"
            android:layout_height="wrap_content" android:hint="Click to
change compounding type"
            android:text="text"/>


In my java file I had the following in the onCreate section:

Spinner mySpinner = (Spinner) findViewById(R.id.Spinner01);
        ArrayAdapter <CharSequence> mySpinnerArrayAdapter =
ArrayAdapter.createFromResource(this, R.array.compoundingSpinner,
R.layout.spinnerrow);

mySpinnerArrayAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
        mySpinner.setAdapter(mySpinnerArrayAdapter);

        mySpinner.setOnItemSelectedListener(new MyOnItemSelectedListener());

I was in the process of creating a custom ArrayAdapter but realized that I
had what I was looking for without it.

Good Luck
Connie

-- 

2. Is onDetachedFromWindow more reliable than onStop

Hi,
We developed two heavy apps, A,B.
A startActivity B and B comes back to A by startActivity too.
We record one flag in A's onStop to remember going to background and
restore that flag in onStart.
After switching between A and B rapidly, we found A's onStop often get
called by system later than B's onResume.
Sometimes even later than A's second onResume.

So we have to find the other way to tell foreground and backgroud.
We got two proposals:
1) onDetachedFromWindow
2) ActivityManager.getRunningTasks

Any words about it will be appreciated.

James

-- 

3. What is the combo key press to fix project errors again?

4. Oot: peserta miring 3 july disurabaya

5. Re[2]: Oot: peserta miring 3 july disurabaya

6. Holding On to Camera

7. Terminal Server access from an Android Tablet PC