设置默认电子邮件或其他地址以获取用户反馈

我正在尝试设置默认电子邮件地址,将存储来自我的 android 应用程序的反馈,我可以让他们阅读。但是,我无法做到。另外,您能否建议我其他更好的方法来存储来自您的应用程序用户的反馈,以便我以后阅读?


这是我的代码:


活动_main.xml


<RelativeLayout android:layout_width="match_parent"

    xmlns:android="http://schemas.android.com/apk/res/android"

    android:layout_height="match_parent">


    <Button

        android:id="@+id/feedback"

        android:layout_width="match_parent"

        android:layout_height="wrap_content"

        android:layout_marginBottom="10dp"

        android:text="@string/feedback"

        android:textColor="#26A69A" />



</RelativeLayout>

反馈文件


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


<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"

    android:layout_width="match_parent"

    android:layout_height="wrap_content"

    android:background="#D0ECE7  "

    android:orientation="vertical">


    <TextView

        android:layout_width="match_parent"

        android:layout_height="54dp"

        android:paddingLeft="10dp"

        android:paddingRight="10dp"

        android:text="@string/ftitle"

        android:textColor="#26A69A"

        android:textSize="30sp"

        android:textStyle="bold" />


    <TextView

        android:layout_width="match_parent"

        android:layout_height="wrap_content"

        android:layout_marginLeft="10dp"

        android:layout_marginRight="10dp"

        android:layout_marginTop="10dp"

        android:text="@string/feed"

        android:textSize="20sp"

        android:textStyle="bold" />


    <EditText

        android:id="@+id/editText"

        android:layout_width="match_parent"

        android:layout_height="62dp"

        android:layout_marginLeft="10dp"

        android:layout_marginRight="10dp"

        android:ems="10"

        android:hint="Write Here"

        android:background="#ffffff"

        android:inputType="textPersonName"

        android:textColor="#26A69A"

        android:textColorLink="#26A69A" />


狐的传说
浏览 131回答 3
3回答

慕田峪7331174

一个简单的解决方案是使用具有以下属性的TextViewin aNavigation Drawer或 in an&nbsp;About activity:android:autoLink="email" android:text="youremail@host.com"有了这个,用户只需点击您的电子邮件,邮件应用程序就会启动...至于其他部分,请确保您不要泄露您的个人电子邮件。最好使用专业电子邮件或专门针对该应用程序的电子邮件。
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Java