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

Testing app on a real phone

Hi all. I am working on an app in android studio. I decided to try testing it on my real smartphone, a samsung galaxy s20. It installed and ran ok. During this testing I made a few changes to the code and ran it again, and again, and again. When I was done I discovered that I had about 6 of the launch icons on my phone. I reasoned that the ide must create a new icon each time I run it from AS. So I deleted (uninstalled) the app from the phone. A few days later after more editing, I tried it again. To my surprise all 6 of the startup icons reappeared AND the newer code was not installed but the older code I had been testing previously was back on the phone. So I uninstalled it again and then went into the device manager and deleted the apps folders from /data/data/com etc. Another try but the same result.

Can someone tell me what’s going on here and how to fix it?
Thanks

getAssets().openFd() throw exception

Hello all,
I place 2 files in assets folder
  • res.bin (650 MB)
  • res_LITE.bin(200 MB)
Then i use getAssets().openFd("filename") to load these files, but i have a trouble.
  • In Android version 8,9,10,11,12,13: It was fine
  • In Android version 6,7 (Nexus 6 - Android 6.0.1, Samsung J2 Pro - Android 7.1.1):
    • For "res_LITE.bin": Load success
    • For "res.bin": I got an exception "java.io.FileNotFoundException: res.bin"
Can anyone please explain why it thow exception? (I guess cause of large file but I'm not found information about that)
Thanks a lot! :)

Is there a simple TV type remote control for my tablet?

I watch a LOT of video on my tablet in bed and elsewhere. It's on a stand and it sits on the bed or the side table. It annoys me having to get my hands out to control the video, especially when it's cold.

Is there any such thing as a remote like the one for the chromecast-with-google-TV, so I can use it under the blanket or just for general viewing use on my tablet or even my phone?

Help 3 Phone Call Problems, Same Cause?

So I'm having a few phone call related problems and don't know if they have the same cause.

1. When I call somebody, the sound cuts out while its ringing until the otherside answers.

2. When I use WIFI calling, the other person has problems hearing me, while I hear them just fine.

3. Visual voicemail isn't working anymore.

My phone is a Motorola Edge 2020 regular. The OS is LineageOS 20 which has an Android 13 foundation. The phone is rooted.

VOLTE or lack thereof could be the issue, but I can't tell if it's being used. When I go into the hidden settings by pasting *#*#4636#*#* into a phone app, it shows what you see in the picture. The VOLTE switch is in the ON position but its grayed out. I interpret that to mean that VOLTE is enabled but its not disable-able(at least with the switch), but I don't know for sure.

Is this Android Kotlin socket request blocking even it is inside a Coroutine

I want to do Android Apps that uses socket queries to microcontrollers and these Android Apps are not very difficult, just short stream Socket requests and respoinses . But I am a new comer, so at the beginnign I am asking : Is this Andfrid Kotlin socket request in a Activity blocking UI thead even it is inside a Coroutine?

Note: I had to put Kotlin class in a Java code tags because I didn't find Kotlin code tags!

Java:
class MainActivity : AppCompatActivity() {
    private var active : Boolean = false
    private var data : String = ""

    //private var button = Button(this)
    private lateinit var textView : TextView
    private lateinit var button : Button

    override fun onCreate(savedInstanceState: Bundle?){
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)

        button = findViewById(R.id.button)
        textView = findViewById(R.id.textView)

        val address = "192.168.0.100"
        val port = 5000

        button.setOnClickListener { it: View!
            if (button.text == "connect")
            {
                active = true
                CoroutineScope(IO).launch{ this: CoroutineScope
                    client(address, port)
                }

            }
            else
            {
                active = false
                button.text = "connect"
            }
        }//button

    }//onCreate

    final suspend fun client(address: String, port: Int){
        val connection = Socket(address, port)
        val writer : OutputStream = connection.getOutputStream()
        writer.write(1)
        val reader = Scanner(connection.getInputStream())
        while(active)
        {
            var input = ""
            input = reader.nextLine()

            if (data.length < 300)
                data += "\n$input"
            else
                data = input

            textView.text = data
        }//while
        reader.close()
        writer.close()
        connection.close()
    }

}//class

Moto One XT1941-3 stuck in Fastboot mode with boot failure warning

Hello everyone on the forum, I have a Moto One in my hands, when I start it it goes straight to the fastboot mode screen and with the Android boot failure warning, it asks to pass the cell phone in the recovery software of its own Lenovo, but every time I try to use it I get a Fastboot Flash error, I thought about trying to reinstall android manually but the device has the bootloader locked and I can't unlock it because the device is bricked, any tips?

