[android-developers] Re: Using HttpClient

2010-08-24 Thread Bret Foreman
Good, I made the change. It turns out that StringEntity has a getContentLength method, just as you surmised. I'm still getting a ClientProtocolException, though. I have wireshark installed and I also have the -tcpdump flag set in my AVD. The AVD is dumping a cap file which wireshark opens, though I

[android-developers] Re: Using HttpClient

2010-08-24 Thread Bret Foreman
So I added the following lines to create the header: httppost.setHeader("Content-Type", "application/xml"); httppost.setHeader("Content-Length", ""); httppost.setHeader("SERVER-ACTION", API_AddField ); I didn't do anything about adding the POST line

[android-developers] Re: Problem with SAX parsing

2010-08-24 Thread Bret Foreman
Another vote for XmlPullParser. It rocks. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@

[android-developers] Re: USB ports on N1 - usable?

2010-08-24 Thread Bret Foreman
It's a whole lot easier to develop for Bluetooth. Here's a well developed kit for experimenting with it: http://www.amarino-toolkit.net/ As long as it doesn't need high bandwidth, you can find a Bluetooth version of just about any peripheral. -- You received this message because you are subscri

[android-developers] Using HttpClient

2010-08-24 Thread Bret Foreman
I haven't used the Java HttpClient before and the documentation is confusing. Say I want to send a POST to the URL "https://domain/foo/ bar". I'm accessing a server with an XML API that defines the message to send like this: POST https://domain/foo/bar Content-Type: application/xml Content-Length:

[android-developers] Re: What am I looking for

2010-08-24 Thread Bret Foreman
Mark Murphy's book on advanced Android programming has a whole chapter on this: http://www.amazon.com/gp/product/0981678017/ref=oss_product -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-develo

[android-developers] Re: Paid vs Free, My Early Experience

2010-08-20 Thread Bret Foreman
Ladies and Gentlemen, I think we've discovered a business opportunity in the Android Market. Someone needs to write a book about how to market Android apps. Maybe it could be a little broader and include iPhone app marketing too with comparisons and contrasts between the two markets. -- You rece

[android-developers] Re: Paid vs Free, My Early Experience

2010-08-20 Thread Bret Foreman
Locale is an Anrdoid app that costs $10 and is in the 10,000-50,000 downloads category. Their blurb in the Marketplaces is well under the 325 character limit. Their technology is not rocket science. Their marketing is. > So Locale is what, an app judges use to identify the person who's phone is >

[android-developers] Re: Paid vs Free, My Early Experience

2010-08-20 Thread Bret Foreman
There's a reason why advertising copy is short. Research going back more than 50 years has shown that shoppers spend only a few moments evaluating a product. An application that costs no more than a box of cereal should not have any more descriptive text than a box of cereal. An app that costs as m

[android-developers] Re: Strange delays when doing wifi scans

2010-08-19 Thread Bret Foreman
Are you seeing anything interesting coming out of logcat during the long scan cases? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, se

[android-developers] Re: Selling a project? Is it possible?

2010-08-18 Thread Bret Foreman
Does the game make money in some way, either through initial purchase fees, subscription, or advertising? Anyone purchasing the IP would want to see a case for how they would recoup their investment and make a profit. -- You received this message because you are subscribed to the Google Groups "A

[android-developers] Re: Can Java code be replaced with XML

2010-08-18 Thread Bret Foreman
Sure. It's shown below, a little modified for your case: public class FiftyButtonActivity extends Activity { // Button IDs final static private int[] buttonIDs = { R.id.BID1, R.id.BID2 , ...

[android-developers] Re: Can Java code be replaced with XML

2010-08-17 Thread Bret Foreman
I have some Java code that does this pretty cleanly. I re-use the same listener for all the buttons and just switch on the button ID to deliver the different actions for each one. Let me know if you'd like me to post it. -- You received this message because you are subscribed to the Google Groups

[android-developers] Re: Set a panel transparent

2010-07-24 Thread Bret Foreman
Try Drawable.setAlpha where a value of 0 is fully transparent and 255 is fully occulting. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this grou

[android-developers] Re: Accelerometer not working when screen turns off

2010-07-16 Thread Bret Foreman
My application will run extensively in partial wakelock mode and I'm very curious to see what standby power consumption consequences that has for various popular phones. Maybe we should start a thread just for that purpose where people can post their observations of battery life in this mode for va

<    1   2   3   4   5   6