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

Why choose Snapdragon 800 series phone over super mid-range Snapdragon 700 series phones?

Just FYI Snapdragon 855 is currently used in:
  1. Samsung Galaxy S10 series(China, Japan and US variants only)
  2. Samsung Galaxy Note 10 series(China, Japan and US variants only)
  3. Sony Xperia 1.
  4. OnePlus 7 Pro.
  5. Asus Zenfone 6.
  6. Xiaomi Mi 9.
  7. ZTE Axon 10 Pro.
  8. Oppo Reno 10x Zoom.
  9. LG V50 ThinQ.

How these different devices compare and perform, no idea.

About Ringtones

I've downloaded Google contact app, and now all I have to figure out Ida how to make it the default app.
Depending on which Android version you're using, your path may be different, but it should be similar to this:

System Settings | Apps & Notifications | Advanced | Default Apps

Hopefully, you'll then see an entry for Contacts (I don't, but I only have one installed), and selecting it should allow you to choose Google's app as the default.
Thank you.
You're welcome. :)

Rest api in android

Try this

Java:
public final class FromUrlHelper {

    public static JSONObject getJSONObject(String url) throws IOException {
        if (Constants.debug) Log.d("API Call", url);
        JSONObject jsonObject = null;
        try {
            jsonObject = new JSONObject(FromUrlHelper.getJSONFromUrl(url));
        } catch (JSONException e) {
            e.printStackTrace();
        }

        return jsonObject;
    }
}

then call for example API like this

Java:
public class AuthService {
    private static AuthService ourInstance = null;

    public static AuthService getInstance() {
        if (ourInstance == null) {
            ourInstance = new AuthService();
        }

        return ourInstance;
    }

    private String currentSession;
    private boolean loggined;

    private AuthService() {
    }

    public boolean login(String email, String password) {

        if (!email.isEmpty() && !password.isEmpty()) {
            try {
                JSONObject result = FromUrlHelper.getJSONObject(Constants.serviceBaseUrl + "login?email=" + email + "&password=" + password);
                try {
                    int errorCode = result.getInt("errorCode");
                    if (errorCode == 0) {
                        this.currentSession = result.getString("sessionId");
                        loggined = true;
                        return true;
                    }
                } catch (JSONException e) {
                    e.printStackTrace();
                }
            } catch (IOException e) {
                e.printStackTrace();
            }
        }

        return false;
    }

    public boolean logout() {
        loggined = false;
        this.currentSession = null;
        return true;
    }
}

In Activity you can call this

Code:
AuthService authService = AuthService.getInstance();

if(authService.login("email","password")) {
    // do something
} else {
    // do something
}

In PHP API server it can look like this.

PHP:
        $customer = $this->entityManager->getRepository(Customer::class)->findOneBy(['email' => $request->get('email'), 'password' => md5($request->get('password')), 'eshop' => $eshop]);
        if ($customer) {
            /** @var Session $session */
            $session = $this->getSessionFromCustomer($customer);
            if(!$session) {
                $sessionId = $this->createSession($customer);
            } else {
                $sessionId = $session->getCode(); 
            }
            $response->errorCode = self::ERR_OK;
        } else {
            $sessionId = null;
            $response->errorCode = self::ERR_AUTH;
        }

        $response->sessionId = $sessionId;

        return new JsonResponse($response);

Next in contactless payments...Smile to Pay.

Having been an Annual Passholder for what I believe to be twice in the last ten years, I am fully aware and have experience with that personally. There is no way out of it, I guess.

I have used those Disney fingerprint scanners at Shanghai and Hong Kong Disney parks, and I now know their real purpose, to stop people cheating with the season passes. But they did give me thoughts of big brother 1984, and chilling effects. Especially as the only other organization that's taken an interest in recording my fingerprints is the Ministry of Public Security of the PRC, and have to use similar scanners to the Disney ones every-time I pass through Beijing Airport.

Does The Walt Disney Company give law enforcement and other govt TLAs access to their fingerprint database?

No sound from phone speakers on Bluetooth

Up until about a month ago, if I connected my phone via Bluetooth to my car, my phone notifications still made sound on the phone. Then an app called Smart Things seemed to hijack my phone any time I used Bluetooth. Do I need to be using that app to play through the car speakers (which I do with podcasts, etc). I still want my phone to play the notifications.

I did turn off (force stop) Smart Things, but the notifications still aren't playing when on Bluetooth. Any ideas what I've done?

Filter

Back
Top Bottom