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
answer208
viewsRegister product for logged in user
I’m getting the object through Activity's using putExtra and returning on the other screen with the getSerializableExtra. I’ve already created the fk id_usuario in the product table for the field…
-
1
votes2
answers1195
viewsRemove shadow between Toolbar and the rest of the layout
I’m working on a project where I need to put one CalendarView next to a Toolbar. The problem is that the Toolbar gets a shadow on the bottom, where I’d like you to join the CalendarView. I tried to…
-
1
votes1
answer67
viewsClick one button and make another appear
How do I click on botao1 and do the botao2 and botao3 appear on the screen? I left the botao2 and the botao3 visibility = invisible.…
-
1
votes1
answer112
viewsLoop in Carousel
I’m making a Carousel, that I received the friend help from here. But now a small problem has arisen, in the example there are 6 images, and when arriving at the last it stops. I wanted to know how…
-
1
votes1
answer462
viewsHow to reuse code from one Activity in another?
I am creating an application in android studio in which I have a menu, I am using this menu in several activitys using "include", so in each Activity I need to rewrite the functions of the menu…
-
1
votes0
answers27
viewsUpdate an app without Google Play
I just closed a beta version of an Android app that can’t be distributed on google play. I will provide a special link for some users to download. It is very important that this stays out of the…
-
1
votes1
answer254
viewsHow to finish running the app in the emulator
I’m building an application that caches remote data. Fact is, I change the remote data, finish the application in the emulator with back button. At the next run, done from the click on the…
-
1
votes1
answer46
viewsHow can I use a Website form through Android?
I’m new to Android programming (java) and for a while now I have a problem: I need to use a Web form on Android, transferring data between Edittext and input, Button and Button etc.. but without…
androidasked 8 years, 3 months ago Junio Gabriel 11 -
1
votes0
answers67
viewsTwo timePicker s a button qdo clicked more than once arrow pro ediText wrong
I want to click the first button and return the hour 1 and the second the hour 2 but when I click again on 1 it inserts into 2 Most of the code is credited to this website public class MainActivity…
androidasked 9 years, 1 month ago Sumidoghost 11 -
1
votes1
answer434
viewsOpen Whats contact through href
<a href="intent://send/. 19994549640#Intent;scheme=smsto;package=com.whatsapp;action=android.intent.action.SENDTO;end"> <img src="img/whatspng.png"> </a> I want to turn into a…
-
1
votes0
answers129
viewsProblem when passing Arraylist to another Activity
Good evening, I’m having trouble passing a Listview from one Activity to another. The Activity code that passes to the other is the following, called Filtrarimoveis.class: for (int i = 0; i <…
-
1
votes1
answer128
viewsComparing textView to txt using Android arrayList
I’m putting together a very simplistic project in which I show the processes that are running on android and compare it to a list in a txt file that has other processes. The intention is to check if…
-
1
votes0
answers229
viewsInappbroser Phonegap Opening URL in Chrome
I’m using inappbrowser in phonegap to open an external link inside my app. Use in this way var ref = cordova.InAppBrowser.open('http://google.com', '_blank', 'location=no'); when I open phonegap…
-
1
votes1
answer602
viewsResize bitmap without blurring
I’m using a code to make the Imageview circular. The problem is that I need to use "scaleType:centerCrop", what leaves the image oval instead of circular, depending on its resolution. I tried to use…
-
1
votes2
answers4072
viewsHow to create notifications?
I’m making apps only to test some functions for Android and would like to know how to create notifications in the status bar. My Java code and a standard code that only calls the XML file: package…
-
1
votes0
answers120
viewsPermission error to make a SOAP call with aXMLRPC
Fala galera! I have a virtual store (Magento) in which I am trying to make a request SOAP with ksoap2 on Android. However, when executing the code, it generates an Exception, but the message of this…
-
1
votes1
answer1032
viewsMargin of a Document iTextPdf
I am working with an existing PDF file, follow the small line of code: //Código... document = new Document(PageSize.A4); PdfWriter writer = PdfWriter.getInstance(document, fOut); document.open();…
-
1
votes1
answer99
viewsE-mail with a custom html page - android
Good afternoon, Someone can help me, I am developing an app, where after receiving some user data, is performed sending an email containing this information. I’d like to use html to make the email…
-
1
votes2
answers1486
viewsHow to change the checkbox color of a Multiselectlistpreference
I wonder if you can change the colors of those CheckBox which is currently green (standard color) for my accent color app.…
-
1
votes1
answer211
viewsWhat is the best practice for instantiating a class in Java?
Aiming at performance, how should I instantiate an object (ex a Databasehandler) to be used in Fragments. I must instantiate them in Activity and pass via constructor method to the Fragments or…
-
1
votes1
answer340
viewsButton that overwrites all screens
How to make a floating button that overlaps all screens , mainly the screens outside the application. in the image has 2 examples of floating buttons…
-
1
votes1
answer705
viewsCopy file content in Assets directory to existing Android file
I have a txt file with several lines in the Assets directory and every time I start my application, I check if a file called database exists, if it exists, nothing is done, if it doesn’t exist…
androidasked 9 years, 1 month ago Gustavo Rotondo 149 -
1
votes1
answer744
viewsRecover Selected Radio Button Used Recyclerview
I’m trying to make a RecyclerView, where each recycleritem has 3 options of radio button. Each of the radio butttons is related to an item in the list of objects that was passed to Adapter as…
-
1
votes1
answer339
viewsonActivityResult does not return setResult
What happens is that I have an Activity Client where I have 2 buttons, one for registration and another for consultation, when I call the registration opens an Activity with a Tabhost with 2…
-
1
votes1
answer69
viewsError when bringing information from database
I’m having trouble bringing the information from the database and displaying it in a list, when executing the code to bring the information from the application BD to and the following error…
-
1
votes1
answer151
viewsError while picking facebook profile picture
Guys I’m trying to get the fb profile image but returns the following error java.io.Filenotfoundexception: No content Provider:…
-
1
votes0
answers1784
viewsParagraph iTextPdf line spacing
I’m using a very large text and adding directly in iTextPDF’s Paragraph, but the space between the lines is very large, I wanted to control the spacing between the lines, but I can’t make any…
-
1
votes1
answer49
viewsI can’t see Listview
# import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.Toolbar; import android.view.View; import android.widget.Button; public class…
-
1
votes1
answer410
viewsWebview always asking where I want to open the url
My Web View every time I test on my mobile phone is asking me how I want to open the url, but I need it to open in webview. Well the code is this : Java activity. import…
-
1
votes0
answers1335
viewsExtract data from a QR Code after reading
I have an app in the Play Store developed for a non-profit NGO, where tax coupons are donated and stored in an Excel spreadsheet each record, where it contains: CNPJ Date of Purchase COO Note value…
-
1
votes2
answers328
viewsSearch and display in a listview a single type of BD information
I’m having problems to search for a single type of BD information, I’ve created a list where I bring all the information in it present, but I want to pull only one, for example search only the names…
-
1
votes1
answer1588
viewsHow to open the Google Maps app via Intent at a given Latitude/Longitude?
Using this rule I can view the database information. I want to put a button to get the latitude and longitude of the database for when click on it open google maps. public class UsuarioAdapter…
-
1
votes0
answers45
viewsDetect point on screen with device camera
Does anyone know any library or practice to detect a point in the image captured with the device camera? Ex. a white paper with a black dot, then the camera detects this point and gives the…
-
1
votes1
answer40
viewsCheck that all objects in the class that extends Realmobject are empty
My Book.class extending realmobject public class Book extends RealmObject { private String title; private String author; public String getTitle() { return title; } public void setTitle(String title)…
-
1
votes0
answers59
viewsHow to work without Java.awt.image?
I need a help on using OCR on Android, all libraries I’ve tried to use to convert image to Text needs either a Bufferedimage or a Renderedimage both of which are in the Java.awt.image library that…
-
1
votes1
answer530
viewsHow to recover data from an HTML form opened in a Webview?
Hello! I have a responsive web application that I intend to open via android app through a Webview. Well, the only problem is that I would need to take some Submit data from just one application…
-
1
votes1
answer121
viewsHow to recognize the native "back" button of the android device in an app.
I would like to know how I do to detect in an application that user clicked on the device’s native "Back" button. 'Cause I need to take action if that happens.
androidasked 8 years, 2 months ago Gabriel Souza 133 -
1
votes1
answer841
viewsCustom searchview
I need to do a searchView like this: I need to put the white icon and the hint too.…
-
1
votes2
answers92
views"Refresh" from Fragment co listview
I have a Fragment that, clicked on a RadioButton, a route is calculated, after this route calculation, a ListView with the results. By clicking on the other option of this radiobuttom, the routes…
-
1
votes0
answers105
viewsSearchable Activity with Recycler View
I have a Searchable Activity that is being used in two different activitys, but in the result that generates a Recycler View I would like to treat the click, to know what was the generating…
androidasked 9 years ago Ismael Junior 81 -
1
votes2
answers4265
viewsHow to create a PDF using iText for Android
I was trying to create a pdf file on my Android application, as I could not find anything that worked, today I managed to solve the problem on my own. Follow the code to whom you are interested.…
-
1
votes1
answer136
viewsAndroid app closes when connecting to Mysql
I’m developing an application for Android that needs to connect to my database on Locaweb servers. However, as it is in the code, the class closes if it cannot connect to the server. Am I making the…
-
1
votes0
answers73
viewsConvert Bitmap to Mat
Hello, I am trying to grab saved BLOBS in a Sqlite database and convert them to Bitmap. After that, I need to convert these Bitmaps into Mat, to use with Opencv. The problem is that when I open the…
-
1
votes1
answer122
viewsMap no longer works
I’m developing an application that used the Google Maps API. It was working normally, until I upgraded Android Studio from 2.1 to 2.2 and from there to here, it stopped working. What do I do to use…
-
1
votes1
answer404
viewsFirebase Cloud Messaging x Google Cloud Messaging
What’s the difference between Firebase Cloud Messaging and Google Cloud Messaging? Both are free? Who keeps Firebase Cloud Messaging? What would be the best option?
-
1
votes1
answer575
viewsHow to send Lists with Retrofit 2.0 via POST
I have a list of records and need to send to the server via POST, use Retrofit 2.0 to make the requests. Be able to make all requests, but I’m not able to send the list. My interface: private…
-
1
votes2
answers120
viewsspinner change image cause error: Out of Memory on a byte allocation
I have a normal spinner working perfect and I have the following code : import android.app.Activity; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import…
-
1
votes0
answers78
viewsAPI of Radio Online
I have a file .m3u which serves as a stream for an online radio. However, I’m new in this area, and I was wondering if there’s a way to open this stream to listen to online radio inside my app.…
androidasked 8 years, 2 months ago Rudda Beltrao 149 -
1
votes1
answer289
viewsOne Fragment’s onCreateContextMenu method calls another Fragment’s onContextItemSelected method
I have a Fragmentactivity that calls its Fragments in the shape of tabs (Viewpager). In two of these fragments the methods were implemented onCreateContextMenu and onContextItemSelected. In this…
-
1
votes1
answer280
viewsError android Studio + Firebase
I developed an application was registering and everything, but at the time I implemented the function to display the data in a Logcat, my application even stopped starting Activity. Has anyone ever…