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
votes0
answers58
viewsI have an app that uses menu tabs, one with products and the other with promotions how could I implement a search in this type of menu?
I have an app that uses tabs menu as in the image, one with products and another with promotions as could implement a search in this type of menu with different tabs?…
-
0
votes1
answer245
viewsHow to show an exception message if the user does not check a radio button on Xamarin Android?
I need to display an error message on the screen if the user does not check a radio button. In this code, there are 13 radio groups separated into 4 radio groups I tried to use Try/catch and…
-
0
votes1
answer365
viewsReact Native - Error emulating Android
I’m trying to emulate an app and this error appears preventing it to continue with work. I have a 64-bit Win 10 JDK 9.0.1 Nodejs 6.11.4…
-
0
votes1
answer199
viewsHiding AES decryption key in android app
How can I not only hide AES keys but also encrypt and decrypt using predefined keys/commands in a native library(Encounter.), so that I can compile and include it in my android app. That is, calling…
-
0
votes1
answer147
viewsInsert data into firebase from Alertdialog
Guys I’m having a question, I was wondering if you have how to store data in firebase from a custom Alertdialog? If I wanted the help of you to create a logic and make this idea happen, I think that…
-
0
votes1
answer235
viewsWhat command do I use to update my code every 2 seconds?
I’m developing an App in Android Studio that takes the location of the device and returns me in latitude and longitude, I use it later to make a marker. However, if I install the application on my…
-
0
votes1
answer73
viewsHow to have a layout adaptable to all screens?
I wanted more or less this format however, when I will fill the last editext, goes up the keyboard and comes out out of order. <RelativeLayout xmlns:tools="http://schemas.android.com/tools"…
-
0
votes1
answer78
viewsSend user to an email app
I want to send the user to an email application, but I just want to set the recipient, the rest the user himself will fill in the application he chose and then send Has as?
-
0
votes1
answer265
viewssetOnItemClickListener does not work in Custom Adapter
I have a custom Adapter that is displayed in the 'Listview', works normally at the time of creating it and so on. The problem is that I have 'Onitemclicklistener' but the method is never called. I…
androidasked 7 years, 1 month ago Léo Santos 114 -
0
votes1
answer74
viewsWhere is my mistake?
I’m playing a little game on Android very simple, but I’m having problems with the interface. I created the xml interface, and I set the java class corresponding to it (setContentView...), until…
-
0
votes0
answers48
viewsBlob For bitmap returns null only on Android 4.2.2
It’s simple, if I use this line of code on android 5.0 , 6.0 it works correctly, and converts the blob into bitmap. However, testing here on a lower device (android 4.2.2 ) it always returns null;…
-
0
votes1
answer875
viewsWebview Javascript calling java method - android
I have a webview app that calls an index.html : WebView webView = (WebView)findViewById(R.id.webView); webView.getSettings().setJavaScriptEnabled(true); webView.setWebViewClient(new…
-
0
votes1
answer296
viewsText break by delimiter
I have the following text:: Texto|Texto|Texto| I want to display it in a Textview, but every "|" (pipe) it breaks the line. In this way: String texto = this.textoQuebrado; String[] array =…
-
0
votes1
answer69
viewsHow do I put a list in Undeserving with Recyclerview in Android Studio
I need to put the list in disbelief, ie the list starts from the java image that should be the first image. This is a Recyclerview…
-
0
votes2
answers1630
viewsLimit image size without cropping
How do I limit the size of a Imagebutton within a Linearlayout? I limited the size of Linearlayout and left the image sizes as wrap_content thinking it would fit the size of the layout but the image…
-
0
votes0
answers51
viewsHow to test Webservices php on Android with Retrofit library
I have an Android app in Android Studio and am using the retrofit library to connect with a php server. I want to know how I can test this app on a real phone with the server running on my laptop.…
androidasked 7 years, 1 month ago Matheus Emanuel 33 -
0
votes1
answer17
viewsObject appears at start (press) the Onlongclicklistener event and disappears at end (drop)
I’m thinking of a way to make a view with the attribute visibility: gone be visible when you click long click on the screen and disappear as soon as you drop, similar to and done with Instagram.…
-
0
votes1
answer38
viewsDoubt when obtaining the value of a radioGroup to send in an email
Hello, in my code I have 4 Radiogroups and I will pass their value in an email. So far so good, but in my code I am not able to (I don’t know how to do) send only the text of Radiogroup that was…
-
0
votes0
answers87
viewsWebview Android
(I’m not a programmer, I’m learning) Problem: I have a website (cms ) that uploads images. There to make it easier for my users, I created an Android(apk)-Webview that prints on the mobile screen…
-
0
votes2
answers771
viewsBack button without action bar
I removed the action bar from a single acitivity. But in my Action bar has the back button. If I remove the action bar logically the button comes out together. But I would like the button come back,…
androidasked 8 years, 5 months ago Artur Mafezzoli Júnior 441 -
0
votes1
answer161
viewsCustom mask
I have an Edittext that has a mask #######.# I need this Edittext to be filled in the same way as a unit value field, for example: Ao digitar 1, o EditText deve ficar: "0000000.1" Ao digitar 2, o…
-
0
votes1
answer73
viewsInsert API KEY from aws (Amazon)
I would like to know where I insert the Amazon KEY API into my android project. I will use a database installed on Amazon to record and retrieve my data. Follow my Radle: dependencies { compile…
-
0
votes0
answers96
viewsRun command on android via firebase notification
In my app I need to send a notification via firebase and run a native android command. For example, I’m testing this by turning on the flashlight. When I send the notification with the app opened…
-
0
votes2
answers498
viewsAndroid Activity does not open
I’m making a retrofit connection app, but I’m not understanding why my Activity is not opening. My code: public class CotacaoAlteraActivity extends AppCompatActivity { private ListView listView;…
-
0
votes0
answers257
viewsCheckbox android studio
How can I show my checkbox already marked with code recovered value. I was able to recover the value checkBox1 = (CheckBox) view.findViewById(R.id.check1); and saved in a var if…
-
0
votes1
answer291
viewsCreate listview with database data and put an Edittext in front of each information
I need to create a listview inside a dialog, using the data of the Sqlite database, but in each of the data that will load has to have an Edittext in front, for example. Product Quantity Adubo…
-
0
votes1
answer129
viewsCommand to update the location of the following code in 2 seconds:
I’m developing an app and I need it to always update its location within a time frame. I found in this same site the following solution to take the location and turn into a marker as well as the…
android google-maps google-maps-api-3 markers google-location-apiasked 7 years, 1 month ago user93734 -
0
votes1
answer541
viewsBroadcastreceiver gives error with BOOT_COMPLETED
I need to update every 1h the information and I’m using a BroadCastReceiver. If the user opens the APP, it works properly doing everything every 1h. But I need it to do with the phone boot and not…
-
0
votes1
answer60
viewsApp stops responding when running onStartCommand
I call the service at onPause() And once I leave the app, it stops responding after a while. From what I’ve researched, it may be that the processes are too heavy to execute in the background. I…
-
0
votes0
answers59
viewsAlternative Android Navbar
I want to make my own Navbar, in which I just want to keep the "back" button and create other buttons to call pre-defined applications. It should work like the original Navbar, that is to be always…
-
0
votes1
answer126
viewsFragments in Tablayout’s Viewpager disappear on the second call
Come on! I have an app that has a Drawermenu (Sliding Menu), when clicking on the Edit Profile item, calls a new Fragment (Editfragment.class), up to there beauty, in that Fragment has a Tablayout…
-
0
votes1
answer14
viewsHow to have appwidgets in apphibrium?
I have a hybrid application as I can put native widgets in it ?
-
0
votes2
answers197
viewsHow do I know if it’s past midnight or a new day has begun?
I need to make a make a if for when past midnight, but how can I get this information even with mobile turned off? I’m trying like this these days: date_current = simpleDateFormat.parse(strDate); if…
androidasked 7 years ago Igor Oliveira 1,110 -
0
votes1
answer234
viewsError trying to fetch location
I have a project that when accessing Activity, it already searches the place and fills the data, to save them, later. But when it is the first access, when searching for permissions, he always…
-
0
votes1
answer89
viewsandroid studio misalignment login form
I created a login screen in android studio, and I leave everything aligned in the center of the cell screen, but when I run with Avd or genymotion, he plays the form everything to the corner,…
-
0
votes1
answer425
viewsHow to uninstall nuget packages at once, including dependencies
There is a way to uninstall nuget packets at once, without having to look around or hoping to give the error to know which is the dependency to uninstall and then go uninstalled one by one. If I…
-
0
votes1
answer715
viewsTXT file on android
How do I write a TXT file to android using Delphi 10 Seatle? I’ve tried that way and only from mistake; try file1 :=…
-
0
votes0
answers179
viewsIcone android app got smaller than the Standard
My app got the smaller icon than the display pattern of other apps, what could be happening to make it smaller? follows a display image.…
androidasked 7 years ago rodrigo.oliveira 1,251 -
0
votes0
answers24
viewsAndroid Tour Screen
Does anyone know any library that the user enters the APP for the first time and the APP itself shows how to use it?
androidasked 7 years ago Rodrigo Shinoda 16 -
0
votes1
answer642
viewsHow to call a method that is inside my Fragment through the onclick of a button that is also inside the Fragment?
How to call a method that is within my java Fragment through the onclick of a button contained in the same Fragment? Follow code: public class Fragmentminhaconta extends Fragment { @Override public…
-
0
votes2
answers215
viewsSave data from a web service to a global variable on Android
i am starting with Android programming and am having a problem. I would like to store the response of my webservice in a global variable. This webservice returns a Boolean value, this value I would…
-
0
votes1
answer238
views -
0
votes1
answer292
viewsSwitch to Fragment by clicking the button inside the Fragment
I have an Activity that has an empty Linearlayout that only serves to 'host' the Fragment. This Linearlayout (called layoutFundo) is the argument of Fragmenttransaction to which one of several…
-
0
votes0
answers348
viewsApplication does not install. Ionic 2 and One Signal
Good morning. I am generating apk via --Prod --release, I can generate apk, I can sign but when I put in a real app the app does not install. This started to happen when I started using one Signal.…
-
0
votes1
answer560
viewsBigdecimal - Numberformatexception Error
If an editText is not filled in the APK stops working and returns the error: 10-31 15:06:54.340 4152-4152/com.wms.www.calccred E/AndroidRuntime: FATAL EXCEPTION: main Process: com.wms.www.calccred,…
-
0
votes0
answers41
viewsFailure to perform Sqlite Insert
When executing this code snippet, returns the error below. What can be the cause? public class LivroDaVendaDAO { // sqlite private ConexaoSQLite sqliteDataBase; // nome da tabela de livrosDaVenda…
-
0
votes0
answers379
viewsHow to check application errors with android stúdio 3.0
I hope to count on the understanding of all because I am only hobbysta, I started learning android with the version 2.3.3 of android studio and checked the errors and Logs through the tool Monitor,…
-
0
votes2
answers427
viewsDoubt simple back web view
I’m creating a simple app on android studio 3.0, but I don’t know anything about programming and with a lot of effort I was able to add the webview and display my page. But when I click the back…
-
0
votes2
answers452
viewsConsume Webservices with Android - Retrofit or Volley?
The question is just this: to consume Webservices with Android - Retrofit or Volley? I found the two complicated at first, but reading the documentation it seemed to me that retrofit can be…
-
0
votes1
answer285
viewsInsert button dynamically in Relativelayout
I have a Listview and I want to add a button next to each item in the list, but it has to be dynamically: item_listview.xml <RelativeLayout…