Questions tagged as 'android-studio'

3
answers

Background image in Android Studio

I want to know how I can add a background image in an android studio application, I have read that it should be in the drawable folder; but I do not know how to add the image to that folder. The image is downloaded from the internet.     
asked by 05.06.2017 / 05:35
2
answers

how to go from a Fragment to an Actvity

What I'm trying to do is that by clicking on an item of the ListView that is in a fragment it will take me to Activity . @Override public void onActivityCreated(@Nullable Bundle savedInstanceState) { supe...
asked by 13.06.2017 / 05:55
3
answers

Messy items Android Studio 2.3

Does anyone know why the objects go out of order? when you ran the application in the emulator, the objects are displayed as messy in the application and not as they are displayed in the development interface. :(  This happened after the android...
asked by 05.03.2017 / 20:46
1
answer

Problems reading an sqlite database

Hello, I have the following code that calls the database of my application. All I need is to count the amount of data. I AM ROOT USER public int contar() throws SQLException{ Cursor mcursor = null; mcursor = this.getReadableDataba...
asked by 11.05.2018 / 06:04
3
answers

Error creating new Android project

I just created a new project Android with Android Studio I chose the minimum SDK that is 9 (Gingerbread) and the activity that be a NavigationDrawer Activity , once chosen and created the project I get the following error: Error:Ex...
asked by 16.08.2017 / 13:13
1
answer

How to send data from one Fragment to another Fragment?

I have created an application where I create 3 Fragments which I visualize with tabs and I want to send information from one fragment to another .. but I do not know what I'm wrong with as it does not mark a code error, but when I click on it bu...
asked by 14.10.2018 / 19:53
2
answers

I've updated Android Studio and now I see errors that were not there before

Well, that worked perfectly ... I updated the Android Studio and now it does not work. I see errors in build, Run tasks .. and I have no idea what it is or how to solve it This is an image of what I see I also see that in one of m...
asked by 11.11.2018 / 18:05
3
answers

Pass variable when clicking on a listView item to another activity [duplicated]

Good morning. I have this query because I am too new programming in Android Studio and I do not know where to go. I have a listView that I load with data from a database that I have on my PC and I obtain the data by a php file. That's ok, the...
asked by 22.05.2017 / 05:20
2
answers

You can not see the HINT of an EditText on android

Good! I have an app in android studio and I can not make the HINT (default text) to be seen in the application when I run it ... it looks in android studio but in the app it does not ... EditText XML Code: <EditText android:inputType...
asked by 05.06.2017 / 04:27
2
answers

Activities on android [closed]

I have doubts about the life cycle of an activity. It is not very clear to me what should be done in what method. It is assumed that in onCreate I simply declare the views and the elements it contains and in onStart and onResume...
asked by 26.11.2016 / 07:46