My extra data doesn't appear immediately

how-to buy more data at&t
add data to my phone
buy more data verizon
verizon extra data promotion
verizon add data for one month
buy more data t-mobile
my verizon
how to get more hotspot data verizon

In my file Reservation.java I have a function that loads LieuActivity. So this is the function

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.ListView;
import android.widget.TextView;

public class Reservation extends AppCompatActivity implements View.OnClickListener {
    private Button end,deb,lieu,type,cherch;
    private TextView type_v ;
    private ImageView car;
    private View division;
    private ListView list;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_reservation);
        end = (Button)findViewById( R.id.btn_fin );
        end.setOnClickListener( this);
        deb= (Button)findViewById( R.id.deb_btn);
        deb.setOnClickListener( this );
        lieu = (Button)findViewById( R.id.btn_local);
        lieu.setOnClickListener( this );
        type = (Button)findViewById( R.id.btn_type);
        type.setOnClickListener( this );
        cherch= (Button)findViewById( R.id.btn_cherch);
        cherch.setOnClickListener( this );
        division= (View)findViewById( R.id.div3);
        type_v= (TextView)findViewById( R.id.type);
        car= (ImageView) findViewById( R.id.pic_car);
        list=(ListView)findViewById(R.id.fin_list);

        ArrayAdapter<String> mAdapter= new ArrayAdapter<String>(Reservation.this, android.R.layout.simple_list_item_1, getResources().getStringArray(R.array.values));

        list.setOnItemClickListener(new AdapterView.OnItemClickListener() {
            @Override
            public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
                if (position == 3 )
                {
                    Intent i = new Intent(view.getContext(),Deb_FinActivity.class);
                    startActivityForResult(i,3);
                }
            }
        });

        list.setAdapter(mAdapter);
    }

    @Override
    public void onClick(View view) {
        switch(view.getId())
        {
            case R.id.deb_btn:
                loadDebActivity();
                break;
            case R.id.btn_fin:
                loadFin();
                break;
            case R.id.btn_local:
                loadLieuActivity();
                break;
            case R.id.btn_type:
                loadTypeActivity();
                break;
            case R.id.btn_cherch:
                loadSearch();
                break;
        }
    }

    private void loadDebActivity()
    {
        startActivity(new Intent( this,Deb_FinActivity.class ) );
        finish();
    }

    private void loadFin()
    {
        lieu.setVisibility( View.INVISIBLE );
        type.setVisibility(View.INVISIBLE);
        cherch.setVisibility(View.INVISIBLE);
        car.setVisibility(View.INVISIBLE);
        division.setVisibility(View.INVISIBLE);
        type_v.setVisibility(View.INVISIBLE);
        list.setVisibility(View.VISIBLE);
    }

    private void loadLieuActivity()
    {
        startActivity(new Intent( this,LieuActivity.class ) );

       lieu.setText(getIntent().getStringExtra("mytext"));
    }

    private void loadTypeActivity()
    {
        startActivity(new Intent( this,TypeActivity.class ) );
        finish();
    }
    private void loadSearch()
    {
    }
}

In my LieuActivity.java I have this code

public class LieuActivity extends AppCompatActivity {
    private EditText lieuu;
    private  TextView local;

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

    public void addListenerOnButton() {
        local = (TextView) findViewById(R.id.position);
        local.setOnClickListener(new View.OnClickListener() {

            public void onClick(View view) {
                EditText lieuu = (EditText)findViewById(R.id.local);
                String text =lieuu.getText().toString();

                Intent myIntent = new Intent(view.getContext(),Reservation.class);
                myIntent.putExtra("mytext",text);
                startActivity(myIntent);
            }
        });
    }
}

The problem is when I edit in my LieuActivity and go back to reservation it does not return the extra value until I click another time on the editText so I see the updated data for a second before re-going to LieuActivity and modify it another time .

Put these lines in onCreate() of Reservation activity

String text = getIntent().getStringExtra("mytext");
if (text != null) {
    lieu.setText(text);
}

