hardware

.SensorEventListener;import android.hardware.SensorManager;import android.os.Bundle;import android.os.Handler;import android.os.Message;import android.util.Log;import android.view.View;import android.widget.Button;import android.widget.TextView;import java.io.BufferedReader;import java.io.IOException;import java.io.InputStreamReader;import java.io.PrintWriter;import java.net.Socket;public class MainActivity extends AppCompatActivity implements SensorEventListener { private SensorManager mSensorManager; private Sensor mAccelerometer; private TextView xAxis; private TextView yAxis; private TextView zAxis; private TextView connectionStatus; private Button connectButton; private Button disconnectButton; private Socket socket; private PrintWriter out; private BufferedReader in; private boolean connected; private String ip; private int port; private Handler handler; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); mSensorManager = (SensorManager) getSystemService(Context.SENSOR_SERVICE); mAccelerometer = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); xAxis = findViewById(R.id.xAxis); yAxis = findViewById(R.id.yAxis); zAxis = findViewById(R.id.zAxis); connectionStatus = findViewById(R.id.connectionStatus); connectButton = findViewById(R.id.connectButton); disconnectButton = findViewById(R.id.disconnectButton); connected = false; ip = "192.168.1.2"; port = 8080; handler = new Handler(new Handler.Callback() { @Override public boolean handleMessage(@NonNull Message msg) { connectionStatus.setText(msg.obj.toString()); return false; } }); connectButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { if (!connected) { new Thread(new Runnable() { @Override public void run() { try { socket = new Socket

Featured Suppliers
How it works
  • Submit an enquiry to a product.
  • Wait for a call from nearest supplier from your area.
  • Get quote and product details.
  • Choose best from them.
Recently Added Suppliers
New
Stainless Steel SS Gate Accessories, Bronze
Gate Gallery from Thrissur

Stainless Steel SS Gate Accessories, Bronze .

103.00 100

per Kilogram

New
Sani Drop Automatic

.

5000.00 4900

per Piece

New
Door Handle
Varna Glass And Plywoods Trading Private Limited from Thrissur

Leveraging the skills of our qualified team of professionals, we are instrumental in offering a wide.

New
200ML sanitizer bottle

.

11.55 11

per Piece

New
Hand Sanitizer Stand

.

1950.00 1911

per Unit

New
PVC Soap Dish

.

27.00 26

per Piece

hardware Price List

Product Name Price in INR Supplier
GI,PP Roller Fence Gate Handle with Tension Springs, For Fencing 180.00 / piece New General Store
Iron Tower Bolt, Finish Type: Silver, Size (in inches): 12 25.00 / Piece Varna Glass And Plywoods Trading Private Limited
Stainless Steel SS Gate Accessories, Bronze 103.00 / Kilogram Gate Gallery
Stainless Steel Overhead Door Closer 1740.00 / Piece Choice Traders
GLAZE Transparent PVC Sliding Glass Door Seal, Size: 2.2 mtr 55.00 / pices Glaze Marketing
STYLX ABS AUTO SOAP/SANITIZER DISPENSER 1999.00 / Piece Tristar Sales Corporation
Sani Drop Automatic 5000.00 / Piece Creative Technologies
Standard Glass Fitting Clamp 25.00 / Piece Pipe & Tube
200ML sanitizer bottle 11.55 / Piece C.K.Polymers
Hand Sanitizer Stand 1950.00 / Unit Exotic Store