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
-
1
votes1
answer548
viewsOpening a database in Sqlite instead of creating in Android Studio
Hello, I would like your help if there is a possibility to open a database. db (instead of creating the file) by android studio using sqlite. I’ve already created a data file. db with the data and…
-
1
votes2
answers416
viewsItem chosen in Spinner be a global variable
Good afternoon, everyone , I have an Activity that has a Spinner , the value chosen in this Spinner is sent to another Activity in which I do getIntent and receive the value of Spinner , my doubt…
-
1
votes0
answers403
viewsFirebase Database - Event-based notifications
I have a project that needs to send notifications when certain data is added to Firebase. I did a lot of web searches, but I couldn’t find a way to implement this notification. I saw in the…
-
1
votes1
answer495
viewsWEBSERVICE REST - JSON - JAVA
I’m developing an Android app where devices can communicate with each other via messages (Instant messenger). My application is already connecting with the web service (I developed it using…
-
1
votes0
answers75
viewsError communication Socket
I have this piece of code: public class Consulta extends AsyncTask<Void, Void, Void> { @Override protected Void doInBackground(Void... params) { try { Socket cliente = new…
-
1
votes1
answer668
viewssharedpreferences in the first Activity, show only once?
I’m developing an app in which you will have the first Activity greeting, and I want to show it only once, only when the app first opens. In this case, I created a Activity calling a layout…
-
1
votes1
answer51
viewsHow to open a alertDialog without darkening the screen?
I have this alertDialog: private void createInfoWindow() { AlertDialog.Builder alert = new AlertDialog.Builder(activity); alert.setCancelable(true); alert.setView(R.layout.middle_window_adapter);…
-
1
votes0
answers125
viewsSearch View Refinement on Android
Guys I’m new in the android world could you help me by indicating how to include these search refinement filters and sort the text that is typed in the searchview equal to the one presented in the…
-
1
votes0
answers130
viewsError: Content-Length and stream length disagree
If you use a Log thus rescuing the body of the sponse: Log.wtf(TAG,""+response.body().string()); Correctly prints the JSON value. Something in this format: {"error":true,"message":"Login failed.…
-
1
votes2
answers939
viewsAndroid - Invalid Resource Directory Name
I tried everything searching the internet, saw various responses about giving Clean Project, rename, update IDE and nothing worked. Still giving the following problem: I just want to better organize…
-
1
votes1
answer77
viewsCompare SMS data with txt file
I am trying to create an application where I receive an SMS that will contain a code, example "AC0012", so I will read this information, and compare it with my file .txt. That file .txt will contain…
androidasked 8 years, 9 months ago Theo Beckham 11 -
1
votes1
answer311
viewsSet cryptographic key fixed
The code below is working perfectly for both encryption and decryption, however, when closing the app and putting the generated code before closing it (I open the encryption app a word and close the…
-
1
votes1
answer318
viewsWhat does it take to learn specific classes and methods for a task?
What I need to learn about classes and methods in general for Java and Android programming? For example: if I need to display a PDF, as I’ll learn to do it? We know that there are several classes,…
-
1
votes1
answer155
viewsError in React-Native: does not communicate with AVD or Devices
I came across the following error: my app could not communicate with the android AVD nor with my Device. Both are connected and working...…
-
1
votes1
answer1030
viewsGoogle Maps API: Swap default marker image
Hello, I’m testing the Google Maps API on my android app, and I learned that there is a way to change the icon of the default marker, however, when I added my PNG image to the project, the icon got…
-
1
votes1
answer5404
viewsupdate Listview using notifyDataSetChanged();
I have two screens, one with a main list loaded with BD data and one of registration, after inserting some data, the registration screen closes and goes back to the main list, I’m having trouble…
-
1
votes1
answer55
viewsHow to represent in the database (android sqlite), a class that extends another?
Hello, I’m working on android, I have a case where a table extends another. example: table Exercise -> String dataInicio, String description ...... etc table Football -> String timeInicio, Int…
-
1
votes1
answer159
viewsHow to send Push notification
Currently I do a check when the user opens the app. First it checks if it is connected. If it is not, it does not compare. If connected, it compares the current version with the version in the Play…
-
1
votes2
answers442
viewsIs it possible to create mobile games with just c#?
Is it possible to create mobile apps as much as Android or IOS using only C# in the visual studio? the app in question is a game
-
1
votes1
answer242
viewsWebview - Update option appears only once in onReceivedError, see more
Hi, I’m developing a project for my site, and until then it’s getting really cool. Only I had a little problem and it’s like this, whenever the page gives error I called Feature Snackbar, getting…
-
1
votes2
answers1423
viewsHow to change the app title source?
I want to change the title of the app with a custom font, the source is already in the folder assets/fonts.
-
1
votes0
answers187
viewsError installing Android Studio IDE
Whenever when I install android Studio appears this error: execution failed for task ':app:compileDebugAidi'. java.lang.IIIegalStateException:aidl is missing I have tried to update and does not…
-
1
votes1
answer588
viewsHow to run a task in the background
I am new to android programming and have been making an application for myself so far. In this app I want that when it goes into the background, that is, when you leave the application without…
-
1
votes0
answers31
viewsHow do I access a pdf file stored in R.raw on android SDK?
I think some information is missing to make the pdf file appear in my app. I used the following line of code within the Oncreate method: PDFView novo = (PDFView)findViewById(R.id.pdfView);…
-
1
votes0
answers170
viewsIntent Open Facebook
How do I open facebook on a given page. Open mainly by the application if it is not installed open in the mobile browsing. Can anyone help me?
-
1
votes1
answer213
viewsMethod imageView.getDrawable() launches Nullpointerexception
I wanted to take Imageview’s drawable and convert it to a bitmap. The conversion method I already have and is working well however, when I request the execution, it presents the following error:…
-
1
votes3
answers1111
viewsNfe emission by Android app
Good afternoon, I have to start a project where I will integrate in an Android app sales to option to issue an Nfe. What is the best way to start this process, would be to carry out the whole…
-
1
votes1
answer112
viewsHow to set the value of a spinner elegantly
Dear to an activity where we are making a change, I am setting the value of spinner(s) in a gross way for(int i = 0; i < clienteAdapter.getCount(); i++) { Cliente elemento = (Cliente)…
-
1
votes0
answers415
viewsAdd seconds to a countdown - Android
I wish that when a button was clicked, 10 seconds would be added to my timer, but I couldn’t find a way to add value to Countdowntimer, here’s my code. private void contagemRegressiva(){ new…
-
1
votes0
answers27
viewsPlus.Peopleapi cannot connect
I am developing an application that will create, read and update some documents on Drive. In the NavigationView, I would like to identify the User’s account. The same way it’s done in the Google…
-
1
votes0
answers369
viewsOpen Facebook in browser
I created an application for Facebook that, briefly, at a certain time it uploads a photo to the visitor’s album, and then use the var janela = window.open({urldafoto}) to open this photo in the…
javascript android facebook facebook-graph-api facebook-javascript-sdkasked 8 years, 8 months ago GilCarvalhoDev 769 -
1
votes2
answers488
viewsVideo view resizing to video size
I have a problem in my application, in the app I make a sequence of videos, but at the time I did the structure and inserted the video (it is not of much graphic quality so the app does not get too…
-
1
votes2
answers1100
viewsIntent stopping the App in Android Studio
I have a problem with Intent, something that was supposed to be simple is causing me problems... I’m trying to create a second button for call another screen, but as soon as I add the following code…
-
1
votes0
answers63
viewsDELETE android with Webservice URL does not work
I’m with an annoying problem that I haven’t been able to solve yet and involves PHP and Android (more PHP actually). I’m accessing a PHP Webservice that makes an operation according to each method…
-
1
votes1
answer61
viewsPrepend in an Edittext using Textwatcher
How to make a prepend on Android? Currently I do some append, but I didn’t see how to make a prepend at the event onTextChanged. The reason is to put one ( before the first 2 digits of a phone, for…
-
1
votes1
answer213
viewsProgrammatically insert dividing line
How can I program a dividing line using java? The XML code is: <View android:layout_width="match_parent" android:layout_height="1dp" android:background="#ddd" />…
-
1
votes0
answers125
viewsError in the Cordova
Good morning guys, when I try to complicate my project Ordova for android of this message: FAILURE: Build failed with an exception. * What went wrong: Execution failed for task…
-
1
votes0
answers60
viewsError while using "this"
I’m trying to implement a code with direct dial using Action_call in android studio but this giving error in this and can not solve , someone could help me?…
-
1
votes0
answers46
viewsUsing a custom map
I’m trying to create a map from an image .png that I have. Something like the Beto Carreiro app. Does anyone know any lib that I can do this? I tried to use the Mappwidget and the TileView…
-
1
votes1
answer133
viewsImageview shows the image rotated by 90 degrees
When I upload a photo to the server and I will display it using Picasso.with(getApplicationContext()).load(Caminhofoto).into(fotoalerta); If the photo was taken with the mobile phone vertically she…
-
1
votes0
answers222
viewsBluetooth service to communicate Java Desktop and Android application
I’m doing tcc, the project is to create a java desktop application and make it communicate with an android application. As this communication will be in a room for example, always in the same…
-
1
votes0
answers116
viewsHow to maintain GPS coordinates obtained between Activities?
I’m trying to get the GPS coordinates on Android. I developed the search class and I get the position normally but the problem is that the user does not have time to wait for the device to find the…
-
1
votes1
answer34
viewsLibrary to load custom maps?
I’m looking for a component that works like the Google Maps (navigation and zoom) where I can upload my own map. It’s a very simple map. I found the mAppWidget but I found few examples of…
-
1
votes0
answers126
viewsApplication closing when I get call/change screen
I’m developing an android app with the help of Android Studio, the app is a menu with 4 webviews. Everything works out perfectly. My problem is that when I get a call and the app is open, as soon as…
androidasked 8 years, 8 months ago Marko Neto 51 -
1
votes1
answer656
viewsReturn onPostExecute() String
I have this code: Mainactivity: @Override protected void onCreate(Bundle savedInstanceState) { ... btn_login.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) {…
-
1
votes1
answer70
viewsExpandablelistview Clickable Items
Does anyone know how I make the items in an Expandablelistview clickable? I implemented this model: How to make an expandable Listview? and now I would like to be able to click on the items and open…
androidasked 7 years, 5 months ago Tiago Segato 41 -
1
votes2
answers4441
viewsHow to set space between buttons on Android?
I’m using 3 buttons on one Linear Layout. I would like to distribute the spaces between the buttons. Follows the image as exexmplo: xml screen: <LinearLayout android:orientation="horizontal"…
-
1
votes2
answers143
viewsButton that click sends to location?
How to set a button so that when clicked open the maps and send the user to an address?
-
1
votes0
answers32
viewshow to use 360°image?
How do I use a 360 ° image in android studio? as if they were those of facebook Voce dragging the screen with your finger and you see the rest of the image , or so if the phone has giriscopio Voce…
-
1
votes0
answers85
viewslinearlayout at the bottom of the screen
Where I have seen for the layout or component to stay at the bottom of the screen(bottom) would have to be put in the xml that: android:Gravity="bottom" but I’m doing this because I want to make the…