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
-
1
votes2
answers66
viewsWhy does my "Textappearence" and my "Textcolor" not work on some Android devices?
I am developing an app and obviously it contains many textViews. I noticed that when installing my app on some devices, more specifically on MOTO G2, I noticed that my textViews get weird and does…
-
1
votes1
answer764
viewsHow to create an Android App Bundle on the terminal?
1) Creating and signing android Apks by the terminal has always been relatively easy. But now with the new form "Bundle" I’m catching quite a lot. today I use the following: Cordova build android…
-
1
votes1
answer70
viewsWrite Json record in variable
Hello, I am consuming a Json and I receive it in my fragment, taken only 2 records and saved in a variable created at the beginning of the class, the 2 of the String type, thus: public void…
-
1
votes1
answer146
viewsPlacing findViewById on the fragment
I am trying to put a webView inside a fragment that refers to webView that I put inside the xml for the findViewByIdmethod Fragment only works if I extend an Activity class. Is there any way I can…
android android-studio android-fragment webview android-webviewasked 5 years, 1 month ago renan silva das neves 159 -
1
votes0
answers73
viewsWorkaround: error Calling Appregistry.runApplication in React-Native
Guys, I use the Linux Mint 19.2. While trying to run an React Native application, via terminal, using the React-Native run-android command, I came across the error Calling…
-
1
votes0
answers17
viewsHow to Handle classes in a Thread within a Service
I am having a problem related to a Thread. I need to use 2 classes that are outside of it and is giving me the following error: E/Androidruntime: FATAL EXCEPTION: Thread-3 Process:…
-
1
votes0
answers25
viewsHow to pass an object (instance of a class) from Mainactivity to another activity (Mainactivity2) on Androidstudio
Superherofeatures is a class with all the attributes of a superhero, such as name, birthday, power and many other things. Now the heroSelected instance is working, but I can’t transmit it to the…
-
1
votes1
answer174
viewsChange font Textview
I am having problems changing the source of Textview in my project, I have tried all methods found on the internet and none altered. No debug errors and no errors when opening the app. I’m using the…
-
1
votes0
answers98
viewsQuestions about using Appbar + Toolbar + Fragment - Android Studio
Hello, I have prior knowledge of Java but I’ve just started programming for mobile on Android Studio, someone would tell me if there’s any way to use Appbar + Toolbar (for the sake of design itself,…
android android-studio android-layout android-activity android-fragmentasked 4 years, 8 months ago Davi Massini 26 -
1
votes1
answer241
viewsUsing Loop to traverse an array, stopping at the first item and waiting for a click to the next JAVA item
Good evening, folks, I’ve been trying to find a solution to my problem for three days without success. Let’s get to the problem. I have an external API that is on a server, I can already make the…
-
1
votes1
answer58
viewsHow to access an Activity by clicking on the notification without losing the data
Hello, I would like to ask for help because I built an app with a stopwatch and after a long time managed to enable notifications for Android Oreo+, but I can’t access the stopwatch Activity through…
android android-studio android-activity android-notificationasked 4 years, 1 month ago Nathan Nathan 21 -
1
votes1
answer53
viewsRegister authenticated users with Facebook in Firebase Database
Good night! Guys, I’m using Facebook login in my app and would like to register the user information in the database or firestore Realtime, as the name and email for example, I’ve recovered the…
-
1
votes1
answer59
viewsAndroid Studio onActivityResult does not return
I am showing the pop-up asking it to activate the GPS then use " onActivityResult " to catch the result, only it does not return anything. Researching I saw several similar problems but nothing…
-
1
votes1
answer498
viewsApp does not share using Whatsapp appears: "Failed to share. Pro please try again."
When I choose Whatsapp to share appears a message: "Failed to share. Please try again." My code is like this: compartilhar.setOnClickListener(new View.OnClickListener() { @Override public void…
-
1
votes0
answers22
viewsMessaging Cloug Firebase sends only once
Hi. I have an Android app that uses Cloud Messages, however, I noticed that I have some APP’s that the message does not arrive. For example, I have active X Apps in the playstore, but Firebase shows…
java android android-studio firebase firebase-cloud-messagingasked 3 years, 10 months ago Joel Nascimento 21 -
1
votes0
answers20
viewsHow to save spinner items in firebase
I’m a beginner in android studio and I stuck in a part, I already looked here in the stack I saw some possible solutions but they didn’t work for me, I don’t know if it’s because of my code, come…
-
1
votes1
answer15
viewsBitmapfactory.decodeByteArray Returning null from Sqlite
I am creating an application that I register a search image from the mobile gallery, saving it in SQLITE, and searching later to show in a view Recycler, however, debugging realized that the bitmap…
-
1
votes1
answer39
viewsError entering data in Sqlite
Hello. I’m having trouble with this personal project. When trying to save a product, Sqlite did not like Price, which is set to float, but when saving in db (which is set to REAL, I even changed to…
-
0
votes1
answer2629
viewsHow to create new folder in an Android Studio project
I’m a beginner in Android Studio and I’m trying to create new folders (values-ldpi, values-mdip and etc.) in the project structure, but I can’t find option.
-
0
votes2
answers1416
viewsHow to run commands in Android Studio?
I need to execute the command: Gradle -q dependencies to check library conflicts in Android Studio.
-
0
votes1
answer163
viewsProblems with Android Studio
Today I migrated to Android Studio, I was using until today Eclipse + ADT to develop for Android. So I gave the run in the application and gave this error: the module cannot be android library I…
-
0
votes1
answer178
viewsProblem mounting Textviews on Android Studio
I am creating a project in Android Studio, the preview did not turn out as I expected and I would like to know where I went wrong. Here is the XML: <?xml version="1.0" encoding="utf-8"?>…
android-studioasked 10 years, 5 months ago wladyband 4,694 -
0
votes4
answers1377
viewsError on AVD startup - Android Studio
When android emulator starts the following error occurs: 07-22 15:14:14.669 2387-2488/com.android.systemui E/JavaBinder﹕ Uncaught remote exception! (Exceptions are not yet supported across…
-
0
votes1
answer1646
viewsCreating a customized and animated toggle
I am creating an app for Android in which I am using a ToggleButton as one of the interface elements. I am trying to make it have images instead of the button itself and there is a transition…
-
0
votes0
answers143
viewsUsing Navigation Drawer and Page Sliding Tab Strip
I’ve tried every way I can imagine importing this library (Navigation Drawer and Page Sliding Tab Strip ) in a project, however, without success. I followed the step-by-step (importing the other…
-
0
votes1
answer80
viewsWill Facebook approve an Android app with facebook4j?
I decided to use the facebook4j library because it is easier for integration and even for development itself, in my opinion. My question is: facebook will accept an android app with facebook4j?…
-
0
votes1
answer337
viewsdebug.Keystore on Mac to generate hash
I need to generate the hash of my Mac to add on Facebook and be able to continue the application I’m developing, where you need to login. I’ve executed the command in several places but when I put…
-
0
votes1
answer2007
viewsError occurring in specific API versions
When I create a new project And I choose the minimum SDK 10 He creates the Android package with the main.java and activy_main.xml (and other things) except that when it compiles the codes of these…
-
0
votes1
answer150
viewsHow to use robolectric in Android Studio
Hello, I’d like to know how I use robolectric in my projects on Android Studio. I have tried several tutorials, but none was of great help and the documentation of it is not very clear.…
-
0
votes1
answer774
viewsDownload zipalign for Mac
Hello! I just signed a test app on Android Studio and would like to upload it to Google Play. I did some research and I saw that zipalign facilitates the process of importing the APK, however, I…
android android-studio download zip-file digital-signatureasked 9 years, 9 months ago Luiz Henrique Ugliano 651 -
0
votes0
answers267
viewsImageview Android Responsive for all devices
I have an Imageview and the problem is this: On smaller screens the image gets too big; on larger screens, it gets too small. I’ve made the folders hdpi, xhdpi and similar, but no good, I wanted to…
-
0
votes0
answers401
viewsMy Android app doesn’t update on the device test
When I test the app on the emulator, it displays normally, the way I programmed it. But when I move to the phone, it displays a layout that I have changed completely, IE, it is defecated and it…
-
0
votes1
answer4337
viewsAdapter in a Listview in Android Studio
I’m trying to complement a code that controls a custom Listview, through three classes: AdapterListView, ItemListView and the MainActivity. So far, the code only manages the insertion of data and…
-
0
votes2
answers791
viewsHow to display GPS coordinates
Guys I’m new I’m attending Sistemas de Informação and has been proposed a work in which need to use a cellular hardware element. I chose to make an application that displays the coordinates, I…
-
0
votes1
answer306
viewsGoogle Maps Navigation Material Design
Someone knows reference material to develop an Android app similar to the new Google Maps navigation and animation format? The idea is to position the Marker Infowindow in the region below the…
-
0
votes1
answer143
viewsHow to return to my Actionbaractivity?
For example, for example... I have an application that has a main Actionbar and I "Seto" an Activity that has a drawerLayout (which has a side menu)... In each menu option -case selected- I replace…
-
0
votes1
answer313
viewsError when trying to open a new Activity
Well, I have the MainActivity which has two buttons, I’m trying to do something simple: When you click one, go to a Activity, when you click on another, go to another Activity. This is the…
-
0
votes0
answers240
viewsAndroid bug when running emulator project
I’m trying to run a project in Android Studio and this giving an error that I do not know how to solve. Gradle Console: > Executing tasks: [:app:generateDebugSources, >…
-
0
votes1
answer58
viewsproblems with emulator
I am trying to program in Android Studio, but I am not able to make the emulator work, I have tried to use my phone, but Choose device does not recognize, but in other computers my phone is…
android-studioasked 9 years, 6 months ago Roney Ferreira de Jesus 1 -
0
votes1
answer752
viewsActivity background image distorts when you open the keyboard
I’m developing an app that has a background image of the image. But every time I open the virtual keyboard to fill a field, this image is flattened. How do I make it not happen?…
-
0
votes2
answers318
viewsHow to remove a View from an xml layout?
for example... I want that when inflating a layout with a certain class, it removes the unnecessary views and uses only the necessary ones... There is a method to remove views?
-
0
votes1
answer82
viewsHow to name a text file with Edittext information?
In my registration app I have the name and phone information. After entering the information and clicking register, a text file is created with the registered information. But I would like the…
-
0
votes1
answer171
viewsI cannot import the lib aacdecoder correctly
Although I have already unpacked the lib contents in both the libs folder and jniLibs folder, I can’t import the classes. I’ve already rebuilt. Any help is welcome. Thanks in advance. UPDATE ->…
-
0
votes1
answer263
viewsHow to generate thumbnails of a bitmap using Asynctask?
I have a Fragmentactivity that has a listview, in each item there is a button to open a Dialog, in this Dialog another listview is run with an Adapter that has a Textview and an Imageview, the list…
-
0
votes1
answer1570
viewsHow to assign click effects to an Imagebutton?
For example, I added to my xml layout an Imagebutton, put an image and left with transparent background, for having done that it lost the characteristics of a button, how do I add click effect?…
-
0
votes0
answers475
viewsSave spinner state
I would like to know how to, after selecting an option of the spinner, save it at the time of the form for change, example: I choose option 2, when it is time to change the form, the selected option…
-
0
votes2
answers82
viewsError minSdkVersion 1 cannot be smaller than version 4
I’m studying a script and at the time of building the project it accuses version problem, but only I’m having this problem in my class. <uses-sdk android:minSdkVersion="1"…
-
0
votes0
answers193
viewsHow to transform a piece of text into an image
I have 1 string in java that is receiving 1 json array , which has several images together with the link of the respective ones, I have another string that has text and within that text there is X…
-
0
votes0
answers32
viewsHow to put an image in a string
I wonder if it would be possible to load an image inside a string in android through an image url? .
-
0
votes1
answer78
viewsDoubt about how to turn a gridView object into non-clickable
Hello, I have a gridView I built with an Adapter I inherited from Basedapter. I want my Activity, when you click on an item (I have 16 in total in mine), to make other items clickable and vice…