Most voted "android-studio" questions
Use only for questions about using Android Studio. DO NOT use for Android programming questions in general, so use the [android] tag. Android Studio is Google’s official IDE for Android application development, based on Intellij IDEA.
Learn more…1,128 questions
Sort by count of
-
0
votes1
answer112
viewsUpdate Android App
Hello, I am new to android development and I have some doubts, I am developing an APK using a webview and I am often updating it with some improvements. As I work more than 200km from where the…
-
0
votes1
answer560
viewsShow Toast in a non-Activity class
I’d like to exhibit a Toastwhen the user does logout. I have this structure: Within ConexaoFirebase, I have a method called logOut: public static void logOut() { firebaseAuth.signOut(); } and within…
-
0
votes0
answers193
viewsError: Unable to merge Dex
This error started happening when I added the uCrop library. How to solve? apply plugin: 'com.android.application' android { compileSdkVersion 26 buildToolsVersion '26.0.2' defaultConfig {…
-
0
votes1
answer48
viewsAndroid Studio says some classes have not been used and almost all code is red
I was tweaking the code a little bit, when all of a sudden it looked like this that you can see in the image below. I have no idea what caused it, I tried to do the Clean and the Rebuild and…
android-studioasked 6 years, 3 months ago António Macave 486 -
0
votes1
answer303
viewsApp Bar does not appear
In fact it comes to appear in the program, but not in the simulator Following the Java code public class Perguntar extends AppCompatActivity{ @Override protected void onCreate (Bundle savedInstance)…
-
0
votes0
answers359
viewsHow to make a custom bar on android
I haven’t started to do anything yet, so I haven’t put any code here, I need a direction of what to study to do a pub in the shape of a water tank and as it fills up, a water goes up inside the…
-
0
votes0
answers177
viewsHow to add a frame to an image?(Android)
Hello, I’m developing an app where I need to add a frame to an image.I’ll add a frame like this one below and return the edited image. How can I do that?…
-
0
votes0
answers458
viewsError: method does not override or implement a method from a supertype
I have a project in Android Studio for a solution in the company where I am working. The project is two years old or so, and when I imported it from svn for the IDE I started having problems with…
-
0
votes1
answer96
viewsSql. table, organized date and time
I have an sql table that will contain appointment, date and time. I keep the three based on ID. I have a question about the date and time id = 0; data 28/08/2018 - 13:11h id = 1; data 26/08/2018 -…
-
0
votes1
answer549
viewsAndroid Application Consuming Webservice
I’m trying to create my first app to make use of a Webservice, in which case I’m just trying to return some of the information via string and later put each piece of information in its proper…
-
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
votes0
answers281
viewsAndroid Studio error when in Build . apk -Multiple Dex files sets
I have a fully made and tested Android App. When do I generate build apk I have the following error: Information:Gradle tasks [:app:assembleDebug] Error:Error converting bytecode to dex: Cause:…
-
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
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
answer205
viewsAndroid Studio, centralize the name of the application
How do I center the circular text ?…
android-studioasked 6 years, 1 month ago Guilherme Matos 1 -
0
votes2
answers927
viewsAndroid Studio does not recognize images
Guys, my Android Studio here is not recognizing the images I put in the drawable folder. I dragged six images there, three of them I could access normally, the other three I can’t. Any idea? To test…
-
0
votes0
answers137
viewsOpen an excel file when opening an Activity
I want to put a file Excel in my Android project. I want to leave it already in the same project as if it loads an image, and when I call a Activity, I want to open this file Excel. Is there a way…
-
0
votes0
answers141
viewsError while compiling my project
Someone can help me to correct these errors, I found several places citing this error, but nothing works, I’m already a week trying to fix it:…
-
0
votes2
answers785
viewsNo device appears for Androidstudio’s "run"
Everything was normal until I went to mount an emulator with api 21, during the process there was disk error without space, my Androidstudio was in a hard drive partition with little space, after…
android-studioasked 6 years, 8 months ago Nikola Tesla 35 -
0
votes1
answer477
viewsNo specific details appear in android studio when configuring application for various screen sizes
Please ask that in reply do not indicate me the link of the documentation of android to read. I am developing an application that has that be adapted to more or less 8 different inch screen formats,…
-
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
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
votes1
answer31
viewsuse Handle in textView
I am creating a chatbot and I want that when I send something, appear in a textview the message 'thinking...' for 5 seconds before sending the answer, I have studied about Handler, but so far I have…
-
0
votes0
answers463
viewsHow to solve Android Studio 3.1 upgrade issues
Hi, I updated Android Studio last week and after that it got complicated to work. It no longer identifies the Imports, no longer completes the code, Glade had stopped compiling but I was able to get…
-
0
votes0
answers417
viewsProblem in this style.xml Android Audio
With these latest updates of Android Studio I’m surprised in the Styles.xml file of the project that Theme is in red, as can be seen in the image below: CODE <!-- Base application theme. -->…
android-studioasked 6 years, 7 months ago Henqsan 407 -
0
votes0
answers27
viewsDoubt about Android Studio
I started to study Java and touch the Android Studio recently. I’m trying to tweak the code (open source) below to be able to put an app on Playstore.…
android-studioasked 6 years, 6 months ago Fábio Lopes 1 -
0
votes1
answer210
viewsIncompatibility of firebase version with google services
Error:(40, 0) All firebase Libraries must be either above or Below 14.0.0 The error comes down to this. I have tried to solve it in many ways. I have never found a solution. The mistakes were…
-
0
votes0
answers16
viewsHow do I leave a value that comes from Sqlite in an Edittext?
I am developing an app in Android Studio, and I have an Activity on a wallet, and I wanted to take the column ID of Sqlite and leave as default value, how can I do this?
-
0
votes0
answers69
viewsProblem with API authentication in android studio
I’m having trouble authenticating an UBER clone running on Android Studio. The API runs in the main class: package com.uber.sdk.rides.samples.cmdline; import…
-
0
votes1
answer208
viewsHow to change GPS location icon in Android Studio?
I wanted to know how to change that red icon that marks the location of the GPS to place a picture located on the drawable. I just wanted to know what code I should add to get the suggested result.…
-
0
votes0
answers128
viewsAdvertisement Admob appears only once
Hello, can someone help me with this problem? When I run my app on the emulator, the ad appears normally at all times, but when I run it on my mobile the ad appeared only once and did not appear…
-
0
votes1
answer43
viewsCode generation shortcut
I wonder if there are any features in Android Studio where I type in a word and the IDE inserts an add-on (OBS: Where I report this, not the IDE itself). Example: buttonobj -> Button btnexemplo =…
android-studioasked 6 years ago Luiz Roberto Furtuna 593 -
0
votes1
answer148
viewsProblem when showing Alertdialog
I have an error message when trying to show Alertdialog using Android Studio. protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);…
-
0
votes1
answer29
viewsError saving data to Database
import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper;…
-
0
votes0
answers32
viewsHow to use 2 databases using Room Sqlite?
Hello. Is it possible to use multiple DB using Sqlite Room? In my case I need to use 2 DB if it is possible to switch from DB1 to DB2 dynamically?
-
0
votes1
answer481
viewsHow to keep the App always logged in with Firebase
How to get my App to log in after waxing? Ex: I logged in once and every time I start the application again it already starts logged in.
-
0
votes2
answers110
viewsError listing table directly from Sqlite
Guys: I’m creating a stock control application, I have a screen as follows: When I click on the "PRODUCT" button it was to go to that other screen: Only when I click on the button "PRODUCT" the…
-
0
votes3
answers345
viewsGet external IP in Java - Android Studio
I want to get my external IP by clicking a button in my app, but every time I click the button, the app closes itself. How can I do that? My code: public void onClickBtnAtualizar(View view) throws…
-
0
votes3
answers113
viewsproblems in passing data to new Activity
I’m having difficulty when I pass a dice using the put. Extras. My app is crashing and I can’t identify the reason. He is unable to pass the data from one Activity to another. Activity that sends…
-
0
votes0
answers43
viewsEdit a Spinner recorded in the Bank!
I am trying to edit some information of a product registered in the database, but the problem is the following: all the information in "String" I can manipulate well, I only have one information…
-
0
votes1
answer90
viewsNotifications repeating every day
I’m trying to make an app that arrives notifications at user-determined times every day, but I was only able to make them arrive once. That’s the code I’ve got so far: private void salvar() {…
android android-studio android-notification notifyingasked 6 years, 4 months ago aleander rayson 23 -
0
votes0
answers25
viewsSqliteopenhelper Error(8,8)
I’m starting to program in Android and want to make a class with a database. package josephisaac.com.wmvendas; import android.database.sqlite.SQLiteDatabase; import…
-
0
votes1
answer79
viewsChange Textview from one tab to another in Tabbedlayout
I am using Tabbed Layout ("activity_carrinho"), and have three separate Ragments for each screen, fragment_product, fragment_client and fragment_payment. As it needed the screens to remain intact…
-
0
votes1
answer32
viewsStrange debug with Android Studio
Note the print, the title(1) of the error has more details than the body(2) of the error. It’s not every mistake that comes along that way. You can configure the title to appear also along with the…
-
0
votes0
answers65
viewsInstantiating a Webview
I have a simple application that with a given link returns an html page. I’m doing this with a Webview, it’s working normally, but I don’t want the user to see the Webview on the mobile screen.…
-
0
votes0
answers47
viewshttpresponse resume error
I have the following class: package carcleo.com.radiosingular.classes; import java.io.BufferedReader; import java.io.InputStreamReader; import java.net.URI; import android.os.AsyncTask; import…
-
0
votes2
answers64
viewsWhat kind of database to use and how not to create many activities?
I intend to create an application, which will use barcode recognition, this barcode will lead to a screen on the medicine, the part of the database do not know which to use, because I never used,…
-
0
votes0
answers374
viewsGet color name from HEX value
I’m trying to make an Android app that can capture the colors but I just figured out how I can get the HEX value but I really need the color name! Please I need an alternative that shows the name of…
-
0
votes1
answer191
viewsToolbar is not displayed in the editor
Whatever project I design: The Toolbar is displayed in the emulator but does not appear in the editor. These errors also appear: It follows the codes: Styles: <resources> <!-- Base…