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...
3 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 ...
3 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 ...
3 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...
3 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...
3 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(...
3 years 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...
3 years 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...
3 years 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...
3 years 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 ...
3 years 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 ...
3 years ago

Get button ID not entire button

Android
ArrayList&lt;View&gt; allButtons; String button; button = ((RelativeLayout) findViewById(R.id.activity_main)).getTouchables().toString(); System.out....
3 years ago

Cannot remove item from Shopping Cart android studio

Android
I referred [this][1] and [this][2] site and tried to modify it according to my own needs. Problem is I can't remove an item from the cart. I have trie...
3 years ago

Marshmallow permission implementation

Android
I am trying to add Android 6.0 support in my Existing Android App. I have used SYNCADAPTER to sync data. its working fine till API 22. but in 23 (ANDR...
3 years ago

Cloud Speech API return code=UNAUTHENTICATED, cause =java.io.IOException: Error getting access token for service account:

Android
I use Google Cloud Speech API(StreamingRecognize via gRPC) for speech recognizing in my app. I got the problem with authenticate on Android devices AP...
3 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. ...
3 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 ...
3 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 ...
3 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...
3 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...
3 years ago