SORU
1 ŞUBAT 2012, ÇARŞAMBA


Niyet.EXTRA_EMAİL alana doldurmamak

bir uygulama bir e-posta göndermeye çalışıyorum ama e-posta alanı dolduracaktır. Eğer konu veya metin doldurmak için kod eklersem, iyi çalışır. Alana sadece dolduracaktır.

Ayrıca "" ve "html" ama ben aynı sorunu olsun. metin//düz metin türünü değiştirmeyi denedim Herkes lütfen yardımcı olabilir mi?

public void Email(){

    Intent emailIntent = new Intent(Intent.ACTION_SEND); 
    emailIntent.setType("message/rfc822");  //set the email recipient
    String recipient = getString(R.string.IntegralEmailAddress);
    emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL  , recipient);
    //let the user choose what email client to use
    startActivity(Intent.createChooser(emailIntent, "Send mail using...")); }

Kullanmaya çalışıyorum e-posta istemcisi Gmail

CEVAP
1 ŞUBAT 2012, ÇARŞAMBA


recipient array of string geçirmeden değil bence

emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL,new String[] { "someone@gmail.com" }); gibi olmalı

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • Gali B

    Gali B

    1 EYLÜL 2006
  • Julian Smith

    Julian Smith

    31 EKİM 2006
  • tinycammonitor

    tinycammonit

    14 Aralık 2010