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

Android Studio 3.5 - Can't Debug Library androidTest with NDK

I upgraded to Android Studio 3.5 yesterday. I am no longer able to debug an androidTest (instrumented) on a library that has NDK sources. This only happens if there is an externalNativeBuild and the project is set to build as a library (not an app). If either of these are not true, debugging works. Depending on the emulator used, the process hangs on "Instantiating tests" and causes the emulator to freeze up, or immediately exists with the message "Cannot get process architecture". This was working fine in 3.4. I am running Android Studio on macOS. I am able to reproduce this by creating a new "Native C++" project, changing the plugin to "com.android.library" and commenting out the applicationId. Any help getting around this, and with how to file a bug for Android Studio, would be greatly appreciated, thank you!.

On-Demand Initialization in WorkManager

This page https://developer.android.com/topic...nager/advanced/custom-configuration#on-demand
says that you need to extend the interface from the Application class. I turned off the default initializer, but then I can not understand the documentation. By default, AppCompatActivity is used for the main activity, and when I change it to Application, some methods inside stop working.
Someone help me understand this moment and do it right

E-mail client with a customized notification about specific mails

In terms of K9 - I can't even sign up on my gmail.
It's been a while since I used K9, but it is possible to sign in to GMail. You'll need to set an "application password" because it doesn't support GMail's current default initialisation/authentication. In fact I'm sure the error message you got will have told you that it would need an application-specific password. Go into you Google account settings, you'll find "App Passwords" in there under "Security" and can generate a new one there. Then use that in K9 for the email account password.

Help Please help me login again into my Account

Okay i will try to connect Cheetah mobile but what about my other apps why are they all removed? Is there a way to stop Facebook from removing my apps? thank you.
No, there isn't. Facebook have not removed the app, they have decided that those apps cannot use Facebook logins, and that decision is entirely within Facebook's domain.

You might wonder why they've done this though? Facebook's business is data-mining, so in general they want as much information about your activities as possible. Hence they want people to use Facebook for login to as many things as they can. So why would Facebook cut themselves off from information like that? The most obvious possibility, especially in light of their various other scandals in the last few years, is that they've decided that a connection to those apps is enough of a liability that they are better off without them. And honestly, if they think they are a threat to a reputation as poor as Facebook's, you have to wonder...

Getting white noise when splitting PCM byte array

This is the part of the code which getting only few last seconds of PCM byte array which is recorded by AudioRecorder class:

ArrayList<Byte> local = new ArrayList<>();
if (readedBytes.size() > RECORDER_SAMPLERATE * 10) {
for (int i = readedBytes.size() - 1 - RECORDER_SAMPLERATE * 10; i < readedBytes.size() - 1; i++) {
local.add(readedBytes.get(i));
}
} else {
local.addAll(readedBytes);
}

byte[] array;
array = new byte[local.size()];

for (int i = 0; i < array.length; i++) {
array = local.get(i);
}

The problem is that, when I have to cut the first part of the array, I'm receiving only the whitenoize.Important: After this proccess I add the .wav header and this works if the array was not cut.

Bluetooth Low Energy (BLE)

By default, is Bluetooth Low Energy (BLE) advertisement broadcasts turned on in Android Phones? Is there a way to turn this on in Settings?

If not, are there reliable Applications that turn Android phones into BLE enabled devices?

Finally, does Android follow the same standard BLE packet structure for advertisement broadcasts, or are there any idiosyncrasies that I need to be aware of (is there a packet structure document for Android?).

Thanks,

Mohan

Is it safe to still use a Galaxy Note 4

It's not so much a matter of your phone model and its age, but rather the version of Android its currently running and the apps you use. Your Note 4 is running KitKat,or Lollipop, or Marshmallow?. Since none of those versions are still supported there's no OTA security patches so as far as the operating system there are fundamental security issues involved, but at the same time a lot of that aspect is or isn't a significant issue depending on your own online habits -- i.e. if you click on links in emails you're going about things in a risky way and in this matter it's more or less irrelevant which version of Android you're running. Also there's a reality even a lot of people don't take into consideration. Even if your Note 4 was magically running the latest version, Pie, it's still a matter where your Note would be much safer but in no way completely safe. It's mostly fallacy that even if your device is running the most recent version of Android with all the latest security patches applied that your device is safe from being exploited and compromised. A lot of those fixes in the monthly security patches that get released are reactive measures to already existing problems that have been revealed so it's often just reactive, not proactive (fixing issues that are potential problems).
But all that is just regarding the underlying operating system. More importantly are the apps you use. Most of them are still receiving updates on a regular basis, even if Google has stopped supporting a version of the OS that doesn't necessarily mean developers stop supporting their apps. And it's the apps that are what you're using to that directly interface the their respective online services so stress that point. The apps are the direct link to your online accounts, the OS is only indirectly a factor.
So keep using your Note 4, but just be wary and judicious when you do anything online with it. Even KitKat (just as an example) with its current Android market share of just under 7% involves millions of still active users worldwide so while the percentage of single digits isn't notable as is, once you factor in it's a percentage of smartphone users it's not so insignificant.
https://developer.android.com/about/dashboards

--- and to be completely snarky and sarcastic, always be very,very cautious about having the Facebook app on your device, no matter what version of Android you're running. It's not so much a security issue but more about blatant data mining and privacy. Install a secondary web browser app, be sure to restrict that browser app's Permissions to a bare minimum, and only use that browser app to access your FB account via its web site.

Filter

Back
Top Bottom