If I remove a dependency from Gradle does it get uninstalled?

Android
I included an open source library in my Gradle dependency list and no longer wish to use it. If I remove the line from the Gradle compile path, does t...
2 years ago

Show dialog activity over another app from background

Android
Say you have an app A which opens up another app B (e.g. a map), which is not controlled by you (i.e. it's a preexisting app). So now app A is in the ...
2 years ago

Convert UTC date to current timezone

Android
I have to convert a UTC date in this format "2016-09-25 17:26:12" to the current time zone of Android. I did this: SimpleDateFormat simpleDateFormat ...
2 years ago

Repeating Same Data in JSON ListView

Android
I have a Custom ListView Retrieving data from Mysql database by JSON but The Problem is the list view is showing only one entry repeatedly. How Should...
2 years ago

Error: Android-XML:Placing a <WebView> in a parent element that uses a wrap_content size can lead to subtle bugs; use match_parent

Android
I am a beginner in Android and building a linear layout and getting an error in the layout XML file like this, Error Placing a &lt;WebView&gt; in a...
2 years ago

Menu disappeared after extending the Activity with BaseActivity

Android
I have following code in all Activity files. I will use same menu for all activities. Here is the code. @Override public boolean onCreateOptionsMenu(...
2 years ago

How to update the values in Table using Realm android?

Android
I have table say Student .I want to updated the values in the table and it does not have any primary key. I am using Realm Database for the same. ...
2 years ago

Android Keyboard Adjust Resize

Android
I am Developing one Application which contains Activity and Fragment. In Fragment Layout I used Relative Layout as Parent Layout,one button in bottom ...
2 years ago

Error: Please provide a path to the Android SDK

Android
After installing the Android studio and launching it I am getting this error. I cannot specify the path to the SDK. I have tried giving the path as ...
2 years ago

how to upload high resolution image in android to .net API server?

Android
I am using below code to upload image to server but it is compressing image to lower resolution. class ImageUploadTask extends AsyncTask&lt;Stri...
2 years ago

notifyDataSetChanged() makes the list refresh and scroll jumps back to the top of list

Android
This is the main class. When I scroll down for more data and call the adapter, the list refreshes and scrolling jumps back to the top of list. I trie...
1 year ago

Hiding and showing multiple views using the same animation

Android
I want to apply an animation for multiple views at the same time, how can I apply said animation to several types of views (buttons, imageviews, and o...
1 year ago

Exception while reading file from SD Card

Android
I am trying to read an XML file from the SD card. The path is fine, but it says: java.io.FileNotFoundException: /file:/mnt/sdcard/Reginfo/output/d...
1 year ago

Horizontal RecyclerView Like Paytm

Android
I have to implement a custom horizontal RecyclerView having a header (title) at top and a section (See All) right side at the end of the RecyclerView....
1 year ago

CursorLoader not updating after data change

Android
I have created a small application, trying to understand the functionality of the LoaderManager and CursorLoader-classes. I have implemented LoaderCa...
1 year ago

How to sort data from Database with DESC in Android

Android
I want load data from SQLiteDatabase and I should sort this data with DESC! I write below code: /*Retrieve data from database*/ public List&lt;FavMo...
1 year ago

Sending JSON as extra data in an android broadcast via ADB gets incorrectly formatted

Android
I'm trying to send JSON data as extra on an Android broadcast wich i send via ADB to the device. But it looks like the data which gets to the device i...
1 year ago

How to confirm whether there is a NFC tag exists in Android now?

Android
As I know when an Android phone gets a NFC tag touched,it will send a event to NDEF,but Android don't care whether this tag is staying in place.My sol...
1 year ago

what exactly is "configuration on demand" in Gradle?

Android
I recently changed some settings in Gradle to speed up its process and one of them was changing this "org.gradle.configureondemand=true " property in ...
1 year ago

Rounded Borders for Android Layout

Android
How to Make Rounded Corners and Shadow for the layout in android any examples for help? http://imgur.com/EecAwFX ...
1 year ago