Show activity like a dialog in Android

When we are developing an Android application, time to time we want to show dialog for messages, confirmations, user interactions, etc. There is a good topic from Google which is explain how can we create and use dialogs.

In project that we are working on nowadays, we have an activity that shows some information to user and has some function buttons for user interactions. Our customer wants this activity like a dialog. When user clicks save button on main activity, this activity will be shown like popup dialog and shows live data to user via continuously server communication. When we were thinking on a dialog solution, we have found a good and quick solution for this kind of cases.

Here is the tricky how can you show activity like a dialog without using dialog structure.

First, set activity theme as a Theme.Dialog in AndroidManifest.xml
<activity
    android:name=".LikeDialogActivity"
    android:theme="@android:style/Theme.Dialog" >
</activity>
After that, remove title from activity.
this.requestWindowFeature(Window.FEATURE_NO_TITLE);
And, we have an activity like a dialog.

47 comments:

Unknown said...

It's interesting that many of the bloggers your tips helped to clarify a few things for me as well as giving... very specific nice content.Android Training institute in chennai with placement | Android Training in chennai |Best Android Training in Velachery | android development course fees in chennai

Anonymous said...

Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging.
full stack developer training in annanagar

full stack developer training in tambaram

full stack developer training in velachery

vamsi chennupati said...

It is better to engaged ourselves in activities we like. I liked the post. Thanks for sharing.

selenium training in pune

Mounika said...

I am sure this post has helped me save many hours of browsing other related posts just to find what I was looking for. Many thanks!
python training institute in chennai
python training in Bangalore
python training institute in chennai

Unknown said...

Thanks for your informative article, Your post helped me to understand the future and career prospects & Keep on updating your blog with such awesome article.

Data Science training in Chennai
Data science training in bangalore
Data science online training
Data science training in pune

Unknown said...

I always enjoy reading quality articles by an individual who is obviously knowledgeable on their chosen subject. Ill be watching this post with much interest. Keep up the great work, I will be back
java training in chennai | java training in bangalore


java training in tambaram | java training in velachery

Sumaya Manzoor said...

Very informative, your writing style is totally different from other, keep continuing.
selenium Training in Chennai
Selenium Training Chennai
ios training institute in chennai
Digital Marketing Course in Chennai
.Net coaching centre in chennai
android classes in chennai
app development course in chennai

Unknown said...

click here for more details.

jefrin said...

Your very own commitment to getting the message throughout came to be rather powerful and have consistently enabled employees just like me to arrive at their desired goals.

Data warehouse training chennai | Data warehousing training chennai

Murali said...
This comment has been removed by the author.
Globalleads said...

Selenium Training Institutes In Bangalore
UI Development Training In Marathahalli

ramya said...

It’s great to come across a blog every once in a while that isn’t the same out of date rehashed material. Fantastic read.
Data science Course Training in Chennai |Best Data Science Training Institute in Chennai
RPA Course Training in Chennai |Best RPA Training Institute in Chennai

datasciencecourse said...

I feel very grateful that I read this. It is very helpful and very informative and I really learned a lot from it.

Digital marketing courses in Bangalore

Aruna said...

It's impressive to visit your site...Enjoying while Reading the Articles...This part of Information's are Helped a lot to me...Keep Going
Java training in chennai | Java training in annanagar | Java training in omr | Java training in porur | Java training in tambaram | Java training in velachery

saran said...

"Thanks for sharing this information with us...
Digital Marketing Training Course in Chennai | Digital Marketing Training Course in Anna Nagar | Digital Marketing Training Course in OMR | Digital Marketing Training Course in Porur | Digital Marketing Training Course in Tambaram | Digital Marketing Training Course in Velachery

"

Jayalakshmi said...

Thanks for sharing such informative guide on .Net technology. This post gives me detailed information about the .net technology. I am working as trainer in leading IT training academy offering Dot Net Training in Chennai and i use your guide to educate my students.




