public class FirstActivity extends Activity {

  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);

    Button orderButton = (Button)findViewById(R.id.order);

    orderButton.setOnClickListener(new View.OnClickListener() {

      @Override
      public void onClick(View view) {
        Intent intent = new Intent(FirstActivity.this, OrderScreen.class);
        startActivity(intent);
      }

    });
  }
}

try this.....



On 8 October 2012 11:32, Ibrahim Sada <[email protected]> wrote:

> What is your problm...
>    Your not navigating from 1st activity to 2nd activity or wat..?
>
>
> On 8 October 2012 11:01, Sadhna Upadhyay <[email protected]>wrote:
>
>> Hi Everybody,
>>                        I am stuck in a problem, the is this that when i
>> get nevigate from one activity to another activity then next activity
>> appears for a milli second and its previous activity comes forword for a
>> milli second then next activity will be stop,it happens like blinking or
>> flactuate,it may be a siili question but a am not able to find its solution
>> that what kind of it is exception,can some one tell me how to start next
>> activity,
>>
>> I implement like this,
>> Intent in=new Intent(A.this,b.class);
>> startActivity(in);
>>
>> pls help me if any one have any idea,
>>
>> Thanks:
>> Sadhana.
>>
>>
>>
>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to