Category:Mobile Development

  • Secondary development of UAV SDK based on Dajiang

    Time:2021-3-1

    Secondary development of UAV SDK based on Dajiang In the near future, the company needs to develop a mobile app based on Dajiang UAV SDK to cooperate with the background to realize the management of UAVs. Of course, Dajiang itself also provides us with a management platform – Dajiang Sikong. Through the official app of […]

  • Tomcat tutorial for IOS MAC configuration Tomcat tutorial for Mac environment configuration

    Time:2021-3-1

    Tomcat tutorial is configured in MAC environment. The specific contents are as follows Tomcat configuration 1. Download Tomcat configuration package from the official website: http://tomcat.apache.org/download-70.cgi 2. After downloading, rename the whole folder after decompression: Apache Tomcat (the name is optional), and then put it in a file directory. I put it under / users / […]

  • The most scientific usage of four dialog boxes in Android (example code)

    Time:2021-3-1

    First, let’s look at the picture above XML is used to write buttons <?xml version=”1.0″ encoding=”utf-8″?> <LinearLayout xmlns:android=”http://schemas.android.com/apk/res/android” android:layout_width=”match_parent” android:layout_height=”match_parent” android:background=”@drawable/background” xmlns:widget=”http://schemas.android.com/apk/res-auto” android:orientation=”vertical”> <Button android:id=”@+id/button_1″ android:layout_width=”match_parent” android:layout_height=”wrap_content” android:text= “Simple dialog” /> <Button android:id=”@+id/button_2″ android:layout_width=”match_parent” android:layout_height=”wrap_content” android:text= Dialog of list /> <Button android:id=”@+id/button_3″ android:layout_width=”match_parent” android:layout_height=”wrap_content” android:text= “Radio dialog” /> <Button android:id=”@+id/button_4″ android:layout_width=”match_parent” android:layout_height=”wrap_content” android:text= “Multiple choice […]

  • Ctssecuritytestcases # listening ports test locating TCP port and PID

    Time:2021-2-27

    Ctssecuritytestcases # listening ports test locating TCP port and PID [problem description] CTS failed armeabi-v7a CtsSecurityTestCases android.security.cts.ListeningPortsTest#testNoListeningLoopbackTcpPortsTools: 9.0_ r11 05-06 17:11:28.649 17375 17391 E TestRunner: android.security.cts.ListeningPortsTest$ListeningPortsAssertionError: 05-06 17:11:28.649 17375 17391 E TestRunner: Found port listening on addr=127.0.0.1, port=10100, UID=1000 [com.android.keychain, com.itv.android.iptv, com.android.location.fused, com.android.providers.settings,com.launcher.idn, android, com.itv.android.iptv.tvclient,com.droidlogic, com.android.wallpaperbackup, com.droidlogic.BluetoothRemote, ] in /proc/net/tcp 05-06 17:11:28.649 17375 17391 E […]

  • Using flutter to achieve a lantern layout example code

    Time:2021-2-27

    Walking lantern is a common effect, this article talks about how to usePageViewstayFlutterTo achieve a lantern, the effect is as follows, the height of the current page is higher than other pages, there is a height change animation when switching pages. To achieve this effect, we mainly usePageView.builderComponents.   development  Create home page First, create […]

  • Two methods of image compression and compression to specified size in IOS development

    Time:2021-2-27

    ///Compressed picture + (NSData *)imageCompressToData:(UIImage *)image{ NSData *data=UIImageJPEGRepresentation(image, 1.0); if (data.length>300*1024) { if ( data.length >1024 * 1024) {// 1m and above data=UIImageJPEGRepresentation(image, 0.1); }else if (data.length>512*1024) {//0.5M-1M data=UIImageJPEGRepresentation(image, 0.5); }else if (data.length>300*1024) {//0.25M-0.5M data=UIImageJPEGRepresentation(image, 0.9); } } return data; } PS: let’s take a look at the image compression in IOS to the specified […]

  • Learn more about some Android animations

    Time:2021-2-26

    1、 Propertyvaluesholder Reading this article requires the basis of Android attribute animation in the previous article, so that you can understand what to talk about next. 1. Understand and use PropertyValuesHolderIt’s a method similar to objectanimation, but it’s missing a target, which is the control to be executed. Look at the normal usage: all holders […]

  • Android 10 pit filling adaptation Guide (practical experience code)

    Time:2021-2-26

    Today I saw a good article to share with you and worship the big brother. Android 10 pit filling adaptation guide, including practical experience code, never copy translation documents one Region.Op Related exception: java.lang.IllegalArgumentException : Invalid Region.Op – only INTERSECT and DIFFERENCE are allowed When targetsdkversion > = 0 Build.VERSION_ Code. P canvas.clipPath (path, Region.Op.XXX […]

  • Summary of how to solve the problem that xcode9 log can’t output Chinese in IOS

    Time:2021-2-26

    Problem description Xcode’s log output in Chinese is usually rewrittenNsarray, nsdictionary’s – (nsstring *) descriptionwithlocale: (ID) locale;Method. Recently, after upgrading to xcode9, it was found that the original processing logic could not meet the requirement of outputting Chinese. The status description returned by the background involving Chinese has become Unicode encoding. In fact, this is […]

  • Understand and test what Android event distribution is

    Time:2021-2-25

    1、 What is event distribution The so-called event distribution is to transfer the click events contained in a complete Click to a specific view or ViewGroup, and let the view or ViewGroup process it (consume it). The distribution is passed from top to bottom (parent to child). The objects that may pass through are the […]

  • Replace IMEI of Android Q with Android_ id

    Time:2021-2-25

    Front work: Upgrade the project configuration to the corresponding version 29 compileSdkVersion: 29, buildToolsVersion: ‘29.0.0′, minSdkVersion : 19, targetSdkVersion : 29, javaVersion : JavaVersion.VERSION_1_8 Permission prompt interface after upgrading to Android Q How to get IMEI in the old version: public static String getIMEI(Context context) { String deviceId = null; try { TelephonyManager tm = […]

  • The solution of mobile page not displaying pictures in IOS

    Time:2021-2-25

    In the development of mobile terminal, sometimes I may encounter such a problem. I download pictures from other websites and make H5 pages, but they are displayed normally in the browser and Android. However, when I arrive at IOS, the pictures will not be displayed. At this time, I need to pay attention to it. […]