Where in the JellyBean android source tree is the Notifications Pull Down? - android-source

I am looking to implement a particular feature I saw in the notification drop-down, and I'd like to see the source code for it. Can anyone, preferably someone who hacks on the source, tell me where to look in these projects: https://github.com/android
John

NotificationManagerService is responsible for showing notifications. It is situated in the frameworks/base/services/java/com/android/server/NotificationManagerService.java. In your case I think you should look at this link.

Related

Is there a way to add custom "badges" to files on GitHub?

I have it in my head to help people at my company get better by finding a way to highlight and call out good code.
In particular, I'd like to be able to mark a file (not a repository or directory) as having a "gold star" (or another badge) so people browsing our source code who see the badge can see they're looking at a really good implementation they might take inspiration from.
I'm taking inspiration from the code owners feature on GitHub where there's a little padlock icon on a file if it's assigned ownership by the CODEOWNERS file.
Is it possible to do a custom "badge" on GitHub? If so, what's the API?
Browsing the GitHub documentation and searching online, I wasn't able to find anything explaining how to do something like this. Most folks were talking about the little images badges like the code coverage badges people put in their readme files.
Checkout this thread. You can submit feature request to GitLab and GitHub or in case of GitLab code your own feature and submit PR.
Here are some closely related discussions. Probably you have already seen them and are not looking for them but you might use them to get idea of how to create the feature that you want.
The Shields service (at shields.io) provides a way to create custom badges for your projects. These are badges are very common and are frequently used to show status information about the project, or demonstrate tools that were used for the development of your project. (...more)
Also checkout Bring Your Own Badge

Using github and posting my own play store app

I don't know whether this question should have come in this platform or not but I wanted to ask that let us say I made a github repository which was public. Now another person who has no relation with me downloaded the code, edited it and posted it in play store. I found out that this app which is in play store was my one of the github repositories with some edit. So should I issue a copyright or something or is it fine I should not do anything?
PS: This hasn't happened with me in real. I was just having fear of my repository being used by other but I guess they are so bad that no one would like to use them. Another thing is that pls don't comment that you should make your repositories private.
Any help will be appreciated.
If you are making you repo public you yourself are permitting others to use it. But to prevent misuse of your code and work there are open source licenses available that you can add to your public repo that will put some restrictions on its usage.
More info can be found here:
https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/licensing-a-repository
https://opensource.guide/legal/

Uploading source code for specific requirement in github

I have heard that, product based companies will look for what we have done outside of projects and also looking for the github profile.
In the meantime, I have created an automation application which addresses the specific requirement (Timesheet) in our organization. So, I thought of uploading this one too.
I have also done the screen cast and uploaded it to YouTube for adding in the profile (Resume).
This exact tool is not useful for all the people , but useful for the people in our organization, in which they can edit/contribute more.
Now I am having the question like, can I upload this kind of the code to GitHub?
Thanks.
Yes, you can.
Code on GitHub does not have to be useful to other people. You can push code there even if it is only useful to you or people in your organization.
You could also use a private repository if you do not want other people to see the code.
See: https://github.com/pricing

Is there a way to see a history of who has downloaded code base on Github?

I've looked on github, and googled this, but can't find anything. I'd like to see a history of downloads of code on one of our repositories if that is possible. Thanks.
As far as I know Github currently does not support this - at least not exposed to the general public.
You may want to contacting support to see if they can assist.

Disable Source tab in Google Code

How to disable source tab in Google Code? I don't want any random users to look at my code.
Before you say that this can't be done, that Google Code is by default open source. Someone managed to do it, somehow.
Edit: Before you downvote me further, take a look at the link I provided. It's possible to do it, despite whatever you want to say. And I want to know how.
I don't want any random users to look at my code.
You can't prevent people from downloading the source code. Google's SVN repositories are open to anonymous browsing and checkout. For example, in the project you cited (the StackOverflow clone), notice that
svn checkout http://cnprog.googlecode.com/svn/trunk/ cnprog-read-only
works just fine for downloading the source.
If you don't want people looking at your source code, don't use a free public-hosting service. Setting up a local svn repository is very easy, in any case: here's how you'd go about setting one up and adding stuff to it.
In your GC page Administer|Tabs then check the hide checkbox next to Source. Your code will still be available via SVN though.
The whole point of Google Code is that it is for open source. That means everyone is allowed to see it. If you don't want people looking at your code, use some closed source hosting site.
You can replace tabs with Wiki pages (for example, to point to your GitHub repository), but you can't prevent access to the Google SVN server.