Questions tagged as 'android'

2
answers

Error getting the dates in query SQLite

Hello it happens that I had problem to obtain the records of the date field of a sqlite table, now I have corrected my code to obtain dates like this: do { inicio=new Entidades.TablaInicio(inicio); inicio.setId(cursor.ge...
asked by 22.09.2018 / 20:09
1
answer

FATAL EXCEPTION: main ... Load SQLite query to arrayList and pass it to Recyclerview

Hi, I have a project in Android and what I need is to pass the data of a cursor, that is, a query to an arraylist, and then pass that array to another to "map" each column of the cursor in a class to show the data in a recyclerview. I really hop...
asked by 31.08.2018 / 20:04
3
answers

Not working properly .gitignore when versioning an Android project

I still can not have a .gitignore file that can help my code versioned in git for an Android project, if I modify a class or something very simple modifications are made in unnecessary files like tests. Annex my .gitignore too. *.iml .gr...
asked by 26.10.2017 / 17:11
2
answers

How can I get a magnifying glass when selecting an editext on the keyboard? Android Studio

I'm making a mobile application, which I'm looking for to make a search engine, but I'd like to type the magnifying glass icon on the keyboard in the edittext of the search, how is that possible?     
asked by 25.05.2018 / 20:39
2
answers

BitmapFactory.decodeStream (fileInputStream) returns null - Android

Good! I have a problem with the following code in Android Studio: try { FileInputStream fileInputStream = new FileInputStream(dirPhoto); bitmap = BitmapFactory.decodeStream(fileInputStream); vwImagen.setImageBitmap(bitmap); } catch (S...
asked by 17.03.2017 / 19:37
5
answers

Error android.os.NetworkOnMainThreadException in using Android HttpURLConnection

I try to make a request for a resource json using HttpURLConnection I test the following code in onCreate () try { URL url = new URL("http://localhost/testrealm/api/v1/status"); HttpURLConnection urlConnec...
asked by 10.06.2016 / 14:41
1
answer

Put expandablelistview with navigation drawer

Good Basically my question is explained in the title. I followed the steps of the following link: Example of ExpandableListview And the menu for this one: Navigation Drawer Example . I hope you can guide me, since I'm new to Android....
asked by 18.03.2016 / 21:30
2
answers

Keep an Android service always alive

I've been trying this a long time, looking for documentation and different questions in stackoverflow but I have not found the key. I need to launch a service that does not die by closing the APP completely. I've tried @Override public i...
asked by 07.02.2017 / 19:05
4
answers

Android: Remove data from an Object ArrayLIst

I have a problem extracting data from an Object ArrayList. This is my object public class ImageData { private int id; private String name; private Bitmap bitmap; private String path; public int getId() { return id;...
asked by 19.12.2016 / 17:13
2
answers

How to attach files on android to send by email?

Good evening, it turns out that I have my application in which I generate a pdf, then want to send an email and attach the pdf file, the pdf file generates it well, but I do not know how to attach the file. Thanks in advance.     
asked by 27.10.2016 / 10:53