Hi all,

             i'm beginner in Android development and i'm trying to make a
program that make a call to a predefined number and after some time end this
call. I'm using an emulator, and i was expected that i could see the
activities that i programed happinig. I only made a call in the code, but
nothing happens in the emulator. Bellow, i put the code. Can anybody help
me?

public class MakeCall extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Intent intent = new Intent(Intent.ACTION_DIAL);
        intent.setData(Uri.parse("99999999"));
        startActivity(intent);

        setContentView(R.layout.main);
    }
}

Manifest

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android";
      package="com.example.helloandroid"
      android:versionCode="1"
      android:versionName="1.0">
    <application android:icon="@drawable/icon"
android:label="@string/app_name">
        <activity android:name=".MakeCall"
                  android:label="@string/app_name">
            <intent-filter>
                <uses-permission
android:name="android.permission.CALL_PHONE"/>
                <action android:name="android.intent.action.Main" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>
    <uses-sdk android:minSdkVersion="2" />
</manifest>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to