[android-beginners] Submitting user login details to a web site
Hi, I have a login page to login to a site they provide XML and SOAP apis for subitting the authetivcting data. How can i login to a web site from my android application. say I m creating an application in which i want to login to a site, say orkut or any shopping site. how can i submit the userid and password to that site and validate it... thanks and regards ANUR --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: custom component in a list
I don't know how you have created your Adapter for supplying to your ListView subclass. I am assuming that you implemented an Adapter subclass that overrode getView() and is returning your row objects on demand, perhaps instantiated via ViewInflate. arrayAdapter1= new ArrayAdapter (this, R.layout.component, R.id.name); is how I initialize my adapter. I do not override any methods. "component" is my custom component and "name" is a textView that takes the value. I tried: absoluteLayout1 is the name of the absolutelaoyout in component.xml AbsoluteLayout absoluteLayout1= (AbsoluteLayout)this.findViewById(R.id.absoluteLayout1); deleteButton1= (Button)absoluteLayout1.findViewById(R.id.deleteButton); AND (as said earlier) also tried deleteButton1= (Button)customComponent.findViewById(R.id.deleteButton); customComponent is initialized as: customComponent= new ConversationListView(this); --OR-- customComponent= (ConversationListView)this.findViewById(R.layout.component); it didn't work. Sylvester --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: custom component in a list
Sylvester Steele wrote: > arrayAdapter1= new ArrayAdapter (this, R.layout.component, > R.id.name); > > is how I initialize my adapter. I do not override any methods. > > "component" is my custom component and "name" is a textView that takes > the value. That may make things more complicated for getting at your buttons. You have two choices that I can think of: 1. Make a subclass of ArrayAdapter, override getView(), and use that to create your row Views, and take that opportunity to set your listener on your buttons. 2. Sometime, walk the rows (child views) of the ListView. I don't know when that would be safe. getChildCount() and getChildAt() will probably work to give you your row Views, though I haven't tried this. And if Android for some reason does not recycle your row Views when the list scrolls, you would somehow need to trap the scroll event and check all the rows to make sure your buttons have their listeners. I'm a fan of option #1, but that's just me. Your current implementation (supplying an alternate layout resource ID in the adapter constructor) probably works just fine for rows that you do not need to modify, where Android can handle everything for you. -- Mark Murphy (a Commons Guy) http://commonsware.com Warescription: All titles, revisions, & ebook formats, just $35/year --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Bug in AutoComplete4 example?
Hi Friends, After setting the correct permissions(READ_CONTACTS) and adding some contacts in the emulator, when i am running the AutoComplete4 example provided in the APIDemos, i found that the auto-complete functionality is not working. No matter what i type, it is showing me all the names of the contacts in the drop down list, which def is not the required functionality. Did you also noticed the same flaw in the functionality or am i missing something? Kindly suggest. Thanks and regards, Ashok --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Install process on real handsets
I've had some fun doing some tutorials with Android, it looks supersweet :) One question though, how are applications "installed" on real handsets? Is it similar to J2ME, where you enter a URL in your browser and installment goes from there, or is it necessary to compile the OS with the new program - as the Emulator seems to be doing? --petter --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: custom component in a list
Mark, a couple of questions: 1. I looked at the getView funtcion:ViewgetView(int position, View convertView, ViewGroup parent). I can understand that position refers to the particular element on the list and ViewGroup parent to the custom view I am using for the list items. But what does View convertView stand for? 2. how am I supposed to specify ViewGroup parent? send an object of my custom component class? 3. Make a subclass of ArrayAdapter, override getView(), and use that to create your row Views, and take that opportunity to set your listener on your buttons. Please elaborate about how this should be done. Sylvester --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: custom component in a list
> 1. I looked at the getView funtcion: ViewgetView(int position, > View convertView, ViewGroup parent). > > I can understand that position refers to the particular element on > the list and ViewGroup parent to the custom view I am using for the > list items. But what does View convertView stand for? If convertView is null, ignore it. If convertView is not null, it is a View you previously created in getView() being returned to you for potential recycling. If you only are using one type of row View, then you can cast convertView to whatever your rows are (e.g., LinearLayout) and repopulate the existing widgets, rather than using ViewInflate or manual construction to create new widgets again. Creating widgets and inflating layout XML is a relatively time-consuming process, so convertView gives you a means of optimizing performance a bit. For the short term, I would ignore convertView, get the rest of getView() working the way you want, then consider making use of convertView. > 3. Make a subclass of ArrayAdapter, override getView(), and use that > to > create your row Views, and take that opportunity to set your listener > on > your buttons. > > Please elaborate about how this should be done. Here are a couple of threads on this topic I've contributed to over the past few months: http://groups.google.com/group/android-developers/browse_thread/thread/925bd3f4c1c3aefb http://groups.google.com/group/android-developers/browse_frm/thread/355d3cdfa1c787b8/2009b42cad4537ce?lnk=gst&q=commonsware#2009b42cad4537ce List6.java in the ApiDemos in the SDK is one of the closer examples to this, and I'm sure there are any number of tutorials over on anddev.org that cover it as well. And I'll have a series of blog posts out on AndroidGuys about this, starting Monday. And I'll have a new section on this in version 1.1 of _The Busy Coder's Guide to Android Development_, which should be available to subscribers by August 1st. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ -- Available Now! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---