Is the Apple Music app for Android like the iTunes Store?

In other words, can I buy movies, books, and audio books on the Apple Music app for Android? Or is the Apple Music App for Android only a portal to the paid streaming service?

Or is there another way to buy movies, books, and audiobooks from the iTunes Store with the help of an Android device?

Recover WhatsApp discussions and backup stickers crushed on Android

There was some sort of lag in WhatsApp so I decided to erase the settings data without knowing that it would erase the chat backup. After that, I reused WhatsApp and did not show an option for local restore, but only a restore from Google Drive. But I have not made any backups on G-Drive in the last 6 months. I just restored the G-Drive messages but I lost most of the important informative discussions. Now a new local backup has been created automatically. Please indicate if there is a way to recover the previous backup of the chat.

Thank you.

usb – How to bypass the system dialog to request access to tablet data on Android tablets, especially those from Samsung?

The "Allow access to tablet data" dialog box is a security dialog box. Therefore, it is not possible to "work around" this dialog within an application. As it is not yet possible to identify a PC via the USB and MTP protocols (it is possible that this is possible in the future with an authenticated USB key), there is no option like " always allow this computer to access my files ".

Otherwise, anyone with access to an unlocked Android device could simply copy, for example, all photos and videos from the device via USB.

The only known way is to enable the "Developer Options Dialog Box" and permanently set the "USB Configuration" option to "MTP / File Sharing".

You can also use Android ADB (Debug Bridge) (ADB) instead. At adb level, computer authentication allows a computer to permanently access the device via USB. Of course, ADB is disabled by default. Therefore, the user must first activate the Develop menu and activate the ad.

video – Android: save the camera front and back and save in separate files

As a title, I want to simultaneously record the front and rear cameras and save them as separate files. I write code based on the Android Android Camera2VideoJava example. However, instead of using MediaRecorder, I use MediaCodec to encode into an h.264 file, and then read and decode it in mp4 format. The previews of both cameras were correct, but when I tried to start encoding, the application worked for a while, then crashed. The errors appear in the logcat:

A/libc: Invalid address 0x7e9d4ec880 passed to free: value not allocated
A/libc: Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 20876 (CameraBackgroun), pid 20843 (id.camera2basic)

My question is: is there another way to save both cameras and save it as separate files?

Thank you.

mms – Forwarding Messages – Android Enthusiast Stack Exchange

Battery Exchange Network

The Stack Exchange network includes 175 question-and-answer communities, including Stack Overflow, the largest and most reliable online community on which developers can learn, share knowledge and build their careers.

Visit Stack Exchange

Notifications – How to program a pop-up push notification in Android Studio?

