&nbsp; &nbsp;&nbsp; &nbsp;osw.close();&nbsp;<br style="word-wrap:break-word;">
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;fOut.close();&nbsp;<br style="word-wrap:break-word;">
} catch (IOException e) {&nbsp;<br style="word-wrap:break-word;">
&nbsp; &nbsp;&nbsp;&nbsp;e.printStackTrace();&nbsp;<br style="word-wrap:break-word;">
&nbsp;&nbsp;}&nbsp;<br style="word-wrap:break-word;">
}&nbsp;<br style="word-wrap:break-word;">
&nbsp;&nbsp;}<br style="word-wrap:break-word;">
163 android 判断不可卸载的程序<br style="word-wrap:break-word;">
PackageManager mPm = getPackageManager();<br style="word-wrap:break-word;">
List&lt;ApplicationInfo&gt; installedAppList =&nbsp;<br style="word-wrap:break-word;">
mPm.getInstalledApplications(PackageManager.GET_UNINSTALLED_PACKAGES);<br style="word-wrap:break-word;">
********************************<br style="word-wrap:break-word;">
for (ApplicationInfo appInfo :installedAppList) {<br style="word-wrap:break-word;">
boolean flag = false;<br style="word-wrap:break-word;">
if ((appInfo.flags &amp;ApplicationInfo.FLAG_UPDATED_SYSTEM_APP) != 0){<br style="word-wrap:break-word;">
&nbsp; &nbsp;// Updated system app<br style="word-wrap:break-word;">
&nbsp; &nbsp; flag = true;<br style="word-wrap:break-word;">
} else if ((appInfo.flags &amp; ApplicationInfo.FLAG_SYSTEM) == 0) {<br style="word-wrap:break-word;">
// Non-system app<br style="word-wrap:break-word;">
flag = true;<br style="word-wrap:break-word;">
}<br style="word-wrap:break-word;">
if (flag) {<br style="word-wrap:break-word;">
appList.add(appInfo);<br style="word-wrap:break-word;">
}<br style="word-wrap:break-word;">
}<br style="word-wrap:break-word;">
164 android 判断是否飞行模式<br style="word-wrap:break-word;">
boolean isEnabled = Settings.System.getInt(<br style="word-wrap:break-word;">
context.getContentResolver(),&nbsp;<br style="word-wrap:break-word;">
Settings.System.AIRPLANE_MODE_ON, 0) == 1;
</div>

<div class="article_social">
<div class="article_like">



<button class="btn btn-large btn-fav" id="mydoc_like" data_id="1397286499090"><i class="icon-star-empty"></i> 收藏</button>

</div>
</div>

</div>
</div>

<div id="myLoginModal" class="modal hide fade">
<div class="modal-header">
<a class="close" data-dismiss="modal">×</a>
<h3>用户登陆</h3>
</div>
<div class="modal-body">
<form method="post" action="http://m.open-open.com/m/members/loginin" class="form-horizontal" id="login-form">
<div class="control-group">
<input id="xlEmail" name="email" placeholder="邮箱或用户名" type="text">
</div>
<div class="control-group">
<input id="xlPassword" name="password" placeholder="密码" type="password">
</div>
<div class="control-group">
<button type="submit" class="btn btn-primary">
&nbsp;&nbsp;登&nbsp;&nbsp;&nbsp;陆&nbsp;&nbsp;
</button>
</div>
</form>
</div>
</div>

<div class="read-later-alert">
</div>
<div>


</div>
<style type="text/css">
.btn-large {
padding: 0;
}
.load-fail {
display: none;
}
</style>
<script src="http://m.open-open.com/m/static/highlight.js"></script>
<script type="text/javascript">
$('table').each(function(i) {
var size = $(this).children().size();
if (size > 1) {
$(this).attr('class',"table table-bordered");
} else if (size == 1) {
var e11 = $(this).children(":first");
var e1 = e11[0];
var name = e1.nodeName.toLowerCase();
if ("tbody" == name) {
if (e11.children().size() > 1) {
$(this).attr('class',"table table-bordered");
}
}
}
});
function async_do_doclike_article(ctx) {
$("#mydoc_like").click(function() {
var t = $(this).attr("data_id"),
e = $(this);
e.text("请稍等..."),
$.ajaxSetup({
headers: {
"X-CSRF-Token": $('meta[name="csrf-token"]').attr("content")
},
error: function() {
return ! 1
}
}),
$.post(ctx+"/lib/view/favadd", {
id: t
},
function(t) {
var r=eval("("+t+")");
"success" == r.status ? e.html("<i class='icon-heart-empty'></i> 已收藏") : "nologin" == r.status ? ($("#myLoginModal").modal("show"), e.html("<i class='icon-heart-empty'></i> 收藏")) : "false" == r.status && e.html("<i class='icon-star-empty'></i> 收藏")
})
})
}
async_do_doclike_article('/m');
$('pre').each(function(i, e) {
hljs.highlightBlock(e, "<span class='indent'> </span>", false)
});

</script>


</div>

<div class="footer">
<p>
Powered by OPEN-OPEN.COM
</p>
</div>


<script>
(function(){
var bp = document.createElement('script');
bp.src = '//push.zhanzhang.baidu.com/push.js';
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(bp, s);
})();
</script>



Prev | Next
Pg.: 1 ... 6 7 8 9 10 11 12


Back to home | File page

Subscribe | Register | Login | N