Manifest...

Following is the manifest...


<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android";
      package="com.bnet.detectmissedcall"
      android:versionCode="1"
      android:versionName="1.0.0">
    <application android:icon="@drawable/icon"
android:label="@string/
app_name">
        <activity android:name=".main" android:label="@string/
app_name">
        <intent-filter>
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
        </activity>
         <activity android:name=".SoundNotification">
         </activity>
        <receiver android:name=".ServiceReceiver">
                <intent-filter>
                <action
android:name="android.intent.action.PHONE_STATE" />
                </intent-filter>
        </receiver>
        </application>
        <uses-permission
android:name="android.permission.READ_PHONE_STATE" />
        <uses-permission
android:name="android.permission.READ_CONTACTS"/>
    <uses-permission android:name="android.permission.CALL_PHONE"/>
    <uses-permission android:name="android.permission.VIBRATE"  />
</manifest>




On Mar 2, 1:25 pm, Bnet <[email protected]> wrote:
> Thanks. Sorry, thought it was in the first messge.
>
> The problem is being new to Android and not being able successfully
> create an intent to call another class.
>
> Intent i = new Intent
> ("com.bnet.detectmissedcall.SoundNotification");
> startActivity(i);
>
> On Mar 2, 1:05 pm, Marco Nelissen <[email protected]> wrote:
>
>
>
> > It might help if you told us what exactly the problem is.
>
> > On Mon, Mar 2, 2009 at 8:04 AM, Bnet <[email protected]> wrote:
>
> > > Problem starting a new activity, please see below...
>
> > > public class MyPhoneStateListener extends PhoneStateListener {
>
> > >         final static String TAGTEXT = "DEBUG LISTENER!!!";
> > >     boolean ringing = false;
> > >     boolean offhook = false;
>
> > >   �...@override
> > >        public void onCallStateChanged(int state,String incomingNumber){
> > >                switch(state)
> > >        {
> > >     case TelephonyManager.CALL_STATE_IDLE:
> > >          Log.d(TAGTEXT,"IDLE");
> > >          Log.d(TAGTEXT,"ringing "+ringing+" offhook "+offhook);
> > >          if(ringing&&(!offhook))
> > >          {
> > >               Log.d(TAGTEXT, "You have missed a call");
> > >                ringing = false;
> > >                offhook = false;
>
> > >              //problem//
> > >                Intent i = new Intent
> > > ("com.bnet.detectmissedcall.SoundNotification");
> > >                startActivity(i);
>
> > >          break; }
>
> > >     case TelephonyManager.CALL_STATE_RINGING:
> > >          Log.d(TAGTEXT, "RINGING");
> > >          ringing = true;
> > >          offhook = false;
>
> > >          break;
> > >     case TelephonyManager.CALL_STATE_OFFHOOK:
> > >          Log.d(TAGTEXT, "OFFHOOK");
> > >          offhook = true;
> > >          ringing = false;
> > >          break;
>
> > >     default:
>
> > >          break;
> > >     }
>
> > >    }
>
> > > }- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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