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 6181513
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T01:02:07+00:00 2026-05-24T01:02:07+00:00

I am developing the chat application.I want to show the pop up view when

  • 0

I am developing the chat application.I want to show the pop up view when some one send message to user like this http://code.google.com/p/android-smspopup/.
there is also reference picture https://market.android.com/details?id=com.blntsoft.emailpopup

Any one any idea how it works?it will show in native application or in other app also.please provide me the link for reference.I am using the service for web services calls.so service will invoke the pop up view.

Thank you.

  • 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-24T01:02:08+00:00Added an answer on May 24, 2026 at 1:02 am

    As my knowledge you can not open a dialog from Service.
    But you have one option to open popup window from service for that

    1) Make a Layout of popup window.

    2) Create on activity and set layout as content view in this activity

    3) In manifest you have to write this

     <activity android:theme="@android:style/Theme.Dialog">
    

    4) From service you have to call this activity when you want to open popup.But keep it mind that from service you have to set flag of intent as

    intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); 
    

    now you can able to open your activity as popup window.

    EDIT

    1) Layout main.xml

    <?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"
        >
    <EditText  android:id="@+id/web"
        android:layout_width="fill_parent" 
        android:layout_height="wrap_content" 
        />
    <EditText 
        android:layout_width="fill_parent" 
        android:layout_height="wrap_content" 
        />
        <EditText 
        android:layout_width="fill_parent" 
        android:layout_height="wrap_content" 
        />
    </LinearLayout>
    

    2) test2.java which will act as Popup

    package com.example.AutocompleteTextView;
    
    import android.app.Activity;
    import android.content.Intent;
    import android.os.Bundle;
    
    public class Test2 extends Activity{
    
        @Override
        protected void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.main);
        }
    }
    

    3) Manifest.xml file

    <?xml version="1.0" encoding="utf-8"?>
    <manifest xmlns:android="http://schemas.android.com/apk/res/android"
        package="com.example.AutocompleteTextView" android:versionCode="1"
        android:versionName="1.0">
        <application android:icon="@drawable/icon" android:label="@string/app_name">
            <activity android:name=".CustomAutoComplete" android:label="@string/app_name">
            </activity>
    
            <activity android:name="test1">
                <intent-filter>
                    <action android:name="android.intent.action.MAIN" />
                    <category android:name="android.intent.category.LAUNCHER" />
                </intent-filter>
            </activity>
            <activity android:name="Test2" android:theme="@android:style/Theme.Dialog">
            </activity>
            <service android:name="MyService"></service>
        </application>
    </manifest> 
    

    4) Service MyService.java

    package com.example.AutocompleteTextView;
    
    import android.app.Activity;
    import android.app.AlertDialog;
    import android.app.Service;
    import android.content.Context;
    import android.content.DialogInterface;
    import android.content.Intent;
    import android.os.IBinder;
    
    public class MyService extends Service{
    
        @Override
        public void onCreate() {
            super.onCreate();
        }
    
        @Override
        public void onStart(Intent intent, int startId) {
            super.onStart(intent, startId);
            Intent intent1 = new Intent(this, Test2.class);
            intent1.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
            startActivity(intent1);
    
    
        }
        @Override
        public IBinder onBind(Intent intent) {
            // TODO Auto-generated method stub
            return null;
        }
    
    }
    

    this is the activity from which i am starting a service

    package com.example.AutocompleteTextView;
    
    import java.lang.reflect.InvocationTargetException;
    import java.lang.reflect.Method;
    
    import android.app.Activity;
    import android.content.Intent;
    import android.os.Bundle;
    import android.webkit.WebView;
    import android.widget.FrameLayout;
    
    public class test1 extends Activity {
    
    
        @Override
        public void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.main); 
            startService(new Intent(getApplicationContext(), MyService.class));
            finish();
    
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing a chat application. And i want to have pop up window
I m developing an Android chat application where in user will be provided with
I am developing a Cocoa application which involves a chat element. One approach I've
We are developing chat application and we want to fetch the IP address of
I am developing an chat application. The message display is all html, so html
I am developing one chat application on c#,and on that we use system.timer.timer for
i am developing chat related similar application i am using backgrouund synchronous class some
I am using Windows 7 and developing a chat-like application with Visual Studio 2010.
i am developing chat application in android... i got some exception when i run
I'm developping a chat application. I want to keep everything logged into a table

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.