摘要: Android 使用MMS彩信或者Gmail发送图片Intent i = new Intent(Intent.ACTION_SEND); i.putExtra(Intent.EXTRA_STREAM,imageUri);//这里必须是图片的uri i.setType("image/jpeg"); startActivity(Intent.createChooser(i,TITLE_TIP));//TITLE_TIP是弹出的选择程序处理的文字标题==================================================Android 使用短信或者Gm 阅读全文
posted @ 2012-02-13 16:50 Lee_Alvin 阅读(193) 评论(0) 推荐(0) 编辑
摘要: Android 错误之 android java.lang.ClassCastException android.app.Application 定义类 DemoApp , 结果 Activity 调用始终报类错郁闷呀! class DemoApp extends Application{ } 翻看N多页百度无果,哎谷歌偶看老外遇到过硬着头皮看发现android:name=".ApiDemoApp"少指定Application类名。 <application android:icon="@drawable/icon" android:label=& 阅读全文
posted @ 2012-02-13 16:12 Lee_Alvin 阅读(969) 评论(0) 推荐(0) 编辑
摘要: 设置Activity的属性,两种方式:1:在manifest文件中指定的activity增加属性android:theme = "@android:style/Theme.CustomDialog"2:在程序中增加语句setTheme(R.style.Theme_CustomDialog);在onCreate()事件中增加setTheme(),必须在setContentView()之前,否则指定的Style不能生效。http://developer.android.com/guide/topics/resources/available-resources.html#sty 阅读全文
posted @ 2012-02-13 15:37 Lee_Alvin 阅读(163) 评论(0) 推荐(0) 编辑
摘要: --------------------------背景--------------------------------------------Activity中有个Popupwindow.想在Adapter中的getView中设置Checbox的点击事件时,就显示与隐藏这个Popupwindow但是因为Adapter与Activity不是同一个类,所以操作有点麻烦..--------------------------分割线--------------------------------------------类: Adapter 继承 BaseAdapter类:Activity 继承Act 阅读全文
posted @ 2012-02-13 15:13 Lee_Alvin 阅读(1200) 评论(0) 推荐(0) 编辑