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.

Filter by
Sorted by
Tagged with
0votes
0answers
3views

Foreground service is getting killed outside without calling selfStop?

I am working on scheduling app in which i have to run the app until it completes it process but the problem is , Process is getting killed after few minute even it is running on foreground service ... ...
user avatar
0votes
0answers
4views

Error: 'Flutter\Flutter\FlutterCode\StatefulWidget\android' is not recognised internal or external command, operable program or batch file

Error: 'Flutter\Flutter\FlutterCode\StatefulWidget\android' is not recognised internal or external command, operable program or batch file. Error: Could not find or load main class org.gradle....
user avatar
1vote
1answer
11views

How to make one button with two states of click android

I am trying to make one button make 2 functions if oneClick to give me an ID and if long click to take me to another activity this is my code: if(caseID == 1){ btn.setOnItemClickListener(new ...
user avatar
  • 159
0votes
0answers
8views

(Android-Mapbox)Failed to resolve: com.mapbox.navigation:android:2.3.0

I am trying the implement the navigation API of Mapbox into my android application. However, I have encountered the following issue: Failed to resolve: com.mapbox.navigation:android:2.3.0 May I have ...
user avatar
-2votes
0answers
11views

When my app going phone number activity to otp activity,,app crashed..And My phone number is not changing

2022-03-26 14:56:03.917 31220-31220/? E/nstyle.widecha: Unknown bits set in runtime_flags: 0x8000 2022-03-26 14:56:04.037 31220-31220/? E/RefClass: java.lang.reflect.InvocationTargetException 2022-03-...
user avatar
0votes
0answers
16views

App crashes on uploading documents from recents folder android

I am making a doctor and patient app in which I have added the document upload option but when I try to upload any pdf from "recents" folder the app crashes. If I upload it from downloads or ...
user avatar
0votes
0answers
5views

CropImageActivity is not working in android

I'm using crop image dependency but this is not working in manifeast i put cropimage activity it showing error message like this::-> "Class referenced in the manifest, com.theartofdev.edmodo....
user avatar
0votes
2answers
10views

Exception: Gradle task assembleDebug failed with exit code 1 flutter project

I am running one of my old flutter project in the latest version of android studios and I am facing the issue while running the project please can you help me with this. FAILURE: Build failed with an ...
user avatar
0votes
1answer
16views

Android Studio Emulator Not Running

I am not able to run emulator neither on my phone nor on laptop Name of emulator is appearing fade and what I have done I don't know and also in log cat it is showing disconnected. I have deleted the ...
user avatar
0votes
1answer
31views

Android CountDownTimer skipping interval of 1 ms

At first lets have a look in the logcat E/StopWatchService: onTick: 0 E/StopWatchService: onTick: 2 E/StopWatchService: onTick: 3 E/StopWatchService: onTick: 5 E/StopWatchService: onTick: 6 E/...
user avatar
0votes
0answers
18views

How can I store array list in database using retrofit

Hello every i am new in android studio can you please guide me how i will use retofit for array i have an array of string which i want to post as an array and store it in database local server but i ...
user avatar
  • 19
0votes
0answers
7views

Using LLVM pass in Android Studio does not work

I tried to compile the Telegram Android program locally, and I want to use LLVMPass in the NDK. mypass.cpp #include "llvm/Pass.h" #include "llvm/IR/Function.h" #include "llvm/...
user avatar
-2votes
0answers
11views

How Do I Convert an URL Exception to a Snackbar? [closed]

I have a demo application that consists of inserting text into a database on my web page where everything works but I created a demo version for users to test and I had to delete the URL to protect my ...
user avatar
0votes
0answers
11views

javax.net.ssl.SSLException: Broken pipe error while sending image to server

i have a update profile activity, and i send the new data to my asp.net server for database updating. when i attempt to upload a new profile image to my server after converting it to base64, i get a ...
user avatar
0votes
0answers
8views

After stop inistallition in midway. How can I delete SDK tools and re-inistal it?

I am new at android studio. In SDK manager I just selected a lot of SDK tool and their versions by sellecting "show package details". Then I selected ok and install. There was too many ...
user avatar
  • 28
0votes
0answers
9views

How to use encrypted SQLite database in android that created in SQLite Maestro software?

I'm using SQLite Maestro Software to create my android SQLite database and as you can see in the photo you can set a username/password/encryption key to protect the database. Is it possible to pass ...
user avatar
0votes
1answer
24views

When running the Scanner class to insert a number in android studio, it does not work

In android studio, when I run a simple code to get an integer number, it gives me an error regarding the Scanner class. import java.util.Scanner; public class MyClass { public static void main(...
user avatar
0votes
0answers
6views

TomTom Map api black dots on the map

I am using the TomTom map API. But when I'm using the map there are so many black dots and boxes(as seen on the image below). When I zoom in the dots and boxes disappear, but then the new dots and ...
user avatar
0votes
1answer
20views

How to compare Edit Text to Variable That was converted to String in Kotlin

I'm a beginner to Android Studio and I am building this simple game My problem is that I tried to get the Value of the Edit Text and then converted it to string. And I also converted my int variable ...
user avatar
  • 1
-1votes
1answer
20views

How i can change few images endlessly? - Java

I want for example 3 images to change every 2 or 3 seconds endlessly repeating the circle. // Like this: ImageView background = (ImageView)findViewById(R.id.main_background2); background....
user avatar
1vote
1answer
17views

ADB reverse socket to two or more emulators/devices on Android Studio

I am using Firebase emulators to test my Android app. I'm trying to set up a testing environment where an Android emulator(AVD manager device) AND an android real device have access to my Firebase ...
user avatar
  • 611
0votes
0answers
5views

virtual joystick from controlwear doesn't work?

https://github.com/controlwear/virtual-joystick-demo I have created and used this joystick many times and it used to work fine. Now also on the previous android studio version, it works fine when I ...
user avatar
2votes
2answers
25views

How to make a commit that reverts the state of 5 commits before?

I was experimenting with my app, made a few commits (about 5) and my app was working fine 5 commits before. I was editing multiple files during my experimenting. How can I revert my all changes I did ...
user avatar
  • 21
-3votes
2answers
29views

Pubspec.yaml in Android Studio

enter image description here What kind of mistakes are happening with me ? Please somebody guide me
user avatar
0votes
0answers
11views

Is there any documentation or guide on how to use the Login Activity template in Android Studio (Bumblebee)? [closed]

I am using Android Studio Bumblebee | 2021.1.1 Patch 2 and cannot find any useful resource on how to make effective use of this predefined template. I did find some blogs and YouTube videos on this ...
user avatar
  • 13
0votes
0answers
6views

Gradle sync failed: Could not create task ':flutter_plugin_android_lifecycle:generateDebugUnitTestConfig'. this and base files have different roots

I am using flutter for my project. And I am using android studio for my android app. When I pressed on the build This is the error I am getting. Whenever I press on to build my ap build but I face ...
user avatar
0votes
0answers
13views

Java Android studio "Could not resolve all files for configuration ':app:debugRuntimeClasspath'."

I am new to Android studio and I tried to make a simple chat app and it gives me the following error: "Could not resolve all files for configuration ':app:debugRuntimeClasspath'." Here is my ...
user avatar
  • 5
0votes
0answers
6views

How to access /data/data/my.package.app/files directory on Android 9+?

I have a script (my_script) in my application that I copy to the directory with the application and then call it through the terminal, for example, Process pr = Runtime.getRuntime().exec('/data/user/0/...
user avatar
0votes
0answers
10views

Query re RecyclerView for YouTube Channel & using YouTube API (Android)

I'm after some assistance please if anybody could help. I've followed a guide (funnily enough on YouTube!) concerning how to register for an API Key for YouTube, create a RecyclerView on an App and ...
user avatar
0votes
0answers
12views

Gradle sync error after updating - configuration with name 'compile' not found

I am making some updates to an legacy project and after updating grade versions I can't sync anymore. The error: Build file '/home/user/android/projects/proj/app/build.gradle' line: 55 A problem ...
user avatar
0votes
0answers
8views

Getting the result from plain text then create summary in android studio

I want to ask a question on how to make a list in android studio? what I want to do is to get the input in the plain text and list it somewhere (can be stacked) and then if I click certain button, the ...
user avatar
0votes
0answers
16views

Could not resolve all files for configuration ':app:debugRuntimeClasspath'. error

I've upgraded my android studio to the latest version (bumblebee) and opened a new project. I tried implementing a library I've used in the past: implementation 'com.github.barteksc:android-pdf-...
user avatar
0votes
0answers
12views

Problem adding JavaFX to Android Studio project with gradle

I just installed Android Studio yesterday (latest versions of all tools) and am new to gradle syntax. My goal is to start with creating a proof of concept desktop target and make an app using GDX and ...
user avatar
0votes
1answer
32views

null cannot be cast to non-null on NavHostFragment inside MainActivity

I tried to run an outdated application. I had to upgrade gradle files, dependencies, kotlin version, switch from synthetic files to viewbinding. I did all that and then I got an error, saying, "...
user avatar
  • 1
0votes
0answers
20views

Why is android studio throwing Unresolved reference errors for BluetoothLeScanner?

I'm trying to implement a BLE scanning functionality in an android app (following both the Punchthrough and Android Developer guide) however something seems to be going wrong with the import. The ...
user avatar
0votes
2answers
15views

React Native Built App is closing unexpectedly

Okay, I've been struggling for the last two days and this is it. I'm developing my first React Native android app using React Native CLI and using the following Packages: "dependencies": { ...
user avatar
0votes
1answer
18views

Unable to call class method in the constructor of a Dart class

I am new to Dart programming. Need help in updating the List "items" before instantiating the super class. import 'package:flutter/material.dart'; import '../util/color_constants.dart'; ...
user avatar
  • 846
1vote
1answer
24views

how to set initialvalue in textformfield

i'm trying to supply an initial value however i keep getting errors. how do i approach this. stuff is a list of values by the way so it holds a list<map<string, dynamic>> function Widget ...
user avatar
  • 11
-1votes
0answers
7views

Add 3d model in mapbox android

I'm working in an application that needs to show a 3d model in mapbox. I need to know what is the best practice to handle it. I tried this engine (android 3d model viewer) and it showed the 3d model I ...
user avatar
  • 23
0votes
0answers
24views

App will not launch on emulator but android studio is telling me it has launched the applicaton

I had this issue with my android studio and I solved it with this answer. Now my application is running on android studio and I will get a notification from android studio that the application has ...
user avatar
  • 53
0votes
0answers
19views

Android Studio: Enable EditText direct multiline input

When i build my application in android studio and test it on my phone, the edit text doesn't behave like a text editor and creates a popup input field above the keyboard and waits for you to press ...
user avatar
0votes
0answers
9views

How to remove notification from Status bar and the app view by clicking a button using android studio

So, I have created an app that will display all the notifications of the status bar in it using list view and I want to insert a button that will clear that notification from the status bar and in the ...
user avatar
0votes
0answers
10views

Can't implement Google Play License check and There's no tutorials

Many days are already gone while trying to figure out how to license my paid app. Can't even release because of this. There are no tutorials no guides about how to implement License Check. I tried to ...
user avatar
0votes
2answers
8views

Generated file Error In Android Studio for Unsupported package android.support.v7.widget.RecyclerView, But not find the error comes from where

I have Migrated to androidx in previous days. After some days, Once I have created an activity Login_Activity I have found the error in runtime generated file : D:\AndroidStudioProjects\4_tafheem_new\...
user avatar
  • 1,068
0votes
0answers
20views

How can I add onClickListener into TableLayout row buttons in android?

I have the following code: tableLayout = (TableLayout) findViewById(R.id.tableLayout); for (int i = 0; i < coordinates.size(); i++) { View tableRow = LayoutInflater.from(this)....
user avatar
0votes
0answers
26views

Change color of selected item in recyclerview (Java)

I am working on this app for a school project, and it's the first time I am using java to develop an app. I created a recyclerview in order to show multiple orders from a list. What I wanted it to do ...
user avatar
0votes
2answers
17views

How to only focus on the positive Y-axis portion of graph?

I am new to OpenGL, and have recently successfully drawn my first shapes with the guide on the Android Developers website. Right now I am trying to only focus on the upper half of the graph on my ...
user avatar
  • 1
0votes
0answers
28views

Error in c++ code for header file path in android studio

I am trying to develop an android application using android studio by incorporating c++ code for facial landmark detection. I am using the native c++ activity provided in the android studio. The ...
user avatar
0votes
0answers
6views

QEMU PIPE error in Android Studio Bumblebee

I'm trying to implement a function that updates the textview every 30 ms as it repeats a division multiple times. However, the emulator's screen is stuck at showing 60 (the numerator) instead of the ...
user avatar
0votes
0answers
12views

hide iframe on Index.html that load by webview

I had webview app that url load from local asset index.php, and i have one more file named index2.html. My main interface appear on index.php, inside index.php i put iframe code with url reference ...
user avatar
  • 1

15 30 50 per page
1
2 3 4 5
1691