Working with Hierarchy Viewer #Hierarchy Viewer allows you to debug and optimize your user interface. #It provides a visual representation of the layout's View hierarchy (the Layout View) and a magnified inspector of the display. # Connect your mobile device to your computer. # Open your application in Android Studio, build the source, and run it on your device. (debug application only) # From Android Studio, start the Android Device Monitor: Tools > Android > Android Device Monitor. # Allow USB Debugging on your phone (if asked). # Make sure your device and the package for your application are showing in the Devices (DDMS mode) or Windows (Hierarchy Viewer mode) tab. You can choose Window > Reset Perspective to get back to the default arrangement. # In Android Device Monitor (ADM), in the menu bar, choose Window > Open Perspective, and in the popup click Hierarchy View. The left dot represents the Draw Process of the rendering pipeline. - Measure Th...
import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import android.util.Log; /** * Created by Chandra on 31-10-2015. */ public class LoginSQLiteHelper extends SQLiteOpenHelper { public static final String TABLE_NAME = "table_login"; public static final String COLUMN_ID = "_id"; public static final String COLUMN_USER_EMAIL = "user_email"; public static final String COLUMN_USER_PWD = "user_pwd"; public static final String COLUMN_USER_NAME = "user_name"; public static final String COLUMN_USER_NO = "user_no"; private static final String DATABASE_NAME = "login.db"; private static final int DATABASE_VERSION = 1; // Database creation sql statement private static final String SQL_CREATE_ENTRIES = "CREATE TABLE " ...
Comments
Post a Comment