• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

android-studio

  1. M

    import a TextView and a CheckBox

    I've been following a tutorial unfortunately this tutorial is 2 years old and (at timestamp 47:57) where the guy said to press Alt+Enter and import the TextView (called "tvTodoTitle" in this instance) just doesn't work on my version of Android Studio (details pasted below). When I Alt+Enter I...
  2. A

    How to select messages from a specific phone number (Kotlin Android)

    val cursor = contentResolver.query(Uri.parse("content://sms/inbox"), null, null, null, null) if (cursor != null) { //cursor.moveToFirst() cursor.moveToPosition(1) var text = cursor.getString(12) Toast.makeText(applicationContext,text,Toast.LENGTH_SHORT).show()...
  3. D

    Need step by step instructions how to automatically add files to the APK in Android Studio

    I am trying to do this very trivial task, but I cannot find any complete instructions on how to do it. So far, I gathered that APK is just an archive that files can be added to using aapt add MyApp.apk file1 file2 ... Or the files must be added to the assets folder The APK must be less than...
  4. A

    Apps Expiry Date Tracker Reminder

    How can I send a notification or reminder to a user based on their product's expiration date? Can someone please help me? Sorry I just started Android Development.
  5. H

    Help studio64.exe detected as ransomware

    Avast detected Android Studio (the latest version) as ransomware. Here is the message: studio64.exe is trying to delete or change the file C:\ProgramData\Microsoft\Crypto\RSA\b42cc0c3858a58db2db37658219e6400_9205d3aa-d330-4b9c-977e-9d84ee659886... Ransomware By the way it was the first time i...
  6. F

    Android Studio - Tool to find out where a particular object was instantiated

    Hello forum, I am currently debugging an app in Android Studio and I am in a situation where I have an object and I need to find where this particular instance was created. In other words: I need to find the constructor call that created that particular instance. My current workflow is to find...
  7. A

    Apps Intel Iris Xe Graphics for android studio

    Hi, I am planning to buy a laptop for android development. Is Intel Iris Xe Graphics along with i7, 16GB ram and 512GB SSD enough for Android Studio and emulator to run smoothly without any lag? Some people said Intel Iris Xe Graphics is not enough to run emulator. I am a bit confused on...
  8. A

    Calling kotlin from java shows "Cannot resolve symbol" for classes and methods called

    There are two modules: app (main/application module which contains both Java and Kotlin classes) lib-wrapper (Android-library module which contains Java classes) lib-wrapper is published on the Amazon S3 bucket and used as a library dependency in app module. Proguard rules are applied for the...
  9. ashcliuewkanc

    Is it possible to record a video while playing another video simultaneously with android-studio?

    Is it possible to record a video while playing a video with android-studio? I would like to record a video via a mobile phone's camera while playing a video via YouTube or any video player. For example using the [camera2...
  10. Atsix26

    Apps ARCore app crashing on Android Emulator

    I'm developing an ARCore app with Unity and I'm trying to test it on Android Studio's Android Emulator. I've built the .apk file and installed it on the virtual device but the app crashes a few seconds after starting up. Before that, it's only possible to see the app's UI, while the rest of the...