Hey Guys.
I am opening an emial client programaticaly in android, it works fine
on emulator, but when i run it on real device it gives me a problem
i.e. To and subject fields are found empty.
i am using following code.

Intent msg=new Intent(Intent.ACTION_SEND);
                String []address=new String[]{"[email protected]"};
            msg.putExtra(Intent.EXTRA_EMAIL ,address);
            String subject="";
            PackageManager pm = getPackageManager();

            //---get the package info---
            PackageInfo pi;

                                pi = 
pm.getPackageInfo("org.tkxel.android.iscopes.activities", 0);

            //---display the versioncode---

            subject="Feedback (IScopes V: " +pi.versionName+")";
            msg.putExtra(Intent.EXTRA_SUBJECT, subject);


                 //This next line puts in the body of the message
            String []Content=new String[]{"Device:","System
version:","Message:"};
            msg.putExtra(Intent.EXTRA_TEXT,"Device:
"+android.os.Build.DEVICE+"\nSystem version:
"+android.os.Build.VERSION.RELEASE+"\nMessage:\n");
            msg.setType("text/plain");
                 //Another type to try
           // msg.setType("message/rfc822");
            startActivity(Intent.createChooser(msg, "Send Email"));



any help please its urgent. i have to deliver it tonight..
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to