Get default email account and compose a message?

by Atif Gulzar » Thu, 20 Aug 2009 14:06:59 GMT


Sponsored Links
 I am looking for some anchors how to get default Email account and compose a
new message. I will appreciate any help. Thanks


--
Best Regards,
Atif Gulzar

I  Unicode, zln 

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



Other Threads

1. How to Stop LocationManager correct and make the Satellite symbol disappear ?

package s.s;

import android.app.Activity;
import android.os.Bundle;
import android.content.Context;
import android.location.Criteria;
import android.location.Location;
import android.location.LocationListener;
import android.location.LocationManager;
import android.view.KeyEvent;
import android.widget.TextView;
import android.widget.Toast;

public class Gps extends Activity implements LocationListener
{
    private TextView textView;
    private LocationManager locationManager;

    @Override
        public boolean onKeyDown(int keyCode, KeyEvent event) {
                if (keyCode == KeyEvent.KEYCODE_S) {
                          this.locationManager.removeUpdates(this);

                        Toast
                        .makeText(this, "#_removed", 500)
                        .show();

                        return (true);
                }
                return (super.onKeyDown(keyCode, event));
        }


    @Override
    public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);


        Criteria criteria = new Criteria();
        criteria.setAccuracy(Criteria.ACCURACY_FINE);
        this.textView = (TextView)findViewById(R.id.text);
        this.locationManager = (LocationManager) getSystemService
(Context.LOCATION_SERVICE);
        this.locationManager.requestLocationUpdates(
                this.locationManager.getBestProvider(criteria, true),
                0,
                0,
                this);
    }

    @Override
    public void onLocationChanged(Location location)
    {
        this.textView.setText("Latitude : " + Double.toString
(location.getLatitude()) + "  Longitude : " + Double.toString
(location.getLatitude()));
    }

    @Override
    public void onProviderDisabled(String arg0) {

    }

    @Override
    public void onProviderEnabled(String arg0) {

    }

    @Override
    public void onStatusChanged(String provider, int status, Bundle b)
{

    }
}

The Satellite symbol don't disappear. (never - until i press the
standby button)


Why isn't that

this.locationManager.removeUpdates(this);

working when i press s on the keyboard (why don't the Satellite symbol
disappear)?




But when i start Google Maps and stop it the Satellite symbol
disappear!

So what i have to more??

thanks

--

2. Controlling the current MediaPlayer

Hi google devs,

This should be easy, but i haven't found anything yet....

I want to get a reference to the Mediaplayer running currently on the
device, so my app can pause it, execute its code and then resume it
again. The class that plays the music and the videos is of course
MediaPlayer but i don't want to create a new one, but to control the
one its running when my app needs to do its job.

Of course it should be possible that no song or video is currently
being played so there should be a isplaying() method somewhere...

Any clues how to make that?

Thanks in advances..

Alex

-- 

3. Resolusi video

4. Regarding SharedPreferences and my use-case.

5. Viamici 鈥?the First Map Calibrat ion Solution for the Android Platform

6. S/MIME and Digital Certificate Support on Androi

7. Is there any way to call start Main Activity from a Java program