android应用程序如何对bluemix deployed node.js应用程序进行RESTAPI调用,该应用程序接受该请求并连接到sqldb?

android应用程序如何对bluemix deployed node.js应用程序进行RESTAPI调用,该应用程序接受该请求并连接到sqldb?,android,sql,node.js,ibm-cloud,Android,Sql,Node.js,Ibm Cloud,我已经创建了android应用程序,它使用Bluemix SQLDB服务。为此,我使用node.js与SQL数据库交互。为了让我的android应用程序与node.js交互,我使用RESTful API,因为我需要在SQL数据库中存储编辑文本参数。有人能帮助我如何将编辑文本变量(如名称、电子邮件和密码)传递到node.js以插入SQLDB吗 <EditText android:id="@+id/editTextreg5" android:layout_wi

我已经创建了android应用程序,它使用Bluemix SQLDB服务。为此,我使用node.js与SQL数据库交互。为了让我的android应用程序与node.js交互,我使用RESTful API,因为我需要在SQL数据库中存储编辑文本参数。有人能帮助我如何将编辑文本变量(如名称、电子邮件和密码)传递到node.js以插入SQLDB吗

 <EditText
        android:id="@+id/editTextreg5"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"

        android:ems="10"
        android:hint="Full Name"
        android:layout_marginRight="15dp"
        android:layout_marginLeft="15dp"
        android:layout_marginTop="20dp"
        android:textColor="#000000"
        android:textSize="20dp"
        android:inputType="textPersonName" >
        <requestFocus />
    </EditText>



    <EditText
        android:id="@+id/editTextreg"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"

        android:ems="10"
        android:hint="Short Id   @ibm.com"
        android:layout_marginRight="15dp"
        android:layout_marginLeft="15dp"
        android:layout_marginTop="20dp"
        android:textColor="#000000"
        android:textSize="20dp"
        android:inputType="textEmailAddress" >
        <requestFocus />
    </EditText>



    <EditText
        android:id="@+id/editTextreg2"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:ems="10"
        android:hint="Password"
        android:layout_marginRight="15dp"
        android:layout_marginLeft="15dp"
        android:textColor="#000000"
        android:textSize="20dp"
        android:inputType="textPassword" />

//在此之后,它应该使用RESTAPI通过node.js连接到Bluemix中的SQLDB服务中。

查看这个关于如何从Java连接到SQLDB的示例项目。

可能值得一看这个开发人员工作问题


他们使用一个定制的node.js应用程序在Android设备发出适当的REST调用后连接到SQL DB。

是的,这是针对Web应用程序的,而不是针对移动应用程序的。正如我所知,我们不能直接从android应用程序连接到Bluemix SQLDB,因为我使用RESTAPI/node.js连接SQLDB。您能告诉我如何通过RESTAPI向SQLDB发送或插入编辑文本字段吗?。我已经从node.js连接到SQLDB,现在我需要在我的android应用程序到node之间连接,jsI将创建一个REST API,然后从你的android应用程序调用REST API。你能告诉我如何通过RESTAPI将这些edittext字段(如名称、电子邮件和密码)发送到node.js吗?因为我是初学者…看看这篇文章
   public class Regisrtation_page extends Activity {

   protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_regisrtation_page);
    Button breg1 = (Button) findViewById(R.id.buttonreg);

    breg1.setOnClickListener(new View.OnClickListener() {

        public void onClick(View v) {

            final EditText Name =(EditText) findViewById(R.id.editTextreg5);
            final EditText Email =(EditText) findViewById(R.id.editTextreg);
            final EditText Passwd =(EditText) findViewById(R.id.editTextreg2);