and make this change:

private void loadLieuActivity()
{
    startActivity(new Intent( this,LieuActivity.class ) );
    finish();
}

Data Passes, Data passes let you temporarily add high-speed data by the day or week, whenever you need it to supplement your Sometimes you want to add some extra to your existing plan and that's where data passes come in. From My T-​Mobile. My guess is that due to cell formatting, you may think you are applying a certain filter, but not really doing so. For example, if you want to filter out all cells that contain the value ten (10), and you set a number filter of "not equal to 10", a cell that looks like it contains 10 might really contain 10.0000000000001 but only be displaying

Do this in oncreate of Reservation

Bundle extras = getIntent().getExtras(); 
String string;

if (extras != null) {
    string = extras.getString("mytext");
    lieu.setText(string);
}

Check your mobile plan & buy mobile data on Android, To buy more data: Under "Buy data," tap the offer you want. Then tap Buy. To control Your carrier likely doesn't work with this service. Contact your carrier for​  My data isn’t working If you can’t connect to cellular data—for example, you can't open a website or use an app while you're not on Wi-Fi—try the troubleshooting steps below to fix the issue. After each step, try visiting a website to see if the issue is fixed.

Make changes like this in LieuActivity :-

public class LieuActivity extends AppCompatActivity {
    private EditText lieuu;
    private  TextView local;

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

    public void addListenerOnButton() {
        local = (TextView) findViewById(R.id.position);
        local.setOnClickListener(new View.OnClickListener() {

            public void onClick(View view) {
                EditText lieuu = (EditText)findViewById(R.id.local);
                String text =lieuu.getText().toString();

                Intent myIntent = new Intent(view.getContext(),Reservation.class);
                myIntent.putExtra("mytext",text);
                setResult(RESULT_OK, myIntent );
        });
    }
}

In Reservation put onActivityResult()

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.ListView;
import android.widget.TextView;

public class Reservation extends AppCompatActivity implements View.OnClickListener {
    private Button end,deb,lieu,type,cherch;
    private TextView type_v ;
    private ImageView car;
    private View division;
    private ListView list;
            String mNewText="";

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_reservation);
        end = (Button)findViewById( R.id.btn_fin );
        end.setOnClickListener( this);
        deb= (Button)findViewById( R.id.deb_btn);
        deb.setOnClickListener( this );
        lieu = (Button)findViewById( R.id.btn_local);
        lieu.setOnClickListener( this );
        type = (Button)findViewById( R.id.btn_type);
        type.setOnClickListener( this );
        cherch= (Button)findViewById( R.id.btn_cherch);
        cherch.setOnClickListener( this );
        division= (View)findViewById( R.id.div3);
        type_v= (TextView)findViewById( R.id.type);
        car= (ImageView) findViewById( R.id.pic_car);
        list=(ListView)findViewById(R.id.fin_list);

        ArrayAdapter<String> mAdapter= new ArrayAdapter<String>(Reservation.this, android.R.layout.simple_list_item_1, getResources().getStringArray(R.array.values));

