Questions tagged as 'android'

2
answers

Calling an Activity within a Fragment - Android Studio

I need that from the click of a button inside my Fragment, it calls an Activity. My code looks like this: public class ActFoto2 extends Fragment implements View.OnClickListener, ViewTreeObserver.OnGlobalLayoutListener { private Button pr...
asked by 01.06.2016 / 20:08
1
answer

Navigation drawer - back button

I'm trying to make the back or back button of android keep the sequence of fragments that I'm rendering according to the option chosen in my navigation menu (Navigation Drawer), however I can not, it always closes the app when I click on it ba...
asked by 12.04.2016 / 07:40
1
answer

Camera permission on Android [duplicate]

I have the following camera access and storage permission in the AndroidManifest.xml file: <uses-permission android:name="android.permission.CAMERA"/> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> &...
asked by 09.05.2017 / 23:51
1
answer

Saving an Image to the Database

Hello, I was wondering if you can save an image in the database and show it in a listview. If you have how you wanted to know or if you can not save an image in the database, how can I do to call a different image for each row ....     
asked by 03.07.2017 / 22:04
1
answer

Consume webservice Rest on Android

I'm trying to consume a Rest webservice on Android. I have already done all the steps of the tutorial, but it continues falling onFailure and presenting the error message. I already checked the whole code, but since I am a beginner, I could not...
asked by 02.06.2017 / 01:24
1
answer

Connection Error with the Database in ANDROID

I created a database on localhost, and wanted to pull this database to my Android, I created two classes, CONEXAODAO, and ConnectionMYSQL: public class conexaoDAO { public String tabelaDepartamento () { String departamentoNome = "...
asked by 14.08.2015 / 19:55
2
answers

Database on Android

Hello! A few days ago, in a question I made here in StackOverflow, I said I was starting to develop for the Android platform. This week was very productive and I already have some ideas to apply, but I have a lot of doubts. I would like you to r...
asked by 10.07.2015 / 19:04
3
answers

AndroidStudio error OnClickListener ()

I do not know how to fix the error OnClickListener () in the java class below, only has it to fix Here is the complete code to download: link Error: classeOlaCalendario.javapackagecom.example.brainiac.olacalendario;importandroid.annotat...
asked by 03.01.2017 / 01:09
1
answer

Ion Json Android [closed]

I am working with this library link and I am not able to manipulate the data return via JSON of the following format [{"id":"1","nome":"XXX","cidade":"XXXXXXX"},{"id":"2","nome":"XXXX","cidade":"XX‌​XXXXXXXX"}] JsonObject json = new JsonOb...
asked by 29.03.2016 / 12:51
2
answers

MPAndroidChart Chart

I'm using MPAndroidChart to make graphics. The problem is this, when I have too many items in the caption, it expands leaving the graphic small. Can you create a scroll in the legend instead of expanding it and consequently decreasing the gra...
asked by 25.01.2016 / 14:15