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
votes4
answers1125
viewsLoading an externally created Sqlite database
I need to use a previously created Sqlite database, already with records inserted in it. But the only way I had done until then was when the application itself created the bank, which I internally…
-
0
votes1
answer482
viewsConvert float, double or single value to Datetime
I was having trouble Cast when running a lambda and serializing for the service. Well, the solution was to pass everything to String and I got it. On the other side(Android App) I pick up and do…
-
0
votes1
answer35
viewsProblems with xml in different screen sizes
Good afternoon, I’m not able to understand how it makes the compatibility of various screen sizes in my application, I looked on the internet and youtube and there talks to create a folder within…
-
0
votes2
answers21
viewsWhat is this error "D/TAG: Return...: [Lcom.example.Gustavo.domanda.Consultarpojo;@11c78941"
I have the following code that should return a data list package com.example.gustavo.domanda; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import…
androidasked 7 years, 2 months ago GustavoSevero 2,567 -
0
votes1
answer164
viewsI can’t get value from the onSuccess (Uri Uri) method return
For my college TCC I am developing an App for android. I stopped at a point where I am downloading the URL of some Firebase Storage images, and within the method onSuccess(Uri uri), i have access to…
-
0
votes1
answer262
viewsEdittext already completed after user login using firebase
Hello! I’m having second thoughts about a process I’m having trouble doing. I have the following screen, and I wanted the user Edittext is already filled with the user’s name or the user’s email.…
-
0
votes0
answers21
viewsnotify every day schedule X
I was running the code in android studio but the code has some flaws and I can not solve,. Mainactivity @Override protected void onCreate(Bundle savedInstanceState) {…
-
0
votes2
answers4197
viewsHow to put an edge on an Android Textview
Hi, I’m having difficulty in setting an edge in Textview Android. I tried so: <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android"…
-
0
votes1
answer79
viewsAlign view on top of a Linearlayout
How to align a view on top of a linear layout? (At the bottom left). I want the blue ball to look like this: But the way I’m trying to do it is: Xml layout: <?xml version="1.0"…
androidasked 7 years, 2 months ago felipe.rce 1,969 -
0
votes1
answer45
viewsReturn to Fragment Blank
I’m using Navigation Bottom in intent main and inserted a Alert customized on another screen to return to her, however, when I return the screen is blank, you know how I can solve this? I thank you…
androidasked 7 years, 2 months ago Celso Andre 89 -
0
votes1
answer775
viewsAdd 'Swipe to refresh' to Webview
I’m relatively new to programming for Android and would like to know how to add functionality Swipe to refresh [pull up to update] in my app. I want you to pull up, the WebView be updated. <?xml…
-
0
votes1
answer26
viewsMainactivity error :non-static method set(int,int)
I was running the codes when I got to the end and came across errors in MainActivity, I’m using API 16, someone help me ? **code ** import android.app.AlarmManager; import…
-
0
votes1
answer99
viewsCreate an int variable that recognizes numbers in time format
I have a variable int that is taking the current time of android and comparing with more dua variables int of my database in the parse that contains the opening and closing time of a company, in…
-
0
votes1
answer127
viewsError spinner android
The method setOnItemSelectedListener is not called. I am trying to get a value of an item by means of a spinner, but when I click on the item I want, nothing happens. I created a TAG to check if the…
-
0
votes0
answers38
viewsHow to put the values of a db column in an array?
I have a table, which is written below. Busy is the part I will move. The value of Busy will be changing according to the program from 0 to 1, depending on whether you are busy or not. I need to…
-
0
votes2
answers1376
viewsHow to make a Login and Password system secure for Mobile Apps?
I created a security system in php with mysql for my website, but through the browser on desktop computers, the session is stored in cookies, and it is easy to know which user is logged in and what…
-
0
votes1
answer496
viewsHow to pass data from one Fragment to another (upadte Sqlite)?
I’m developing an app with Sqlite, I want to take the dice of a ListView (where I am displaying the saved information) and want to play for a Fragment to enable the user to edit it. I’ve tried…
-
0
votes0
answers119
viewsHow to access the Date tab from within the Android Device Monitor
Hello, I’m having a problem that I can’t access my tab even using the emulator or a physical device connected to the PC with a USB. This error may be due to some permission, but I don’t know how to…
-
0
votes1
answer37
viewsHow to run a Recicle view on other activitys
How do I place a recicle view or a list view in some other Ctivity ? Example: I created a project with name X dai in it so I put the layout as Empty Activity and such it generates me an…
-
0
votes1
answer282
viewsAttempt to invoke virtual method 'long Contactodao.alterar(Contact)' on a null Object Reference
Error: 09-12 14:05:28.662 10410-10410/costamilam.guilherme.contatosempresariais E/AndroidRuntime: FATAL EXCEPTION: main Process: costamilam.guilherme.contatosempresariais, PID: 10410…
-
0
votes1
answer1067
viewsRetrofit JSON - Error Expected BEGIN_ARRAY but was BEGIN_OBJECT
I’ve done some Retrofit projects and it always worked but I’m doing one that consumes the end-point of api.github.com and is giving an error and I’m not able to find a solution, I’ve done everything…
-
0
votes0
answers53
viewsAndroid Studio - App to work on other phones
in this post here: Android Studio - Error in Activity Call I told you the problem you were facing. In short... I developed an app (game) with buttons that call screens. The idea is like this: Screen…
androidasked 7 years, 2 months ago Valter Neto 3 -
0
votes1
answer319
viewsjava.lang.Stackoverflowerror: stack size 1038KB
I’m making an algorithm that converts one bitmap leaving it in shades of gray. I could do it using for but I’d like to do it recursively. Using for (This working well) //BUTTON - ON CLICK . . .…
-
0
votes0
answers132
viewsBlurred effect at the bottom of Edit text
How to put the blurred effect at the bottom of Edit text? <EditText android:id="@+id/button" android:layout_width="300dp" android:layout_height="40dp" android:layout_alignParentTop="true"…
-
0
votes1
answer54
viewsHow to share content from a listiview?
Hi, I have a question. I’m making an APP, which has a listview that has text and an image. I would like to know how I can share the content the person clicked on. Just follow my code: // DECLARANDO…
-
0
votes1
answer109
viewsJSON Return Giving Error
I’m doing a service to get the return JSON in an Android application, so far so good, but I don’t know where I’m going wrong when it comes to getting the value. The structure of JSON is this:…
-
0
votes1
answer185
viewsFirebaseuth stopped authenticating the user
In the app, before the user sign in, they need to log in with email and password. If you don’t have it you can create an account. The problem happened last night, already registered users can not…
-
0
votes1
answer5530
viewsPassing parameter to another Android Activity
I created a QRCode and I made it as soon as it generated the value, it was shown on the screen and I would have the option to say ok or just leave, I would like that when I clicked on Ok it was…
-
0
votes1
answer221
viewsCheck for active subscriptions with Billing Android App
Hello, I am implementing subscriptions in my app that will serve to remove the ads. I have an Activity that is doing the shopping and is working. When the purchase is successfully completed I save a…
-
0
votes1
answer218
viewsViewpager + Fragmentpageradapter + Update Fragment?
In the implementation of a Slidingtabs using the Slidingtablayout and Slidingtabstrip classes provided by the Android website Dev + Viewpager + Fragmentpageradapter when the data is updated in the…
-
0
votes0
answers109
viewsHow to update a Spinner from Edittext data on Android
I have a Spinner that is being filled with Sqlite data, I want to take this data, edit them and update them My Spinnerdatabase class method (responsible for the Spinner database) public void…
-
0
votes1
answer315
viewsHow can I copy a machine from android studio to another machine, without needing to install android studio?
I installed the android studio on my machine and created a machine with android to emulate the applications, but now I want to take only this machine that I created and put on another computer, I’m…
-
0
votes1
answer197
viewsHow I publish my application Xamarin.Forms
How do I distribute mine App that I just created? Like, I go to the customer to install a version on the two or three person smartphone to test. What I take to deploy on this device, my app? How do…
-
0
votes0
answers135
viewsKeep Countdowntimer running after the app closes
I made a Countdown in a service, it works when the app is sending to the background, but when the app to the state "Dead" it to the count and restarts when I open again. I need it to continue…
androidasked 7 years, 2 months ago Igor Oliveira 1,110 -
0
votes1
answer3946
viewsShare app link with Whatsapp
Good morning ! How do I share a link from my app with a contact in Whatsapp ? Searching on the internet I was able to form this code (it is without successful tests because I’m still just testing…
-
0
votes0
answers168
viewsSelect Date AM - PM Timepicker Android
I have a Timepickerdialog configured in my project and is working properly. When choosing the time I have the following option - PM or AM. Code: private void timePicker(){ // Get Current Time final…
-
0
votes2
answers201
viewsFirebase does not work with multiple apps
all right? I started a project in Firebase and Linkei two related applications in the same project. I made an equal login/signin system for both. It turns out that for an app, Sign in works normal…
-
0
votes0
answers34
viewsInstantiate Fragments only once with navigationBotton
You guys good night, I really need a force, I am implementing a navigation Bottom to navigate through Fragments, but in one of the Fragments there will be a counter and when I navigate through the…
-
0
votes1
answer141
viewsApplication Xamarin.Forms stopped out of nowhere
I was making a code to receive notification and suddenly the application does not run anymore. Compile, Deploy, but it takes time to consume the service and appears this message: O Android project…
-
0
votes0
answers393
viewsAndroid studio ERROR java.lang.Nullpointerexception
I’m developing a code in android studio and using bluetooth communication. I want to make that if a specific data received by bluetooth is greater than such value, automatically generates a…
-
0
votes1
answer318
viewsCalculator Androistudio
Good night I am creating an application using 5 "boxes" (EditText) where he could multiply the boxes he wanted. Example: value1 * value2= resu.... value1*value2*value3=resu.... value1*value2*va…
-
0
votes1
answer32
viewsCrash app when trying to save a file using Objectoutputstream
Mainactivity is like this: turma.alunos.add(Aluno("Weslley", "123")) turma.alunos.add(Aluno("Thiago", "1235")) turma.alunos.add(Aluno("Thayane", "1234")) turma.alunos.add(Aluno("Kelvin", "1253"))…
-
0
votes1
answer141
viewsIncrease/Decrease Seekbar progress with Button action?
Someone can help: How to increase and decrease seekBarHomem progress through Button action? @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);…
-
0
votes1
answer430
viewsObject list for another Activity
I’m trying to save a list of objects with sharedpreference and gson. And the idea is that I can upload this list to a Listview, I ran the tests and when it goes to listview it only loads the…
-
0
votes1
answer45
viewsProblem with Firebasepp call
I have a fragment that performs user registration and login using Firebase. However, I’m having trouble with the initializeApp(Context) method. Follows the code: @Override public View…
-
0
votes1
answer53
viewsRemoved items reappear on Landscape
I have a ArrayAdapter in a Listview and when the user clicks and holds it displays a Contextmenu with the Delete bookmark option. The delete function is working, but as I create the Adapter in the…
androidasked 7 years, 2 months ago Léo Santos 114 -
0
votes1
answer803
viewsCalling Javascript function from Java (Webview android)
I am with a simple doubt to understand but I have not found solution.I have a Webview in my MainActivity where is loaded a responsive Website that I created, in this Website I have a shopping cart…
-
0
votes1
answer70
viewsSMS with Googlemaps link is not sent
I work with sending SMS with the Googlemaps link, but in some cases, the phone does not send, I can not know the reason, other links are sent normally. Follow the image of the message: I would like…
-
0
votes0
answers71
viewsHow to implement a Pushnotification
I know I need a notification server for this. I chose firebase because it is free and does not require a credit card. What I want to do: 1) When the user changes the flag in the database, then a…
-
0
votes1
answer655
viewsListview by selecting position
I have a code I need him to select the item by its position... In case he is already selecting but he selects randomly. listView.setOnItemLongClickListener(new AdapterView.OnItemLongClickListener()…