http://inloop.github.io/apk-method-count/
APK的Method數量有限制。
用這個網頁可以計算。
APK的Method數量有限制。
用這個網頁可以計算。
把自己的心得跟做過的東西寫下來。重點是不要跟大家複製貼上的內容一樣,要自己做過思考過整理過的東西。 e-Mail:strength0179@gmail.com
<intent-filter>
<action android:name="android.intent.action.SEND"/>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);//!!!關鍵在這個Flag
intent.addCategory(Intent.CATEGORY_DEFAULT);
ComponentName cn = new ComponentName("tw.android.demo2", "tw.android.demo2.MainActivity2");
intent.setComponent(cn);
startActivity(intent);
List<Address> addresses = null; try { addresses = geocoder.getFromLocation( location.getLatitude(), location.getLongitude(), 1); } catch (IOException ioException) { // Catch network or other I/O problems. } catch (IllegalArgumentException illegalArgumentException) { } }(其他時候,Google Guide的範例程式碼很繁雜!但這篇的卻是相較之下精簡,而我上面貼的這段是更精簡。因為這個功能並不需要多做無謂的說明...)
Bitmap b = Bitmap.createBitmap(100, 100, Bitmap.Config.ARGB_8888); Canvas c = new Canvas(b);Post時,只需要在lockCanvas所取到的Canvas上「畫一次」Bitmap(b)即可。