Program type already present: android.support.design.widget.CoordinatorLayout

Program type already present:
android.support.design.widget.CoordinatorLayout$ViewElevationComparator
Message{kind=ERROR, text=Program type already present:
android.support.design.widget.CoordinatorLayout$ViewElevationComparator,
sources=[Unknown source file], tool name=Optional.of(D8)}

ANDROID ERROR- Firebase Crashlytics found an invalid API key: null


after adding file fabric.properties, getting error as below.
Crashlytics found an invalid API key: null. Check the Crashlytics plugin to make sure that the application has been added successfully! Contact support@fabric.io for assistance.

We need to register app and verify SHA-1 for same.
Add firebase: add google-services.json file from firebase console to your /app folder of your application(follow steps given by Firebase Console-> Add Firebase to your Android app ).
It's not giving error now.

( So, after adding the ApiKey for crashanalytics,
How can a firebase server verify that the crashanalytics key used by your app?
So, after you add  the firebase api key as above, the firebase server will be able to verify your app based on the google-services.json (SHA-1 verification))

For more: ERROR - Crashlytics Developer Tools error

Error:Execution failed for task ':app:preDebugAndroidTestBuild'.

Error:Execution failed for task ':app:preDebugAndroidTestBuild'.
>Conflict with dependency 'com.android.support:support-annotations' in project ':app'. Resolved versions for app (26.1.0) and test app (27.1.1) differ.
See https://d.android.com/r/tools/test-apk-dependency-conflicts.html for details. To solve this I included the force usage for support annotations in my test app, since it is internally used by runner module.


how to download an image into a bitmap using the glide library in android

Glide.with(CurrentContext)
.load("url to image online saved")
.asBitmap()
.into(new SimpleTarget() {
@Override
public void onResourceReady(Bitmap retrivedbitmap, GlideAnimation glideAnimation) {
MyBitmapObj=bitmap;
}
});


 How does one use glide to download an image into a bitmap? 

hide and show text division in Blogger post on button click

We are going to see how to hide the text on the click of button and show again on another click.

First take a example of the MCQ question shown below in image. This question at end has the button which show/hide the answer based on the current visibility of answer text:

image not available try demo

Steps to use the demo for the hide/show text::
1) create new post
2) select HTML from the Compose/HTML button on top left of the toolbar of the blog
and delete default text on that page.
3) copy code given below
4) Test the hide/show text  after publishing /updating the page to blogger.
5) View updated page in browser and you can see the working demo.

Below is the code you need to copy paste to new blogger post:

code starts after this line
<div dir="ltr" style="text-align: left;" trbidi="on">
<b>here we have an exampe to hide and show the answer of the below question:</b><br />
<b><br /></b>

<b>Question: What is the color of sky:</b><br />
<div>
<b>(1) Purple</b></div>
<div>
<b>(2) Orange</b></div>
<div>
<b>(3) Green</b></div>
<div>
<b>(4) Blue&nbsp;</b></div>
<b><br /></b>

<!--(this is comment) here, this button below hide/show text on click, we are passing id of the division ("hideshow") to hide/show the content of division -->
<button onclick="if(document.getElementById('hideshow').style.display=='none') {
                                         document.getElementById('hideshow').style.display=''
                                                         }else{
                                     document.getElementById('hideshow').style.display='none'}" title="Show/hide content" type="button"><b>Show/hide Answer</b></button>
<br />
<!--(this is comment) here, on button click event, the state of the text will change as we are passing the id of the division we want to hide or show -->

<br />
<div id="hideshow" style="display: none;">
Correct answer is option - (4) Blue </div>
</div>

code ends before this line

hide and show text in Blogger on button click example

here we have an exampe to hide and show the answer of the below question:

Question: What is the color of sky:
(1) Purple
(2) Orange
(3) Green
(4) Blue 



Top 10 augmented reality sdks for developers

AR SDK in Android


Some Important links:

DSK Name
API/SDK Type
Compatibility Android versions
GitHub URL/ SDK URL
Applications

Wikitude
JavaScript and Native API
NA

- Instant Tracking
- Plane Detection
- SMART support (ARCore / ARKit)
- Hit-Testing API
Offline 3D Object/Scene Recognition & Tracking
- Offline/Cloud 2D Image Recognition & Tracking
- Multiple Image Targets
- Extended Tracking
- Save & Load Instant Target

Google ARCore
SDK and NDK
Android 7.0 and higher

Motion tracking
Environmental understanding
Light estimation

Vuforia (QUALCOMM)
JAR(SDK)

source code and explore Vuforia
- Recognition of the different types of visual objects (a box, cylinder, plane), text and
- environments recognition, VuMark (a combination of picture and QR-code).

EasyAR
SDK(JAR) + 2 .so files for ARM and other processor...
NA
Website:
Basic:
AR with planar target, smooth loading and recognition for more than 1000 local targets, video and transparent video playback based on HW codecs, QR code recognition, and multi-target tracking.

PRO::
- SLAM 3D Object Tracking
- Multi type of target
- simultaneous detection and
- Tracking Screen Recording
Note: Free trial only supports up to 100 times uses per day

(EasyAR SDK Pro $499.00/License Key)
Kudan
AR SDK
NA
Web:
- supports both marker-based and markerless tracking, which is great for AR
- developers who need to create functionality without marker based initialization.
How to download SDK??

Free:  Validity(1 Year No one time fee)

AR Business :  £1,000 /year
MAXST AR
(JAR)SDK + .so files...


License and Price list: https://developer.maxst.com/Pricing
Image Tracker, Visual SLAM (Simultaneous localization and mapping), and Object Tracker
- LICENSE TYPE Free (Watermark) -- Non-commercial use only
DeepAR


DeepAR Realtime Face Detection

Snapchat and Facebook style 3D and realistic face lenses, masks and special FX to iOS, Android, HTML5 and Unity applications.

Xzimg
NA
NA
Web:
Augmented Reality Magic Face Filters Deep Learning Vision at Your Service

Pikkart AR SDK
AAR files (SDK)
NA
Image recognition, AR Logo, Cloud recognition, Geo augmented marker


Popular Posts