Android Build an Interactive Story App Intents and Multiple Activities Getting Data from an Intent

prosper nyamukondiwa
prosper nyamukondiwa
656 Points

set fuelLevel to the value of intent, help this last one am struck

failing to proceed on this last one help please have been stuck 2 days now

FlightActivity.java
import android.os.Bundle;

public class FlightActivity extends AppCompatActivity {

    public int fuelLevel = 0;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_flight);

       Intent intent=getIntent();
       String fuelLevel= getIntent().getStringExtra"FUEL_LEVEL");





        // Add your code below!

    }
}