Questions tagged [android-studio]

Use for questions about using Android Studio, an official IDE targeted at Android development. Do NOT use for questions about programming for Android in general; instead use [tag:android].

0
votes
0answers
4 views

How can I copy to clipboard (from a ViewHolder)?

I tried to copy the text from the ViewHolder (not onclick) :ClipboardManager clipboard=(ClipboardManager) getSystemService(CLIPBOARD_SERVICE);ClipData clip=...
0
votes
0answers
9 views

how to set setLayoutParams for an item_layout?

How to set LayoutParams() for my items_layout for all screen size. in MainActivity.java to resize the activity according the datas i receive to refull a listview I wrote the following code for set ...
-1
votes
0answers
11 views

Android Studio cannot upload to AVD: com.android.ddmlib.AdbCommandRejectedException: device unauthorized

I just installed Android Studio last week with intentions to create an app. However, I seem to be running into an issue when trying to upload Hello World code to a newly created API 28 AVD. This ...
0
votes
0answers
24 views

Use date to manage subscriptions. Android. Firebase

My problem is with this activity. I want to get the time, compare it to the time on the database, and then if the subscription hasnt expired show a button, if it has hide it. Plus i want to show the ...
0
votes
0answers
12 views

Android build failed: error: cannot find symbol variable radio_animator

I just upgraded Android studio to the latest version :Android Studio 3.2.1Build #AI-181.5540.7.32.5056338, built on October 9, 2018JRE: 1.8.0_152-release-1136-b06 amd64JVM: OpenJDK 64-...
-2
votes
0answers
4 views

how to import odkcollect code as a module both project and app level build.gradle in existing android studio project

I have tried the above but only app level build.gradle file was getting imported.I want to import both project and app level build.gradle file in android studio.Failed to resolve: project :...
0
votes
1answer
17 views

Android application crashes on start when using android.os.Process.killProcess on onDestroy() method

We had a bug on our app, and were (almost)convinced that we solved it putting android.os.Process.killProcess(android.os.Process.myPid()) under onDestroy() on main activity. I say almost because today ...
1
vote
0answers
15 views

Gradle Sync Failed: Setup Project Failed: Null

long time I didn't have an issue like that.Possibly it's related to testing the Preview build on that project.Currently on stable Android Studio Version 3.2.1 I always get this strange error:What ...
-6
votes
0answers
21 views

How to detect realtime barcode location in opencv android? [on hold]

I want to detect realtime the barcode location, and draw a rectangle around the barcode.im new to this opencv android studio stuff, thank you
0
votes
1answer
29 views

How can I get the number of online users now in my app [on hold]

is there any website to get online users now in my app or any good idea?I tried to using onStart and onDestory but do not work well Are there other ideas
0
votes
0answers
20 views

Choose another TextInputLayout style

I'm trying to make a TextInputLayout that, when clicked, doesn't show a smaller hint on the top left corner and doesn't have a giant underline so the default TextInputLayout style when the Layout is ...
0
votes
0answers
14 views

android.view.InflateException: Binary XML file line #10: Binary XML file line #10: Error inflating class Button

here im my error sample and my .xml10-22 15:47:02.959 18003-18003/tips.admin.tipsscore.rewards E/AndroidRuntime: FATAL EXCEPTION: mainProcess: tips.admin.tipsscore.rewards, PID: 18003java....
0
votes
0answers
5 views

Android Studio Plugin implementation: how to get Google account login?

I would like to write an Android Studio Plugin that reads from the Google Drive of the user that has logged in into Android Studio. How do I retrieve the user from a Plugin?thank you.
2
votes
1answer
20 views

Android studio 3.2 canary Migrate feature

I find two new refactor commands, what are the exact functions ofrefactor>migrate app to appCompatrefactor>migrate to androidX
0
votes
4answers
50 views

Adding Dependency to android studio without internet

I have an isolated computer(C1) and i want to develope some android app.i have another computer(C2) too can connect to internet. i want to add volley library to my C1. how can i add dependency ?
0
votes
0answers
13 views

Android Studio - IOException with ExifInterface - no such file or directory exists

I am working on an app in Android studio. Part of the functionality is to access the GPS coordinates of a thumbnail image. I am attempting to do so through the ExifInterface, but I keep getting an ...
0
votes
2answers
16 views

How to convert a Bitmap to an Image in Android [duplicate]

I’m relatively new in android programming and have a problem: I want to convert a Bitmap into an Image.I couldn’t find a way to do this. Probably I’m searching wrong.Thanks.
0
votes
0answers
15 views

problems running app after upgrading to Android Studio 3.4 Canary 1

After upgraded to Android Studio 3.4 Canary 1 I run an app on virtual device and I am getting the following message.I tried to uninstall the apk as the message suggest but it does not change ...
0
votes
2answers
24 views

Remove Android Emulator from Run list android-studio

I have created a few android emulators but for some reason some of them are not working (i can see them running on background but cant display them on screen.anyway to remove them from the list so i ...
0
votes
1answer
29 views

Cannot find a version of 'com.android.support:support-annotations' that satisfies the version constraints

When i want to generate a signed APK (release) using Proguard rules i got this error message :Cannot find a version of 'com.android.support:support-annotations' that satisfies the version ...
1
vote
0answers
18 views

Using chrome custom tabs for extrernal urls

I am using the template from github: https://github.com/mgks/Android-SmartWebViewActually this app has a option to open urls other than webview url in default browser. Now I want to open them in ...
0
votes
1answer
43 views

I am getting the following error in Image View in android studio

When I am running the project, it stops running when I click on login button.I am getting the following error:E/AndroidRuntime: FATAL EXCEPTION: mainProcess: com.example.user.aarogya, PID: ...
1
vote
0answers
15 views

Cause: invalid block type [Android]

I am getting this error whenever I try to build my project or try to release the apk. This error started appearing after updating my gradle to version 4.6-all. I couldn't find any solution and don't ...
-2
votes
0answers
17 views

How to Parse a JsonArray Member? [duplicate]

I have the following response :{"code": 200,"lang": "en-ru","text": ["Привет с другой стороны"]}I try to parse only the "text" using volley using this code:Log.d("...
0
votes
0answers
18 views

Flym - İmport Android Studio Failed Build

https://github.com/FredJul/FlymI can't open this project, please help me.
-1
votes
1answer
20 views

React Native android doesn't load images for APK

after a part of my react native project, images doesn't load at APK file. But images is loaded on android studio emulator. Is there any solution?this is my ImageBackground component for example :&...
-1
votes
0answers
14 views

Password verification failed Change jks key run old jks key not run [on hold]

I am getting a password verification failed error when I want to publish an update with my old key. I get this error even though I did not make any changes to the.Error bottomPassword verification ...
-1
votes
0answers
14 views

Im using daimajia/AndroidImageSlider library for sliding images and want to ad youtube video on it kindly help me

public void request(){data_models=new ArrayList<>();stringRequest=new StringRequest(Request.Method.GET, "localhost", new Response.Listener<String>() {@Override...
0
votes
0answers
9 views

Load javascript data in webview android studio

I have an application in Android Studio with a webview that shows a page in which a PDF file is generated. The PDF file is generated through html2pdf, the output of a method is linked to a button ...
0
votes
0answers
14 views

Force raw file update

I've a raw file named changelog.xml in my raw folder. Sometimes it happens that my app does not update the file that's put into the compiled apk.Even Clean project and building the project again ...

153050per page
angop.ao, elkhabar.com, noa.al, afghanpaper.com, bbc.com, time.com, cdc.gov, nih.gov, xnxx.com, github.com,