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
votes2
answers465
viewsComponent ID does not appear in Mainactivity
The problem is this, I add a component in my Activitymain, a button for example, but when I go to do the findviewById(ID) of the component, it does not show his ID in Mainactivity, it was working…
-
0
votes1
answer138
viewscreate android text file on internal memory Xamarin.android
Well I’m trying to save an ip from the server where this my bd but I’m not getting because it does not give enough access to record the text file in the internal memory of the mobile phone, someone…
-
0
votes2
answers879
viewsCreate quit button using onClick
I’m having a problem with a button on android. I need to create a exit button, but when the button is selected an error appears. This is the Dashboard class: public class Dashboard extends Activity…
-
0
votes0
answers40
viewsGridview displays blank area at footer in Lenovo Vibe K5 (API Level 22)
I have a Gridview that displays 4 images that must fill the screen but that doesn’t happen. I have not added any padding or margin in the layout and have tried using the fillViewPort and…
-
0
votes2
answers192
viewsAndroid Activitycompat
Hello by I searched from android 7.1, it is necessary to request permission running for user and it is necessary to use the class ActivityCompat for this purpose, my application saves a PDF on disk…
-
0
votes0
answers158
viewsFailed to generate APK
So I’m following this tutorial: http://www.tiagoporto.com/blog/tutorial-de-configuracao-do-ambiente-ionic-android-no-windows/ Which teaches to configure Ionic with Cordova to generate android apk’s…
-
0
votes1
answer421
viewsPick selected image and send to another Activity
I wonder if it is possible to take a selected image and send it to another Activity. I’m using Fragments and wanted the layout to look like the image below. Wanted that when the user selects the…
-
0
votes1
answer52
viewsKilometer
Hello, I need a help, I am creating a game that the more the user walk the more chances to be able to receive rewards but I do not know how to do the kilometer counter and ignore the kms traveled at…
androidasked 6 years, 2 months ago Tomás Dinis 13 -
0
votes2
answers938
viewsHow do I keep the Imageview ratio in Android Studio?
I had a problem creating a Splashscreen. The 512x512 image imported into the drawable directory does not maintain the same ratio after running the code. The height gets larger than the width, and…
-
0
votes0
answers113
viewsError Compiling Android - firebase
I’m having problems compiling APK by Ionic. I’ve removed Android Studio and downloaded again. I’ve removed and installed Android again. But it didn’t work. ionic cordova build android Returns the…
-
0
votes0
answers104
viewsProblem creating project in Firebase
When I add the dependencies that firebase asks to create the file and I give Sync Project, it shows me the error "Failed to resolve: com.android.support:appcompat-v7:28.1.0"…
-
0
votes2
answers302
viewsHow to create new Textviews inside a Java scrollview in android studio?
Hi, I have a question to make an app: I need to create a new Textview within a Scrollview at each click of a button. I still need to put attributes to the textview, such as its placement on the…
-
0
votes2
answers2189
viewsHow to delete all records from the database
Good afternoon, in my application has a database that shows the results of the game, I put a button that its function will be to erase all the data of the bank... how do I do this part? in the blogs…
-
0
votes0
answers32
viewsImage Google profile in Firebase Firestorage
I’m having trouble with the following code: StorageReference imagemRef = storageReference .child("imagens") .child("perfil") .child(Jogador.uid + ".jpeg"); UploadTask uploadTask =…
-
0
votes2
answers102
viewsDelete onClick error
My application has a button to delete all records from the database, I did the delete method and when I click the button it presents me the error. Logcat: E/AndroidRuntime: FATAL EXCEPTION: main…
-
0
votes1
answer348
viewsReceive parameters of different Actions and add
Hello, I need to pass the parameters of two screens to the tela_inicio, be the "BALANCE" parameters of the screen balance where it will be passed to an Edittext (lblSaldoAtual) at tela_inicio and…
-
0
votes0
answers68
viewsI want to receive an xml from webservice on android
I’ve tried everything, using the HttpURLConnection , with the HttpClient that is deprecated, these two options do not end, stop at the BufferedReader. I’ve tried to use AsyncTask with the…
-
0
votes1
answer13
viewsPage position on Webviewer Android
Someone can tell me if I have how to set a position of a web page at the time of starting the App that has a Webviewer, example when opening the page it shows initially from the middle.
-
0
votes1
answer25
viewsCommitments hour Vertical day - Android widget
I’m looking for how to make a widget like the photo but I can’t find a way to do it and I can’t find a lib that offers me that. Does anyone know if there is anything native or lib that helps me?…
-
0
votes1
answer61
viewsGet image from "Resources" folder from android
Good morning, I have an android app made in C# via Xamarin. In this application, there is a report made in HTML that is displayed in a Webview. This report needs to display an image (PNG) that is…
-
0
votes1
answer35
viewsMake the Mediastore.INTENT_ACTION_STILL_IMAGE_CAMERA put the photo in an image view
I needed to open the Android Camera App and take the photo. When having the photo taken, put it in an imageview. My problem is, the client wants to be able to take the photo or else choose from the…
-
0
votes0
answers213
viewsOpen Google app by a web link on Android
how to open the gplus app via html, social networks like facebook, is fb://o instagram:// and google+ can not find, for Ios uses gplus://but not sure to open the android app
-
0
votes1
answer2188
viewsInstagram intent of the error in webview?
When I click open in the instagram app in my app. My webview gives the following error: Web page not available Unable to upload web page to address…
-
0
votes1
answer134
viewsCan I use JSON to save Arraylists in Shared Preferences?
I’m developing an app on a college project and I’m creating the control part, I won’t mess with the server part for now because I don’t know much about. I’m creating functions to generate some…
-
0
votes0
answers29
viewsCreate dialog from Activity
I was able to display an Activity in dialog form, but it does not respond to the context. When you click on the edit button in my Recycler View, a form opens for changes. I am using the method…
-
0
votes0
answers32
viewsTransition Fragments on return
I have a Drawerlayout that controls my Ragments. But I have the following problem: if I am in Fragment A the corresponding menu item is highlighted, when selecting Fragment b , the item is also…
-
0
votes1
answer772
viewsToast Message At the heart of Activity on Android
I’m creating an app and I want to post a message using Toast. But when creating Toast it only stays at the bottom of Activity. To center the message I tried to use this command line.…
-
0
votes0
answers419
viewsCreate popup window on android?
I created this code here but something is wrong, because every time I click on the button that activates the popup the app closes. //Button private Button pesquisar; private PopupWindow…
-
0
votes1
answer201
viewsGoogle Maps Api in android app does not work in Play Store
I developed an application for Android that shows google maps in one of the activitys, in the tests works well, except that the application published in the Play Store does not show the map. I…
-
0
votes1
answer104
viewsOpen the app with open navigation. How can I do this implementation in my code?
I have the following code: headerNavigationLeft = new AccountHeader() .withActivity(this) .withCompactStyle(false) .withThreeSmallProfileImages(true) .withHeaderBackground(R.drawable.navigation)…
-
0
votes1
answer8729
viewsMethod of closing an Activity
Good evening, in my application I made a Dialogfragment I put a function to close current Activity and go back to previous, the call put in the onBackPressed() and the code that makes this function…
-
0
votes1
answer560
viewsError uploading apk to google play console
I’m uploading my app to google play and I’m not getting my apk up, anyone knows what the mistake is?…
-
0
votes1
answer125
viewsIonic emulate - Error running on AMD processor machine
When I try to give the ionic emulate android gives the following error: Emulator: Requested console port 5584: Inferring adb port 5585. ERROR: x86 emulation Currently requires hardware Acceleration!…
-
0
votes1
answer156
viewsHow do I work with Firebase Storage offline?
I have been studying the functionalities of Storage (storage of media and files) and Firebase’s Realtime Database. In the case of Realtime DB, it is possible to enable data persistence while offline…
-
0
votes1
answer150
viewsSet Jobservice Android Runtime
Hello, I need to implement a Jobservice on Android. I created the base class for a Job, but I’m not able to define an execution parameter, minutes, days and hours etc. I find no example, someone…
androidasked 6 years, 1 month ago Marcelo Gomes 551 -
0
votes0
answers143
viewsDifficult to make an Android Sqlite query
I’m doing a project for college but I’ve been having difficulties with consultations to Sqlite. I wish you could assist me in this issue. Oncreate: protected void onCreate(Bundle savedInstanceState)…
-
0
votes1
answer86
viewsHow to give Reload in a Webviewer per time interval in Xamarin Android?
I’m creating an app, where it has a Webview that needs to be updated every 5 seconds while the Switch is checked, and when you uncheck it, it should stop loading the page. I tried to use a while,…
-
0
votes2
answers144
viewsError accessing Firebase Storage in Android Studio App
I have a problem trying to set an image of Storage on ImageView from Android Studio, this error appears in logcat: User does not have permission to access this Object. Code: -13021 Httpresult: 403 ľ…
-
0
votes1
answer41
viewsConsume Retrofit json on my real device (smartphone)
I made an apirest with Springboot that works perfectly by the browser at the address. http://localhost:8080/pessoas_escalas I can consume the service locally by the Android Studio emulator, through…
-
0
votes2
answers222
viewsPlace an Edittext in Dialogfragment
Need to put a Edittext to fill the name... ie when the user click the button will appear a Alertdialog, which should put the name of the player, I did up to a step, here in Sopt has a question of…
-
0
votes1
answer31
viewsHow do I download a file that is in Storage by my app (Adnroid Studio)
I took a look at the documentation provided by Firebase and still did not understand how to download a file that is in Storage by my app using Android Studio, someone can help me?
-
0
votes1
answer887
viewsHow to create a custom Listview inside a Fragment?
Goodnight I did a lot of research on it, but I couldn’t quite understand the concept. I have an Android application that uses Fragments. I need to insert a custom Listview with an image and several…
-
0
votes1
answer35
viewsPlay a series of audios on android
Good evening, has anyone done or knows how to play a series of audios ? I am trying to make an app similar to that game Genius. And I would like to be able to play a sequence of audios that I will…
-
0
votes1
answer24
viewsDisplay of the Textview
Whenever I pass a certain character limit I can no longer see the text on the design screen, if I run the app I can see, but I would like to see it on this one so I don’t have to run the emulator.…
-
0
votes1
answer70
viewsApply setItemOnClickListener to Gridview Buttons. Kotlin or Java
I made a gridView of buttons, but when I use the setOnItemClickListener method to trigger the respective buttons, it does not work. I want to use the buttons so I can trigger an Intent, knowing that…
-
0
votes1
answer27
viewsVersions of Android
I’m creating an app, only when I made the apk it doesn’t work from version 6.0 down, but my mimSdk is in 4.3. I have tried several methods I researched but none worked. I wanted to ask for someone’s…
-
0
votes2
answers66
viewsWhat permissions need to be requested at runtime?
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> <uses-permission android:name="android.permission.WAKE_LOCK" /> <uses-permission…
-
0
votes1
answer47
viewsGridview not updated (Android)
I am creating an app that when starting it performs an asynchronous task that queries an api, when picking the result it will insert into Adapter. I’ve tried several ways, but only the images appear…
-
0
votes1
answer66
viewsUse adb commands in App for android
I’m starting to use some test automation tools, including Espresso, UI Automator or even an ADB command script. My question is whether it is possible to create an application that runs ADB commands…
androidasked 6 years, 1 month ago Kayque Damasceno 11 -
0
votes1
answer118
viewsCenter an image within a Textview
How do I center an image inside a Textview? I used the attribute: android:drawableStart="@drawable/email" But the image is decentralized: In this case I can work with this image inside Textview or…
androidasked 6 years, 1 month ago Artur Mafezzoli Júnior 441