android ormlite登录注册的例子(3)
来源:未知 责任编辑:责任编辑 发表时间:2014-01-25 11:34 点击:次
}
}
});
register.setOnClickListener(new OnClickListener()
{
@Override
public void onClick(View v)
{
Intent intent =new Intent();
intent.setClass(OrmliteLoginDemoActivity.this, register.class);
startActivity(intent);
}
});
}
public void alert(String str)
{
Toast.makeText(this, str, Toast.LENGTH_SHORT).show();
}
}
然后是注册的
Java代码
package com.cng;
import java.sql.SQLException;
import java.util.List;
import com.cng.dao.UsersDao;
import com.cng.model.UsersEntity;
import com.cng.utils.DataHelper;
import com.j256.ormlite.android.apptools.OrmLiteBaseActivity;
import com.j256.ormlite.dao.Dao;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
public class register extends OrmLiteBaseActivity<DataHelper>
{
private EditText register_username;
private EditText register_password;
private EditText register_repassword;
private Button register_btn;
@Override
protected void onCreate(Bundle savedInstanceState)
相关新闻>>
最新推荐更多>>>
- 发表评论
-
- 最新评论 更多>>