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

Auto SMS reply with delay

Theres too many Apps called Auto SMS reply/respond on GooglePlay. Going to take hours to check out. So maybe someone are already using one that fits my purpose.

Simple app requirements:
- Trigger on incoming SMS: From approved phone number and with matching text string
- Respond after delay set between 1-60 min with preset text to configured phone number..

That's all.

Bizzare Microphone Issue

Hello Friends,
My Lg G7 is a couple of years old. Suddenly the microphone stopped working with a my apps (such as Skype, Whatsapp etc) I can hear people but don't hear me, the microphone becomes mute.. However the microphone works fine with the native cell phone,
The fix was to reset the entire system from scratch, but after a day the problem returned and again I had to rebuild the system which is a pain in the neck. Any insights?
Thanks
Avi

Upgrading from S6 to S21

Hi,

So for the first time ever I'm considering buying a new phone at launch.

I've had the S6 for nearly six years and in that time it's never missed a beat and even now will still just about go one day on a charge, hands down it's the best phone I've ever owned and I've taken some stunning wildlife pics/video with it even if I do say so myself.

Thing is, the home button has finally given up and although I can still use the phone, it does make navigation a bit more of a pain.

Seeing that I'm waaaay behind in terms of more recent models I thought I'd do a quick comparison between the S6 and the newest model I can buy and I was rather surprised at the specs, particularly about the screen.

Now I know you could waste years of your life arguing the in's and out's of resolutions and megapixels etc but...

S6: Quad HD, 1440 x 2560, ppi 577, rear camera 16mp

S21: FHD+, 1080 x 2400, ppi 421, rear camera 12mp (with a selection of clever zooms)

...so if I'm reading that right, is the screen resolution on the S21 'worse' (I use that term carefully) than my S6?

I appreciate there are many, many areas where the S21 will simply blow the S6 out of the water but for someone who takes a huge number of outdoor pics of birds, insects flowers etc I guess screen and camera are important.

Thanks for your time.

Bixby... Why so irritating?

I know it is supposed to be conveyed, and really easy at some point in time, but why does it automatically be the default when turning off the Samsung Galaxy s four tablets, I am sure there is a billion other people who are upset of that and want to justify of having a tablet just as, and having a p.c. just as too, why would it be a considerable option for the tablet?

Note 9 to Ultra

My S21 Ultra is due tomorrow.
I currently have a Note 9.
My plan is to put the sim from the note 9 into the ultra.
Setup the Ultra, then use a Type C cable, to connect the Note 9 and the Ultra.
I then plan to use SmartSwitch to transfer all the "stuff" to the Ultra.
Can anyone tell me if my plan is OK or otherwise.

Ways to improve technical debt for improving the functionality of the ap.

I am building an android app that will allow the user to scan and convert various images and pre-planned material into high definition printable formats allowing the user to print any content with ease. But my team recently started facing issues while rolling out v2 for our tool. We noticed a good amount to technical debt while reviewing the code moving forward we want to improve it.


Need to know if anyone has experiences using a code review tool.

runtime error while accessing google api in android emulator

I am trying to access the googleFit API. It seems pretty straightforward. Get the google sign-in permissions and required authorizations then query for Step count. My code doesn't seem to work. and it logs only "Error!!" that's it. Android gurus, Where am I going wrong??

Code:
fun getAuthorizationAndReadData() {
        try {
            MainActivity().fitSignIn(FitActionRequestCode.READ_DATA)
        } catch () {
           Log.i("e", "error!!!!")
        }
       }

MainActivity.kt
Code:
enum class FitActionRequestCode {
    READ_DATA
}

