Multiple dex files define Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat

Run gradle -q dependencies (or gradle -q :projectName:dependencies) to generate a dependency report. You should see where r7 is coming from, such as: Then, use the exclude directive to block that dependency. In my case, it is coming from my CWAC-Camera library, and so I use: (where the second compile statement indicates what version you … Read more

How to make a round button?

Create an xml file named roundedbutton.xml in drawable folder Finally set that as background to your Button as android:background = “@drawable/roundedbutton” If you want to make it completely rounded, alter the radius and settle for something that is ok for you.

Android : When do we use getIntent()?

http://developer.android.com/reference/android/app/Activity.html#getIntent() Return the intent that started this activity. If you start an Activity with some data, for example by doing you can retrieve this data using getIntent in the new activity: So, it’s not for handling returning data from an Activity, like onActivityResult, but it’s for passing data to a new Activity.