- Android Native Goodies
- Description
- Reviews
- Questions
- Technical Details
- Android Native Goodies PRO
- Android Native Goodies PRO
- Native Ads
- Prerequisites
- Load an Ad
- Build an AdLoader
- Kotlin
- Prepare for the NativeAd format
- Use AdListener with an AdLoader
- Kotlin
- Loading ads
- Kotlin
- Kotlin
- Kotlin
- Cleaning up
- Kotlin
- Always test with test ads
- When to request ads
- Hardware acceleration for video ads
- Enabling hardware acceleration
- Display a NativeAd
- Android Native Goodies PRO
- Platform
- Version
- Number
- Description
- Android Native Goodies PRO
Android Native Goodies
Access native Android features with ease! Android Goodies provide a simple way to interact with Android native functionality.
Description
Reviews
Questions
Access native Android features with ease! Android Goodies provide a simple way to interact with Android native functionality. All the api is exposed in Blueprints. If you are in doubt about anything please contact us on our Discord server.
🔥Native UI
⚡️Show native dialogs, date/time pickers, toasts
⚡️Show spinner/progress bar
⚡️Create push notifications
🔥 Opening Other Apps
⚡️Native text/image sharing
⚡️Open social networks profile, youtube video, map or any other app
⚡️Pick images from gallery capture photos
⚡️Get list of phone contacts, search/create contact
🔥Getting device info
⚡️Get info from device
⚡️Check supported device features
⚡️Check if certain app is installed
🔥Hardware
⚡️Get battery info
⚡️Dial phone number
Technical Details
You can also join our Patreon to support our further work and get some benefits.
You can find the complete list of features in the plugin documentation.
Why use the plugin:
⚡️All the source code is included in the plugin, modify it however you need do
⚡️All the APIs are exposed in the Blueprints
⚡️Detailed and exhaustive documentation
Code Modules: (Please include a full list of each Plugin module and their module type (Runtime, Editor etc.))
Number of Blueprints:
Network Replicated: No
Supported Development Platforms: Windows, Mac OS X
Supported Target Build Platforms: Android
Example Project: demo level is included inside the plugin Content folder
Источник
Android Native Goodies PRO
Android Native Goodies PRO
Download Android Native Goodies PRO FREE Unity.
Android Goodies is a collection of Android native methods that allow you to do different things like showing native dialogs, opening a certain location on the map sharing text and much more.
Ask us anything on our Discord server!
Advantages:
– Clean and flexible API
– No overriding of Unity default activity
– Every API method documented.
– Full source code included
– Well-written documentation
Features:
★ APP INTERACTION ★
• Show all alarms, set alarm with all properties or set timer
• Open other apps by package, watch YouTube video in native app
• Create calendar event with all required params or open calendar app on the provided date
• Dial or directly call phone number, check if user has phone app.
• Open maps location, address, check if user has maps app
• Open any system settings screen
• Native share text, text+image, video, tweet, email, send SMS etc, check if user has twitter, sms, email app installed
• Share directly to most popular messaging apps
• Pick photo from gallery app, save picture to gallery
• Take photo with camera and get the image
• Video, sound or arbitrary file picker.
• Contact picker
• Copy text to clipboard
• Print images and HTML documents
★ Local notifications ★
• Support for various styles (messaging, inbox, big text, big picture and many many more)
• Scheduling and scheduling repeating notifications
• Cancelling by id or all at once • Manage notification channels and channel groups
• Pass custom data with notification
• Check if app was open via notification (if wasn’t running)
Источник
Native Ads
Native ads are ad assets that are presented to users via UI components that are native to the platform. They’re shown using the same types of views with which you’re already building your layouts, and can be formatted to match the visual design of the user experience in which they live. In coding terms, this means that when a native ad loads, your app receives a NativeAd object that contains its assets, and the app (rather than the Google Mobile Ads SDK) is then responsible for displaying them.
Broadly speaking, there are two parts to successfully implementing Native Ads: loading an ad via the SDK and displaying the ad content in your app. This page is concerned with using the SDK to load native ads.
Prerequisites
- Import the Google Mobile Ads SDK, either by itself or as part of Firebase.
Load an Ad
Native ads are loaded via the AdLoader class, which has its own Builder class to customize it during creation. By adding listeners to the AdLoader while building it, an app specifies which types of native ads it is ready to receive. The AdLoader then requests just those types.
Build an AdLoader
The following code demonstrates how to build an AdLoader that can load native ads:
Kotlin
Prepare for the NativeAd format
The first method above is responsible for preparing the AdLoader for the NativeAd format:
forNativeAd() Calling this method configures the AdLoader to request native ads. When an ad has loaded successfully, the listener object’s onNativeAdLoaded() method is called.
When the AdLoader makes an ad request, Google selects and returns the ad that maximizes publisher yield.
Use AdListener with an AdLoader
During creation of the AdLoader above, the withAdListener function sets an AdListener .
This is an optional step. The method takes an AdListener as its lone parameter, which receives callbacks from the AdLoader when ad lifecycle events take place:
Kotlin
Loading ads
Once you’ve finished building an AdLoader , it’s time to use it to load ads. There are two methods available for this: loadAd() and loadAds() .
The loadAd() method sends a request for a single ad:
loadAd() This method sends a request for a single ad.
Kotlin
The loadAds() method sends a request for multiple ads (up to 5):
Kotlin
Both of these methods take a AdRequest object as their first parameter. This is the same AdRequest class used by banners and interstitials, and you can use methods of the AdRequest class to add targeting information, just as you would with other ad formats.
loadAds() takes an additional parameter: the number of ads the SDK should attempt to load for the request. This number is capped at a maximum of five, and it’s not guaranteed that the SDK will return the exact number of ads requested. If multiple ads are returned by a call to loadAds() , they will be different from each other.
After a call to loadAd() , a single callback will be made to the listener methods defined above to deliver the native ad object or report an error.
After a call to loadAds() , multiple such callbacks will be made (at least one, and no more than the number of ads requested). Apps requesting multiple ads should call AdLoader.isLoading() in their callback implementations to determine whether the loading process has finished.
Here’s an example showing how to check isLoading() in the onNativeAdLoaded() callback:
Kotlin
Cleaning up
Be sure to use the destroy() method on loaded native ads. This frees up utilized resources and prevents memory leaks.
Ensure that all NativeAd references are destroyed in your activity’s onDestroy() method.
In your onNativeAdLoaded callback, make sure to destroy any existing native ads that will be dereferenced.
Another key check is if the activity is destroyed and if so, call destroy() on the returned ad and return immediately:
Kotlin
Always test with test ads
When building and testing your apps, make sure you use test ads rather than live, production ads. Failure to do so can lead to suspension of your account.
The easiest way to load test ads is to use our dedicated test ad unit ID for Native Advanced on Android:
It’s been specially configured to return test ads for every request, and you’re free to use it in your own apps while coding, testing, and debugging. Just make sure you replace it with your own ad unit ID before publishing your app.
For more information about how the Mobile Ads SDK’s test ads work, see Test Ads.
When to request ads
Applications displaying native ads are free to request them in advance of when they’ll actually be displayed. In many cases, this is the recommended practice. An app displaying a list of items with native ads mixed in, for example, can load native ads for the whole list, knowing that some will be shown only after the user scrolls the view and some may not be displayed at all.
Hardware acceleration for video ads
In order for video ads to show successfully in your native ad views, hardware acceleration must be enabled.
Hardware acceleration is enabled by default, but some apps may choose to disable it. If this applies to your app, we recommend enabling hardware acceleration for Activity classes that use ads.
Enabling hardware acceleration
If your app does not behave properly with hardware acceleration turned on globally, you can control it for individual activities as well. To enable or disable hardware acceleration, you can use the android:hardwareAccelerated attribute for the and elements in your AndroidManifest.xml . The following example enables hardware acceleration for the entire app but disables it for one activity:
See the HW acceleration guide for more information about options for controlling hardware acceleration. Note that individual ad views cannot be enabled for hardware acceleration if the Activity is disabled, so the Activity itself must have hardware acceleration enabled.
Display a NativeAd
Once you have loaded an ad, all that remains is to display it to your users. Head over to our Native Advanced guide to see how.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Источник
Android Native Goodies PRO
Try game asset Android Native Goodies PRO 1.7.0 Unity for free.
Platform
Version
Number
Description
Android Goodies is a collection of Android native methods that allow you to do different things like showing native dialogs, opening a certain location on the map sharing text and much more.
Advantages:
— Clean and flexible API
— No overriding of Unity default activity
— Every API method documented.
— Full source code included
— Well-writtenВ documentation
Features:
в… APP INTERACTION в…
• Show all alarms, set alarm with all properties or set timer
• Open other apps by package, watch YouTube video in native app
• Create calendar event with all required params or open calendar app on the provided date
• Dial or directly call phone number, check if user has phone app.
• Open maps location, address, check if user has maps app
• Open any system settings screen
• Native share text, text+image, video, tweet, email, send SMS etc, check if user has twitter, sms, email app installed
• Share directly to most popular messaging apps
• Pick photo from gallery app, save picture to gallery
• Take photo with camera and get the image
• Video, sound or arbitrary file picker.
• Contact picker
• Copy text to clipboard
• Print images and HTML documents
в… Local notifications в…
• Support for various styles (messaging, inbox, big text, big picture and many many more)
• Scheduling and scheduling repeating notifications
• Cancelling by id or all at once • Manage notification channels and channel groups
• Pass custom data with notification
• Check if app was open via notification (if wasn’t running)
в… Native UI в…
• Showing native alert dialogs with buttons/radiobuttons/checkboxes
• Showing date/time picker
— Show spinner/horizontal progress bar
• Showing toasts and immersive mode methods.
• Set wallpapers from file/texture, set with crop, reset wallpaper to default.
в… Retrieving Info в…
• Various methods to get various info about device and apps (android.os.Build, android.os.Build.Version) and other
• Access to some android.os.Environment properties and methods
• Internet connectivity and wifi related methods
• Telephony related methods
в… Hardware в…
• Get device battery charge level
• Enable and disable camera flashlight (as torch), check if device has flashlight
• Listen to GPS location changes with all the detailed GPS data, check if GPS enabled, get last known location
• Check if device has vibrator, vibrate or vibrate pattern, support for new vibration effects API Other
• Method to save Unity Texture2D to Android gallery
• Fingerprint authentication and fingerprint data encryption/decryption
в… Other в…
• Manage and request Android Runtime Permissions
• Manage Android SharedPreferences the native way.
Источник
Android Native Goodies PRO
If possible, please buy the package to support the developer
Android Goodies is a collection of Android native methods that allow you to do different things like showing native dialogs, opening a certain location on the map sharing text and much more.
Advantages:
— Clean and flexible API
— No overriding of Unity default activity
— Every API method documented.
— Full source code included
— Well-written documentation
Features:
★ APP INTERACTION ★
• Show all alarms, set alarm with all properties or set timer
• Open other apps by package, watch YouTube video in native app
• Create calendar event with all required params or open calendar app on the provided date
• Dial or directly call phone number, check if user has phone app.
• Open maps location, address, check if user has maps app
• Open any system settings screen
• Native share text, text+image, video, tweet, email, send SMS etc, check if user has twitter, sms, email app installed.
• Share directly to most popular messaging apps.
• Pick photo from gallery app, save picture to gallery.
• Take photo with camera and get the image.
• Video, sound or arbitrary file picker.
• Contact picker.
• Copy text to clipboard.
★ Local notifications ★
• Support for various styles (messaging, inbox, big text, big picture and many many more)
• Scheduling and scheduling repeating notifications
• Cancelling by id or all at once • Manage notification channels and channel groups
• Pass custom data with notification
• Check if app was open via notification (if wasn’t running)
★ Native UI ★
• Showing native alert dialogs with buttons/radiobuttons/checkboxes
• Showing date/time picker
— Show spinner/horizontal progress bar
• Showing toasts and immersive mode methods.
• Set wallpapers from file/texture, set with crop, reset wallpaper to default.
★ Retrieving Info ★
• Various methods to get various info about device and apps (android.os.Build, android.os.Build.Version) and other
• Access to some android.os.Environment properties and methods
• Internet connectivity and wifi related methods
• Telephony related methods
★ Hardware ★
• Get device battery charge level
• Enable and disable camera flashlight (as torch), check if device has flashlight
• Listen to GPS location changes with all the detailed GPS data, check if GPS enabled, get last known location.
• Check if device has vibrator, vibrate or vibrate pattern, support for new vibration effects API Other
• Method to save Unity Texture2D to Android gallery
• Fingerprint authentication and fingerprint data encryption/decryption
★ Other ★
• Manage and request Android Runtime Permissions
• Manage Android SharedPreferences the native way.
Источник