Help!: Need to compile source code file/folders into APK

I am recently employed into this new company as a junior IT support. I mainly do hardware with very2 little programming knowledge.
Recently my company upgraded to a newer server and we have changed the location of the databases. However our apps are still pointing towards the old server url/location. I have been in contact with the app developers on how to change the configuration of the apk; in which it needs to be decompiled. They are engaged in a big project and was unable to assist me at this moment. Instead, they have given me the whole folder containing all the source code (Shown in the screenshot).

I was asked to:-

1. Change the URL setting in on of the config.ts file contained in the res folder - done -
2. Recompile everything to APK so that the 'new' apk can be installed on our mobile android devices.

I have used the Android Studio program to open this folder and made the necessary url changes.

However i am unable to find "Build APK" from the Build drop down menu. It only displayed "Make module 'projectname'", "Analyze APK" and "Deploy module to app engine" . Did I miss something out? Please see screenshots
Screenshot 2023-07-29 193033.png
Screenshot 2023-07-29 193145.png

Help Unusual Touchscreen Issue

I apologize in advance if this is redundant or etc; I only want to describe the problem with as much detail as to be clear & cut down on basic questions...

My tablet (cheap blue model) has a tiny chip and a couple of cracks out from there but no major damage. The touch screen was still working great until recently when the pattern screen became unresponsive.

The 1st initial picture screen still seems to be 100% responsive. It opens up either ⬆ or ⬇ & if I swipe ↔↘↙↖↗ it moves the picture like it should - like the touch is accidental or just the wrong directional. But when I do open up the pattern lock screen, then it becomes unresponsive. It does this no matter how many times I turn off the screen and reopen OR restart. I don't understand why only 1 screen is not recognizing touch. Any help?

What speaker wires are these?

Home theater newb trying to set up a wired home theater system left behind from a previous home owner.

There is a closet with these wires:
20230730_145829.jpg

Seems like left, right, center, surrounded left, surround right, surround back left, surround back right.

This corresponds with receptacles around the room that seem to connect with regular speaker wire.

However, is there a recommended receiver I should be using with this connection/setup? My current receiver would require me to take these caps off, but who knows, maybe they are intended to be removed? (They have star like tips).

I am excited to finally get this thing working!

Suspicious notifications

Hi guys, I'm really not very tech savvy, and would just like some peace of mind regarding a notification I have on my phone EVERY DAY.
"Contacts imported successfully" but I'm not importing any contacts and can't work out why the constant notifications.
Am I just paranoid or is this irregular?
Any enlightenment would be greatly appreciated

Bad night in the kitchen

Last night my friend was cooking something on the stove and forgot. He went out and did some other things. When we came back the smell was unbelievable. I said he should leave it in the pot until morning, but he wanted to hurry. The handle came off the lid and the stench stuck around despite open windows and door and the fan over the stove. I could still notice it when I came back this morning. I think air freshener isn't gonna help this one. What can be done? I hope the pot is salvageable because it was a good one. Can the lid be saved? I wanted to post this in off topic but I couldn't find it.

Help Tablet app crashes help

I think this is in the right section so I have a headwolf Wpad3 running Android 12 I've wipped the tablet clean to install it fresh again and I think the crashes have something to do with an update but these are the issues

Youtube after the update on the system crashes the app as soon as it loads.. I tried force stop.. I even uninstalled it and installed it again and it didn't work at all it still crashes.. next is the Digital wellbeing same issue.. Now the new one is the Quickstep app.. It's very fustrating.. It's to the point now I'm wondering if I could root the tablet and install a different version of Android?

  • Question Question
No Voicemail Visual Notification appears Redmi 7a

Hi, I switched phone companies, Ive put in a new 'Sim' everything works fine, but im NOT getting a Visual 'Icon' at top of 'Home' screen , to tell me there is a Voicemail waiting for me .. I used to get a small, '2 circles, with a line through' type icon, .. but i now do NOT get ANY Notification for Voicemail ..I can only check messages, by randomly, dialling my 'Voicemail' number and checking if anyone has left me a Message !! How can i get this 'Voicemail' Notification (Visual ) Icon back , when someone has left me a 'Voicemail' ? Thanks in Advance !
Xiaomi Redmi, 7a , Android 10 ....

Collectors And Their Collections