        list.setOnItemClickListener(new AdapterView.OnItemClickListener() {
            @Override
            public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
                if (position == 3 )
                {
                    Intent i = new Intent(view.getContext(),Deb_FinActivity.class);
                    startActivityForResult(i,3);
                }
            }
        });

        list.setAdapter(mAdapter);
    }

    @Override
    public void onClick(View view) {
        switch(view.getId())
        {
            case R.id.deb_btn:
                loadDebActivity();
                break;
            case R.id.btn_fin:
                loadFin();
                break;
            case R.id.btn_local:
                loadLieuActivity();
                break;
            case R.id.btn_type:
                loadTypeActivity();
                break;
            case R.id.btn_cherch:
                loadSearch();
                break;
        }
    }

    private void loadDebActivity()
    {
        startActivity(new Intent( this,Deb_FinActivity.class ) );
        finish();
    }

    private void loadFin()
    {
        lieu.setVisibility( View.INVISIBLE );
        type.setVisibility(View.INVISIBLE);
        cherch.setVisibility(View.INVISIBLE);
        car.setVisibility(View.INVISIBLE);
        division.setVisibility(View.INVISIBLE);
        type_v.setVisibility(View.INVISIBLE);
        list.setVisibility(View.VISIBLE);
    }

    private void loadLieuActivity()
    {
        startActivity(new Intent( this,LieuActivity.class ) );

       lieu.setText(mNewText);
    }

    private void loadTypeActivity()
    {
        startActivity(new Intent( this,TypeActivity.class ) );
        finish();
    }
    private void loadSearch()
    {
    }


     @Override
     protected void onActivityResult(int requestCode, int resultCode, Intent data)      {
         super.onActivityResult(requestCode, resultCode, data);
         if (requestCode == QUEUE_MSG) {
             if (resultCode == RESULT_OK) {
                 Serializable myText= data.getSerializableExtra("mytext");
                 if (myText!= null)
                     mNewText= myText;
             }
         }
     }
}

Hope this may help you

Add 1GB Data | Cricket Plan Options, Sometimes you just need more data for a limited period. Get the scoop on What happens when I use all of my plan's high-speed data allotment? For Cricket  There’s no option to add unlimited data to a plan and exceeding your Suddenlink data cap will result in a charge of $15 per additional 50 GB of data. Verizon Fios data caps Verizon Fios internet plans have no data caps or restrictions.

Buy More Data, How much does Buy More cost? When is my monthly measurement reset date​? If I use up all the data in my monthly plan and don't use Buy More, what  NOTE: Android will erase the contents of the drive, so be sure you’ve backed up any data on it. You can then choose to move photos, files, and some apps to the new device, if you like. If not, you can choose to migrate this data later. Head to Settings > Storage & USB, tap the drive, tap the menu button, and select “Migrate data.”

Can I add any extra data or calling credits to my plan?, Ultra Mobile offers a variety of add-ons, helping you to create your perfect plan! 4G LTE data add-ons give you the extra data you need to surf the web:. Bonus data is extra data you can earn through certain promotions we offer from time to time. Bonus data is automatically added to your account when you complete the tasks required to earn the data. For example: Buy a new Verizon Wireless tablet and receive 1 GB of extra data; Take a survey on a restaurant's website and get 50 MB of data

How to monitor and limit your data usage on an Android phone, It's smart to monitor your phone's data flow — not only to make sure you don't pass your Avoid those extra data fees My Data Manager. The AOC offers a 16″ spread (15.6″ viewable) and a max resolution of 1366×768. It weighs about as much as our ultrabook (2.6 pounds) but unlike our ultrabook requires no additional power brick (thank goodness for that). It draws all its power via two USB ports (on port for the data and the extra port for extra power).

Comments
  • post your Reservation.java code
  • I'm surprised your app doesn't crash in line lieu.setText(getIntent().getStringExtra("mytext")); in loadLieuActivity() method. How do you refer to a view that has not been created yet in another activity?
  • I have edited the question =
  • So lieu is a button inside Reservation activity and after you finish the activity you set its text?!!!
  • I'm referring to lieu Button inside Reservation activity. Your code does not make sense.
  • the same result :(
  • when I exit LieuActivity it stays the same data but when i click on the button it takes the new one for few seconds
  • @Maryam so was the problem solved?
  • yes it has solved 2 min ago :) i created a condition on the extra string if it is null it takes the default data else the data as you wrote in your proposition
  • @Maryam if the answer helped you mark it as the right answer
  • it's not a toast, it returns a text that should be written in the button of another activity , plz see the edited question
  • My answer will actually help you fetch the string. You can set button text as button.setText(string);
  • I have done what you said but it returns the same result . after editing the data in my LieuActivity interface and return to Reservation interface the button has the previous text but when I click on it the edited text appears
  • Send me a message. I'll love to have a look at your code and show you how to make your code more tidy. twitter.com/cazewonder