- Saved searches
- Use saved searches to filter your results more quickly
- ChartBoost/android-sdk-sample-java
- Name already in use
- Sign In Required
- Launching GitHub Desktop
- Launching GitHub Desktop
- Launching Xcode
- Launching Visual Studio Code
- Latest commit
- Git stats
- Files
- README.md
- Saved searches
- Use saved searches to filter your results more quickly
- AndroidSDKSources/android-sdk-sources-list
- Name already in use
- Sign In Required
- Launching GitHub Desktop
- Launching GitHub Desktop
- Launching Xcode
- Launching Visual Studio Code
- Latest commit
- Git stats
- Files
- README.md
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
ChartBoost/android-sdk-sample-java
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Sign In Required
Please sign in to use Codespaces.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
Latest commit
Git stats
Files
Failed to load latest commit information.
README.md
Example application which implementes Chartboost SDK to show basic use cases. It will guide user through initialisation of the SDK, caching and showing 3 types of different ads.
Chartboost SDK is available as an AAR via Maven Central; to use it, add the following to your build.gradle .
repositories < mavenCentral() >dependencies
To display basic ads with Chartboost SDK, user needs to initialise the SDK before trying to launch the ad.
SDK provides API calls where some are required and others could be optional.
Chartboost.addDataUseConsent(this, new GDPR(GDPR.GDPR_CONSENT.BEHAVIORAL)); Chartboost.addDataUseConsent(this, new CCPA(CCPA.CCPA_CONSENT.OPT_IN_SALE)); Chartboost.addDataUseConsent(this, new COPPA(true));
*OPTIONAL: GDPR Compliance method with which you can limit our SDK’s data collection. Call this method before calling Chartboost.startWithAppId() to ensure that our SDK, as well as dependencies such as Moat, will be restricted.
Chartboost.startWithAppId(getApplicationContext(), DEFAULT_ID, DEFAULT_SIGNATURE, startError -> < if (startError == null) < // handle success >else < // handle failure >>);
*REQUIRED: Start Chartboost with required appId, appSignature and delegate.This method must be executed before any other Chartboost SDK methods can be used. Once executed this call will also control session tracking and background tasks used by Chartboost.
Chartboost.setLoggingLevel(LoggingLevel.ALL);
*OPTIONAL: Set the Chartboost SDK logging level. Default is Level.INTEGRATION
Interstitial chartboostInterstitial = new Interstitial("location", new InterstitialCallback() < @Override public void onAdDismiss(@NonNull DismissEvent dismissEvent) < >@Override public void onAdLoaded(@NonNull CacheEvent cacheEvent, @Nullable CacheError cacheError) < >@Override public void onAdRequestedToShow(@NonNull ShowEvent showEvent) < >@Override public void onAdShown(@NonNull ShowEvent showEvent, @Nullable ShowError showError) < >@Override public void onAdClicked(@NonNull ClickEvent clickEvent, @Nullable ClickError clickError) < >@Override public void onImpressionRecorded(@NonNull ImpressionEvent impressionEvent) < >>, mediation); chartboostInterstitial.cache();
Create and cache an interstitial ad object.
chartboostInterstitial.show();
Show an interstitial ad object.
Rewarded chartboostRewarded = new Rewarded("start", new RewardedCallback() < @Override public void onRewardEarned(@NonNull RewardEvent rewardEvent) < >@Override public void onAdDismiss(@NonNull DismissEvent dismissEvent) < >@Override public void onAdLoaded(@NonNull CacheEvent cacheEvent, @Nullable CacheError cacheError) < >@Override public void onAdRequestedToShow(@NonNull ShowEvent showEvent) < >@Override public void onAdShown(@NonNull ShowEvent showEvent, @Nullable ShowError showError) < >@Override public void onAdClicked(@NonNull ClickEvent clickEvent, @Nullable ClickError clickError) < >@Override public void onImpressionRecorded(@NonNull ImpressionEvent impressionEvent) < >>, mediation); chartboostRewarded.cache();
Create and cache rewarded ad object.
Show a rewarded ad object.
To create new banner it is possible to do it in the xml layout file.
Banner chartboostBanner = new Banner(this, "start", Banner.BannerSize.STANDARD, new BannerCallback() < @Override public void onAdLoaded(@NonNull CacheEvent cacheEvent, @Nullable CacheError cacheError) < >@Override public void onAdRequestedToShow(@NonNull ShowEvent showEvent) < >@Override public void onAdShown(@NonNull ShowEvent showEvent, @Nullable ShowError showError) < >@Override public void onAdClicked(@NonNull ClickEvent clickEvent, @Nullable ClickError clickError) < >@Override public void onImpressionRecorded(@NonNull ImpressionEvent impressionEvent) < >>, mediation);
and show to make the ad visible
and at the end of the activity lifecycle developer should detach Banner from the view and destroy the object. In order to do so, use:
chartboostBanner.detachBanner();
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
AndroidSDKSources/android-sdk-sources-list
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Sign In Required
Please sign in to use Codespaces.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
Latest commit
Git stats
Files
Failed to load latest commit information.
README.md
This project is only backup of Android SDK Sources which for the people that who want to download & research the Android SDK sources.
Platform codenames, versions, API levels, and NDK releases
Codename | Version | API level/NDK release | SDK Sources |
---|---|---|---|
Tiramisu | 13 | API level 33 | android-sdk-sources-for-api-level-33 |
Snow Cone | 12L | API level 32 | android-sdk-sources-for-api-level-32 |
Snow Cone | 12 | API level 31 | android-sdk-sources-for-api-level-31 |
Red Velvet Cake | 11 | API level 30 | android-sdk-sources-for-api-level-30 |
Quince Tart | 10 | API level 29 | android-sdk-sources-for-api-level-29 |
Pie | 9 | API level 28 | android-sdk-sources-for-api-level-28 |
Oreo | 8.1.0 | API level 27 | android-sdk-sources-for-api-level-27 |
Oreo | 8.0.0 | API level 26 | android-sdk-sources-for-api-level-26 |
Nougat | 7.1 | API level 25 | android-sdk-sources-for-api-level-25 |
Nougat | 7.0 | API level 24 | android-sdk-sources-for-api-level-24 |
Marshmallow | 6.0 | API level 23 | android-sdk-sources-for-api-level-23 |
Lollipop | 5.1 | API level 22 | android-sdk-sources-for-api-level-22 |
Lollipop | 5.0 | API level 21 | android-sdk-sources-for-api-level-21 |
KitKat | 4.4W | API level 20 | android-sdk-sources-for-api-level-20 |
KitKat | 4.4 — 4.4.4 | API level 19 | android-sdk-sources-for-api-level-19 |
Jelly Bean | 4.3.x | API level 18 | android-sdk-sources-for-api-level-18 |
Jelly Bean | 4.2.x | API level 17 | android-sdk-sources-for-api-level-17 |
Jelly Bean | 4.1.x | API level 16 | android-sdk-sources-for-api-level-16 |
Ice Cream Sandwich | 4.0.3 — 4.0.4 | API level 15, NDK 8 | android-sdk-sources-for-api-level-15 |
Ice Cream Sandwich | 4.0.1 — 4.0.2 | API level 14, NDK 7 | android-sdk-sources-for-api-level-14 |
Honeycomb | 3.2.x ④ | API level 13 | Google Official Open Source Closed |
Honeycomb | 3.1 ③ | API level 12, NDK 6 | Google Official Open Source Closed |
Honeycomb | 3.0 ① | API level 11 | Google Official Open Source Closed android-sdk-sources-for-api-level-11 ② |
Gingerbread | 2.3.3 — 2.3.7 | API level 10 | android-sdk-sources-for-api-level-10 |
Gingerbread | 2.3 — 2.3.2 | API level 9, NDK 5 | android-sdk-sources-for-api-level-9 |
Froyo | 2.2.x | API level 8, NDK 4 | android-sdk-sources-for-api-level-8 |
Eclair | 2.1 | API level 7, NDK 3 | android-sdk-sources-for-api-level-7 |
Eclair | 2.0.1 | API level 6 | android-sdk-sources-for-api-level-6 |
Eclair | 2.0 | API level 5 | android-sdk-sources-for-api-level-5 |
Donut | 1.6 | API level 4, NDK 2 | android-sdk-sources-for-api-level-4 |
Cupcake | 1.5 | API level 3, NDK 1 | android-sdk-sources-for-api-level-3 |
(no codename) | 1.1 | API level 2 | android-sdk-sources-for-api-level-2 |
(no codename) | 1.0 | API level 1 | android-sdk-sources-for-api-level-1 |
①③④ Google official open source closed for some reasons.
② The Android API Level 11 SDK sources is from the internet, please don’t use it with commercial use.
Why we don’t have the Official Android API Level 11 to 13 SDK sources?
Google has closed availability of the source code to Android 3.0 Honeycomb, explaining that the tablet-oriented software was not ready for use on smartphones and that the company didn’t want outside developers or enthusiasts experimenting with it in unauthorized ways.
Note: maybe here and somewhere has Android API Level 11 to 13 SDK sources, but maybe it’s not from the official and not suitiable for us to spread them out of the iterms of Google Android Open Source.