邮件屏幕向下滚动到底部

时间:2012-04-24 07:48:56

标签: android android-layout email-integration

我在

中调用邮件意图
    ImageButton mail=(ImageButton)findViewById(R.id.mailgps);
    mail.setOnClickListener(new View.OnClickListener() {

        @Override
        public void onClick(View v) {
            setContentView(R.layout.mail);
            Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND);  
            // TODO Auto-generated method stub
            emailIntent.setType("text/plain");
            String emailto[]={"myemail"};
            String subject="GPS User Report";
            String body="Welcome to Samarth Reporting service.Did you see an untracked Dustbin\n.A dustbin not at the right place??\nWant to suggest placement of a dustbin here.\nGo ahead we are all ears.\n.Your present location is\n Latitude: ";
            body=body +  "28.67890" + " and Longitudes: " + "79.78965";
            body=body + "\n\nTell us more.";
            emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL,emailto);
            emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT,subject);
            emailIntent.putExtra(android.content.Intent.EXTRA_TEXT,body);

            startActivity(emailIntent);  



        }
    });

并获取这样的屏幕,忽略EXTRA_EMAIL属性以及EXTRA_SUBJECT,然后身体出现在最底部。我怎么能纠正这个。??

enter image description here

1 个答案:

答案 0 :(得分:0)

这是一个非常愚蠢的事情。 就像我之前使用的另一个AVD一样,我有电子邮件客户端设置所以它工作得很好。但是在新的AVD上我忽略了。所以“先”设置电子邮件客户端然后去调用意图。 尽管如此,系统应该有更好的方法来处理这种情况,而不是显示一个奇怪的空白屏幕。

相关问题