My father collected antique clocks and coins and my mother antique plates. I grew up collecting. First it was baseball cards and then I helped my father going through coins and started filling penny books. The first home I rented was from the original banker of my town. He had the money and he was a big collector. He loved glass and had an amazing collection of glass paper weights. He had an unusual collection of glass canes. I bet he had over 500 glass and carved elephants. He had huge glass urns full of glass marbles. He also collected money and stamps.
He got me into collecting stamps which he had pages of every US stamp printed from the early nineteen hundreds. I bought from him 1968 back to 1937 a single of every stamp. I still have them and they have gained some value though mostly not a good investment. I spent my spare money on vinyl albums as a young adult and have a sizeable collection of sixties and seventies music... mostly rock. I do have all of the Beatle albums still factory sealed. (I played other copies I had to death) I later collected canes and have a respectable collection. I inherited half of my father's clocks though not really my collection. Collecting is fun even if not profitable.

I was curious if any of you like to collect?
I thought it might be fun to discuss collecting and your collections.

I'll start with one of my collections. As a kid, no matter where we went, my father hit ever thrift or antique store in his quest for an antique clock at a bargain. It seemed like every hole in the wall would have some keys and I started collecting them. A nickel would buy a lot of keys that nobody knew what they unlocked. So.... I have a large box of keys to nothing. :)

Are you a collector?

Renaming a file?

My Pixel 7 Pro is rooted, however, it still grabs updates, etc., and I want to stop it from doing that. I did some searching and I found that to do this, I could simply rename a few files.

However, I have been unable to rename the files. This is what I have done:
  • Installed ConnectBot
  • typed 'su'
  • cd'ed to the directory that has a file to rename
  • typed 'mv oldFileName newFileName'
This resulted in the error mv: bad 'oldFileName': Read-only file system

Question: can someone point me to instructions that would allow me to make the file system not read-only or some other approach for addressing this issue? Thanks.

Help Update away! Not yet, but on a fresh Galaxy 11 later

I am the owner of a Samsung Galaxy 11 currently running on Android 11. It used to run on Android 10 and I updated it because I was hoping it would be a minor bug fix and make the notification go away. Now it just kinda sucks. I plan on later getting a new Galaxy 11 running A10 out-of-the-box style, and have a plan to prevent myself from making this mistake again.

What I need is uninstallation of the System Update app, or apps, since my current Galaxy 11 has 3 for some reason. I know this requires ADB, but I don't know the package names and I'm scared of doing anything fancy without step-by-step instructions. Smart Switch can take care of data transfer I think.

If anyone could tell me how to remove Android 10's facilities for system updates using ADB, it would be much appreciated.
If a secure download of ADB could also be found, please provide it. I know how to get the dev settings and USB debugging, though.

Best regards, Alex.

Infinix Hot 11S Not starting

Добрий день!

Якщо ваш телефон вимкнувся самостійно і не запускається належним чином, відображаючи повідомлення англійською мовою, це, здається, вказує на проблему з пристроєм. Повідомлення, яке ви бачите англійською мовою:

"Ваш пристрій пошкоджено. Це не можна довіряти і може не працювати належним чином. Натисніть кнопку живлення, щоб продовжити, інакше пристрій вимкнеться за 5 секунд."

Перш ніж виникла ця проблема, телефон попросив дозволу на оновлення, і ви вирішили оновити її на той час. Операційна система, здавалося, працює нормально, але через хвилину телефон вимкнувся, і ви зіткнулися з поточною ситуацією. Ви намагалися перезавантажити режим відновлення, але це не вийшло.

Побачивши текст ще раз, ви натиснули кнопку живлення, і на ній з'явилося "USB" та повідомлення:

"Телефон автоматично перезапуститься через 60 секунд без будь-якої операції або натисне і утримує кнопку живлення протягом 8 секунд, щоб вийти з режиму швидкого завантаження, а потім перезавантажити."

Однак навіть після його перезапуску нічого не змінилося.

Display issue on samsung s9

Display issue on samsung s9. Screen goes dark on adaptive brightness (often after like 4-5 hrs). If I adjust the brightness to anything below 60%, it goes real dark (with or without adaptive brightness). For now I have kept the brightness to max. Seems to work now. But looks like over all the brightness of phone is bit reduced.

Been using this phone for past 4 yrs tho. No issues till now.

/

This video explains my issue

  • Question Question
Photos Load Slowly in Texts

I have an LG Velvet 5G and notice that sometimes it takes considerable time for photos to actually appear in both my receieved and sent texts.

Example: My brother sends a picture message and I can see a blank space where a picture should be, but it does not appear. It may never appear or will take many minutes to appear.

It also happens to photos I send. I will see a photo I sent when I am actively sending it, but when I reopen the text message later there is a blank space where my photo was.

What is going on?

Filter

Back
Top Bottom