07 2015 档案
摘要:Activity有四种启动模式,默认为标准型。还是先给出表格,看的更加清楚。 "standard"可以有多个相同实例,并且每次启动一个Activity,系统总是在任务栈中创建一个Activity新的实例并且为它设置意图的路径。 "singleTop"的多个实例是有条件的,如果一个Activity的实
阅读全文
摘要:1,调web浏览器 Uri myBlogUri = Uri.parse("http://xxxxx.com"); returnIt = new Intent(Intent.ACTION_VIEW, myBlogUri); //调用内置浏览器Uri u = Uri.parse(resultString
阅读全文
摘要:同样是由于SDK版本引发的问题。版本高的更加严谨,限制更多。 Note: If your application targets API level 13 or higher (as declared by the minSdkVersion and targetSdkVersion attribu
阅读全文
摘要:前两天按教学视频在MainActivity中写完ContentProvider后在Manifest中配置了如下代码 <provider android:name="test.provider.SQLiteProvider" android:authorities="test.provider" />
阅读全文