Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4028640
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T11:14:42+00:00 2026-05-20T11:14:42+00:00

I tried the following code with android 2.3.3 (AVD). When i run this code

  • 0

I tried the following code with android 2.3.3 (AVD). When i run this code it waits saying Waiting for HOME (‘android.process.acore’) to be launched… but keeps on waiting. So i tried running second time .. this time it says

[2011-03-04 12:28:39 – DialANumber] Uploading DialANumber.apk onto device ’emulator-5554′
[2011-03-04 12:28:39 – DialANumber] Installing DialANumber.apk…
[2011-03-04 12:29:14 – DialANumber] HOME is up on device ’emulator-5554′
[2011-03-04 12:29:14 – DialANumber] Uploading DialANumber.apk onto device ’emulator-5554′
[2011-03-04 12:29:14 – DialANumber] Installing DialANumber.apk…

and after some time fails with

[2011-03-04 12:31:37 – DialANumber] Failed to install DialANumber.apk on device ’emulator-5554!
[2011-03-04 12:31:37 – DialANumber] (null)
[2011-03-04 12:31:39 – DialANumber] Launch canceled!

the code follows:

package com.DialANumber;

import android.app.Activity;

import android.content.Intent;

import android.net.Uri;

import android.os.Bundle;

import android.view.KeyEvent;

import android.view.View;

import android.widget.Button;

import android.widget.EditText;

import android.widget.LinearLayout;


public class DialANumber extends Activity {

EditText mEditText_number = null;

LinearLayout mLinearLayout_no_button = null;

Button mButton_dial = null;


@Override
public void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

mLinearLayout_no_button = new LinearLayout(this);

mEditText_number = new EditText(this);
mEditText_number.setText("5551222");
mLinearLayout_no_button.addView(mEditText_number);

mButton_dial = new Button(this);
mButton_dial.setText("Dial!");
mLinearLayout_no_button.addView(mButton_dial);
mButton_dial.setOnClickListener(new View.OnClickListener() {
  public void onClick(View v) {
    performDial();
  }
});

  setContentView(mLinearLayout_no_button);
 }

 public boolean onKeyDown(int keyCode, KeyEvent event) {

if (keyCode == KeyEvent.KEYCODE_CALL) {

  performDial();

  return true;

}
return false;
}

 public void performDial(){

if(mEditText_number!=null){

  try {

    startActivity(new Intent(Intent.ACTION_CALL, Uri.parse("tel:" + mEditText_number.getText())));

  } catch (Exception e) {

    e.printStackTrace();

  }
}//if
}
}

I am just starting to learn developing android apps. please help me out.. Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T11:14:43+00:00Added an answer on May 20, 2026 at 11:14 am

    you have to provide virtual SDCard for the emulator. You can do this easily when creating emulator from eclipse widget

    if you are not an eclipse user, you can refer to this link http://wrestlingmind.blogspot.com/2009/06/android-emulator-handy-commands.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working in the android environment and have tried the following code, but it
I tried the following code in LINQPad and got the results given below: List<string>
I tried the following code to get an alert upon closing a browser window:
I have following Code Block Which I tried to optimize in the Optimized section
Have you managed to get Aptana Studio debugging to work? I tried following this,
I've tried the following, but I was unsuccessful: ALTER TABLE person ALTER COLUMN dob
Silly question, but I'm unable to figure out.. I tried the following in Ruby:
I am programming for Android 1.6, the following code works in 2.2 (API Level
The following code for a co-worker throws the following error when he tries to
I have tried the following two statements: SELECT col FROM db.tbl WHERE col (LIKE

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.