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

Help screenshot not working on android 11 - samsung a40

Power+volume down does still work on Android 11. So if that no longer works for you that it something Samsung have done, not an Android 11 change.

Danny's suggestion should also work for A11. If the "screen swipe" is the thing that lets you take a screen shot from the recent apps overview then that doesn't play well with all 3rd party launchers ("doesn't play well with 3rd party launchers" is sadly an ongoing story with Google, who seem not to care if they undermine a key advantage over the competition - I'm using the Android 9 style navigation because the current "gestures" haven't worked properly on my Pixel since some time last year with any launcher other than Google's own, which is one of the worst launchers ever written).

FT232 Sample program does not work

Hello,
I am trying to create program where I use FT2232H in SPI mode. For that I need MPSSE.

So what i need is to open USB, get handle, and when read/write data to chip. I am constantly using this chip with C# and visualBasic

FTDI give example how to use it. Tested on my phone, works very well. Because I am very new with android, I don't know what I am doing wrong.
Using Visual Studio

http://www.ftdichip.com/Support/SoftwareExamples/Androi/TN_147_Java_D2xx_for_Android_Demo_Source.zip

1) Created simple project with empty activity, added button, and text filed, generated interrupt. Goal is press button, connect to USB, or read any data, like how many device channels are connected, since i am using FT2232H, i should get response 2.

2) Copied android manifest lines that are related to USB:
<uses-feature android:name="android.hardware.usb.host" />
<intent-filter>
<action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" />
</intent-filter>

<meta-data android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED"
android:resource="@xml/device_filter" />

3) In correct location created device_filter file, so my application would trigger if VID/PID match, this is my understanding. And after compiling it does, when I connect USB, android ask what program should i use for USB, so no problem here.


<?xml version="1.0" encoding="utf-8"?>
<resources>
<usb-device vendor-id="1118" product-id="688"></usb-device>
<usb-device vendor-id="1027" product-id="24577" /> <!-- FT232RL -->
<usb-device vendor-id="1027" product-id="24596" /> <!-- FT232H -->
<usb-device vendor-id="1027" product-id="24592" /> <!-- FT2232C/D/HL -->
<usb-device vendor-id="1027" product-id="24593" /> <!-- FT4232HL -->
<usb-device vendor-id="1027" product-id="24597" /> <!-- FT230X -->
<usb-device vendor-id="1412" product-id="45088" /> <!-- REX-USB60F -->
</resources>

4) So in main activity I have button and text field. All I need to do is to check how many channels of high speed USB devices I have. On create I do init.

@override
public void onCreate(Bundle savedInstanceState)
{
try
{
ftD2xx = D2xxManager.getInstance(this);
} catch (D2xxManager.D2xxException ex)
{
ex.printStackTrace();
}
super.onCreate(savedInstanceState);
setContentView(R.layout.fragment_layout);
if(!ftD2xx.setVIDPID(0x0403, 0xada1))
{
Log.i("ftd2xx-java","setVIDPID Error");
}

IntentFilter filter = new IntentFilter();
filter.addAction(UsbManager.ACTION_USB_DEVICE_ATTACHED);
filter.addAction(UsbManager.ACTION_USB_DEVICE_DETACHED);
filter.setPriority(500);
this.registerReceiver(mUsbReceiver, filter);
}

5) OnClick event I want to read some USB related data;
static Context DeviceInformationContext;
D2xxManager ftdid2xx;
int devCount = 0;
devCount = ftdid2xx.createDeviceInfoList(DeviceInformationContext);
Log.i("FtdiModeControl","Device number = " + Integer.toString(devCount));

Well, here program simply goes to break, and I don't know what I am doing wrong. I don't understand what DeviceInformationContext is, and how do I get it, or what to do with it ? Initialization works ok, no breaks detected.

Any idea what I am doing wrong ? And how to fix it ?

Thank you for any help :)

Attachments

5G Nationwide not working at home?

Ok, I haven't left my house since getting the pixel 5. A few months ago, I had a Samsung Note 20 which supports 5G. At home, I got the 5G logo. I switch phones with my wife because I wanted the call screening that a pixel had. But she had a pixel 4. A few days ago, for whatever reason, the phone died. You can read my other post as to why I now I have the pixel 5. But, I'm getting LTE at home with the pixel 5. I know 5G Nationwide is kind of pathetic. But, the way I see it, 4G LTE will get stagnant and not get any better while 5G hopefully improves. So, just curious why the note 20 gets 5G at home but the pixel 5 gets LTE.

In Android 10 (MIUI12), there is a switch to prevent apps from being manually killed at switch panel

In Android 10 (MIUI12), there is a switch to prevent apps from being manually killed from inside the switcher panel.

When clicking kill all (X) it kills all apps but the ones protected by the switch.

I did protect one app already once but are unable to find the relating setting page again :-(

Extensive googling didn't help.

Anyone here with a clue?

Thanks in advance!
Damana

Help Hacked?

1 factory reset the phone
2 reset all passwords, including all of them on your computer. (google account associated with the phone FIRST)
3 enable 2 factor authentication wherever possible.
4 get a security token from your bank(s) if possible (it looks a bit like a calculator, and generates 1 time codes for 2FA).
5 Get a new SIM with a new number, and don't use the phone before the new SIM is in the phone and active.

No service problem

So what did you actually do? I'm guessing you did something like go into the hidden "testing" menu (*#*#4636#*#*) and fiddled with the settings, but it would help to know exactly what you changed and where because not all phones are the same.

And when you say you can't change it back, you mean that you cannot change the setting (it is greyed-out, or the change isn't saved)?

Just want to know exactly what the situation is before attempting any suggestions. There are some problems where a factory reset is not a reliable fix, and this may be one of those.

Filter

Back
Top Bottom