Can I use Android P to emulate a bluetooth HID device as a keyboard or remote control?

I wonder if it is possible to emulate a specific bluetooth device such as a remote control for a TV or other device with my Android device.

I tried many existing applications, only one seems to work: https://play.google.com/store/apps/details?id=io.appground.blek&hl=en

networks: network configuration with Android x86 in a VM VirtualBox

I have successfully booted Android x86 8.1 R2 on a VirtualBox VM running on a Windows 10 host. Now I can start on Android, however, since I am running on a virtual machine, there is no WiFi hardware and therefore There are no networks.

If a boot in debug mode, it falls on a command line where I can use ifconfig Y ip commands to configure the eth0 device. Then I can ping the local network. Then I know that the VM configuration is fine.

The Android emulator cannot find the wayland QT plugin

Trying to run the Android emulator in Wayland (Fedora 30) gives me the following error:

statvfs('/home/user/.android/avd/Pixel_3a_29.avd/snapshots/default_boot/ram.img') failed: No such file or directory
Warning: Could not find the Qt platform plugin "wayland" in "/home/user/android/sdk/emulator/lib64/qt/plugins" ((null):0, (null))
emulator: INFO: QtLogger.cpp:66: Warning: Could not find the Qt platform plugin "wayland" in "/home/user/android/sdk/emulator/lib64/qt/plugins" ((null):0, (null))

Any suggestions on how to solve the problem?

samsung – Looking for a secure phone (Android) 2019

I just changed my phone and I want to turn my old (Samsung A7) into a safe one. I notice some posts. However, I am not sure if the same applies in 2019.

I already have VPN (kill-switch) constantly activated. Tor could be the way out, but I'm sure there is more commitment in other aspects. Maybe a Tail-Android would work. Theoretically, turning off the cellular signal saves you from the triangulation of the signal tower. I don't think it's as easy / established as an operating system for laptop.

Appreciate any directed site / tutorials.

java – How to implement a PreparedStatement on Android?

We are using SQLDroid to work as a JDBC driver for Android. However, SQLDroid is a container for Android API calls, and this API does not handle null values ​​well.

For us to use PreparedStatements we directly need to circumvent all setNull() (or some setString(idx, null) which may occur indirectly, such as when the variable is null), the first strategy was to do this verification while configuring query. For example, we made the following outline for the product search given a textual parameter (which can occasionally be null if called programmatically):

// String param é um parâmetro
String paramStr = Optional.ofNullable(param).orElse("");
String paramOrNullStr = Optional.ofNullable(param).map(p -> "'" + p + "'").orElse("null");

String query =  " SELECT " + 
                "   p.cd_produto, " + 
                "   ov.cd_cliente, " + 
                "   ov.cd_org_venda, " + 
                "   ov.cd_tab_preco " + 
                " FROM produto p " + 
                " CROSS JOIN org_venda ov " + 
                " WHERE " + 
                "   ( " + paramOrNullStr + " IS NULL) OR " + 
                "   ( " + 
                "       p.nm_produto LIKE '%" + paramStr + "%' OR " + 
                "       p.cd_produto LIKE '%" + paramStr + "%' OR " + 
                "       p.cd_referencia LIKE '%" + paramStr + "%' OR " + 
                "       p.cod_barras LIKE '%" + paramStr + "%' " +
                "    ) ";

But this is counterintuitive and counterproductive. Then I started working on implementing an outline for this. As Android offers JDBC interfaces, I opened any project in Java 8 and created a class to extend from PreparedStatement. Eclipse created for me the class with a great list of TODOs and when he confirmed the operation and put it to compile in the Android project, I found this:

C:UsersJefferson QuesadoDocumentsgeosales-nunumobileandroidappsrcmainjavacomexampleevo_mobilesqldroiddrivePstmtNullSafe.java:358: error: method does not override or implement a method from a supertype

    @Override

    ^

C:UsersJefferson QuesadoDocumentsgeosales-nunumobileandroidappsrcmainjavacomexampleevo_mobilesqldroiddrivePstmtNullSafe.java:360: error: invalid method reference

        putPreparer("closeOnCompletion", PreparedStatement::closeOnCompletion);

                                         ^

  cannot find symbol

    symbol:   method closeOnCompletion()

    location: interface PreparedStatement

When I went to see it, this function appeared in Java 7, along with isCloseOnCompletion, but did not enter Android (see definition of Statement)

So how do you make the compatibility of my class that implements PreparedStatement correctly to make it work on Android?

  • Should I worry only about Android and eliminate these methods?
  • Should I become a proxy and do routing according to the called methods?
  • or should I just delete the note from @Override and leave a false return? (as SQLDroid did)

What factors should I take to decide the desired strategy?

android: WebView or open in a browser for user guide

In an Android application I have a user guide section, which shows useful information for the user. This useful information is in the form of web pages.
So I am planning to show web content to the user. I could do this in two ways.

  • Using a web view, where web pages are displayed within the application.

    • fraud: you need to request permission from the user's Internet
  • Ask the user to open it in a browser.

    • fraud: You may have to select a browser if several browsers are installed.

Which is the favorite and why?

9.0 foot: Android 9 application does not work

My LG V35 was recently updated to Android 9 and after the update application fixation stopped working. I can anchor an application, but the operating system does not fix it and it is removed from the list of my recent applications. This was never a problem with Android 8 before the update. Any application that I fixed before the update remained permanently fixed even after restarting.

I tried adding applications that I want to keep anchored to the list of energy saving exclusions, but that didn't help.

Any idea how to fix this or is this "normal" behavior of the operating system with Pie?

9.0 foot: Android application anchor does not work

My LG V35 was recently updated to Android 9 and after the update application fixation stopped working. I can anchor an application, but the operating system does not fix it and it is removed from the list of my recent applications. This was never a problem with Android 8 before the update. Any application that I fixed before the update remained permanently fixed even after restarting.

I tried adding applications that I want to keep anchored to the list of energy saving exclusions, but that didn't help.

Any idea how to fix this or is this "normal" behavior of the operating system with Pie?

Android app crash with java.lang.IndexOutOfBoundsException error

I am developing a music streaming application with the help of an exoplayer that gets mp3 files from my server. The application works fine on a fast network, but on a very slow network, I have noticed that my application crashes by mistake
java.lang.IndexOutOfBoundsException
When I try to play the mp3 file.
But the logcat does not point to any of the files in my project, but all the errors are pointing to com.google.android.exoplayer2.... I also don't have much experience in Android development, so now I'm totally helpless and unable to solve it. Could anyone help me? I will be very grateful.
Thanks in advance.

I have attached my logcat error here

ios – Merge old WhatsApp conversations from iPhone to Android

I've been using WhatsApp since it started, on iOS.

My iPhone was lost but I will recover it in 2 months. (My WhatsApp backup is / would be in iCloud).

Since then, I got an Android phone.

Can I use WhatsApp now, on Android, starting from scratch and when I recover my iPhone, take out the messages from the iPhone using WazzapMigrator and transfer them to Android, but also Merge old conversations with new ones?