I have an Android app that receives push notifications with Firebase, notifications are normal in the status bar. What interests me is how to generate contextual notifications. Thus, when sending firebase notifications to my application, I automatically generate a popup notification. or floating What I have achieved so far is that I generate floating notifications, but only when the application is used, when I close the application, the notifications fall normally.
An idea? I would appreciate it a lot.
`I leave my code attached.

public class MyFirebaseMessagingService extends FirebaseMessagingService 
{

@Override
public void onMessageReceived(RemoteMessage remoteMessage) {
    // ...

    if(remoteMessage.getData().isEmpty())
        showNotification(remoteMessage.getNotification().getTitle(), remoteMessage.getNotification().getBody());
    else showNotification(remoteMessage.getData());


    Log.d(TAG, "From: " + remoteMessage.getFrom());

    // Check if message contains a data payload.
    if (remoteMessage.getData().size() > 0) {
        Log.d(TAG, "Message data payload: " + remoteMessage.getData());

        if (/* Check if data needs to be processed by long running job */ true) {
            // For long-running tasks (10 seconds or more) use Firebase Job Dispatcher.
        } else {
            // Handle message within 10 seconds
        }

    }

    // Check if message contains a notification payload.
    if (remoteMessage.getNotification() != null) {
        Log.d(TAG, "Message Notification Body: " + remoteMessage.getNotification().getBody());
    }

    // Also if you intend on generating your own notifications as a result of a received FCM
    // message, here is where that should be initiated. See sendNotification method below.
}

public void showNotification(Map data) {
    String title = data.get("title").toString();
    String body = data.get("body").toString();
    String NOTIFICATION_CHANNEL_ID = getString(R.string.default_notification_channel_id);
    //
    Intent fullScreenIntent = new Intent(this, MainActivity.class);
    fullScreenIntent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);

    PendingIntent fullScreenPendingIntent = PendingIntent.getActivity(this, 0,
            fullScreenIntent, PendingIntent.FLAG_UPDATE_CURRENT);

    NotificationCompat.Builder notificationBuilder =
            new NotificationCompat.Builder(this, NOTIFICATION_CHANNEL_ID)
                    .setSmallIcon(R.drawable.ic_stat_ic_notification)
                    .setContentTitle(title)
                    .setContentText(body)
                    .setPriority(NotificationCompat.PRIORITY_HIGH)
                    .setCategory(NotificationCompat.CATEGORY_MESSAGE)
                    .setAutoCancel(true)
                    .setContentIntent(fullScreenPendingIntent)
                    // Use a full-screen intent only for the highest-priority alerts where you
                    // have an associated activity that you would like to launch after the user
                    // interacts with the notification. Also, if your app targets Android 10
                    // or higher, you need to request the USE_FULL_SCREEN_INTENT permission in
                    // order for the platform to invoke this notification.
                    .setFullScreenIntent(fullScreenPendingIntent, true)
                    .setWhen(System.currentTimeMillis());

    NotificationManager notificationManager =
            (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
    // Since android Oreo notification channel is needed.
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
        NotificationChannel notificationChannel = new NotificationChannel(NOTIFICATION_CHANNEL_ID,
                "Notification",
                NotificationManager.IMPORTANCE_HIGH);

        notificationChannel.setDescription("Descripcion");
        notificationChannel.enableLights(true);
        notificationChannel.setLightColor(Color.BLUE);
        notificationChannel.setVibrationPattern(new long(){0, 1000, 500, 1000});
        notificationChannel.enableLights(true);
        notificationManager.createNotificationChannel(notificationChannel);
    }

    notificationManager.notify(0 /* ID of notification */, notificationBuilder.build());
}

private void showNotification(String title, String body) {
    Intent fullScreenIntent = new Intent(this, MainActivity.class);
    fullScreenIntent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);

    PendingIntent fullScreenPendingIntent = PendingIntent.getActivity(this, 0,
            fullScreenIntent, PendingIntent.FLAG_UPDATE_CURRENT);

    String NOTIFICATION_CHANNEL_ID = getString(R.string.default_notification_channel_id);

    NotificationCompat.Builder notificationBuilder =
            new NotificationCompat.Builder(this, NOTIFICATION_CHANNEL_ID)
                    .setSmallIcon(R.drawable.ic_stat_ic_notification)
                    .setContentTitle(title)
                    .setContentText(body)
                    .setPriority(NotificationCompat.PRIORITY_HIGH)
                    .setCategory(NotificationCompat.CATEGORY_MESSAGE)
                    .setAutoCancel(true)
                    .setContentIntent(fullScreenPendingIntent)
                    // Use a full-screen intent only for the highest-priority alerts where you
                    // have an associated activity that you would like to launch after the user
                    // interacts with the notification. Also, if your app targets Android 10
                    // or higher, you need to request the USE_FULL_SCREEN_INTENT permission in
                    // order for the platform to invoke this notification.
                    .setFullScreenIntent(fullScreenPendingIntent, true)
                    .setWhen(System.currentTimeMillis());

    NotificationManager notificationManager =
            (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
    // Since android Oreo notification channel is needed.
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
        NotificationChannel notificationChannel = new NotificationChannel(NOTIFICATION_CHANNEL_ID,
                "Notification",
                NotificationManager.IMPORTANCE_HIGH);

        notificationChannel.setDescription("Descripcion");
        notificationChannel.enableLights(true);
        notificationChannel.setLightColor(Color.BLUE);
        notificationChannel.setVibrationPattern(new long(){0, 1000, 500, 1000});
        notificationChannel.enableLights(true);
        notificationManager.createNotificationChannel(notificationChannel);
    }

    notificationManager.notify(0 /* ID of notification */, notificationBuilder.build());
}

}

android – Do I need help generating a QR code?

enter the description of the image hereI know it is easy, but in the way that I learned, nothing works for me. My PHP code is as follows:

How to generate the QR code at the time of registration of the product with all its data? Please help me, I am desperate.

authentication – Download fingerprint from Android / iOS to the cloud

I am working on a project to use fingerprint / facial recognition to authenticate the user. I do not want authentication to be device-specific. Therefore, you want to download fingerprints and facial images from the user to the cloud.

I have been looking for fingerprint transfer in the cloud and I realized that this link was not possible: https://www.androidcentral.com/how-does-android- save-your-fingerprints # targetText = When% 20you% 20register% 20a% 20 fingerprint, the% 20data% 20% 20the% 20scan. & TargetText = This% 20encrypted% 20fingerprint% 20template% 20is, on% 20your% 20phones% 20encrypted% 20storage

However, this article is old! I need to know if I can download the fingerprint from the device to the cloud (I plan to use an EC2 instance for the backend API.) Registration and can we authenticate the user when the user accesses the application on any device.

I understand that the fingerprint can be considered to authenticate the user on the device using: https: //www.npmjs.com/package/react-native-biometrics which is a safer bet. But it does not serve the purpose

Also, for the face authentication, I told myself that I could use APIs such as res10_300x300_ssd_iter_140000, mobilenet_ssd_face of AlwaysAI or
I can use the facial_recognition & dlib libraries in python to extract facial features and compare. I do not know how long it could take!

I would appreciate any information about fingerprint authentication and facial recognition.

Test plan for the Android team

I plan to implement tests in my company for our Android apps.

We have 2-3 applications, 3 developers, 1 QA.

I hope everyone can start learning to write tests and use test tools. Our QA can not encode.

Let me share the flow that I came up with:

1) Three amigos (Product owner, QA and dev) meet and define the specifications

2) Developers write the program using TDD (Test Driven Development). Along the way, they make sure to handle the cases of tests written in specification with:

a. Unit tests (for example, a phone number starting with 08) with Junit

b. Integration tests (for example, adding a "phone" to the database also creates a "client" entity) with the help of Junit and Mockito

vs. and user interface tests (for example, when you click the "Contacts" button, it displays "ContactsFragment" with Espresso.

3) In the meantime, QA has already written the complete end-to-end test sheet and has verified it once the devs are complete. I really want this phase to be as automated as possible.

Now my questions are:

1) What do you think about this plan? (how do / do you do it?)

2) For our quality assurance, are there tools to automate end-to-end testing without writing code? I have only found MonkeyRunner up until now.

command line – How can I install Swift on Ubuntu 19.04 for the Android Termux app

This is my very first question in this forum.
Sorry for my bad English, please advise if this is not the right place to do it.

I've tried to install Swift for Ubuntu 19.04 on App Termux for Android following the answer to another question from this forum:
(How can I install Swift on Ubuntu 19.04?).

The reason is to continue to compile the code offline while I'm on a plane or without an Internet connection.
The steps followed are indicated below (in brief):

1- Since there is no way to install Swift for Ubuntu 19.04, I downloaded this file for version 18.04 as recommended (swift-4.2-DEVELOPMENT-SNAPSHOT-2018- 10-30-a-ubuntu18.04.tar.gz).

2- Extracting the file and copying the folder to the home directory for local execution.

3- Added the path to Swift with the following command that did not work:

$ export PATH="/home/your-username/swift/swift-4.2-DEVELOPMENT-SNAPSHOT-2018-10-30-a-ubuntu18.04/usr/bin:$PATH"  
$ source ~/.bashrc

4-Then I made changes found on the web in order to write .bashrc:

$ echo "export PATH=/home/myusername/swift/swift-4.2-DEVELOPMENT-SNAPSHOT-2018-10-30-a-ubuntu18.04/usr/bin:$PATH" >> ~/.bashrc
$ source ~/.bashrc

5-The output written at the end of the .bashrc file was as follows:

export PATH=/home/user-name/swift/swift-4.2-DEVELOPMENT-SNAPSHOT-2018-10-30-a-ubuntu18.04/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games

6- Then I tried to launch Swift in a terminal and I got this error message:

$ swift                       
bash: swift: command not found

For me, it seems that the echo command adds the path swift-4.2 … / usr / bin with the other path PATH already installed in Ubuntu Termux separated by collon, but does not allow me to call Swift REPL from Terminal.

Please help, thank you