FileProvider - Can't save file due to FileNotFoundException: /Download/TempFile.html (No such file or directory)

Android
Seems like FileProvider is now required for Android N, so I'm trying to implement FileProvider to save a file from the network into a local temp locat...
3 years ago

Continues counting button

Android
I'm trying to create a button which when held would add 1 or any number to it until the button is released. My goal would be to create an on-screen cu...
3 years ago

How to access local files of filesystem in android emulator?

Android
I'm using ubuntu 10.04 for android development.I want to know whether there is a method to access local files(say text files,web pages) of the filesy...
3 years ago

can i use view pager with views (not with fragments)

Android
I am using ViewPager for swiping b/w Fragments, but can I use ViewPager to swipe b/w Views simple xml layout? This is my page Adapter for the ViewPag...
3 years ago

Run continuous action when button is pressed

Android
I'm trying to do this. When I touch a button and I keep pressing on it, it must perform an action, and this action will only stop when I stop pressing...
3 years ago

Prevent ViewPager from always instantiating Fragment at position 0?

Android
I'm using a FragmentStatePagerAdapter and ViewPager, and the default starting page is 0. I want mine to start on some arbitary page, say 5. This is ...
3 years ago

Android: How to make Linkify links not long-clickable

Android
I have some TextViews that I use Linkify on. I'd like for the links to not be long-clickable. Using setLongClickable(false) on the TextViews doesn't h...
3 years ago

Display FB profile pic in circular image view in Application

Android
I am trying to get the profile pic of a user from FB and display it in a circular image on my app.I am able to retrieve and display the display pic in...
3 years ago

Android MapBox inflating error. Didn't find class MapView

Android
When I launch android app with MapBox library I get exception: "android.view.InflateException: Binary XML file line #9: Error inflating class co...
3 years ago

Android Studio: Unexpected top level exception (finished with non-zero exit value 2..)

Android
When i'm trying to debug my android app i'm getting the following error message: Error:Execution failed for task ':app:transformClassesWithDexFo...
3 years ago

Detecting Sdcard in android?

Android
I am using the following code to access sdcard if mounted else using the internal memory: if( android.os.Environment.getExternalStorageState().equal...
3 years ago

How to set parent activity of an activity programmatically in android?

Android
I have an activity 'A' in the application that I'm developing. This activity will be shown once I start the app. It can also be visited by selecting i...
3 years ago

get "DeviceId" and display it in textview

Android
I'm new to android and I'm trying to get phone serial number and show it in text view.. so this is my code: TelephonyManager mngr = (TelephonyMan...
3 years ago

gridview and navigation drawer not working together in android

Android
I have downloaded code for gridview and code for navigation bar. Both codes are working fine individually but when I am trying to combine them its giv...
3 years ago

How to Create non-Standard or Malformed Java URL object deliberately

Android
I am trying to use the Glide Android library to load images from urls such as String urlString = "https://images.example.com/is/image/example/EXMPL12...
3 years ago

RecyclerView implement GridView

Android
Problem I want to use RecyclerView to implement GridView.In fact I need to display all local photos in RecyclerView which has 3 columns.I know about ...
3 years ago

How to pass data from an activity to a java class

Android
I have reached the wall on the following. I am trying to pass a variable from my main activity to a java class that generates my database because I wa...
3 years ago

WebView control with focus blocks media button events in Android 5

Android
Edit May 8, 2016 I found the reason for my troubles receiving media button events in my app. See the answer below. I editid the title of this questio...
3 years ago

Different width when loading same image with Picasso

Android
I'm using the following code to convert dp to pixels : public static int convertDpToPixel(float dp){ DisplayMetrics metrics = Resources.getSystem...
3 years ago

Android shared element to dialog actvitiy

Android
I've got one activity with an image in a toolbar and an activity that is themed like a dialog with the same image in big. These are the layout files: ...
3 years ago