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

Analog Game pad compatibility with Android TV

Hello All,
Recently i purchased a no name analog (PS style) gamepad and wanted to play android games. This is pretty old pad since is said is a PC gamepad (USB 2.0). I connected to PC and the red light is on, therefore is recognizing it in windows.
The problem is i connected to my Mi Box TV(xiaomi) usb and the light is Not on.
Is the usb not compatible?? or no drivers for android?
Curious is that i connected the pad to my Huawei Mate 20 through OTG and is working immediately.....

Please help,
Thanks Gabriel

Help Why does my Huawei P10 not charge with more power than it consumes?

I see that you replaced the battery.
The problem is, this could still be your problem.
Batteries are only produced about the same amount of time that the devices are, so even when a 'new' battery is purchased, it is very probable that the new battery has been sitting in a warehouse since that phone was new.
So it is possible to buy a new battery that is as bad as the one you replace, because they are about the same age.

Apps Angle sensors without external influences

Hi,

i have currently developed an app that has a good status but now some logic errors cause me big problems.

Background is that I want to display the current lean angle on my motorcycle with my mobile phone.

I have the following code for this:

if (sensorEvent.sensor.getType() == Sensor.TYPE_ACCELEROMETER) {
CreateGPS(sensorEvent);
accels = sensorEvent.values;
}
if (sensorEvent.sensor.getType() == Sensor.TYPE_MAGNETIC_FIELD)
mags = sensorEvent.values;

if (accels != null && mags != null) {
float R[] = new float[9];
float I[] = new float[9];

boolean success = SensorManager.getRotationMatrix(R, I, accels, mags);

if (success) {
float orientation[] = new float[3];
SensorManager.getOrientation(R, orientation);
azimuth = orientation[0]; // orientation contains: azimuth, pitch and roll
pitch = orientation[1];
roll = orientation[2];

this.SetAngle(Math.toDegrees(-pitch));

}
}


Sounds logical in theory and works too. However, I have the following problems which may be related.

If I put the mobile phone in the car and drive into a curve then I have also once 40 degrees inclination in my car ) (G forces must be calculated somehow out of the logic)
There are vibrations on the bike which cause the wrong values to be displayed (I think it is also related to the G-forces)

What is the best way to edit the code to display meaningful values? Hang something on the logic tube here.

this.SetAngle is a method that shows me the angle graphically.

Thanks for your help.

Help Need MPRG.mbn and msimage.mbn

My device is Zenfone Max Pro M1
ZB602KL 4gbRam 64gbRom snapdragon636 (X00TDB)
Files for sdm660 might work(X00TD)

I need MPRG_XXXXX.mbn and XXXXX_misimage.mbn

I already tried qfil and umt and qcfire
but no success emmc partition seems messed-up by previous owner.

I had emmc softwares installed on pc but 2 files are not pressent in those roms I had.

There are tuturial how to make msimage.mbn but those firmwares that I had doesn't contain "sbl.bin" and "partition.xml"

Please help. I also finding same unit that is working. any guides how to backup full emmc that might include the files i need or even just the files needed to create it.

Thanks in advance.

How to save a file when user closes app

I created an app in which a user will enter words that i want to store in an array. When the user closes the app i want this array to be written to a file for when they open the app again they don't have to reenter the words.

This is my first app and figured this wouldn't be that hard but i've been struggling to find this information online. I did find there are several places to save a file. I know that this list won't be too big and no other apps need access to this list, so i planned on saving it in the app specific internal storage location. I'm also programing in Kotlin.

During my research i saw there is a onPause( ), onStop( ), and onDestroy( ). However, i'm not sure how to have the file save based on a user swiping the app away. Do i create a function and have it save the file, then do something along the lines of if onStop( ) run my function to save file?

Filter

Back
Top Bottom