Dot Net Training in Chennai | Dot Net Training in anna nagar | Dot Net Training in omr | Dot Net Training in porur | Dot Net Training in tambaram | Dot Net Training in velachery

Rashika said...

Great post! Appreciative for such brilliant blog yours...!

Digital Marketing Training in Chennai | Certification | SEO Training Course | Digital Marketing Training in Bangalore | Certification | SEO Training Course | Digital Marketing Training in Hyderabad | Certification | SEO Training Course | Digital Marketing Training in Coimbatore | Certification | SEO Training Course | Digital Marketing Online Training | Certification | SEO Online Training Course

aravind said...

Thanks for Sharing This Article.It is very so much valuable content.developing an Android application, time to time we want to show dialog for messages, confirmations. "Nice blog I really appreciate your words,Nice post. It is really amazing and helpful.

DevOps Training in Chennai

DevOps Online Training in Chennai

DevOps Training in Bangalore

DevOps Training in Hyderabad

DevOps Training in Coimbatore

DevOps Training

DevOps Online Training

tejaswini said...

I actually find a fantastic post here. I'll be coming here. I've just posted your blog on my bookmark page. Thanks. Quality posts are the secret to welcoming tourists to the website, that's what this website offers.data science course

lavanya said...

Very Useful Information. keep sharing more information!!!

Java training in Chennai

Java Online training in Chennai

Java Course in Chennai

Best JAVA Training Institutes in Chennai

Java training in Bangalore

Java training in Hyderabad

Java Training in Coimbatore

Java Training

Java Online Training

surya said...

Thank you for the information. It is very useful and informative


angular js course in chennai

angular course in chennai

angular js online course in chennai

angular js course in bangalore

angular js course in hyderabad

angular js course in coimbatore

angular js course

angular js online course


swaroop said...

Really it as an awesome article...very interesting to read..You have provided an nice article....Thanks for sharing.

Web Designing Training in Chennai

Web Designing Course in Chennai

Web Designing Training in Bangalore

Web Designing Course in Bangalore

Web Designing Training in Hyderabad

Web Designing Course in Hyderabad

Web Designing Training in Coimbatore

Web Designing Training

Web Designing Online Training

radhika said...

Its really an Excellent post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog. Thanks for sharing....

AWS Course in Chennai

AWS Course in Bangalore

AWS Course in Hyderabad

AWS Course in Coimbatore

AWS Course

AWS Certification Course

AWS Certification Training

AWS Online Training

AWS Training


vivekvedha said...

I found this informative and interesting blog so i think so its very useful and knowledge able.I would like to thank you for the efforts you have made in writing this article.
acte chennai

acte complaints

acte reviews

acte trainer complaints

acte trainer reviews

acte velachery reviews complaints

acte tambaram reviews complaints

acte anna nagar reviews complaints

acte porur reviews complaints

acte omr reviews complaints

rocky said...

Great post i must say and thanks for the information. Education is definitely a sticky subject. However, is still among the leading topics of our time. I appreciate your post and look forward to more.

python training in bangalore

python training in hyderabad

python online training

python training

python flask training

python flask online training

python training in coimbatore


Revathi said...

The Truth About Natural-Born Talent. The science of skill acquisition has been the focus of a number of recent studies and books. As it turns out, we are born with very few, if any, natural talents and skills. Excellence is borne not of any particular innate ability, but of practice.thanks for sharing!!

Android Training in Chennai

Android Online Training in Chennai

Android Training in Bangalore

Android Training in Hyderabad

Android Training in Coimbatore

Android Training

Android Online Training

360DigiTMGNoida said...

Nice work... Much obliged for sharing this stunning and educative blog entry!
ai training in noida

shiva said...

Thanks for sharing the best knowladge for us,thanks again and keep it admin
Cyber Security Training Course in Chennai | Certification | Cyber Security Online Training Course | Ethical Hacking Training Course in Chennai | Certification | Ethical Hacking Online Training Course | CCNA Training Course in Chennai | Certification | CCNA Online Training Course | RPA Robotic Process Automation Training Course in Chennai | Certification | RPA Training Course Chennai | SEO Training in Chennai | Certification | SEO Online Training Course

