Quickly start someone else's Android project?? You believe me, don't want to miss this ~ ~ ~

Source: Internet
Author: User

Recently started the company before others wrote the project, I that day, more than 500 m of the source code, good hundreds of thousands of of sources, light Java files are good hundreds of, to clarify the other project's jump order, how to do???

In another case, you are now looking at someone else's previous page, similar to the one you want to do, and to keep the project in a relatively balanced style, you will not be able to customize some of the layout that is incompatible with the style design-I want to see how others write, how to do?

Oh,no, look at the design documentation? Well, you can meet a write more detailed well, so big, I believe that details are not where to go. What about that? Not a one to see the code of the Jump logic bar ~startactivity?

Oh,no, any Java code is hundreds of lines, you go find it, goodbye!

Well, some children's shoes will certainly say, directly write a baseactivity, let all the activity inherit from this baseactivity, and then in this baseactivity inside print sub-class name Ah, you go, you go to write it, hundreds of, you slowly write, do not send ha.

Write here, I have to say, my dear development colleagues, you write, please all write a baseactivity bar, to form your professional, I represent thousands of people to take over the code of the Bitter Force program Ape thanked.

Well, it's not, that's not, so what?

Some experienced people said, with the command line chant, have not seen the people will certainly marvel, what? What is the age, development and command line???

Well, the landlord tells you, you can really use our ADB command line to solve this problem perfectly.

In our Android studio there is something like this. Terminal, this is where the command line is used.

If you do not have the SDK platform tools for the PATH environment variable, you have to enter your tools path yourself and then execute the command

adb shell Dumpsys activity activitiesYes, that's it, look at the last picture. Currently my is not set in the environment variable

And then enter our command line in the back, gee, as if can not copy, good input, children's shoes.

./adb shell Dumpsys activity activities

This.. This... Small partners said, our platform-tools so deep, every time we have to go in one? Baby Don't cry. Setting an environment variable is it all right?

It's better to have tools set up.

OK, right click on my Computer, go to Settings, go to Advanced system settings, click Environment variables, edit path, add tools and Platform-tools path.

This is the win10 figure, the other version of the gap is not big

OK, all right, Gaocheng! Go back to the command line input interface of Studio. Input:

What the hell, you're not like this, are you? Landlord, you lied to me ~~5555~~.

Ah, don't worry, you restart the computer is not good?

What the!!!!! Restart your computer? Don't you know I have to work overtime all week, the computer is dormant standby? and restart the computer? You do not know my Computer Configuration thief, gradle all to Gradle 10 minutes?

For a little thing like you? Still have to break my rules!!!

Well, let's not restart it. You just type a command line, Echo%PATH%? If you enter something that has the environment path you just configured, that's it.

Well, do it.

The mastermind of the building, the figure is not complete, but it does not have the output of the path I just configured.

Another look at our matching environment variable is not wrong ~ ~ What's the matter? impatient small partner again noisy, landlord, you lied to me!!

Oh, actually, you're going to do it on the cmd command line.

Echo%path%

That's not a joke. It's really there.

Go back to studio, eh. Or not, huh? Well, this one. This one... You still have to restart it ~

Re-enter

Enter, it's really there ha ~

Written here plainly, the current package name and activity of the name, called Sendcircleactivity, in addition to look at your own source code name, in fact you try to find, even if it is on the market, you can see through this method. Of course, know a name is enough, but also want to know the source code??? Don't look for me, I don't know.

Upset little partner said, your sister Ah, output so much information, make a fart ah.

Well, you can also streamline a little.

Enter this:

ADB shell Dumpsys Activity Activities | FINDSTR "Application Package name" Enter the words, will see a lot less, but with the above that is also very good ah, from the landlord cut the figure can be seen, we want something in fact on the cursor a little bit, very eye-catching, obsessive-compulsive to add the back.

Ah, the landlord taught so little things, tossing so much nonsense, do not blame landlord Ah, Lou Zhu is just a bitter force of the program ape, stuffy SAO type ~ ~ ~ If you think that writing to you also, the following support and comments, so that more small partners to get what they want ~ ~ ~

Quickly start someone else's Android project?? You believe me, don't want to miss this ~ ~ ~

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.