This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Demonstration of the use of a CursorLoader to load and display contacts | |
| * data in a fragment. | |
| */ | |
| public class LoaderCursor extends Activity { | |
| @Override | |
| protected void onCreate(Bundle savedInstanceState) { | |
| super.onCreate(savedInstanceState); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.HashMap; | |
| import java.util.Map; | |
| import android.app.Activity; | |
| import android.os.Bundle; | |
| import android.view.View; | |
| import android.widget.AdapterView; | |
| import android.widget.ArrayAdapter; | |
| import android.widget.ListView; | |
| import android.widget.Toast; | |
| import android.widget.AdapterView.OnItemClickListener; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # built application files | |
| *.apk | |
| *.ap_ | |
| # files for the dex VM | |
| *.dex | |
| # Java class files | |
| *.class |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8"?> | |
| <layer-list | |
| xmlns:android="http://schemas.android.com/apk/res/android"> | |
| <item> | |
| <shape android:dither="true" android:shape="rectangle"> | |
| <corners android:radius="2.0dip" /> | |
| <solid android:color="#ffcccccc" /> | |
| </shape> | |
| </item> | |
| <item android:bottom="2.0dip"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Intent intent = new Intent(); | |
| intent.setAction(Intent.ACTION_VIEW); | |
| intent.addCategory(Intent.CATEGORY_DEFAULT); | |
| intent.addCategory(Intent.CATEGORY_BROWSABLE); | |
| intent.setData(Uri.parse("bdvideo://play/bdhd://375936432|681A2F2488B4A1F2DC13B177ADDA03C1|幸福的面条01.HDTV.rmvb")); | |
| startActivity(intent); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 139 private boolean isXXXUiExist(Context context) { | |
| 140 String packageName = context.getPackageName(); | |
| 141 ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); | |
| 142 try { | |
| 143 List<RunningTaskInfo> runningTasks = activityManager.getRunningTasks(100); | |
| 144 if (runningTasks == null || runningTasks.isEmpty()) { | |
| 145 return false; | |
| 146 } | |
| 147 for (RunningTaskInfo info : runningTasks) { | |
| 148 if (packageName.equals(info.baseActivity.getPackageName())) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # built application files | |
| bin/* | |
| gen/* | |
| # files for the dex VM | |
| *.dex | |
| # Java class files | |
| *.class |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 08-24 21:15:27.128 V/RILC ( 206): processWakeupCallback | |
| 08-24 21:15:27.128 D/RILJ ( 776): [UNSL]< UNSOL_RESPONSE_CALL_STATE_CHANGED | |
| 08-24 21:15:27.128 D/RILJ ( 776): [2068]> GET_CURRENT_CALLS | |
| 08-24 21:15:27.138 V/RILJ ( 776): Incoming UUS : NOT present! | |
| 08-24 21:15:27.138 D/RILJ ( 776): InCall VoicePrivacy is disabled | |
| 08-24 21:15:27.138 D/RILJ ( 776): [2067]< GET_CURRENT_CALLS [id=1,ACTIVE,toa=129,norm,mo,0,voc,noevp,,cli=1,,0] | |
| 08-24 21:15:27.138 D/CDMA ( 776): Event EVENT_POLL_CALLS_RESULT Received | |
| 08-24 21:15:27.138 D/RIL_SWITCH( 206): CT_C+W_enable is NULL, set the value to disable. | |
| 08-24 21:15:27.138 D/RIL_SWITCH( 206): ril switch GO HTC RIL | |
| 08-24 21:15:27.138 V/RILJ ( 776): Incoming UUS : NOT present! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 08-21 01:00:28.771 D/CDMA ( 1796): SharedPreferences, getVoiceMailNumber:13350060990 | |
| 08-21 01:00:28.771 D/PHONE ( 1796): VM: PhoneSubInfo.getVoiceMailNUmber: | |
| 08-21 01:00:28.771 D/CDMA ( 1796): SharedPreferences, getVoiceMailNumber:13350060990 | |
| 08-21 01:00:28.771 D/PHONE ( 1796): VM: PhoneSubInfo.getVoiceMailNUmber: | |
| 08-21 01:00:29.001 I/RIL_SWITCH( 1452): HTC_RIL Unsolicited Response = 1009 | |
| 08-21 01:00:29.001 V/RILJ ( 1796): [UNSL]< UNSOL_SIGNAL_STRENGTH {2, 5, 101, 75, 98, 35, 1, 0, 0, 0, 0, 0, 0, 0} | |
| 08-21 01:00:29.001 D/CDMA ( 1796): [CdmaServiceStateTracker] signalBar:1 | |
| 08-21 01:00:29.001 D/CDMA ( 1796): [CdmaServiceStateTracker] evdoSignalBar=4 | |
| 08-21 01:00:29.001 D/CDMA ( 1693): getHdrSignalLevel:4, maxCdmaLevel:4 | |
| 08-21 01:00:29.912 D/CDMA ( 1796): SharedPreferences, getVoiceMailNumber:13350060990 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class CleanUtil { | |
| private CleanUtil() { | |
| } | |
| public static void unbindDrawables(View view) { | |
| if (view.getBackground() != null) { | |
| view.getBackground().setCallback(null); | |
| view.setBackground(null); | |
| if (view instanceof ImageView) { | |
| ((ImageView) view).setImageDrawable(null); |