1.傳統藍芽搜尋,如果版本在6.0以上,則須在androidmanifest.xml加入
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
2017年7月24日 星期一
2017年7月21日 星期五
2017年7月13日 星期四
交通罰則
紅燈右轉不等於闖紅燈 法官判警方敗訴
http://www.chinatimes.com/realtimenews/20131231001943-260402以公務員文書登載不實將他起訴
https://news.tvbs.com.tw/local/138494
交警開單 男怨:沒證據
http://www.appledaily.com.tw/appledaily/article/headline/20120609/34288456/開單告發闖紅燈 警察沒證據、判免罰
http://news.ltn.com.tw/news/society/breakingnews/1775923「眼睛就是攝影機」 警抓闖紅燈無效
http://news.ltn.com.tw/news/society/paper/8314672017年6月15日 星期四
Android 在別的畫面(app) 去呼叫特定已開啟的App
AndroidMainfest.xml
-------------------
<activity android:name=".main.Activity1"
android:configChanges="keyboard|keyboardHidden|orientation" android:label="@string/app_name"
android:screenOrientation="portrait"
android:launchMode="singleInstance" <= 此行絕對不能加,會造成呼叫其他的app
> <!-- Prevents authorization dialog from closing when screen orientation is changed -->
<intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity>
-------------------可用BroadcastReceiver來收到廣播,再行處理,此方法每次呼叫 不會onCreate其activityIntent intent = new Intent(); intent.setComponent(new ComponentName("com.captain.voice.alexa.mobile","com.captain.voice.alexa.mobile.main.Audio_Record")); intent.setFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT); startActivity(intent);
網頁動畫效果
1.斜角度移動:
<div id="move_bar2" style="position:absolute;z-index:1;left:290px;top:240px">
<img src="images/n/demo/mask1_back.jpg" style="width:40%;"/>
</div>
---------------------------------
$("#move_bar2").animate({left: "-=110",top: "+=60" }, 500);
<div id="move_bar2" style="position:absolute;z-index:1;left:290px;top:240px">
<img src="images/n/demo/mask1_back.jpg" style="width:40%;"/>
</div>
---------------------------------
$("#move_bar2").animate({left: "-=110",top: "+=60" }, 500);
2017年6月8日 星期四
OKHTTP 重要教學
1.同步與非同步傳輸模式
https://github.com/square/okhttp/wiki/Recipes
非同步(asy) 可以捕捉request失敗的狀況,再重傳.
2,Application與Network 的Response監聽方式
https://github.com/square/okhttp/wiki/Interceptors
Application較為正常
https://github.com/square/okhttp/wiki/Recipes
非同步(asy) 可以捕捉request失敗的狀況,再重傳.
2,Application與Network 的Response監聽方式
https://github.com/square/okhttp/wiki/Interceptors
Application較為正常
2017年6月1日 星期四
訂閱:
文章 (Atom)