How to display list of images in ListView in android? - Stack Overflow
To get the data from the database, you'd use a
SimpleCursorAdapter.I think you can directly bind the
SimpleCursorAdapterto aListView- if not, you can create a custom adapter class that extends SimpleCursorAdapter with a customViewBinderthat overridessetViewValue.Look at the Notepad tutorial to see how to use a
SimpleCursorAdapter.
http://p.someok.com/index.php?q=uggc%3A%2F%2Foybt.enqvbnpgvirlnx.pbz%2F&hl=3ff
How to display list of images in ListView in android? - Stack Overflow
java.lang.OutOfMemoryError: bitmap size exceeds VM budget - Android Developers | Google Groups
- It seems that there my be a bug, memory leak with the BitmapFactory
when decoding, and reading bitmaps from file. I, and many other
developers have noticed similar problems to what you describe. I
haven't been able to get any official confirmation that this is a
known bug, but it looks like a bug to me. I have been able to mitigate
this problem in my code by using bitmap.recycle and object pooling,
but I have not been able to get rid of this problem entrirely.
Android ApiDemos/ScrollView2 添加自动滚动和智能焦点切换 - mwjian - JavaEye技术网站
Android应用协调器------Intent - 第六元素 - JavaEye技术网站
1,掉web浏览器
Uri myBlogUri = Uri.parse("http://kuikui.javaeye.com");
returnIt = new Intent(Intent.ACTION_VIEW, myBlogUri);
2,地图
Uri mapUri = Uri.parse("geo:38.899533,-77.036476");
returnIt = new Intent(Intent.ACTION_VIEW, mapUri);
3,调拨打电话界面
Uri telUri = Uri.parse("tel:100861");
returnIt = new Intent(Intent.ACTION_DIAL, telUri);
4,直接拨打电话
Uri callUri = Uri.parse("tel:100861");
returnIt = new Intent(Intent.ACTION_CALL, callUri);
5,卸载
Uri uninstallUri = Uri.fromParts("package", "xxx", null);
returnIt = new Intent(Intent.ACTION_DELETE, uninstallUri);
6,安装
Uri installUri = Uri.fromParts("package", "xxx", null);
returnIt = new Intent(Intent.ACTION_PACKAGE_ADDED, installUri);
7,播放
Uri playUri = Uri.parse("file:///sdcard/download/everything.mp3");
returnIt = new Intent(Intent.ACTION_VIEW, playUri);
8,掉用发邮件
Uri emailUri = Uri.parse("mailto:shenrenkui@gmail.com");
returnIt = new Intent(Intent.ACTION_SENDTO, emailUri);
9,发邮件
returnIt = new Intent(Intent.ACTION_SEND);
String[] tos = { "shenrenkui@gmail.com" };
String[] ccs = { "shenrenkui@gmail.com" };
returnIt.putExtra(Intent.EXTRA_EMAIL, tos);
returnIt.putExtra(Intent.EXTRA_CC, ccs);
returnIt.putExtra(Intent.EXTRA_TEXT, "body");
returnIt.putExtra(Intent.EXTRA_SUBJECT, "subject");
returnIt.setType("message/rfc882");
Intent.createChooser(returnIt, "Choose Email Client");
10,发短信
Uri smsUri = Uri.parse("tel:100861");
returnIt = new Intent(Intent.ACTION_VIEW, smsUri);
returnIt.putExtra("sms_body", "shenrenkui");
returnIt.setType("vnd.android-dir/mms-sms");
11,直接发邮件
Uri smsToUri = Uri.parse("smsto://100861");
returnIt = new Intent(Intent.ACTION_SENDTO, smsToUri);
returnIt.putExtra("sms_body", "shenrenkui");
12,发彩信
Uri mmsUri = Uri.parse("content://media/external/images/media/23");
returnIt = new Intent(Intent.ACTION_SEND);
returnIt.putExtra("sms_body", "shenrenkui");
returnIt.putExtra(Intent.EXTRA_STREAM, mmsUri);
returnIt.setType("image/png");
用获取到的Intent直接调用startActivity(returnIt)就ok了。
Android模拟器SD Card映像文件使用方法 - 海边的房子 - JavaEye技术网站
执行mksdcard命令就可以。
mksdcard参数如下:
mksdcard: create a blank FAT32 image to be used with the Android emulator
usage: mksdcard [-l label] <size> <file>
if <size> is a simple integer, it specifies a size in bytes
if <size> is an integer followed by 'K', it specifies a size in KiB
if <size> is an integer followed by 'M', it specifies a size in MiB
例子: mksdcard -l sdcard 1024M d:/sdcard.img


如何在Android当中显示网络图片 - 研究Android技术,以及和Android相关的任何盈利模式 - JavaEye技术网站
Posted from Diigo. The rest of my favorite links are here.
没有评论:
发表评论