|
package online.chat.onlinechat_app;
|
|
|
|
import android.app.ActionBar;
|
|
import android.app.Activity;
|
|
import android.content.Intent;
|
|
import android.net.Uri;
|
|
import android.os.Bundle;
|
|
import android.view.Menu;
|
|
import android.view.MenuItem;
|
|
import android.view.View;
|
|
import android.widget.ScrollView;
|
|
|
|
public class Shop extends Activity {
|
|
public int currentimageindex = 0;
|
|
|
|
@Override
|
|
protected void onCreate(Bundle savedInstanceState) {
|
|
super.onCreate(savedInstanceState);
|
|
setContentView(R.layout.activity_shop);
|
|
final ScrollView scrollview = ((ScrollView) findViewById(R.id.scrollView1));
|
|
scrollview.fullScroll(ScrollView.FOCUS_UP);
|
|
scrollview.setFillViewport(true);
|
|
ActionBar actionBar = getActionBar();
|
|
actionBar.setDisplayHomeAsUpEnabled(true);
|
|
}
|
|
|
|
@Override
|
|
public boolean onCreateOptionsMenu(Menu menu) {
|
|
// Inflate the menu; this adds items to the action bar if it is present.
|
|
return true;
|
|
}
|
|
@Override
|
|
public boolean onOptionsItemSelected(MenuItem item) {
|
|
// TODO Auto-generated method stub
|
|
int id=item.getItemId();
|
|
switch (id) {
|
|
case android.R.id.home:
|
|
Intent in2=new Intent(getApplicationContext(), HomeActivity.class);
|
|
startActivity(in2);
|
|
break;
|
|
|
|
default:
|
|
break;
|
|
}
|
|
return super.onOptionsItemSelected(item);
|
|
}
|
|
|
|
public void All_Products_click(View v) {
|
|
Intent intent1 = new Intent(Intent.ACTION_VIEW,
|
|
Uri.parse("http://www.speedkal.com"));
|
|
startActivity(intent1);
|
|
}
|
|
|
|
public void Deal_of_the_day_click(View v) {
|
|
Intent intent2 = new Intent(Intent.ACTION_VIEW,
|
|
Uri.parse("http://www.speedkal.com"));
|
|
startActivity(intent2);
|
|
}
|
|
|
|
public void Fashion_Wear_click(View v) {
|
|
Intent intent3 = new Intent(Intent.ACTION_VIEW,
|
|
Uri.parse("http://www.speedkal.com/onlineshop/"));
|
|
startActivity(intent3);
|
|
}
|
|
|
|
public void Home_needs_click(View v) {
|
|
Intent intent3 = new Intent(
|
|
Intent.ACTION_VIEW,
|
|
Uri.parse(" http://www.speedkal.com/onlineshop/index.php?route=product/category&path=50"));
|
|
startActivity(intent3);
|
|
}
|
|
|
|
public void Groceries_click(View v) {
|
|
Intent intent3 = new Intent(
|
|
Intent.ACTION_VIEW,
|
|
Uri.parse("http://www.speedkal.com/shop/index.php?route=product/category&path=63"));
|
|
startActivity(intent3);
|
|
}
|
|
|
|
public void Vegetables_click(View v) {
|
|
Intent intent3 = new Intent(
|
|
Intent.ACTION_VIEW,
|
|
Uri.parse("http://www.speedkal.com/shop/index.php?route=product/category&path=59"));
|
|
startActivity(intent3);
|
|
}
|
|
|
|
public void Gifts_click(View v) {
|
|
Intent intent3 = new Intent(
|
|
Intent.ACTION_VIEW,
|
|
Uri.parse("http://www.speedkal.com/shop/index.php?route=product/category&path=85"));
|
|
startActivity(intent3);
|
|
}
|
|
|
|
public void Cakes_click(View v) {
|
|
Intent intent3 = new Intent(
|
|
Intent.ACTION_VIEW,
|
|
Uri.parse("http://www.speedkal.com/shop/index.php?route=product/category&path=85"));
|
|
startActivity(intent3);
|
|
}
|
|
|
|
public void Flower_bouquets_click(View v) {
|
|
Intent intent3 = new Intent(
|
|
Intent.ACTION_VIEW,
|
|
Uri.parse("http://www.speedkal.com/shop/index.php?route=product/category&path=85"));
|
|
startActivity(intent3);
|
|
}
|
|
|
|
}
|