android: getting the id of the views shown on layout that is being shown as an alert box on another layout

I need to show an alert box of some particular layout on which i have used some textviews and imageviews and imagebuttons. Now my problem is this when i get the id of the imageviews and imagebuttons that are to be put on the alertbox it is returned null. How shall i resolve this issue? Can anyone help me over this?

Thanks& Regards

Answers


i know the answer already) instead of using

loginEdit=(EditText)findViewById(R.id.usernameEdit);

in the onCreate method use

loginEdit=(EditText)textEntryView.findViewById(R.id.usernameEdit);

where you inflate your view


Need Your Help

blank page on navigation

android mobile cordova qooxdoo

On certain android devices my mobile app built using phonegap and using qooxdoo 3.0.1 shows a blank page with only the header on back navigation. I see the same behavior on using the mobile demo si...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.