EXCELR said...

"Thank you for sharing wonderful information with us.Really useful for everyone data scientist courses
"

jenani said...

Wonderful article, very useful and well explanation. Your post is extremely incredible. I feel really happy to have seen your webpage and look forward to so many more entertaining times reading here. Thanks once more for all the details.
Java Training in Chennai

Java Training in Velachery

Java Training inTambaram

Java Training in Porur

Java Training in Omr

Java Training in Annanagar

subathara said...

Its really an Excellent post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog.
Digital Marketing Training in Velachery

Digital Marketing Training in Tambaram

Digital Marketing Training in Porur

Digital Marketing Training in Omr

Digital MarketingTraining in Annanagar

Mayank Sharma Shweta Gaur said...

mypornvideos.pro/

Unknown said...

Nice Post. You are Share great post and keep posting.
Diabetes Management in Meerut
Google 360 Virtual Tour Services
top 10 cbse schools in meerut
software development company in Delhi NCR
Website Designer
Meerut Boy
SEO Solution India

360digiTMG Training said...

I feel really happy to have seen your webpage and look forward to so many more entertaining times reading here. Thanks once more for all the details.
business analytics course

data scientist course said...

I am sure that this is going to help a lot of individuals. Keep up the good work. It is highly convincing and I enjoyed going through the entire blog.
data scientist course in hyderabad

traininginstitute said...

A good blog always comes-up with new and exciting information and while reading I have feel that this blog is really have all those quality that qualify a blog to be a one.
digital marketing courses in hyderabad with placement

traininginstitute said...

I want to say thanks to you. I have bookmark your site for future updates.
data scientist course

Data Analytics Course in Dehradun said...

Impressive. Your story always bring hope and new energy. Keep up the good work. Data Science Course in Chennai

360DigiTMG said...

Great tips and very easy to understand. This will definitely be very useful for me when I get a chance to start my blog.
data scientist course in hyderabad

Ramesh Sampangi said...

Good information and informative content. Keep posting more blogs with us. Thank you.
Data Science Certification in Hyderabad

traininginstitute said...

This is an awesome motivating article. I am practically satisfied with your great work.You put truly extremely supportive data. Keep it up. Continue blogging. Hoping to perusing your next post
data science training in malaysia

Swarnalatha said...

"If you are also one of them and want to know what the companies demand from the data scientists to do in their organization, you have come to the right place.data science course in kolkata"

Anonymous said...

Learn to perform Data Mining, Data Cleansing, Data Exploring, Feature Engineering, Prediction Model, and Data Visualization with the Data Science coaching in Bangalore. Learn to extract business-focused insights from data with the help of mathematics and statistics. Hone your skills with the combined pedagogy approach in classrooms and extensive student-faculty interaction that helps identify students for our internship program giving you the feel of a real-world professional environment.

Best Data Science Training institute in Bangalore

Anonymous said...

The new wave of innovation that is changing the way people do business is called data science. Gain expertise in organizing, sorting, and transforming data to uncover hidden patterns Learn the essential skills of probability, statistics, and machine learning along with the techniques to break your data into a simpler format to derive meaningful information. Enroll in Data science in Bangalore and give yourself a chance to power your career to greater heights.

Data Science Course in Bangalore

dscs said...

kralbet
betpark
tipobet
slot siteleri
kibris bahis siteleri
poker siteleri
bonus veren siteler
mobil ödeme bahis
betmatik
AFV4

vaku said...

betmatik
kralbet
betpark
mobil ödeme bahis
tipobet
slot siteleri
kibris bahis siteleri
poker siteleri
bonus veren siteler
İX48F

MyLearnNest said...

SAP Basis is a form of system administration. Whereas administrators are responsible for ensuring that SAP application servers are deployed and configured correctly, they also manbest-sap-basis-training-in-hyderabad/age the entire landscape and its seamless functioning.


Post a Comment