Remove 3G icons from Android 2.1 mobile devices

Source: Internet
Author: User

For Android 2.1The attractive elements such as the System and the 7 inch touch screen make people look forward to the actual use experience of T7, but the actual use experience is not as perfect as imagined. It must be related to the multi-task running of the Android system. Parallel Running of multiple programs will definitely affect the overall running speed. In addition, the hardware configuration of T7 cannot be removed. The maximum frequency of the T7 processor is about MHz, and the running speed is quite good. When there are more open programs, it slows down ......
If you think the running speed is slow, open "Advanced Task Manager" and close unnecessary programs to improve the usage speed. There are a lot of apps in the Android system itself and the software market, so I won't try them all here. I will use several main apps to test the user experience.

Today, the mobile phone, 3G, and other signal images in the status bar of android 2.1 are removed, because android 2.1 is used as a MID terminal, and the mobile phone module is not needed. The signal is not harmonious on the status bar.

Directory:

 
 
  1. frameworks/base/services/java/com/android/server/status/StatusBarPolicy.java 

It mainly includes two parts:

1) Remove the following code about the mobile phone signal in private StatusBarPolicy (Context context, StatusBarService service ).

 
 
  1.  /* phone_signal  
  2.         mPhone = (TelephonyManager)context.getSystemService(Context.TELEPHONY_SERVICE);  
  3.         mPhoneData = IconData.makeIcon("phone_signal",  
  4.                 null, com.android.internal.R.drawable.stat_sys_signal_null, 0, 0);  
  5.         mPhoneIcon = service.addIcon(mPhoneData, null);  
  6.  
  7.         // register for phone state notifications.  
  8.         ((TelephonyManager)mContext.getSystemService(Context.TELEPHONY_SERVICE))  
  9.                 .listen(mPhoneStateListener,  
  10.                           PhoneStateListener.LISTEN_SERVICE_STATE  
  11.                          | PhoneStateListener.LISTEN_SIGNAL_STRENGTHS  
  12.                          | PhoneStateListener.LISTEN_CALL_STATE  
  13.                         | PhoneStateListener.LISTEN_DATA_CONNECTION_STATE  
  14.                         | PhoneStateListener.LISTEN_DATA_ACTIVITY);  
  15.  
  16.         // data_connection  
  17.         mDataData = IconData.makeIcon("data_connection",  
  18.                 null, com.android.internal.R.drawable.stat_sys_data_connected_g, 0, 0);  
  19.         mDataIcon = service.addIcon(mDataData, null);  
  20.         service.setIconVisibility(mDataIcon, false);  
  21. */  
  22.  
  23. /*   mCdmaRoamingIndicatorIconData = IconData.makeIcon("cdma_eri",  
  24.                 null, com.android.internal.R.drawable.stat_sys_roaming_cdma_0, 0, 0);  
  25.         mCdmaRoamingIndicatorIcon = service.addIcon(mCdmaRoamingIndicatorIconData, null);  
  26.         service.setIconVisibility(mCdmaRoamingIndicatorIcon, false);  */ 

(2) Remove the filter Signal

 
 
  1. // Filter. addAction (TelephonyIntents. ACTION_SIM_STATE_CHANGED );
  2. There is also the code in the Acceptance Method onReceive (Context context, Intent intent)
  3. /* Else if (action. equals (TelephonyIntents. ACTION_SIM_STATE_CHANGED )){
  4. UpdateSimState (intent );
  5. }*/

Build an Android Development Environment

Install Android SDK 2.0 and 2.1

Android Activity and Intent mechanism learning notes

Security Foresight: mobile device security protection cannot be ignored

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.