Category:Mobile Development

  • Android system tailoring

    Time:2020-12-1

    Sometimes some unnecessary apps and system services will be used to compile Android images. Let’s cut them out.Source code directory  build/target/product/*There are a lot of *. MK files below, and the corresponding app is found to avoid modification: Android  diff–gita/target/product/core.mkb/target/product/core.mk  indexafae7c0..7b1dae7100644  —a/target/product/core.mk  +++b/target/product/core.mk  @@-27,17+27,[email protected]@PRODUCT_PACKAGES+=\  org.simalliance.openmobileapi.xml\  BasicDreams\  BlockedNumberProvider\  -BookmarkProvider\  -Browser2\  -Calendar\  CalendarProvider\  CaptivePortalLogin\  CertInstaller\  -Contacts\  DeskClock\  DocumentsUI\  DownloadProviderUi\  -Email\  ExactCalculator\  ExternalStorageProvider\  FusedLocation\  @@-54,7+49,[email protected]@PRODUCT_PACKAGES+=\  PrintSpooler\  PrintRecommendationService\  ProxyHandler\  -QuickSearchBox\  Settings\  SharedStorageBackup\  Telecom\  diff–gita/target/product/full_base.mkb/target/product/full_base.mk  index65bdf0f..da6eb4f100644  —a/target/product/full_base.mk  +++b/target/product/full_base.mk  @@-29,10+29,[email protected]@PRODUCT_PACKAGES:=\  PRODUCT_PACKAGES+=\  Galaxy4\  -HoloSpiralWallpaper\  -LiveWallpapers\  -LiveWallpapersPicker\  -MagicSmokeWallpapers\  NoiseField\  PhaseBeam\  PhotoTable  diff–gita/target/product/generic_no_telephony.mkb/target/product/generic_no_telephony.mk  index5c48358..4f9b27a100644  —a/target/product/generic_no_telephony.mk  +++b/target/product/generic_no_telephony.mk  @@-20,10+20,[email protected]@  PRODUCT_PACKAGES:=\  Bluetooth\  BluetoothMidiService\  -Camera2\  -Gallery2\  -Music\  -MusicFX\  OneTimeInitializer\  Provision\  SystemUI\  diff–gita/target/product/sdk_base.mkb/target/product/sdk_base.mk  indexfa257ae..13997ad100644  —a/target/product/sdk_base.mk  +++b/target/product/sdk_base.mk  @@-18,23+18,[email protected]@PRODUCT_PROPERTY_OVERRIDES:=  PRODUCT_PACKAGES:=\  ApiDemos\  -CubeLiveWallpapers\  CustomLocale\  Development\  -Dialer\  EmulatorSmokeTests\  Fallback\  -Gallery\  GestureBuilder\  Launcher3\  -LegacyCamera\  librs_jni\  libwnndict\  libWnnEngDic\  libWnnJpnDic\  -LiveWallpapersPicker\  -Mms\  -Music\  OpenWnn\  Protips\  rild\  diff–gita/target/product/telephony.mkb/target/product/telephony.mk  indexe840ba1..5c05fa1100644  —a/target/product/telephony.mk  +++b/target/product/telephony.mk  @@-19,7+19,[email protected]@  PRODUCT_PACKAGES:=\  CarrierConfig\  -Dialer\  CallLogBackup\  CellBroadcastReceiver\  EmergencyInfo\For some services, you can modify frameworks / base / services / Java / COM / Android / […]

  • IOS transform coordinates change

    Time:2020-12-1

    When using cgcontext, because the coordinates of quartz 2D and UIKit are inconsistent, it is necessary to change the context again to achieve the desired effect. 1. Introduction to origin of different coordinates In quartz 2D, the coordinate origin is in the lower left corner of the canvas, while in UIKit, it is consistent with […]

  • Flutter passes values to any widget (when the nested use of the widget is required)

    Time:2020-12-1

    If we have such an application scenario: After widgeta performs the click, the data is passed to the widget C under it through widgetb. Usually, you can set the constructor and pass the corresponding parameters to the specified widget tree, as described in the following code: It indicates that the content of click changes in […]

  • An article to handle IOS cookie access

    Time:2020-12-1

    Cookie introduction Cookie is a mechanism to store the server state in the client. The web server can set the cookie through set cookie or set cookie 2 HTTP header. Cookies can be divided into two categories: session cookie and persistent cookie. Session cookie is a temporary cookie and will be deleted when the current […]

  • Undefined symbols for architecture arm64:

    Time:2020-11-30

    Undefined symbols for architecture arm64:   “_Decoder_Interface_init”, referenced from:       EM_DecodeAMRFileToWAVEFile(char const*, char const*) in amrFileCodec.o   “_Decoder_Interface_Decode”, referenced from:       EM_DecodeAMRFileToWAVEFile(char const*, char const*) in amrFileCodec.o   “_Decoder_Interface_exit”, referenced from:       EM_DecodeAMRFileToWAVEFile(char const*, char const*) in amrFileCodec.o   “_Encoder_Interface_init”, referenced from:       EM_EncodeWAVEFileToAMRFile(char const*, char const*, […]

  • Android serial 22 – standard broadcast sending of custom broadcast

    Time:2020-11-30

    1、 Send custom broadcast 1. Broadcasting is mainly divided into two types: Standard broadcasting and orderly broadcasting 2. Send standard broadcast First define a broadcast receiver to receive the broadcast package com.example.broadcasttest2; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.widget.Toast; public class MyBroadcastReceiver extends BroadcastReceiver { @Override public void onReceive(Context context,Intent intent) { Toast.makeText(context, “received […]

  • Implementation code of textfield, a component of fluent input box

    Time:2020-11-30

    TextField As the name suggests, a text input box is similar to uitextfield in IOS, EditText in Android and textinput in the web. It mainly provides convenience for users to input text. I believe that you have used this function on the native client, so we will not introduce it in detail. Next, we will […]

  • Summary of information acquisition methods for various IOS devices (including iPhone 8 / iPhone x)

    Time:2020-11-30

    preface In the development process, sometimes in order to count user information and issue advertisements, the server often needs various information of mobile phone users’ devices and apps. The acquisition of these information can provide different functions or better user experience according to different devices, apps and system versions, or enable developers to better analyze […]

  • 1. Rxswift creates observable sequences

    Time:2020-11-29

    Empty() method initialization //An observable empty content is created let ob = Observable.empty() //First, write a simple subscription method ob.subscribe {print “} The just() method passes in the default value initialization //There is no need to give a generic, it will be automatically pushed out according to just let ob = Observable.just (initialization default) The […]

  • Flutter learning notes (39) — there are more than 3 items at the bottom of the bottom NavigationBar. Only icon is displayed and title is not displayed

    Time:2020-11-29

    If you want to reprint, please indicate the source:Flutter learning notes (39) — there are more than 3 items at the bottom of the bottom NavigationBar. Only icon is displayed and title is not displayed items: [ _bottomItem(Ids.home, ‘ic_home_normal’, ‘ic_home_selected’, 0), _bottomItem(Ids.information, ‘ic_discovery_normal’, ‘ic_discovery_selected’, 1), _bottomItem(Ids.news, ‘ic_hot_normal’, ‘ic_hot_selected’, 2), _bottomItem(Ids.mine, ‘ic_mine_normal’, ‘ic_mine_selected’, 3), ], Add […]

  • Implementation of level menu in fluent expansiontile

    Time:2020-11-29

    development environment win10 Android Studio effect For multi-level menu display, or selection. Such as each province, city, county; Such as diseases and insect pests of trees; critical code @override Widget build(BuildContext context) { return ListTile( title: _buildItem(widget.bean), ); } Widget _buildItem(NameBean bean){ if(bean.children.isEmpty){ return ListTile( title: Text(bean.name), onTap: (){ _showSeletedName(bean.name); }, ); } return ExpansionTile( […]

  • Summary of several common encryption methods in IOS

    Time:2020-11-29

    preface In our daily development, encryption is an essential part, and the ordinary encryption method is to encrypt the password and save it to the user preferences. The key string is saved in plaintext, but we don’t know the specific location of the storage. The following article will introduce several common encryption methods in IOS […]