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
import android.os.Bundle;

public class FlightActivity extends AppCompatActivity {

    public int fuelLevel = 0;

    protected void onCreate(Bundle savedInstanceState) {

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

        // Add your code below!