Skip to main content
Tweeted twitter.com/StackAndroid/status/1192230295090716673
copyediting
Source Link
Andrew T.
  • 16.5k
  • 10
  • 76
  • 127

how How determine if javaJava object is null or not in taskerTasker?

I want a taskerTasker task that reads smsSMS from a particular person, and, extracts some information out of the latest message...

For e.g.example, I get a lot of messages from my bank due to the transactions I make. At the touch of a task, I want to know my latest bank balance. Normally, I would get the latest smsSMS from my bank and find out the balance from it. I want taskerTasker to do this.

I am aware that taskerTasker can read messages when they arrive. But we have to make a profile that does it. This is not my usecaseuse-case. ItsIt's more on-demand.

Is this possible in tasker?

Here is the task I tried to create to that effect:

Flash Roam (10)
    A1: Java Function [ Return:cr Class Or Object:CONTEXT Function:getContentResolver
{ContentResolver} () Param: Param: Param: Param: Param: Param: Param: ] 
    A2: If [ cr !Set ]
    A3: Flash [ Text:Ok Long:Off ] 
    A4: End If 

I am unable to ascertain if crcr is null or not.

What is the correct way to check it? Or is this even possible in Tasker?

how determine if java object is null or not in tasker?

I want a tasker task that reads sms from a particular person, and, extracts some information out of the latest message...

For e.g. I get a lot of messages from my bank due to transactions I make. At the touch of a task I want to know my latest bank balance. Normally, I would get the latest sms from my bank and find out the balance from it. I want tasker to do this.

I am aware that tasker can read messages when they arrive. But we have to make a profile that does it. This is not my usecase. Its more on-demand.

Is this possible in tasker?

Here is the task I tried to create to that effect:

Flash Roam (10)
    A1: Java Function [ Return:cr Class Or Object:CONTEXT Function:getContentResolver
{ContentResolver} () Param: Param: Param: Param: Param: Param: Param: ] 
    A2: If [ cr !Set ]
    A3: Flash [ Text:Ok Long:Off ] 
    A4: End If 

I am unable to ascertain if cr is null or not.

What is the correct way to check it?

How determine if Java object is null or not in Tasker?

I want a Tasker task that reads SMS from a particular person and extracts some information out of the latest message.

For example, I get a lot of messages from my bank due to the transactions I make. At the touch of a task, I want to know my latest bank balance. Normally, I would get the latest SMS from my bank and find out the balance from it. I want Tasker to do this.

I am aware that Tasker can read messages when they arrive. But we have to make a profile that does it. This is not my use-case. It's more on-demand.

Here is the task I tried to create to that effect:

Flash Roam (10)
    A1: Java Function [ Return:cr Class Or Object:CONTEXT Function:getContentResolver
{ContentResolver} () Param: Param: Param: Param: Param: Param: Param: ] 
    A2: If [ cr !Set ]
    A3: Flash [ Text:Ok Long:Off ] 
    A4: End If 

I am unable to ascertain if cr is null or not.

What is the correct way to check it? Or is this even possible in Tasker?

Source Link
deostroll
  • 187
  • 1
  • 12

how determine if java object is null or not in tasker?

I want a tasker task that reads sms from a particular person, and, extracts some information out of the latest message...

For e.g. I get a lot of messages from my bank due to transactions I make. At the touch of a task I want to know my latest bank balance. Normally, I would get the latest sms from my bank and find out the balance from it. I want tasker to do this.

I am aware that tasker can read messages when they arrive. But we have to make a profile that does it. This is not my usecase. Its more on-demand.

Is this possible in tasker?

Here is the task I tried to create to that effect:

Flash Roam (10)
    A1: Java Function [ Return:cr Class Or Object:CONTEXT Function:getContentResolver
{ContentResolver} () Param: Param: Param: Param: Param: Param: Param: ] 
    A2: If [ cr !Set ]
    A3: Flash [ Text:Ok Long:Off ] 
    A4: End If 

I am unable to ascertain if cr is null or not.

What is the correct way to check it?