<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>clickforce &#8211; 記下來</title>
	<atom:link href="https://noter.tw/tag/clickforce/feed/" rel="self" type="application/rss+xml" />
	<link>https://noter.tw</link>
	<description>一路上踩到的坑、遇到的問題，一點一滴記下來，希望能幫助到需要的人~</description>
	<lastBuildDate>Wed, 22 Feb 2023 09:00:12 +0000</lastBuildDate>
	<language>zh-TW</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.6.3</generator>

<image>
	<url>https://noter.tw/wp-content/uploads/cropped-old-1130742_1920-1-32x32.jpg</url>
	<title>clickforce &#8211; 記下來</title>
	<link>https://noter.tw</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>ClickForce (MobiForce) 當機問題</title>
		<link>https://noter.tw/3588/clickforce-mobiforce-%e7%95%b6%e6%a9%9f%e5%95%8f%e9%a1%8c/</link>
					<comments>https://noter.tw/3588/clickforce-mobiforce-%e7%95%b6%e6%a9%9f%e5%95%8f%e9%a1%8c/#comments</comments>
		
		<dc:creator><![CDATA[黃小蛙]]></dc:creator>
		<pubDate>Wed, 02 Sep 2015 02:32:51 +0000</pubDate>
				<category><![CDATA[手機 App]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[ads]]></category>
		<category><![CDATA[clickforce]]></category>
		<category><![CDATA[mobiforce]]></category>
		<guid isPermaLink="false">http://wazai.net/?p=3588</guid>

					<description><![CDATA[<p>這真是個浪費時間又漫長的過程，CF 推出新版後台以及新版 SDK 的時候，小蛙就下載來測試，一開始小蛙直接套在「我的股票精算師」上，但只要一套上去就當機 &#8230; 我的股票精算師的架構比較舊，想&#46;&#46;&#46;</p>
<p>這篇文章 <a rel="nofollow" href="https://noter.tw/3588/clickforce-mobiforce-%e7%95%b6%e6%a9%9f%e5%95%8f%e9%a1%8c/" data-wpel-link="internal">ClickForce (MobiForce) 當機問題</a> 最早出現於 <a rel="nofollow" href="https://noter.tw" data-wpel-link="internal">記下來</a>。</p>
]]></description>
										<content:encoded><![CDATA[<p>這真是個浪費時間又漫長的過程，CF 推出新版後台以及新版 SDK 的時候，小蛙就下載來測試，一開始小蛙直接套在「我的股票精算師」上，但只要一套上去就當機 &#8230;<br />
<span id="more-3588"></span><br />
我的股票精算師的架構比較舊，想說可能是因為這樣才當機，試了好多方法，SDK 說明文件看了又看，還是一樣的狀況 &#8230;<br />
不要太固執，先跑跑看 CF 自己的 Sample Code 吧！一跑，喵的咧！一樣只要點選「展示」，立馬當機！怎麼可能有公司直接釋出有問題的 SDK 呢？把原本用來測試的 Nexus 7 二代換成自己的手機 HTC M7 來做測試，登愣 ~ 手機可以，至於 Nexus 7 二代為什麼不行呢？看了一下 logcat 的 error</p>
<pre>09-02 10:03:23.655    3775-3954/com.clickforce.MFAD E/AndroidRuntime﹕ FATAL EXCEPTION: Thread-7730
    Process: com.clickforce.MFAD, PID: 3775
    java.lang.NullPointerException: Attempt to invoke interface method 'void com.android.internal.telephony.Phone.updateServiceLocation()' on a null object reference
            at android.os.Parcel.readException(Parcel.java:1552)
            at android.os.Parcel.readException(Parcel.java:1499)
            at com.android.internal.telephony.ITelephony$Stub$Proxy.updateServiceLocation(ITelephony.java:1900)
            at android.telephony.CellLocation.requestLocationUpdate(CellLocation.java:42)
            at com.adcustom.sdk.utils.lbs.a.a(Unknown Source)
            at com.adcustom.sdk.utils.lbs.a.&lt;init&gt;(Unknown Source)
            at com.adcustom.sdk.utils.lbs.b.run(Unknown Source)</pre>
<p>錯誤在 com.clickforce.MFAD 裡面呼叫到 null 物件造成 java.lang.NullPointerException 例外 &#8230;  好吧！看來是 ClickForce SDK 呼叫造成，小蛙想改也沒辦法，不過為什麼手機可以，Nexus 7 二代卻不行呢？看了上面的訊息跟 internal.telephony.Phone.updateServiceLocation()，剛好 Nexus 7 二代沒有通話模組，就往這個方面去猜了！<br />
<span style="line-height: 1.5em;">也許他們的 SDK 只是 beta 版，寫信去跟 CF 反應好了，並且把小蛙的猜測告訴對方，</span>得到的結果是，我們的 SDK 應該沒有問題喔，工程師使用另一台沒有通話模組的平版測試也是沒有問題的，請小蛙再看看哪裡有問題，球又丟回來了 &#8230; SDK 是 CF 的，Sample Code 是 CF 的，小蛙只是直接執行 &#8230; 會是哪裡有問題呢？<br />
上網查了一下，似乎 Lollipop (5.x) 以上有不少人回報這個問題 &#8230; 但 &#8230; 這應該也不是小蛙要去解決的吧！大膽假設棒棒糖(Lollipop)版本對於沒有通話模組的平板可能會造成的問題 &#8230; maybe &#8230; 小蛙手邊沒有其他可以升上 5.x 且沒有通話模組的平板可以測試了，不過至少測試過 3 台 Nexus 7 二代確定是不行。<br />
看著 CF 後台流量跟點擊數越來越少，新版的 SDK 又面臨當機的問題 &#8230; 難不成要先過濾如果使用者是 Nexus 7 二代就不顯示廣告 &#8230; 哀 ~ 有空再來弄了！</p>
<p>這篇文章 <a rel="nofollow" href="https://noter.tw/3588/clickforce-mobiforce-%e7%95%b6%e6%a9%9f%e5%95%8f%e9%a1%8c/" data-wpel-link="internal">ClickForce (MobiForce) 當機問題</a> 最早出現於 <a rel="nofollow" href="https://noter.tw" data-wpel-link="internal">記下來</a>。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://noter.tw/3588/clickforce-mobiforce-%e7%95%b6%e6%a9%9f%e5%95%8f%e9%a1%8c/feed/</wfw:commentRss>
			<slash:comments>5</slash:comments>
		
		
			</item>
	</channel>
</rss>
