Help using phrases sent over bluetooth via android smart phone

Hello my name is Jon i downloaded the android app "Android meets robots: voice". The app connects to my Arduino over Bluetooth (I have the seeed bt shield)
The app shows a mic you click it then say what you wanna say then its prints it out in the Serial Monitor if i say apple it will print *apple# i don't know how to use this in my code though
i can use single letters and it works but not with words or phrases. I tried using string but i don't think i was doing it right. I'm not to good at coding so it could be something really simple and i would never know. Thank you

This is the test code I'm using

#include <SoftwareSerial.h>   //Software Serial Port
#define RxD 5
#define TxD 7
 
#define DEBUG_ENABLED  1

int incomingByte;

SoftwareSerial blueToothSerial(RxD,TxD);
 
void setup() 
{ 
  Serial.begin(9600);
  pinMode(RxD, INPUT);
  pinMode(TxD, OUTPUT);
  pinMode(13, OUTPUT);
  setupBlueToothConnection();
 
} 
 
void loop() 
{ 
  char recvChar;
  while(1){
    if(blueToothSerial.available()){//check if there's any data sent from the remote bluetooth shield
      recvChar = blueToothSerial.read();
      Serial.print(recvChar);
    }
    if(Serial.available()){//check if there's any data sent from the local serial terminal, you can add the other applications here
      recvChar  = Serial.read();
      blueToothSerial.print(recvChar);
    }
    if (recvChar == 'H') {
    digitalWrite(13,HIGH);
    }
    if (recvChar == 'K') {
    digitalWrite(13, LOW);
    }
  }
} 
 
void setupBlueToothConnection()
{
  blueToothSerial.begin(38400); //Set BluetoothBee BaudRate to default baud rate 38400
  blueToothSerial.print("\r\n+STWMOD=0\r\n"); //set the bluetooth work in slave mode
  blueToothSerial.print("\r\n+STNA=SeeedBTSlave\r\n"); //set the bluetooth name as "SeeedBTSlave"
  blueToothSerial.print("\r\n+STOAUT=1\r\n"); // Permit Paired device to connect me
  blueToothSerial.print("\r\n+STAUTO=0\r\n"); // Auto-connection should be forbidden here
  delay(2000); // This delay is required.
  blueToothSerial.print("\r\n+INQ=1\r\n"); //make the slave bluetooth inquirable 
  Serial.println("The slave bluetooth is inquirable!");
  delay(2000); // This delay is required.
  blueToothSerial.flush();
}

Running an infinite loop (while(1)) inside an infinite loop (loop()) seems pointless. Why are you doing it?

Printing and then discarding each character means you never have a whole word. You, therefore, can not do anything with the phrases that you are sent.

If, instead of having each letter go in one ear and out the other, you were to collect them in an array, starting when the '*' arrives, stopping when the '#' arrives, then you COULD do something with the phrase.

Some minor changes to this code should get you going.

#define SOP '<'
#define EOP '>'

bool started = false;
bool ended = false;

char inData[80];
byte index;

void setup()
{
   Serial.begin(57600);
   // Other stuff...
}

void loop()
{
  // Read all serial data available, as fast as possible
  while(Serial.available() > 0)
  {
    char inChar = Serial.read();
    if(inChar == SOP)
    {
       index = 0;
       inData[index] = '\0';
       started = true;
       ended = false;
    }
    else if(inChar == EOP)
    {
       ended = true;
       break;
    }
    else
    {
      if(index < 79)
      {
        inData[index] = inChar;
        index++;
        inData[index] = '\0';
      }
    }
  }

  // We are here either because all pending serial
  // data has been read OR because an end of
  // packet marker arrived. Which is it?
  if(started && ended)
  {
    // The end of packet marker arrived. Process the packet

    // Reset for the next packet
    started = false;
    ended = false;
    index = 0;
    inData[index] = '\0';
  }
}

I'm sorry Paul I'm not really getting it, the code is just so confusing to me like i said I'm not really good with code

I'm sorry Paul I'm not really getting it, the code is just so confusing to me like i said I'm not really good with code

Next stop - Gigs and collaboration, and get your wallet out.