Most voted "android" questions
Android is an operating system for mobile devices developed by Google and the Open Handset Alliance. Use this tag to reference questions related to programming for Android and be relevant only to this operating system. Use the [android-subject] tag instead of [subject] alone.
Learn more…8,935 questions
Sort by count of
-
0
votes1
answer329
viewscircle with Shape edges
How to make this circle in xml ? what I have so far: <?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <item…
-
0
votes1
answer185
viewsHandle response from the Rest service using Volley
I’m developing an application in android studio in which consumes a service I created in Play Framework. I am learning now how to create and consume services, and I am having difficulties in…
-
0
votes1
answer29
viewsanimate removeAllViews when recreating view
I have a scrollview with 6 buttons that change the background according to a previously chosen numberpicker, When I change the number of the Picker number and it removes the existing buttons and…
androidasked 6 years, 11 months ago Igor Oliveira 1,110 -
0
votes1
answer185
viewsVolley Android, recover server response
Hello, I am using Volley for Android to connect to my Webservice, but I would like to display the server response independent of the Status that returns HTTP via webservice. explaining better: When…
-
0
votes0
answers152
viewsWhere do I start to integrate my database game?
I want users of mine Mobile game can log in and save game information, and have the option to share some information (for example a created character) for other users to download and use. The…
-
0
votes1
answer108
viewsError while using Camera on Android 7.1
I’m having problems in a routine to take pictures, simple routine that in Android 4.1 a 6.0 no longer have problem in 7 while trying to take a photo for the app, tried everything a week ago trying,…
-
0
votes2
answers306
viewsAlertdialog Custom Layout - Nullpointerexception Error
You guys talking beauty? So I tried to create a Custom Aler Dialog, but every time I try to save it, it gives a Nullpointerexception error, but I don’t know what the cause is. The code of the method…
-
0
votes1
answer309
viewsValidate form
I’m developing a mobile application in android studio and I’m having difficulty implementing the validation of form input fields. Can someone explain to me why I can’t validate? Form class: public…
-
0
votes0
answers360
viewsHelp Ionic form validation 3
I would like a little help , I’m new to Ionic , and I would like a help on email validations just to see if it is valid , I do not want to search in any database , I just want to know if it has @or…
-
0
votes1
answer275
viewsListview displays only 1 item
I’m trying to bring the list of friends to be displayed, but only the first registered appears. I’m following a tutorial and my code is identical to the one I’m following. public class…
-
0
votes1
answer98
viewsAsynctask - Does not run twice
I am performing a process in my App, where in Mainactivity, I press a button, then it loads a JSON in another Activity that brings all the information correctly.. However, when I close the screen…
-
0
votes0
answers50
viewshelp with the wallpaper app?
I’m having trouble with my app that puts wallpaper on mobile, in my programming I managed to put 1 image and I managed to put the button that adds the app wallpaper on mobile, but I want to put an…
androidasked 6 years, 10 months ago renan silva das neves 159 -
0
votes1
answer189
viewsHow to show in gridview the data from firebase Storage using Picasso?
Good morning to all. My doubt relates only to the display part of the Gridview image. See the steps that are already working: I can upload to Firebase Storage. Each time an image is sent to your…
-
0
votes1
answer221
viewsRecover Data from Firebase with Multiple Child
I’m using this structure to save the data: private void salvar() { Protocolo protocolo = new Protocolo(); protocolo.setAssunto(edtAssunto.getText().toString());…
-
0
votes1
answer54
viewsNull Context when Generating PDF
I’m starting my studies on Android programming and I’m having a hard time understanding how to fix the error presented when debugging the app to generate PDF. E/Androidruntime: FATAL EXCEPTION: main…
-
0
votes1
answer392
viewsI am creating a game, how to implement a pause menu?
I am creating a game in Android studio using the Surfaceview class that is instantiated in Mainactivity and a thread that is instantiated in Surfaceview, the problem is when I turn on and off the…
-
0
votes1
answer173
viewsError reading Firebase data
I try to read the data from firebase and put in the view Recycler, however is giving this error. Error:(77, 73) error: constructor Firebaserecycleradapter in class Firebaserecycleradapter cannot be…
-
0
votes1
answer77
viewsAndroid - Method Invocation 'setOnClickListener' may Produce 'java.lang.Nullpointerexception'
I’m new to Android. Android Studio always warns me about this but I don’t know what it means. Method invocation 'setOnClickListener' may produce 'java.lang.NullPointerException' I would like to…
-
0
votes1
answer71
viewsRecyclerview Scrolllistener - Animate view visibility
I want a view containing some buttons to disappear and appear when I slide the recycleview as in Coordinator layout: but currently this way, and he has no animation, just fades and appears: Current…
androidasked 6 years, 10 months ago Igor Oliveira 1,110 -
0
votes1
answer53
viewsWhy does my recycleview not respect Match Parent?
I have a cordinatorlayout that contains a recycleview, however it fills the whole screen, and this all set as match_parent, including the recycleview card XML:…
-
0
votes1
answer80
views"No Resource found that Matches the Given name" in values.xml
I made some changes to the build.gradle application, and I think this caused a Resource error, which I still haven’t found solution. build.Gradle: apply plugin: 'com.android.application' android {…
-
0
votes2
answers68
viewsProblem with Bottonnavigationview
As you can see I’m with a little problem of layout in this form on Android, this form is opened inside a Fragment normally where I will send this data. 1- To my surprise the EditText does not expand…
-
0
votes0
answers503
viewsPass json format parameter to consume service post in app Xamarin.Forms
In my App I have this method to consume the service post (still writing the method): public async Task<string> PostIndicador(string jsonValue) { client = new HttpClient(); string url =…
-
0
votes1
answer33
viewsEdittexts in wrong position
I am creating a list of Edittexts programmatically. In all I give a margin of 20dp and place one below the other. The problem is that textbox2 is always on top of 1, the other textbox is in the…
-
0
votes0
answers113
viewsMy app aborts when trying to consume Rest
It has a Rest service that my android App needs to consume. For this I have to send a parameter in json format. It turns out he aborts the moment he consumes the Service. That’s the code I have for…
-
0
votes1
answer70
viewsHow to call a new Activity through a conditional structure that tests the connection?
I’m making a Webview app. It’s pretty simple: test the connection if it actually loads the site; fake case loads another Activity (other than the main). While there is connection, the app works…
-
0
votes0
answers458
viewsError: method does not override or implement a method from a supertype
I have a project in Android Studio for a solution in the company where I am working. The project is two years old or so, and when I imported it from svn for the IDE I started having problems with…
-
0
votes1
answer549
viewsAndroid Application Consuming Webservice
I’m trying to create my first app to make use of a Webservice, in which case I’m just trying to return some of the information via string and later put each piece of information in its proper…
-
0
votes1
answer76
viewsHow to put only true items in the second Activity?
I’m trying to make a favorite activity, I’ll follow the example of this guy here. In the second Activity I will create how I would put these items set as true in a listview? and play them normally I…
-
0
votes1
answer18
viewsMap stopped showing when changing PC
I have a map in a Fragment that was working normally until I tried to run on another PC. I went all through Pen Drive and trying to run the map does not appear and logcat says the authorization…
androidasked 6 years, 10 months ago Léo Santos 114 -
0
votes0
answers281
viewsAndroid Studio error when in Build . apk -Multiple Dex files sets
I have a fully made and tested Android App. When do I generate build apk I have the following error: Information:Gradle tasks [:app:assembleDebug] Error:Error converting bytecode to dex: Cause:…
-
0
votes1
answer41
viewsAndroid: Listview loses information/status when you put the app in the background
Good afternoon, I have an android application that fills a listview with certain information, and in this listview there is a validation that changes the color of the line according to the priority…
-
0
votes1
answer902
views -
0
votes1
answer226
viewsHow to set values in a Fragment instead of an Activity using Drawer menu?
I created a slider menu in my application and I was able to call an Fragment when selecting the menu options but I am having difficulties to print the values in this Fragment instead of using an…
-
0
votes1
answer47
viewsHow to display only set objects as true in a new Activity
I have here an arraylist that is shown in a listview, when I give long click a dialog is displayed there contains the favorite option that when it is selected the obeject is marked as true, as I do…
-
0
votes1
answer372
viewsSyntax error when using Sqlite android "DROP TABLE IF EXISTS"
package com.example.wesley.bancodedadossqlite; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; /** * Created by Wesley on 17/01/2018. */ public class…
-
0
votes1
answer720
viewsSqlite error: Foreign key Mismatch (fk incompatibils) when trying to make an insert
I’m trying to create a Associative Entity (N:N) in Sqlite like this: [ Pet --< Vacinapet >--- Vaccine ] And, here is the code of my Associative Entity CREATE TABLE VACINAPET ( vp_data TEXT NOT…
-
0
votes1
answer95
viewsNull object array - Android Base Adapter
Hello I was making a gallery, I created the Adapter, worked normally, so proceed to the step of listing files in a directory and then put in the list: ArrayList<GalleryItem>items = new…
-
0
votes1
answer138
viewsPosition an Image View by mobile accelerometer
I want to create a game on using android studio where my image view positions according to the movement I perform on mobile. For example: When starting the application the image appears in the…
-
0
votes1
answer310
viewsHow to call a Method in View using a Class that extends from Fragment
I have several buttons in a view that call the addNumero method in Onclick, something like this: <Button android:layout_width="match_parent" android:layout_height="match_parent"…
-
0
votes1
answer48
viewsCreation of a Splash
I’m creating a splash but this splach is stopping my App, it works for a few seconds after automatically closes my App stops working and no longer opens. public class Splash extends…
-
0
votes0
answers33
viewsI can only access the first Fragment with tabs
After some time without updating my apps I have to change them to adapt to Admob 7.0.0. In two of them use fragments on tabs (one with two tabs and the other with three) and he always positions on…
-
0
votes2
answers536
viewsRunning threads on android
I’m new at work with threads on Android and I’m having difficulties to implement them. To thread will be used to make a calculation and finally send an email depending on the result of the…
-
0
votes1
answer148
viewsBeginner questions about creating app on Android
I am new in the development of app for Android and I am using Android Studio for this, but I would like to anticipate some doubts. They are: How do I at the end of the project publish on Android?…
androidasked 6 years, 10 months ago user24136 -
0
votes3
answers218
viewsTextview when clicking , increase certain value that is in Edit text
I’m making a test application that has 1 Edit and a textview , Edit text will have a value within the initial 0 , when you click the textview , I want it to increase to 10.00 , and if you click…
-
0
votes0
answers117
viewsAuthentication problem with Firebase
I’m using Firebase for authentication and database of my app, everything was perfectly fine until (I’ll tell you exactly what happened because I don’t know if it has relation or not) I start to move…
-
0
votes0
answers2004
viewsConnect mysql to Android Studio
I have a web-based system where his database is with Mysql. I’m starting now to develop the application on Android using Android Studio. I wonder if you have how to create Mysql connection in…
-
0
votes1
answer199
viewsWhy can’t I add a marker by clicking on the map?
I’m using this code: import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import com.google.android.gms.maps.GoogleMap; import com.google.android.gms.maps.OnMapReadyCallback;…
-
0
votes1
answer688
viewsjava.lang.Nullpointerexception: Attempt to invoke virtual method 'void android.media.Mediaplayer.start()' on a null Object Reference
I am learning Java and know basically what Nullpointerexception means. But I would like to understand why this occurs. This is the Activity code: package com.example.android.miwok; import…
-
0
votes1
answer427
viewsChanging Navigation Drawer Activity Image
I’m creating an app by Android Studio and chose Navigation Drawer Activity as the system screen. But I would like to know how to change the green background and place an image. I believe it’s the…