private val fitnessOptions: GoogleSignInOptionsExtension = FitnessOptions.builder()
            .addDataType(DataType.TYPE_STEP_COUNT_DELTA, FitnessOptions.ACCESS_READ).build()

    fun fitSignIn(requestCode: FitActionRequestCode) {
        if (oAuthPermissionsApproved()) {
            readHistoryData()
        } else {
            requestCode.let {
                GoogleSignIn.requestPermissions(
                        this,
                        requestCode.ordinal,
                        getGoogleAccount(), fitnessOptions)
            }
        }
    }

    private fun getGoogleAccount() = GoogleSignIn.getAccountForExtension(this, fitnessOptions)


    private fun oAuthPermissionsApproved() = GoogleSignIn.hasPermissions(getGoogleAccount(), fitnessOptions)

    private fun performActionForRequestCode(requestCode: FitActionRequestCode) = when (requestCode) {
        FitActionRequestCode.READ_DATA -> readHistoryData()
    }
    private fun readHistoryData(): Task<DataReadResponse> {
        // Begin by creating the query.
        val readRequest = queryFitnessData()

        // Invoke the History API to fetch the data with the query
        return Fitness.getHistoryClient(this, getGoogleAccount())
                .readData(readRequest)
                .addOnSuccessListener { dataReadResponse ->
                    printData(dataReadResponse)
                    Log.i(ContentValues.TAG, "Data read was successful!") }
                .addOnFailureListener { e ->
                    Log.e(ContentValues.TAG, "There was a problem reading the data.", e)
                }
    }

    private fun queryFitnessData(): DataReadRequest {
        // [START build_read_data_request]
        // Setting a start and end date using a range of 1 week before this moment.
        val calendar = Calendar.getInstance(TimeZone.getTimeZone("UTC"))
        val now = Date()
        calendar.time = now
        val endTime = calendar.timeInMillis
        calendar.add(Calendar.WEEK_OF_YEAR, -1)
        val startTime = calendar.timeInMillis

        return DataReadRequest.Builder()
                .aggregate(DataType.TYPE_STEP_COUNT_DELTA, DataType.AGGREGATE_STEP_COUNT_DELTA)
                .bucketByTime(1, TimeUnit.DAYS)
                .setTimeRange(startTime, endTime, TimeUnit.MILLISECONDS)
                .build()
    }

I have an app that needs to access Google Fit Api.
I can get the google sign-in pop up. But the next screen, requesting permission for my data types (TYPE_STEP_COUNT_DELTA, AGGREGATE_STEP_COUNT_DELTA) is not displayed.

As soon as I choose my google account the pop-up goes away and nothing is displayed further.



I have followed all the steps for the Setup mentioned here https://developers.google.com/fit/android/get-started

  1. Set up my project in Google API developer console

  2. Install google play services packages in my android studio

  3. Created an OAuth 2.0 Client ID

  4. Add the dependencies
Code:
  dependencies {
       implementation 'com.google.android.gms:play-services-fitness:20.0.0'
       implementation 'com.google.android.gms:play-services-auth:19.0.0'
   }
  1. Enable sign-in options "google" in my firebase console
Yet I do not get the further screens.

My code is as below:


Code:
public void setFitnessOption() {
       fitnessOptions =
               FitnessOptions.builder()
                       .addDataType(DataType.TYPE_STEP_COUNT_DELTA, FitnessOptions.ACCESS_READ)
                       .addDataType(DataType.AGGREGATE_STEP_COUNT_DELTA, FitnessOptions.ACCESS_READ)
                       .build();
     }

public void checkFitInstalled() {
       if (isGoogleFitPermissionGranted()) {
           GetData();  //step count query     
       } else {
         requestGoogleFitPermission();
           GetData();    //step count query
       }
     }

public boolean isGoogleFitPermissionGranted() {
       if (GoogleSignIn.hasPermissions(GoogleSignIn.getLastSignedInAccount(this), fitnessOptions)) {
         return true;
       } else {
         return false;
       }
     }

public void requestGoogleFitPermission() {
       GoogleSignInAccount account = GoogleSignIn.getAccountForExtension(this, fitnessOptions);
       GoogleSignIn.requestPermissions(
               this,
               GOOGLE_FIT_PERMISSIONS_REQUEST_CODE,
               account,
               fitnessOptions);
     }


What am I missing out?? struggling for days with this issue. Any input would be great!!!

Updating transferred Android App

We are planning to transfer our app from one company account to other company account (Let say Company A to Company B) . We are planning to use transfer process suggested by Google. Now my question is, If we want to release new update of app after transfer, Do I need any thing from old account like certificate, keystore etc.? As after transfer we will not have access to old company Account, as old company used same certificate for signing other apps as well. But we are planning to release multiple updates from new account without impacting current users. Please suggest!

Imageview not showing image in AndroidStudio designer

As a beginner, I'm following a tutorial, but cannot figure out why the image is not showing in ImageView

The files are as per attached screenshot and activity_main looks like this
-------------------
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="invisible"
tools:context=".MainActivity"
>

<ImageView
android:id="@+id/imageView3"
android:layout_width="0dp"
android:layout_height="150dp"
android:scaleType="centerCrop"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.497"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@drawable/devslopesbanner"
android:contentDescription="@String/todo"
/>

</androidx.constraintlayout.widget.ConstraintLayout>

-------------------
Appreciate if somebody can point out what I'm missing

Attachments

  • Files.png
    Files.png
    214.7 KB · Views: 426

Ordered and Received

I was a day late in ordering so my deliver date is supposed to be the the 9th of Feb. I was wondering what was your order date and projected delivery. If you were not tardy in ordering, is your phone shipped or supposed to be delivered the 29th? I'm both jealous and excited to hear when you get your Ultra and hear about your take on the phone.

Filter

Back
Top Bottom