I'm in need to get previous revisions of the Android Support Lib since there have been a couple weird issues introduced on the last two revisions 8, 9. I want to compare the source to figure out what could have happened and maybe patch it myself.
Essentially the issue is with the ViewPager not measuring correctly its width when used by a custom ViewGroup. Leaving the edge showing the next page slightly.
There are some (jar with source and javadoc) in Maven Central Repository.
Android Support Library is open source, you can directly check the source in GitHub project android/platform_frameworks_support. for instance, android.support.v4.view.ViewPager and click History at the top right corner of java code to see the complete change history.
Hope that helps.
You can find it here maybe. If not, I do not think they publish the link for the older versions.
However, you can still see what changes were made here. If that is not enough, ask a new question about the issue with ViewGroup and we will try to help.
You can find these support libraries at the Google download site:
https://dl-ssl.google.com/android
Revision 8
Revision 9
Related
m using the android youtube player OpenYouTubeActivity, i'm using the svn source code, not the jar file provided in the project. But it seems that this activity is not working after the 4.3 android releases. the video is shown half of the full screen, but everything else works fine. THis issue is already logged on the issues list on the project site.
Anybody has any clue, whats happening? Any solution is greatly appreciated.
Its always best to use the jars, because you get the latest compiled code and its easy for the maintainers to maintain versions. But I think on the code branch the fix here is to decompile the jar using an open source decompiler like http://jd.benow.ca/ and then copy the code as is.
Then you can see where the changes have been made.
DISCLAIMER
Please follow the licensing as the original wants it. I think its as per Apache, so make sure to include appropriate licensing information and credits and follow licensing laws.
This is my first post to this group. I am looking at the screenrecord.cpp source code from android.googlesource.com. I found the following source links for the screenrecord.cpp file.
https://android.googlesource.com/platform/frameworks/av/+/android-4.4.2_r1/cmds/screenrecord/screenrecord.cpp
https://android.googlesource.com/platform/frameworks/av/+/aaa3f358410701710e31f31de62f0b4521989661/cmds/screenrecord/screenrecord.cpp
I think, #2 link is the latest source code for screenrecord.cpp. However, how can I know which source code is the latest one?
Any idea would greatly help me.
The answer depends on what you mean by "latest".
The currently-shipping version of Android, "KitKat" 4.4.2, comes with version 1.0 of screenrecord. That's what your first link points to.
The "master" branch of the AOSP source tree has the sources for screenrecord v1.1, which adds some new features. That's your second link. The newer version can be built and run on Android 4.4, but it's not checked into the 4.4 branch, so no devices I'm aware of currently ship with it.
Details about v1.1 are available here.
To see the latest in any git tree, you click on the link higher up the tree.
So for both the link you provided, click on higher up link and you will notice ending up here:
https://android.googlesource.com/platform/frameworks/av/+/master
Within the page is also indicated the latest commit number, and that is the latest as of anytime you are reading this article.
And then travelling down the link to reach the screenrecord.cpp again:
https://android.googlesource.com/platform/frameworks/av/+/master/cmds/screenrecord/screenrecord.cpp
now you notice that this link does not have any version anymore, but is tagged with a commit number - not at the link itself, but the first few lines of the page. That page is also the latest in development right now.
When I use the command 'Quick Documentation' in Android Studio in a class that comes from one of the support libraries (e.g. ActionBarActivity), the IDE does not show the documentation for the class. If I use it on one of the classes from, say, the Android API 19 (e.g. Activity), the IDE displays the complete documentation as is shown in the reference page on https://developer.android.com/reference/packages.html.
Is there any way to add the documentation for the support libraries to Android Studio so that they can be accessed through 'Quick Documentation' as well?
When Android Studio has opened the decompiled jar class, click on "Download..." blue link at top right, this will download jar with javadoc and save it in :
/.ideaLibSources
rebuild project if necessary, now doc is available.
Tested on android studio 2.0 preview 4.
If you are not using Gradle, this will be easier for you.
Go to File -> Project Structure. From there, on the left-hand side, select Libraries. Select the library you want to add source/java-docs to, then click the plus at the bottom and add the source and/or java-doc jars. There's a chance AS will automatically know what's what.
If you're using Gradle, more than likely in Project Structure, you won't see the Libraries tab, and I'm sorry but I don't know how to help from that point. If you use Gradle, AS detects that and takes away "unnecessary" options. Sorry to send you searching again, but I know there's something called a .properties file for jars that tell the source and java-docs, but I haven't implemented it. If I can find the page that told me that information, I'll update this.
EDIT: The answer is here. This should help you out.
When using the the new activity wizard for an Android app in Eclipse
File -> New -> Other -> Android -> Android Activity
I get the warning
This template requires a minimum SDK version of at least 11, and the
current min version is 8
This happens for most of the options in the wizard but right now I want to create a new master detail activity which will make use of fragments.
I am using actionbar sherlock and I have the latest support library jar registered with the project. I would like to use the wizard as fragments are new to me and it seems like a lot of code is needed that I am unfamiliar with. So I'm using the wizards as both a learning process to understand how fragments should be implemented properly and fault free, which is something I'm not confident of doing manually just yet.
It seems to me totally obvious that I should be able to tell the wizard to make use of the support library methods and classes but I can't seem to figure out how to do this.
I could just change my min sdk level to 11, use the wizard, change the min sdk level back to 8 and make the support library changes that are needed but what a pain!
Update
How would I go about changing the source code of either Eclipse or the android sdk to achieve this as both are open source right? Where should I start looking?
Any ideas greatly appreciated
Unfortunately, the answer is no.
The New Android Application wizard does not allow you to select / add third party support libraries to your project while creating a new project. The only library it will add by default is the android-support-v4.jar library.
It is a small trade-off I suppose. The new wizard, especially the Android Activity, does simplify things when creating new Activities quickly. But I suppose, it is something we will have to live with until Google adds such a provision. That is, if they choose to add it sometime down the line.
Update 1
Eclipse is Open Source. These are all the sources available for the Eclipse Source: http://git.eclipse.org/c/. However, I don't think modifying Eclipse would be helpful. I am almost certain, it is more ADT's / SDK's doing than Eclipse per-se. But I am merely speculating on this one.
Update 2
You can download the SDK source from here: https://android.googlesource.com/platform/sdk/. Good luck. :-)
i'm trying to implement action bar in 2.3.3 version. As i'm new to android and engineering student i'm finding it difficult to implement it.I know action bar supported from 3.0. i've downloaded your library and imported inside my project. Still it is giving some error.I'm struggling to do this from many days. Please guide me properly how to achieve it . Is there any specific version of sherlock i've to download for 2.3.3.i've seen the video you uploaded in youtube. There your mentioning it for api level 13. So Please help me in this regard
If you are looking for support on the ActionBarSherlock library, I suggest you place your request using one of the requested methods on their support page. Jake is on StackOverflow but that doesn't mean you will be lucky enough for him to stumble on this question. You can find more information at:
http://actionbarsherlock.com/support.html
This page provides links to the Google Group, Github page, and direct contact information for the developer himself. I would recommend that when you post your issue to these support channels, you provide some more specific information about the error you are receiving, with perhaps some snippets of your code.
HTH
I had errors on #Override methods because I was using Java 1.5. Switching to 1.6 solved them.
To do this : right click on your project > Properties > Java Compiler > Enable project specific settings > Compiler compliance level > 1.6
It is related to this issue in the project's bug tracker : https://github.com/JakeWharton/ActionBarSherlock/issues/28