Code reader on Android CODERBROWSERHD Modify support Go language code

Source: Internet
Author: User
This is a creation in Article, where the information may have evolved or changed.

My Code reader on Android is a Https://github.com/zerob13/CoderBrowserHD retrofit version that I put in the Https://github.com/ghj1976/CoderBrowserHD after the modified version.

The main modifications are as follows:

Upgrading projects into Android Studio projects

git download Https://github.com/zerob13/CoderBrowserHD after the project transformation steps are as follows:

1, Clone to their own local

2. Import Project (change to Android Gradle projects)

Select the directory that we downloaded to the local import.

The entire process is selected and the default item is fully selected.

To modify the error in the import process

SDK Version Issues

The first one is the version of the SDK, which prompts you as follows:

I have only installed the following versions of the SDK here, all of which have this problem.

We don't have a 17 version of the SDK, but the Build.gradle in the project is compiled with version 17, so there's this problem.

Considering the environment we use here is Android 4.4.2 version 19, while here is not installed completely, but can use, we change here to 19

Issues with importing third-party jars

CODERBROWSERHD in file format Judging here, the Cpdetector package is used, which is an item that can automatically detect the text encoding format.
Returns the detected character set encoding according to the "who first returns non-null probe results, whichever is the result".

There is no such problem after import, we need to set it manually.

We can download the latest package in http://cpdetector.sourceforge.net/download.shtml and I am downloading the cpdetector_1.0.10_binary.zip version.

Find a directory where I use the App/libs directory to import all the dependent jar files. Be careful not to put it in the App/build directory, which will be emptied at compile time.

Go to setup in Project Structure

Select Modules–dependencies-Add File Dependency

Then we can get the project compiled and passed.

Modify go code to read for

Add aliases

Alias sort

Handling logic When an alias is encountered

Go's processing logic has been there before, but there is no added application:

To process the suffix logic for a file name:

Modify the default Open Directory

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.