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

  • SEARCH
  • Home
  • 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 6619499
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T20:58:38+00:00 2026-05-25T20:58:38+00:00

I have an application that I wrote which is the following package com.pack .

  • 0

I have an application that I wrote which is the following package “com.pack” . When i launch the app, I dont see the “com.pack” in the list of processes being shown in the device in DDMS. How is that possible does anybody know why ? Here is the code and the xml manifest file.

package com.pack;

import java.util.List;

import java.util.Timer;
import java.util.TimerTask;

import android.app.Activity;
import android.content.ComponentName;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.graphics.PorterDuff.Mode;
import android.net.Uri;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.text.format.Time;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;

import com.android.internal.telephony.CallManager;
import com.android.internal.telephony.Phone;
import com.android.internal.telephony.Call;
import com.android.internal.telephony.PhoneFactory;

public class AutoVT extends Activity {

    public static final int MAKE_CALL           = 1;

    public static final int END_CALL            = 2;

    public static final int PHONE_STATE_CHANGED = 101;

    //CallManager mCM;

    Button callButton ;

    ActivityInfo info =null; 

    ComponentName component ;

    String callperiod_text;

    String waitperiod_text;

    String number;

    public int callPeriod=0;

    public int waitPeriod = 0;

    @Override
    public void onCreate(Bundle savedInstanceState) {

        Log.i("AutoVT","starting AutoVT");

        //registerForPhoneStates();

        super.onCreate( savedInstanceState );

        setContentView( R.layout.main );

        callButton = (Button)findViewById(R.id.callButton);

        callButton.getBackground().setColorFilter(0xFFFF0000,Mode.MULTIPLY);

        callButton.setOnClickListener(new OnClickListener() {

            public void onClick(View v) {

                callperiod_text   =  ( ( ( EditText )findViewById( R.id.call_period )).getText()).toString();

                waitperiod_text   =  ( ( ( EditText )findViewById( R.id.wait_period )).getText() ).toString();

                number =  ( ( ( EditText )findViewById( R.id.PhoneNumber )).getText() ).toString();

                if( !callperiod_text.equals("")&& !waitperiod_text.equals("") && ! number.equals("")) {

                    callPeriod = (Integer.valueOf( callperiod_text ))*1000;

                    waitPeriod = (Integer.valueOf( waitperiod_text ))*1000;

                    phoneHandler.sendEmptyMessage(MAKE_CALL);


                }

            }

        });

    }

    private Handler phoneHandler = new Handler() {

        public void handleMessage(Message msg) {

            Log.i("AutoVT received some message:", msg.toString());

            switch(msg.what) {

                case PHONE_STATE_CHANGED: {

                    Log.i("AutoVT","Phone State Changed");

                    Log.i("AutoVT", mCM.getActiveFgCallState() );

                    if( mCM.getActiveFgCallState() == Call.State.ACTIVE ) {

                        Log.i("AutoVT","Call ACTIVE");

                        final Timer timer = new Timer();

                        Log.i("AutoVT","Active timer started");

                        timer.scheduleAtFixedRate( new TimerTask() {

                            int count = 0;

                            public void run() {

                                if( count++ >=1) {

                                    timer.cancel();

                                    runOnUiThread(new Runnable() {

                                        @Override
                                        public void run() {

                                            phoneHandler.sendEmptyMessage(END_CALL);

                                        }
                                    });

                                }                               
                            }
                        }, 0, callPeriod );

                    } else if( mCM.getActiveFgCallState() == Call.State.DISCONNECTED ) {

                        Log.i("AutoVT","Call DISCONNECTED");

                        final Timer timer =new Timer();

                        Log.i("AutoVT","Waiting timer started");

                        timer.scheduleAtFixedRate( new TimerTask() {

                            int count = 0;

                            public void run() {

                                if( count++ >=1) {

                                    timer.cancel();

                                    runOnUiThread(new Runnable() {

                                        @Override
                                        public void run() {

                                            phoneHandler.sendEmptyMessage(MAKE_CALL);

                                        }
                                    });

                                }                               
                            }
                        }, 0, waitPeriod );


                    }

                    break;

                }

                case MAKE_CALL : {

                    Log.i("AutoVT","In the case MAKE_CALL");

                    Intent callIntent = new Intent(Intent.ACTION_CALL_PRIVILEGED,Uri.fromParts("tel", number,null));

                    callIntent.putExtra("videocall", true);

                    callIntent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP| Intent.FLAG_ACTIVITY_NEW_TASK);

                    getApplicationContext().startActivity(callIntent);

                    break;
                }

                case END_CALL :{

                    Log.i("AutoVT","In the case END_CALL");

                    Intent callEndIntent = new Intent();

                    callEndIntent.setAction("com.android.phone.END");

                    sendBroadcast(callEndIntent);

                    break;
                }

            }

        }

    };

}

XML manifest

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.pack"
      android:versionCode="1"
      android:versionName="1.0">


    <application android:icon="@drawable/icon" android:label="@string/app_name">
        <activity android:name=".AutoVT"
                  android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

    </application>
</manifest>
  • 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-25T20:58:39+00:00Added an answer on May 25, 2026 at 8:58 pm
    1. go to your android-sdk/tools directory.
    2. go in adb shell if you are in linux ./adb shell work for you.
    3. fire command dumpsys activity

    and if you want to it from eclipdse then,

     DDMS -> Devices -> select your device or Emulator -> look at that window you have find
     your current running process's package name.
    

    Thanks.

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

Sidebar

Related Questions

I have a Windows Forms application that I wrote that does some monitoring of
I have a process that currently runs in a Delphi application that I wrote
I'm VERY new to Linq. I have an application I wrote that is in
I have wrote an application that syncs two folders together. The problem with the
I have got a Wavecom Supreme GSM modem. I wrote a simple application that
I have a client that is running a custom VB 6 application they wrote
I have an application I wrote which has been running well for 4 years.
I have the following projects: MVC Console application Class library Windows forms application COM
I have an app that I wrote using C# .NET 4.0 in Visual Studio
I have created an application that does the following: Make some calculations, write calculated

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.