登录
首页 » Android » Android 2.2一个简易记事本 及联系人的开发

Android 2.2一个简易记事本 及联系人的开发

于 2022-04-26 发布 文件大小:39.53 MB
0 147
下载积分: 2 下载次数: 1

代码说明:

本案例是自己上课时写出来的,里面有两个小案例,一个简易记账本,一个读取联系人。仅供参考。写的不是很完整 但可以运行 我用的是android2.2版本的

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • FingerPaint
    说明:  使用android手机系统实现的手绘功能(Implementation of the system using android phone features hand-painted)
    2011-03-29 08:34:26下载
    积分:1
  • android系统 ContactsProvider模块源码下载
    android系统 ContactsProvider模块源码下载
    2014-10-27下载
    积分:1
  • android 界面开发-高仿美团界面 源码下载
    android界面,高仿美团界面效果
    2015-04-20下载
    积分:1
  • android 图片压缩demo
    android平台的图片压缩demo,通过对质量压缩,像素压缩等方法实现,以及第三方库bitherlibjni来进行极限压缩,基本压缩到原图片的十分之一左右,具体数据可以根据项目需求改动
    2022-03-19 13:57:25下载
    积分:1
  • cai nay duoc
    2022-08-11 11:34:01下载
    积分:1
  • 获取系统图库的图片,调用系统相机,并生成预览,
    ** * 这个是进入相册显示所有图片的界面 *  * @author king * @QQ:595163260 * @version 2014年10月18日  下午11:47:15 */public class AlbumActivity extends Activity {//显示手机里的所有图片的列表控件private GridView gridView;//当手机里没有图片时,提示用户没有图片的控件private TextView tv;//gridView的adapterprivate AlbumGridViewAdapter gridImageAdapter;//完成按钮private Button okButton;// 返回按钮private Button back;// 取消按钮private Button cancel;private Intent intent;// 预览按钮private Button preview;private Context mContext;private ArrayList dataList;private AlbumHelper helper;public static List contentList;public static Bitmap bitmap;protected void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState);setContentView(Res.getLayoutID("plugin_camera_album"));PublicWay.activityList.add(this);mContext = this;//注册一个广播,这个广播主要是用于在GalleryActivity进行预览时,防止当所有图片都删除完后,再回到该页面时被取消选中的图片仍处于选中状态IntentFilter filter = new IntentFilter("data.broadcast.action");  registerReceiver(broadcastReceiver, filter);          bitmap = BitmapFactory.decodeResource(getResources(),Res.getDrawableID("plugin_camera_no_pictures"));        init();initListener();//这个函数主要用来控制预览和完成按钮的状态isShowOkBt();}BroadcastReceiver broadcastReceiver = new BroadcastReceiver() {           @Override          public void onReceive(Context context, Intent intent) {          //mContext.unregisterReceiver(this);            // TODO Auto-generated method stub          gridImageAdapter.notifyDataSetChanged();        }      };  // 预览按钮的监听private class PreviewListener implements OnClickListener {public void onClick(View v) {if (Bimp.tempSelectBitmap.size() > 0) {intent.putExtra("position", "1");intent.setClass(AlbumActivity.this, GalleryActivity.class);startActivity(intent);}}}// 完成按钮的监听private class AlbumSendListener implements OnClickListener {public void onClick(View v) {overridePendingTransition(R.anim.activity_translate_in, R.anim.activity_translate_out);intent.setClass(mContext, MainActivity.class);startActivity(intent);finish();}}// 返回按钮监听private class BackListener implements OnClickListener {public void onClick(View v) {intent.setClass(AlbumActivity.this, ImageFile.class);startActivity(intent);}}// 取消按钮的监听private class CancelListener implements OnClickListener {public void onClick(View v) {Bimp.tempSelectBitmap.clear();intent.setClass(mContext, MainActivity.class);startActivity(intent);}}// 初始化,给一些对象赋值private void init() {helper = AlbumHelper.getHelper();helper.init(getApplicationContext());contentList = helper.getImagesBucketList(false);dataList = new ArrayList();for(int i = 0; i= PublicWay.num) {toggleButton.setChecked(false);chooseBt.setVisibility(View.GONE);if (!removeOneData(dataList.get(position))) {Toast.makeText(AlbumActivity.this, Res.getString("only_choose_num"),200).show();}return;}if (isChecked) {chooseBt.setVisibility(View.VISIBLE);Bimp.tempSelectBitmap.add(dataList.get(position));okButton.setText(Res.getString("finish") "(" Bimp.tempSelectBitmap.size() "/" PublicWay.num ")");} else {Bimp.tempSelectBitmap.remove(dataList.get(position));chooseBt.setVisibility(View.GONE);okButton.setText(Res.getString("finish") "(" Bimp.tempSelectBitmap.size() "/" PublicWay.num ")");}isShowOkBt();}});okButton.setOnClickListener(new AlbumSendListener());}private boolean removeOneData(ImageItem imageItem) {if (Bimp.tempSelectBitmap.contains(imageItem)) {Bimp.tempSelectBitmap.remove(imageItem);okButton.setText(Res.getString("finish") "(" Bimp.tempSelectBitmap.size() "/" PublicWay.num ")");return true;}return false;}public void isShowOkBt() {if (Bimp.tempSelectBitmap.size() > 0) {okButton.setText(Res.getString("finish") "(" Bimp.tempSelectBitmap.size() "/" PublicWay.num ")");preview.setPressed(true);okButton.setPressed(true);preview.setClickable(true);okButton.setClickable(true);okButton.setTextColor(Color.WHITE);preview.setTextColor(Color.WHITE);} else {okButton.setText(Res.getString("finish") "(" Bimp.tempSelectBitmap.size() "/" PublicWay.num ")");preview.setPressed(false);preview.setClickable(false);okButton.setPressed(false);okButton.setClickable(false);okButton.setTextColor(Color.parseColor("#E1E0DE"));preview.setTextColor(Color.parseColor("#E1E0DE"));}}public boolean onKeyDown(int keyCode, KeyEvent event) {if (keyCode == KeyEvent.KEYCODE_BACK) {intent.setClass(AlbumActivity.this, ImageFile.class);startActivity(intent);}return false;}@Overrideprotected void onRestart() {isShowOkBt();super.onRestart();}
    2014-12-10下载
    积分:1
  • xmpp通信
    用于xmpp通信协议的  安卓客户端程序,便于开发者迅速使用,而且可以直接导入到eclipse中,非常方便,代码的质量很高
    2022-03-14 16:59:40下载
    积分:1
  • dictionary
    android英语字典是手机中经常使用的应用。因此,在本文将结合Android来讨论如何实现一个Android版的英文词典。实现英文词典的方法很多。在本文使用了SQLite数据库来保存英文单词信息。系统通过SQLite数据库中保存的单词信息来查找到与指定英文对应的中文信息。(Android Dictionary of English is often used in mobile phone applications. Therefore, in this paper will be combined with Android to discuss how to implement a Android version of the English dictionary. A lot of ways to realize the English dictionary. In this paper, we use the SQLite to save the English word information. The system through the SQLite to save the word information to find the corresponding Chinese information with the specified english.)
    2016-06-13 09:48:48下载
    积分:1
  • cqwdc20
    详细介绍了cdma通信系统功率控制的算法,并用matlab对其进行了仿真(In this paper, the power control algorithm of the cdma communication system is introduced in detail, and the simulation is carried out by matlab.)
    2019-03-28 14:51:42下载
    积分:1
  • android volley简单使用 示例代码
    android volley简单使用 示例代码
    2015-04-22下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载