Questions tagged [android-studio]
Use for questions about using Android Studio, an official IDE by Google targeted at Android app development. Do NOT use for questions about programming for Android in general; instead, use the [android] tag.
85,272
questions
-1
votes
0
answers
5
views
Android Bitmap rotation using postRotate
I have this function that rotates a bitmap 90 degrees,
public static Bitmap rotate(Bitmap bitmap) {
Matrix matrix = new Matrix();
matrix.postRotate(90f);
return Bitmap....
0
votes
0
answers
6
views
Committed changes on one branch break things on another branch
Here's a rundown of the issue:
I am running my project on the Xcode simulator, everything is fine.
I switch to a new branch to update react native. I run npm install and pod install.
I try building ...
0
votes
0
answers
5
views
How can I store two digit month in Firebase using Java?
I've now tried a couple of different methods to get the format I want in my Firebase Database:
I use the java.util.Calendar import in Android Studio.
Method 1:
if (endMonth <= 9) {
...
0
votes
0
answers
10
views
Why is every MediaPlayer object created null?
I am trying to create an app that plays music, but am having some problems with the MediaPlayer class.
Every time I use MediaPlayer.start(), it returns the error:
Caused by: java.lang....
0
votes
1
answer
8
views
How to retrieve other child value when a specific child value is known
https://i.stack.imgur.com/HHuaO.png
I wonder if there's any way where when I try to retrieve the specific email, I get the other child value which is the id. For example, I retrieve the louis@gmail....
0
votes
0
answers
9
views
Loop through a string arrayList while using a string on firebase
So I have a simple ecommerce app that has products(custom objects) on the cart and a proceed to checkout button. When the button is pressed I send an ArrayList with product ids with the intent so I ...
0
votes
0
answers
4
views
Recycler View List Sort position saving
In my program I added code to move the list items around but for example if I move shopping list above Test 123 and fully close the app the positioning resets to the original instead of the updated ...
0
votes
0
answers
5
views
Error in XML Regarding Case insensitive is Reversed
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app=&...
0
votes
0
answers
6
views
Edit text cursor wont go away when I open navigation drawer
When I click on edit text the edit text cursor comes up, which is what I want Here But when I click on my navigation drawer it doesnt close the edit text cursor, so I get some bad looking UI. Here
0
votes
2
answers
17
views
Error Running the Application on Android Mobile
I was working on a small flutter project suddenly I couldn't run the app to any android mobile.
(on Web it's running Perfectly).
It Shows this Error:
Could not locate aapt. Please ensure you have ...
0
votes
0
answers
3
views
@capacitor-community/http plugin import bundled with webpack throws SyntaxError in Android Studio
I am importing @capacitor-community/http plugin in a .js file:
import { Http } from '@capacitor-community/http';
which is then bundled with webpack into a library (pages.bundle.js), using ...
0
votes
1
answer
16
views
Android studio Kotlin OnClickListerner function
When I implemented the member in the class for the on click listener as shown below:
class QuizQuestionsActivity : AppCompatActivity(), View.OnClickListener {
I was given the option of implementing ...
0
votes
0
answers
10
views
Unable to run armeabi-v7a on Android Studio emulator
I need to be able to create a virtual device in Android Studio, which allows me to test my app on old Android systems such as Lollipop or Marshmallow, but it looks like I am unable to do it.
The only ...
0
votes
1
answer
11
views
Show apache ftp errors - android studio
I just managed to upload some files to an ftp server using apache ftp. when I use everything as it should be it works fine, I mean, the file uploading is working, but when I use, for example, a wrong ...
-1
votes
1
answer
20
views
i have a problem in getCurrentItem() function in Android Studio
When I want to use getCurrentItem() function I can't find it in the code as if it doesn't exist and an error appears
this is function i want to use:
private int getItem(int i){
return ...