Rooting Lava Xtron android tablet

WARNING : It worked for me but still, do at your our risk. 

Lava Xtron is the only cheapest android tablet which has performance equalling nexus 7.  See the flipkart link below for more details

http://www.flipkart.com/lava-e-tab-xtron-tablet/p/itmdgjwxm7zfpxwc?pid=TABDHVNGHZGHYNME&ref=e7fa0475-6e55-491a-a704-9565f7810e15&srno=t_1&otracker=from-search&query=lava%20xtron

But the problem is that you dont get usb drivers for connecting it to your windows pc. More worse for developers, since it is impossible to perform adb tasks, app debugging ,etc.

Just follow these steps to root your xtron tablet.

A . Getting USB drivers

1.First, we need usb drivers so that our device gets detected.Install Moborobo which is an software for managing your device sms,videos,pics,etc

http://www.moborobo.com/products/moborobo.html

2.After installing it, connect your tablet and wait for it check your device for downloading necessary drivers.

3.Once connected vid USB, you should be able to see your device files, sd-card size in the moborobo desktop application.

NOTE : In moborobo software, Device model of the tablet will not be shown when detected. Its just a bug.Ignore it.

B . Rooting the device

1. Download the software  ZhuoDaShi-2.2.0-setup.exe . Sometimes your antivirus might block this. Deal with them.

https://hotfile.com/dl/165309989/766c52f/ZhuoDaShi-2.2.0-setup.exe.html

2.Since it is a japanese/chinese software, you may see some crazy instrution text while installing. Follow the screenshots below…

Installcaption

Screen 1

Screen 2

Screen 2

Screen 3

Screen 3

Screen 4

Screen 4

Screen 5

Screen 5

Screen 6

Screen 6

Screen 7: Installation is done

Screen 7: Installation is done

Screen 8 : This is the main screen. Click the mentioned icon

Screen 8 : This is the main screen. Click the mentioned icon. My AV is sneeking around..:-/..dont mind it

Screen 9 : When clicked, an app is intalled and opened on your device. You dont need to select anything on your device screen. Just follow the desktop instructions

Screen 9 : When clicked, an app is intalled and opened on your device. You dont need to select anything on your device screen. Just follow the desktop instructions

Screen 10: Click  root. On the next screen, you will see the script in action.

Screen 10: Click root. On the next screen, you will see the script in action.

Screen 11: At last ,rooting is done.

Screen 11: At last ,rooting is done.

Go to Play and download any root checking software to confirm your root status. Thats it….

Update: This tablet is out of production(Incase, you are planning to buy :/ )

Painting a Circle using TouchListener in Android

This program is used to create a colored circle using a View context whenever the user touch the screen.The color generated is random and changes rapidly when dragged…

Note:A basic knowledge in Android needed .

Project structure:-


Source 1:

This is the Activity class.We simply create an instance of our “drawingView” class(which extends View) and add it to current content view…

package com.android;

import android.app.Activity;
import android.os.Bundle;

public class Activity1 extends Activity{
    /** Called when the activity is first created. */

    drawingView dview;                    //creating the reference

    public void onCreate(Bundle savedInstanceState)
   {
        super.onCreate(savedInstanceState);
        dview=new drawingView(this); //creating the instance
        setContentView(dview);         //adding to the activity
    }
}

Source 2:

This is our “drawingView” class which extends the “View” class from “import android.view.View” package.  This class contains the following logic,

  • Generating a random color value .
  • Implements “OnTouchListener” for generating touch events.
  • Drawing the circle.
package com.android;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnTouchListener;
public class drawingView extends View implements OnTouchListener{

	static int x,y,r=255,g=255,b=255;
	final static int radius=30;
	Paint paint;     //using this ,we can draw on canvas

	public drawingView(Context context)
	{
		super(context);
	        paint=new Paint();
		paint.setAntiAlias(true);       //for smooth rendering
		paint.setARGB(255, r, g, b);    //setting the paint color

		//to make it focusable so that it will receive touch events properly
		setFocusable(true);

		//adding touch listener to this view
		this.setOnTouchListener(this);
	}

	//overriding the View's onDraw(..) method
	public void onDraw(Canvas canvas)
	{
		paint.setARGB(255, r, g, b);

		//drawing the circle
		canvas.drawCircle(x,y,radius,paint);

	}

	//this is the interface method of "OnTouchListener"
	public boolean onTouch(View view,MotionEvent event)
	{
		x=(int)event.getX()-(radius/2);      //some math logic to plot the circle  in exact touch place
		y=(int)event.getY()-(radius/2);
		  //System.out.println("X,Y:"+"x"+","+y);      //see this output in "LogCat"
		randColor();       //calls this method to generate a color before drawing
		invalidate();      //calls onDraw method
		return true;
	}

	//this method sets a random color using Math.random()
	//Note: RGB color values ranges from 0 to 255..
	public void randColor()
	{
		r=(int)(Math.random()*255);
		g=(int)(Math.random()*255);
		b=(int)(Math.random()*255);
		//Toast.makeText(c, "r,g,b="+r+","+g+","+b,Toast.LENGTH_SHORT).show();
	}
}

Output:
Some screenshots in Emulator,

This slideshow requires JavaScript.

Note:The above slideshow(a wordpress plugin) has some bug and so it displays the file structure picture…ignore it