Tag Archives: android

Running android apk in emulator

Hi to all, I am giving the steps to run the android apk in emulator. 1. Copy the apk file and save in to tools folder which is available in your sdk folder. 2. Copy adb,AdbWinApi.dll,AdbWinUsbApi.dll files from platform-tools and … Continue reading

  • October 14, 2012 |
  • 0 Comments
Posted in mobile application | Tagged , , , , | Leave a comment

Fetch the database table values in android

Hi, I have given the code for database select values in android. public void login() { setContentView(R.layout.login); loginButton = (Button) findViewById(R.id.loginButton); loginButton.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { // TODO Auto-generated method stub String uEmail,uPassword; userEmail = (EditText) findViewById(R.id.userEmail); … Continue reading

  • October 14, 2012 |
  • 0 Comments
Posted in mobile application | Tagged , , , , , | Leave a comment

Creating the text dialog box in android

AlertDialog.Builder alt = new AlertDialog.Builder(TextspeechActivity.this); alt.setMessage(“Do you want to login now ?”) .setCancelable(false) .setPositiveButton(“Yes”, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { // Action for ‘Yes’ Button setContentView(R.layout.login); } }) .setNegativeButton(“No”, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, … Continue reading

  • October 14, 2012 |
  • 0 Comments
Posted in mobile application | Tagged , , , , | Leave a comment

SQLite database connection in android

//Declare the variables String MY_DATABASE_NAME = “test”; String table1 = “users”; SQLiteDatabase myDB; //open the database myDB = this.openOrCreateDatabase(MY_DATABASE_NAME, 1, null); //get the values from text fields String fn,ln,email,password,mobile,address; fn = t1.getText().toString(); ln = t2.getText().toString(); email = t3.getText().toString(); password = … Continue reading

  • October 14, 2012 |
  • 0 Comments
Posted in mobile application | Tagged , , , | Leave a comment

handling button onclick listener in android

Hi, /* Back button */ back1 = (Button) findViewById(R.id.button2); back1.setOnClickListener( new View.OnClickListener() { public void onClick(View view) { onCreate(null); } }); /*Back button process end*/

  • October 14, 2012 |
  • 0 Comments
Posted in mobile application | Tagged , , , | Leave a comment

Cannot cast from View to WebView in android application

Hi to all, While creating webview in android program getting error called “Cannot cast from View to WebView”. I am beginner to android application. I have added this line in manifest file <uses-permission android:name=”android.permission.INTERNET” /> also to set the internet … Continue reading

  • October 14, 2012 |
  • 0 Comments
Posted in mobile application | Tagged , , , , , | 1 Comment

Best android program example for html view and ImageView

xml file: <?xml version=”1.0″ encoding=”utf-8″?> <LinearLayout xmlns:android=”http://schemas.android.com/apk/res/android” android:orientation=”vertical” android:layout_width=”fill_parent” android:layout_height=”fill_parent” android:gravity=”center” android:padding=”10px”> <TextView android:id=”@+id/text_view01″ android:layout_width=”wrap_content” android:layout_height=”wrap_content”></TextView> <ImageView android:id=”@+id/ImageView01″ android:layout_width=”wrap_content” android:layout_height=”wrap_content” android:src=”@drawable/ndot_android”></ImageView> </LinearLayout> java file: package com.htmlexplae.com; import android.app.Activity; import android.os.Bundle; import android.text.Html; import android.text.method.LinkMovementMethod; import android.widget.TextView; public class htmlexample extends … Continue reading

  • October 14, 2012 |
  • 0 Comments
Posted in mobile application | Tagged , , , , , | 1 Comment

Android basic example program for beginners

<?xml version=”1.0″ encoding=”utf-8″?> <ScrollView xmlns:android=”http://schemas.android.com/apk/res/android” android:layout_width=”match_parent” android:layout_height=”match_parent”> <LinearLayout android:id=”@+id/sub_layout” android:layout_width=”fill_parent” android:layout_height=”fill_parent” android:orientation=”vertical” android:gravity=”center”> <TextView android:id=”@+id/voice_memo_text” android:layout_width=”wrap_content” android:layout_height=”wrap_content” android:text=”Voice Memo” android:typeface=”sans” android:textStyle=”bold” android:textSize=”20px” android:padding=”10px”></TextView> <ImageView android:id=”@+id/ImageView01″ android:layout_width=”wrap_content” android:layout_height=”wrap_content” android:src=”@drawable/cs_logo”></ImageView> <LinearLayout android:id=”@+id/LinearLayout01″ android:layout_width=”wrap_content” android:layout_height=”wrap_content” android:layout_marginTop=”50px”> <ZoomButton android:id=”@+id/ZoomButton01″ android:layout_width=”wrap_content” android:layout_height=”wrap_content” android:src=”@drawable/icon”></ZoomButton> <ZoomButton android:id=”@+id/ZoomButton02″ … Continue reading

  • October 14, 2012 |
  • 0 Comments
Posted in mobile application | Tagged , , , , | Leave a comment

Android ImageView src value not working for me

Hi to all, <ImageView android:id=”@+id/image_field” android:layout_width=”match_parent” android:layout_height=”match_parent” android:scaleType=”center” android:src=”@drawable/test”> I have test.png file in res\drawable-mdpi\test.png I am new to android, Dont know what is the problem with me. Please help me.

  • October 14, 2012 |
  • 0 Comments
Posted in mobile application | Tagged , , , | Leave a comment

Introduction about Android Operation System

Android is an operating system based on Linux with a Java programming interface. It provides tools, e.g. a compiler, debugger and a device emulator as well as its own Java Virtual machine (Dalvik Virtual Machine – DVM). Android is created … Continue reading

  • October 14, 2012 |
  • 0 Comments
Posted in mobile application | Tagged , , , , , | Leave a comment