發表文章

目前顯示的是 2015的文章

Android - Remove Logo on Action Bar for all Activities

1. Open AndroidManifest.xml in project. 2. Find <application> tag. 3. Add a property, android:logo="@android:color/transparent", to <application> like below: <application android:allowbackup="true"         android:icon="@drawable/ic_launcher"         android:label="@string/my_app_name"         android:logo="@android:color/transparent"         android:theme="@style/AppTheme" >        ...... // your custom code. Follow the steps, you can do it too now. If you want to remove the logo on action bar in specific activity, you should add the property in the specific <activity> you want, not in the <application> tag.

All MIME Type of Intent Filter for Intent.setType(String type) | Android

圖片
1.  Create an Intent to Send Data from an Activity 2. .... Intent intent = new Intent( Intent.ACTION_SEND ); intent.setType("text/plain");  .... or u se */* if the MIME type is unknown. btw,  email.setType(" message/rfc822 ");  " message/rfc822 " is to  FIND SOME APP for SEND EMAIL as Gmail or other like that. Here are some common MIME types below: image/jpeg audio/mpeg4-generic text/html  audio/mpeg audio/aac audio/wav audio/ogg audio/midi audio/x-ms-wma video/mp4 video/x-msvideo video/x-ms-wmv image/png image/jpeg image/gif .xml ->text/xml .txt -> text/plain .cfg -> text/plain .csv -> text/plain .conf -> text/plain .rc -> text/plain .htm -> text/html .html -> text/html .pdf -> application/pdf .apk -> application/vnd.android.package-archive A LARGER MIME Type List .3dm x-world/x-3dmf .3dmf x-world/x-3dmf .a application/octet-stream .aab application/x-authorware-bin .aam applica