[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-04-02 Thread Breezy
Do you see how many people are requesting to trade a Droid for an N1?
Nobody is going to trade.  Good luck with it, but mine is already on
eBay and I'll be buying an N1.

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe, reply using remove me as the subject.


[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-03-30 Thread Breezy
Received my Droid in Alabama today.

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words REMOVE ME as the subject.


[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-03-29 Thread Breezy
Oh geez, let me throw this in here...

Alabama - still waiting.


I've got patience, plenty of it, but when I hear a step truck drive by
I perk up.  ;)
BTW, FedEx said they're not tracking anything coming to my location
(yet).

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words REMOVE ME as the subject.


[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-03-17 Thread Breezy
Maybe.  Declared dead, but nonetheless still missing.  ;)

On Mar 17, 9:23 am, Maps.Huge.Info (Maps API Guru)
cor...@gmail.com wrote:
 This just in...

 Jimmy Hoffa is still dead.

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-03-15 Thread Breezy
Congrats on receiving it!  Regardless of what you received it for is
pretty cool to know.

Still waiting on mine...  No hurry, but my G1 is slower than molasses
and I'm running Cyan!  lol



On Mar 15, 9:19 am, f_heft delphik...@gmail.com wrote:
 I just received my Nexus One via FedEx - thank you, Google! :)

 Btw: No special branding or anything on the phone itself , it's
 exactly like the one you can buy :)
 And I got mine from the Netherlands (I'm living in Germany) and it was
 shipped on March 12th (for those of you who are still waiting).

 On 3 Mrz., 00:53, Larry lar...@gmail.com wrote:

  Dear all,

  I just received an email about Device Seeding Program for Top Android
  Market Developers:

  Subject: Device Seeding Program for Top Android Market Developers
  From: android-market-seed...@google.com

  Due to your contribution to the success of Android Market, we would
  like to present you with a brand new Android device as part of our
  developer device seeding program. You are receiving this message
  because you're one of the top developers in Android Market with one or
  more of your applications having a 3.5 star or higher rating and more
  than 5,000 unique downloads.

  In order to receive this device, you must click through to this site,
  read the terms and conditions of the offer and fill out the
  registration form to give us your current mailing address so that we
  can ship your device.

  You will receive either a Verizon Droid by Motorola or a Nexus One.
  Developers with mailing addresses in the US will receive either a
  Droid or Nexus one, based on random distribution. Developers from
  Canada, EU, and the EEA states (Norway, Lichtenstein), Switzerland,
  Hong Kong, Taiwan, and Singapore will receive a Nexus One. Developers
  with mailing addresses in countries not listed above will not receive
  a phone since these phones are not certified to be used in other
  countries.

  We hope that you will enjoy your new device and continue to build more
  insanely popular apps for Android!

  The email is from Google but I am still doubting somehow. Is this a
  spam? Any other developers receive this emails before?

  Thanks.

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-03-06 Thread Breezy
Especially boxes the size of kilos of drugs.  lol

I'm sure 2-4 weeks is purely for the sake of giving us a timeline...
It may be 4-5 days, but if they said that and for whatever reason you
didn't get it, someone might throw a fit.

We see it all the time...  Google promised me and they didn't keep
their promise!  I'm getting an online petition signed because that
fixes everything, then I'm going to sue and own Google!  lol well you
get the gist...  2-4 weeks is probably playing it safe.

On Mar 6, 6:41 am, Thomas Riley tomrile...@googlemail.com wrote:
 Yes, im sure customs will want to unbox each one and have a play. A
 large amount of boxes of the same size branded as gifts would be
 rather suspicious though!

 On Mar 6, 12:12 pm, David Horn pga...@gmail.com wrote:

  My confirmation just turned up.  Thanks Google!

  Though anticipate a long and expensive delay at UK customs.  :-(

  Dave.

  On Mar 6, 10:51 am, Rootko roo...@gmail.com wrote:

   Just got mine confirmation email, but unfortunately they removed
   leading zero in my zip code, so I've responded to change it. Hopefully
   this won't be a problem and I'll enjoy my Nexus One soon (I'm in EU).

   Hooray, thanks Google!

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-03-06 Thread Breezy
I understand that - however, my android device is my primary
telephonic communication (and some), I just happened to write a few
killer apps on the side.  lol  Apps that were useful to me, figured
others might benefit.

So I see Google's point and ultimate goal...  But hey, if I'm going to
have a capable device, i'm going to use it daily too.  ;)


On Mar 6, 8:56 pm, Mike Novak michael.nova...@gmail.com wrote:
 I don't follow. I have multiple phones that are gsm without sim cards
 used for testing and operate just fine on wifi. If you can't use the
 phone as your primary phone then at least you'll gain the benefit of
 getting a great device to test stuff on.

 There's no sense of complaining the phone is useless to you because its
 really not, you have a 2.x phone to test software on :)

 /rant

 Mike

 On 03/06/2010 09:13 PM, anton.slut...@gmail.com wrote:

  Do Verizon phones even load without being hooked up to Verizon?  Sorry
  for being ignorant.  Have never had Verizon and not huge on mobile
  protocols.  I know a gsm phone wont let you past the boot prompt
  without a valid sim card.

  On Mar 6, 9:04 pm, Quartertonequartert...@gmail.com  wrote:

  Well, I don't know about anyone else, but I would prefer to have a
  device that I can use with my current plan. I have T-mobile service
  with a MyTouch, so I'm definitely hoping for a Nexus One.

  For any developers in the New Orleans area, I have a proposition:
  If you're hoping for a Droid and you get a Nexus One, i'll gladly
  trade you for it (that is, if i end up getting a Droid). Just keep me
  in mind and contact me in 2-4 weeks when you get your device if youre
  interested.

  cheers

  On Mar 6, 6:15 pm, niko20nikolatesl...@yahoo.com  wrote:

  Geez people. Who cares if u can't use the phone if its on Verizon.
  You can develop on any google phone it doesn't need to ha e actual
  service unless u are writing app that uses the phone or such. But for
  game writing it would be fine, etc. Actually for example I already
  have a Droid but even if I got a nexus one I couldn't use it much here
  since its GSM and I don't get T-Mobile in my area. But I can still
  test the apps I make on it.

  On Mar 6, 7:01 pm, Mariano Kampmariano.k...@gmail.com  wrote:

  What kind of confirmation is that? Is that the first mail or a 
  confirmation
  after you went to their website?

  I am asking, because I haven't got any email even though I have an app in
  the Market that would qualify. Should I start to worry or are the first
  mails sent out incrementally?

  On Sat, Mar 6, 2010 at 1:10 PM, Thomas 
  Rileytomrile...@googlemail.comwrote:

  I also have the confirmation email.
  It says they will arrive in 2-4 weeks, but can it really be so slow?
  Or is that use an over estimate?

  On Mar 6, 10:51 am, Rootkoroo...@gmail.com  wrote:

  Just got mine confirmation email, but unfortunately they removed
  leading zero in my zip code, so I've responded to change it. Hopefully
  this won't be a problem and I'll enjoy my Nexus One soon (I'm in EU).

  Hooray, thanks Google!

  --
  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...@googlegroups.comandroid-developers%2Bunsubs
   cr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-03-05 Thread Breezy
Just got mine too.  Wonder what device I'll get.  I wont be upset over
a droid because afterall it is free, but I'll sell it and get a Nex
1.  I don't have Vz.

On Mar 5, 8:18 pm, Mario Zechner badlogicga...@gmail.com wrote:
 I just received the confirmation e-mail. Seems like my new shiny Nexus
 One is on its way! Thank you google! Here's the full e-mail (minus my
 personal data)

 Dear Mario,

 We’ve received your information for the Android Market Device Seeding
 Program and have successfully validated the Google Order Number from
 your developer account.

 Your information will now be sent to our shipping partner for order
 processing. Just to confirm, the information we received from you was:

 Badlogic Games

 XXX my personal data XXX

 If you need to make any changes to your information above, please
 contact us at android-market-seed...@google.com as soon as possible.
 Otherwise, you should receive your phone in 2-4 weeks!

 On behalf of the Android team,
 Thanks, and happy coding!

 On 6 Mrz., 02:44, Seni Sangrujee sangru...@gmail.com wrote:

  On Mar 5, 2:52 pm, bryan browne.al...@gmail.com wrote:

   Did anyone else fill out the form with their personal email address

  Yeah, I did the same thing.  I figured that my personal email address
  was associated with my market order id that I used to purchase the dev
  fee.  But then later I noticed that the Seeding email was sent to my
  generic publisher address.

  We'll have to check in and commiserate with each other in a month if
  everyone is receiving their phones but us. :)

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-03-05 Thread Breezy
Cleverly they said shipping parters instead of HTC or Motorola.
lol  I wish they would've said.

On Mar 5, 9:00 pm, Seni Sangrujee sangru...@gmail.com wrote:
 Whew!  Just got my confirmation email too.  I guess I didn't screw up
 filling out the form after all.

 -seni

 On Mar 5, 6:47 pm, Greg Donald gdon...@gmail.com wrote:

  On Fri, Mar 5, 2010 at 8:18 PM, Mario Zechner badlogicga...@gmail.com 
  wrote:
   I just received the confirmation e-mail.

  Same here.  Yay.

  --
  Greg Donald
  destiney.com | gregdonald.com

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Device Seeding Program for Top Android Market Developers

2010-03-02 Thread Breezy
Go to Google Checkout (not for sellers, but for buyers!) and go to
your order when you paid the $25 to put apps in the market...  That
order number is about a 15 digit (or so) number.  Use that.

Heh, I'm old schoolin' it with my G1 my wife got me wayyy back.
I've already convinced a good handful of friends to join Android and
they love it.  In fact the other day I was with a buddy when he bought
his first Android phone and I said to the Sprint lady that Google
should pay me commission!  Ha, don't we wish.

I'm happy with a Droid or N1 - whatever, I'm not picky.  Thnx Google!


On Mar 2, 7:17 pm, wmhtet g1.wmh...@gmail.com wrote:
 Google Order Number * For verification purposes, please enter the
 order number listed on your receipt when you registered as an Android
 Developer on Checkout. You can look up your Google Order Number in
 your order history when you log into the Checkout account you used to
 register. We cannot verify your authenticity without this
 information.

 Is it an order number for Android Dev phone? If not, I am a bit
 clueless with Google Order Number thing.

 On Mar 2, 4:46 pm, Roman Nurik romannu...@google.com wrote:

  Folks, the email is NOT a fake. We will look into the email issues.

  Roman Nurik
  Android Developer Relations, Google

  NOTE: please do not send me email directly about this.

  On Mar 2, 4:43 pm, Mark Anacker closecr...@gmail.com wrote:

   Well, if nothing else, Google should now be on the lookout for
   potential fraudulent activity involving developer account and order
   numbers.  Especially originating out of China :-)  Although it would
   be nice to think that they would have someone in a Security role who
   could jump on this sort of thing, and provide some official
   information.  But their warehouses full of geniuses are probably much
   too busy for such trivial matters... :-)

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] How can I draw a simple shape with shapedrawable?

2010-02-09 Thread Breezy
I've looked for a tutorial on it, but I can't figure out how to do
it...  For starters, and I can dig some more from there, how do I have
a simple program draw a simple rectangle?  Nothing else, no frills,
just draw and display a rectangle?

I was thinking for the layout I would use ImageView, then use
ShapeDrawable from there, but I'm not so sure if that's correct.

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How can I draw a simple shape with shapedrawable?

2010-02-09 Thread Breezy
Hmmm, still a little confused...  Are you saying to utilize the
ImageView, but draw on it as if it were a canvas?

On Feb 9, 6:31 pm, Jason Proctor jason.android.li...@gmail.com
wrote:
 one way is to override your View's draw() and then do stuff with the
 Canvas instance passed in. the drawLine() etc methods are in Canvas.



 I've looked for a tutorial on it, but I can't figure out how to do
 it...  For starters, and I can dig some more from there, how do I have
 a simple program draw a simple rectangle?  Nothing else, no frills,
 just draw and display a rectangle?

 I was thinking for the layout I would use ImageView, then use
 ShapeDrawable from there, but I'm not so sure if that's correct.

 --
 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...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 --
 jason.vp.engineering.particle

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How can I draw a simple shape with shapedrawable?

2010-02-09 Thread Breezy
Okay, I see what you're talking about, but I guess my question is how
do I put that into my ImageView that's in my XML file?

On Feb 9, 7:02 pm, schwiz sch...@gmail.com wrote:
 You make your own class that inherits from View and in the onDraw
 method you call canvas.drawCircle, drawLine, drawPath, etc

 On Feb 9, 6:47 pm, Breezy mbre...@gmail.com wrote:

  Hmmm, still a little confused...  Are you saying to utilize the
  ImageView, but draw on it as if it were a canvas?

  On Feb 9, 6:31 pm, Jason Proctor jason.android.li...@gmail.com
  wrote:

   one way is to override your View's draw() and then do stuff with the
   Canvas instance passed in. the drawLine() etc methods are in Canvas.

   I've looked for a tutorial on it, but I can't figure out how to do
   it...  For starters, and I can dig some more from there, how do I have
   a simple program draw a simple rectangle?  Nothing else, no frills,
   just draw and display a rectangle?

   I was thinking for the layout I would use ImageView, then use
   ShapeDrawable from there, but I'm not so sure if that's correct.

   --
   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...@googlegroups.com
   For more options, visit this group at
   http://groups.google.com/group/android-developers?hl=en

   --
   jason.vp.engineering.particle

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: WebView

2010-02-09 Thread Breezy
Does your layout XML look like this?


LinearLayout xmlns:android=http://schemas.android.com/apk/res/
android
android:layout_width=fill_parent
android:layout_height=fill_parent
android:orientation=vertical

WebView
android:id=@+id/webview
android:layout_width=fill_parent
android:layout_height=fill_parent
android:scrollbars=none
/

/LinearLayout

On Feb 9, 8:59 pm, Saurabh Lodha saurabh.comp...@gmail.com wrote:
 Hi,

 I am using the following code to display a WebView in my Android 2.x
 application. However this does not display anything on screen.

 public class WebViewTest extends Activity {
         WebView webview;
         String TAG = WebViewTest;

     /** Called when the activity is first created. */
     @Override
     public void onCreate(Bundle savedInstanceState) {
         try {
                 super.onCreate(savedInstanceState);
                 setContentView(R.layout.main);

                 webview = (WebView) findViewById(R.id.webview);
                 webview.getSettings().setJavaScriptEnabled(true);
                 webview.loadUrl(http://www.google.com;);

         } catch (Exception e) {
                 Log.w(TAG, e.getMessage());
         }
     }

 }

 Any ideas?

 Thanks,
 Saurabh

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Aligning webview and buttons...

2010-02-02 Thread Breezy
Anyone have anything?

On Feb 1, 8:37 pm, Breezy mbre...@gmail.com wrote:
 I want to put two buttons (not HTML) at the top of my view and the
 webview below it...  Almost like frames in HTML, except the top frame
 is android XML code, not an HTML frame.  I can get it somewhat like I
 want, but whenever the HTML page is too big it goes up and under my
 buttons, but at the bottom of the buttons I want the top of the
 webview to start, all the time.  And the webview can scroll if
 necessary.

 Here's what I got, but it's not doing exactly what I was hoping
 for

 RelativeLayout
         xmlns:android=http://schemas.android.com/apk/res/android;
         android:layout_width=fill_parent
         android:layout_height=fill_parent

         RelativeLayout
                 android:id=@+id/webviewbox
                 android:layout_width=fill_parent
                 android:layout_height=wrap_content
                 android:layout_alignParentBottom=true
         

             WebView
         android:id=@+id/webview
         android:layout_width=wrap_content
         android:layout_height=wrap_content
         android:scrollbars=none
     /

         /RelativeLayout
                 Button
                         android:id=@+id/button1
                         android:text=B1
                         android:layout_height=wrap_content
                         android:layout_width=100px
                         android:layout_alignParentLeft=true
                 /
                 Button
                         android:id=@+id/button2
                         android:text=B2
                         android:layout_height=wrap_content
                         android:layout_width=100px
                         android:layout_alignParentRight=true
                 /

 /RelativeLayout

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Aligning webview and buttons...

2010-02-01 Thread Breezy
I want to put two buttons (not HTML) at the top of my view and the
webview below it...  Almost like frames in HTML, except the top frame
is android XML code, not an HTML frame.  I can get it somewhat like I
want, but whenever the HTML page is too big it goes up and under my
buttons, but at the bottom of the buttons I want the top of the
webview to start, all the time.  And the webview can scroll if
necessary.

Here's what I got, but it's not doing exactly what I was hoping
for


RelativeLayout
xmlns:android=http://schemas.android.com/apk/res/android;
android:layout_width=fill_parent
android:layout_height=fill_parent

RelativeLayout
android:id=@+id/webviewbox
android:layout_width=fill_parent
android:layout_height=wrap_content
android:layout_alignParentBottom=true


WebView
android:id=@+id/webview
android:layout_width=wrap_content
android:layout_height=wrap_content
android:scrollbars=none
/

/RelativeLayout
Button
android:id=@+id/button1
android:text=B1
android:layout_height=wrap_content
android:layout_width=100px
android:layout_alignParentLeft=true
/
Button
android:id=@+id/button2
android:text=B2
android:layout_height=wrap_content
android:layout_width=100px
android:layout_alignParentRight=true
/

/RelativeLayout

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Screenshot of background apps current state

2010-01-27 Thread Breezy
Okay, I can obtain a list of apps running in the background...  like a
task manager.  But now I want to take a screen shot of the app and
what state it's currently in.  Is this possible?

For example, I want to display a screenshot of an email if gmail is
opened in the background and has an email open.  Is this possible?

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Getting a TextView to span the length of the screen

2010-01-26 Thread Breezy
@ Brion, that worked perfectly!  Thanks!

@ Sasikumar, that was absolutely pointless.  You just placed a link
pointing to your website and is general, not close at all to what I
was looking for and you know that.  That is purely a spam message just
like the rest of your posts...  If someone asks something about
buttons, you point a link to your website talking about buttons albeit
has nothing to do with the question originally asked.  Stop spamming.



On Jan 19, 8:17 am, Brion Emde brione2...@gmail.com wrote:
 This appears to work, at least in Eclipse:

 ?xml version=1.0 encoding=utf-8?
 RelativeLayout
         xmlns:android=http://schemas.android.com/apk/res/android;
         android:layout_width=fill_parent
         android:layout_height=fill_parent

         RelativeLayout
                 android:id=@+id/buttons
                 android:layout_width=fill_parent
                 android:layout_height=wrap_content
                 android:layout_alignParentBottom=true
         
                 Button
                         android:id=@+id/Button1
                         android:text=Button1
                         android:layout_height=wrap_content
                         android:layout_width=wrap_content
                         android:layout_alignParentLeft=true
                 /
                 Button
                         android:id=@+id/Button2
                         android:text=Button2
                         android:layout_height=wrap_content
                         android:layout_width=wrap_content
                         android:layout_alignParentRight=true
                 /
         /RelativeLayout
         TextView
                 android:text=TextView
                 android:id=@+id/TextView
                 android:layout_height=wrap_content
                 android:layout_width=fill_parent
                 android:layout_alignParentTop=true
                 android:layout_above=@id/buttons
         /

 /RelativeLayout

 But I guess you tried that.

 On Jan 18, 6:39 am,Breezymbre...@gmail.com wrote:

  I've a textview I want to span almost the length of the screen, then 2
  buttons at the bottom.

  Right now I'm using a relative layout with a textview and two buttons
  and I can almost get it the way I want but the only thing is the
  textview isn't as long as I want it.  I want it to be as long as
  necessary for whatever handset is using it.  So a constant pixel
  amount is out.

  Lets see if this will work.

  -
  |                                             |
  |                                             |
  |                                             |
  |                                             |
  |                                             |
  |                                             |
  |                                             |
  |                                             |
  |                                             |
  |                                             |
  |     |
  ||                  |     |                   ||
  |     |
  -

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Simple question... how do I open the browser?

2010-01-24 Thread Breezy
When a user clicks the about button in my app's menu I want it to
open the browser and go to a specific webpage...  Is there like a one-
liner out there somewhere to do this?  Seems simple but Google is not
being helpful right now - or I'm just searching the wrong thing.


Thanks!

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Simple question... how do I open the browser?

2010-01-24 Thread Breezy
Got it figured out...  The word I was missing in the search was
intent.  After seeing that word around more and more I used that and
came across this...

http://groups.google.com/group/android-developers/browse_thread/thread/4ab2dd070eb4e407/f7077d9b791cc200

Which said to use this...
Intent i = new Intent(Intent.VIEW_ACTION, Uri.parse(http://
www.cnn.com));
startActivity(i);

For future refence in case someone is looking for it.

On Jan 24, 8:59 pm, Breezy mbre...@gmail.com wrote:
 When a user clicks the about button in my app's menu I want it to
 open the browser and go to a specific webpage...  Is there like a one-
 liner out there somewhere to do this?  Seems simple but Google is not
 being helpful right now - or I'm just searching the wrong thing.

 Thanks!

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Effectively using MediaPlayer and saving resources...

2010-01-18 Thread Breezy
I'm writing a program for my toddler and I'm running into a problem.

I call mediaplayer numerous times.  Each time a button is clicked it
runs media player, but it's a different sound.  So should I create a
new instance each time?

Here's what I'm looking at...



if(buttonClicked == button1)
{
MediaPlayer mp = 
MediaPlayer.create(getBaseContext(),
R.raw.sound0);
mp.start();
mp.release();
}
else if(buttonClicked == button2)
{
MediaPlayer mp = 
MediaPlayer.create(getBaseContext(),
R.raw.sound1);
mp.start();
mp.release();
}


Now that seems to work fine on the emulator.  When I pack it up into
an APK and put it on my G1 I can only do it 7 times before it force
closes.  I BELIEVE the memory gets full or something.
-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Getting a TextView to span the length of the screen

2010-01-18 Thread Breezy
I've a textview I want to span almost the length of the screen, then 2
buttons at the bottom.

Right now I'm using a relative layout with a textview and two buttons
and I can almost get it the way I want but the only thing is the
textview isn't as long as I want it.  I want it to be as long as
necessary for whatever handset is using it.  So a constant pixel
amount is out.

Lets see if this will work.


-
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
||  | |   ||
| |
-
-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Getting a TextView to span the length of the screen

2010-01-18 Thread Breezy
I'm close to that now...  I'm running a large text size to get the
height where I want it, but it's not exact and I want this to work on
multiple handsets.

On Jan 18, 7:44 am, schwiz sch...@gmail.com wrote:
 there may be a better way but I start with a large text size and run a
 loop checking if the paint.measurestring  getwidth and decrement text
 size each time.

 On Jan 18, 7:39 am, Breezy mbre...@gmail.com wrote:

  I've a textview I want to span almost the length of the screen, then 2
  buttons at the bottom.

  Right now I'm using a relative layout with a textview and two buttons
  and I can almost get it the way I want but the only thing is the
  textview isn't as long as I want it.  I want it to be as long as
  necessary for whatever handset is using it.  So a constant pixel
  amount is out.

  Lets see if this will work.

  -
  |                                             |
  |                                             |
  |                                             |
  |                                             |
  |                                             |
  |                                             |
  |                                             |
  |                                             |
  |                                             |
  |                                             |
  |     |
  ||                  |     |                   ||
  |     |
  -
-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Why is MediaPlayer playing before TextView setText takes effect?

2010-01-18 Thread Breezy
When a button is clicked the text of a textview changes and a sound is
played, but the sound is played first then the text changes.  I would
like it to happen simultaneously if not then the text to take effect
first.  Here's my code...



public void playSound(int playingFile)
{
MediaPlayer mp = MediaPlayer.create(getBaseContext(), 
playingFile);
mp.start();
while(mp.isPlaying())
{
//i put this in so the mp isn't released in 
middle of the
sound
}
mp.release();
}

public void onClick(View v)
{
if(v==button1)
{

maintext.setText(2);
maintext.setTextColor(Color.RED);
playSound(R.raw.s2);
}
 }


Can anyone see the problem?  It works, just not as I hoped.  Is there
any way this could be more efficient as well?
-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: instances of MediaPlayer

2010-01-18 Thread Breezy
Not sure, but release and recreate my instances.

I just created 2 instances of mediaplayer, but they wouldn't play
simultaneously, they played consecutively.

On Jan 18, 8:34 pm, rukiman ruksh...@optushome.com.au wrote:
 Is it possible to have two instances of MediaPlayer to play sounds/
 video?
 How many instances are actually allowed? I can see from the Javadocs
 that there is a limited amount of instances of MediaPlayer allowed.
-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] How should I set up my app? Database for flash cards?

2010-01-09 Thread Breezy
I'm about to begin work on a simple app that is just flash cards and
answers...  It will be a couple hundred flash cards (some with images,
some with just text) and the answers to those cards.

My question is, how should I set this up?  Should I use a database to
store each one or what?  I'm afraid if I just initialize an array when
the app opens with ALL of these cards it would make it extremely
sluggish.

What do you think?

Also, I was thinking of having a simple label area that will display
the question and when the user presses a button it will simply change
the text of the label area.  I'm bad with GUIs, is this a feasable
idea?
-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: How should I set up my app? Database for flash cards?

2010-01-09 Thread Breezy
Excellent, great reply!  Thanks!

I know what you mean about storing the images on the SD card, but the
location in the DB.

And textview is the way to go?  That's what I was going for, ease and
a one-liner is good for me!  :)

On Jan 10, 1:45 pm, theSmith chris.smith...@gmail.com wrote:
 Very feasible, I would use a database to hold the images filenames but
 actually store the images on the sd card.
 Changing the text of a textView is like one call, very easy.

 -theSmith

 On Jan 9, 1:05 pm, Breezy mbre...@gmail.com wrote:

  I'm about to begin work on a simple app that is just flash cards and
  answers...  It will be a couple hundred flash cards (some with images,
  some with just text) and the answers to those cards.

  My question is, how should I set this up?  Should I use a database to
  store each one or what?  I'm afraid if I just initialize an array when
  the app opens with ALL of these cards it would make it extremely
  sluggish.

  What do you think?

  Also, I was thinking of having a simple label area that will display
  the question and when the user presses a button it will simply change
  the text of the label area.  I'm bad with GUIs, is this a feasable
  idea?
-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] getting a nullpointerexception, anyone see my problem?

2009-11-22 Thread Breezy
My code is below...  With this I want to return an array of all the
instances of whatever I'm searching it for.

So say my string is...
mystring = i like ham, i like chicken, i like carrots,;
and I run...
myarray = dig_all(like , ,,mystring);

then myarray should consist of 'ham', 'chicken', and 'carrots'

See anything wrong with my code?  DDMS says it's a
nullpointerexception.  I'm not the swiftest with java.  :(




 private String[] dig_all(String starter, String ender, String
content)
{
String[] result = null, data, data1;
String data2;
boolean more = true;
int i = 0;
int limit = 0;

do
{
i++;
data = content.split(starter);
data1 = data[i].split(ender);
data2 = data1[0];
if ((data2==null) || (limit0  i==limit))
more = false;
else result[i] = data2;
} while (more == true);
return result;
}

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: methods not working (force closing), is there something wrong?

2009-11-21 Thread Breezy
Hmmm, I used that but I can't decipher what it's saying

11-21 06:04:48.388: WARN/dalvikvm(776): threadid=3: thread exiting
with uncaught exception (group=0x4000fe70)
11-21 06:04:48.396: ERROR/AndroidRuntime(776): Uncaught handler:
thread main exiting due to uncaught exception
11-21 06:04:48.487: ERROR/AndroidRuntime(776):
java.lang.RuntimeException: Unable to start activity ComponentInfo
{com.example.comparibook/com.example.comparibook.CompariBook}:
java.lang.NullPointerException
11-21 06:04:48.487: ERROR/AndroidRuntime(776): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2268)
11-21 06:04:48.487: ERROR/AndroidRuntime(776): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
2284)
11-21 06:04:48.487: ERROR/AndroidRuntime(776): at
android.app.ActivityThread.access$1800(ActivityThread.java:112)
11-21 06:04:48.487: ERROR/AndroidRuntime(776): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1692)
11-21 06:04:48.487: ERROR/AndroidRuntime(776): at
android.os.Handler.dispatchMessage(Handler.java:99)
11-21 06:04:48.487: ERROR/AndroidRuntime(776): at
android.os.Looper.loop(Looper.java:123)
11-21 06:04:48.487: ERROR/AndroidRuntime(776): at
android.app.ActivityThread.main(ActivityThread.java:3948)
11-21 06:04:48.487: ERROR/AndroidRuntime(776): at
java.lang.reflect.Method.invokeNative(Native Method)
11-21 06:04:48.487: ERROR/AndroidRuntime(776): at
java.lang.reflect.Method.invoke(Method.java:521)
11-21 06:04:48.487: ERROR/AndroidRuntime(776): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
(ZygoteInit.java:782)
11-21 06:04:48.487: ERROR/AndroidRuntime(776): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
11-21 06:04:48.487: ERROR/AndroidRuntime(776): at
dalvik.system.NativeStart.main(Native Method)
11-21 06:04:48.487: ERROR/AndroidRuntime(776): Caused by:
java.lang.NullPointerException
11-21 06:04:48.487: ERROR/AndroidRuntime(776): at
com.example.comparibook.CompariBook.onCreate(CompariBook.java:65)
11-21 06:04:48.487: ERROR/AndroidRuntime(776): at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1123)
11-21 06:04:48.487: ERROR/AndroidRuntime(776): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2231)
11-21 06:04:48.487: ERROR/AndroidRuntime(776): ... 11 more


On Nov 20, 9:08 pm, Arron arro...@gmail.com wrote:
 It is a lot easier to use ddms and find the exact exception and get
 the stack trace to figure out what's wrong.

 On Nov 20, 6:43 pm, Breezy mbre...@gmail.com wrote:

  I've a couple functions that basically parse XML but it's not XML it
  is parsing something similar.  I use them in PHP to break apart large
  strings so I converted them to Java for this, but when I use them they
  force close.
  I use this code to call them

                  String[] blah = dig_all (item, enditem, str);
                  String blah1 = dig_data(author,endauthor,blah[0]);

  That's the gist of it.  I know the string str is good, checked it,
  but if I run these lines I get a force close, if I comment them out I
  do not.  The methods are below.  See anything wrong?

      private String dig_data(String starter, String ender, String
  content)
      {
          String[] data = content.split(starter);
          String[] data1 = data[1].split(ender);
          return data1[0];
      }
      private String[] dig_all(String starter, String ender, String
  content)
      {
          String[] result = null, data, data1;
          String data2;
          boolean more = true;
          int i = 0;
          int limit = 0;

          do
          {
                  i++;
                  data = content.split(starter);
                  data1 = data[i].split(ender);
                  data2 = data1[0];
                  if ((data2==null) || (limit0  i==limit))
                          more = false;
                  else result[i] = data2;
          } while (more == true);
                  return result;
      }

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: methods not working (force closing), is there something wrong?

2009-11-21 Thread Breezy
Okay, I see. So what would be a solution to an error like that?  I'm a
PHP programmer in which I can write some sloppy code...  I'm sort of
lost on that.



On Nov 21, 6:24 am, Mark Murphy mmur...@commonsware.com wrote:
 Breezy wrote:
  Hmmm, I used that but I can't decipher what it's saying

 snip

  11-21 06:04:48.487: ERROR/AndroidRuntime(776): Caused by:
  java.lang.NullPointerException
  11-21 06:04:48.487: ERROR/AndroidRuntime(776):     at
  com.example.comparibook.CompariBook.onCreate(CompariBook.java:65)

 When examining a stack trace, look for the Caused by: portion, as most
 of the time that will indicate where your error is. In this case, you
 have a NullPointerException on line 65 of CompariBook.java.

 --
 Mark Murphy (a Commons 
 Guy)http://commonsware.com|http://twitter.com/commonsguy

 _The Busy Coder's Guide to Android Development_ Version 2.8
 Available!

-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] need some help with GUI

2009-11-20 Thread Breezy
What's the best way to handle this scenario?

I've an app I'm working on that will have 3 different screens (layouts
essentially).  One will be a search box with a couple radio buttons
and a search button.  One will be a results list (I'm liking listview
for this, sound good?).  One will be the whichever result the user
selects and display the data which will be several lines of
information and possibly a picture.
Also at the top of each screen will be a header, similar to that of a
webpage with frames and will be static while each of the three screens
scrolls below.  I would like the main header to have an onclick
function to show the search screen again.

Any suggestions on this?

I have the search screen in a linearlayout now but when I click the
search button I got the search screen to dissappear but the results
screen doesn't show.  The header stays at the top though and if
clicked shows the search screen.  I do that with setVisibility() but
that may be a bad practice.  I was able to test my search
functionality out with toasts to see if it works and it does, but I
need to display my results, not just flash them at the user lol!


Any suggestions?

Here's my code thus far below...  Keep in mind I just have the header,
search and search results screens but the search results screen is
just a textview.








?xml version=1.0 encoding=utf-8?
LinearLayout xmlns:android=http://schemas.android.com/apk/res/
android
  android:layout_width=fill_parent
  android:layout_height=fill_parent
  android:orientation=vertical 
TextView android:id=@+id/maintitle1
  android:layout_width=wrap_content
  android:layout_height=wrap_content
  android:text=TITLE WILL GO HERE
  android:textColor=#A4C17F
  android:textStyle=bold
  android:textSize=23sp
  android:width=400sp
  android:background=#E0DB97
  android:shadowColor=#00/TextView
TextView android:id=@+id/maintitle2
  android:layout_width=wrap_content
  android:layout_height=wrap_content
  android:text=SUBTITLE WILL GO HERE.
  android:textSize=12sp
  android:width=400sp
  android:background=#E0DB97
  android:textColor=#00/




LinearLayout xmlns:android=http://schemas.android.com/apk/res/
android
  android:layout_width=fill_parent
  android:layout_height=fill_parent
  android:orientation=vertical
  android:id=@+id/searchboxLL
TextView android:layout_width=wrap_content
  android:layout_height=wrap_content
  android:id=@+id/spacer
  android:height=40sp/TextView
TextView android:layout_width=wrap_content
  android:layout_height=wrap_content
  android:id=@+id/search_label
  android:text=Search Books
  android:paddingLeft=10sp
  android:textColor=#FF
  android:textSize=14sp/TextView
EditText android:id=@+id/searcharea
  android:layout_width=wrap_content
  android:layout_height=wrap_content
  android:width=390sp/EditText

RadioGroup
  android:layout_width=fill_parent
  android:layout_height=wrap_content
  android:orientation=horizontal
  id=@+id/searchtypes

RadioButton android:layout_width=wrap_content
android:layout_height=wrap_content android:id=@+id/bauthor
android:text=Author/RadioButton
RadioButton android:id=@+id/btitle
android:layout_width=wrap_content
android:layout_height=wrap_content android:text=Title/
RadioButton
RadioButton android:id=@+id/bisbn
android:layout_width=wrap_content
android:layout_height=wrap_content android:text=ISBN/
RadioButton

/RadioGroup
Button android:id=@+id/search_button
android:layout_width=wrap_content
android:layout_height=wrap_content android:text=Search Books
android:cursorVisible=true android:textColor=#7B905F/

/LinearLayout


LinearLayout xmlns:android=http://schemas.android.com/apk/res/
android
  android:layout_width=fill_parent
  android:layout_height=fill_parent
  android:orientation=vertical
  android:id=@+id/searchresultsLL

TextView android:id=@+id/search_results
  android:layout_width=wrap_content
  android:layout_height=wrap_content
  android:text=Search Results Here.
  android:textSize=12sp
  android:width=400sp
  android:height=50sp
  android:textColor=#FF /




/LinearLayout



/LinearLayout

-- 
You 

[android-developers] methods not working (force closing), is there something wrong?

2009-11-20 Thread Breezy
I've a couple functions that basically parse XML but it's not XML it
is parsing something similar.  I use them in PHP to break apart large
strings so I converted them to Java for this, but when I use them they
force close.
I use this code to call them

String[] blah = dig_all (item, enditem, str);
String blah1 = dig_data(author,endauthor,blah[0]);

That's the gist of it.  I know the string str is good, checked it,
but if I run these lines I get a force close, if I comment them out I
do not.  The methods are below.  See anything wrong?


private String dig_data(String starter, String ender, String
content)
{
String[] data = content.split(starter);
String[] data1 = data[1].split(ender);
return data1[0];
}
private String[] dig_all(String starter, String ender, String
content)
{
String[] result = null, data, data1;
String data2;
boolean more = true;
int i = 0;
int limit = 0;

do
{
i++;
data = content.split(starter);
data1 = data[i].split(ender);
data2 = data1[0];
if ((data2==null) || (limit0  i==limit))
more = false;
else result[i] = data2;
} while (more == true);
return result;
}



-- 
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Modifying the UI within Java, not XML

2009-07-11 Thread Breezy

So I have the basics down...  I can create a UI with the XML, I can
show it and change the screen to another UI (another XML file) but how
do I add to the UI?

Hmmm, hard to explain...

Say I have a header (just 2 textviews) that will remain at the top and
below that is a search box and button (main.xml).  The user searches
and I have it display the search UI (search.xml).  This UI will have
the same header (2 textviews) and below it will have several textviews
each one containing a search result...  Kinda like if you search for
an app in the market.  There's no way of telling how many results
would be returned so I figured I would have to create each textview on
the fly within the .java file.  I'm not sure how to do this.  Most
likely would require a loop of some sort, but whats the syntax to
create a new textview and display it right below the one above it?
I'm working with linear here so I would assume just creating a new
textview it will by default go to the next one down which is what I
want.

Any help?  I searched a lot but I'm not sure what it's called that I'm
looking for exactly.

Also, say I have 30 results...  How do I get those to scroll but leave
the 2 textview header in place?  Would I create a ScrollView and put
the new TextViews in that?

I'm probably way off here, but any correcting is fine.

Thanks
--~--~-~--~~~---~--~~
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Modifying the UI within Java, not XML

2009-07-11 Thread Breezy

ListView, okay, that works.  Now how do I make multiple TextViews and
insert them into the ListView on the fly?

Thanks for the fast response BTW.



On Jul 11, 6:02 pm, Mark Murphy mmur...@commonsware.com wrote:
 Breezy wrote:
  Kinda like if you search for
  an app in the market.  There's no way of telling how many results
  would be returned so I figured I would have to create each textview on
  the fly within the .java file.

 Use a ListView. I'm 90% certain that is what they do. It automatically
 scrolls, manages an arbitrary number of rows, etc.

 --
 Mark Murphy (a Commons 
 Guy)http://commonsware.com|http://twitter.com/commonsguy

 Android 1.5 Programming Books:http://commonsware.com/books.html
--~--~-~--~~~---~--~~
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] In need of a developer...

2009-06-12 Thread Breezy

I'm looking to hire a developer for a small project.

It involves searching and sending a request to my server which will
return results in XML format.  The app will have to display the
results.  Then based on that, the user will click on of the results
and the app will send another request to the server and return the
last bit of data.  So basically a GUI that requests and displays
data.  My server does all the work, basically.

I have designed a GUI with photoshop from pre-existing screenshots, so
the developer just needs to emulate what I've drafted up.

Please send me an email if interested in the project.
--~--~-~--~~~---~--~~
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Best option to create alarm

2009-02-28 Thread Breezy

I'm creating an alarm clock app right now but I don't know which
direction to go with the event.  After reading a bit it doesn't look
like I should use java.util.Timer, that appears to be short term.  Is
there any other functions out there?  Or is there some sort of timer
event and how would I get this to work in the background?  I'm
thinking something similar to the built in alarm.

Thanks
--~--~-~--~~~---~--~~
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Emulator: clearing apps out of cache

2009-02-26 Thread Breezy

When I run the emulator I find that sometimes I will make a change,
run to see what's going on and there will be no change.  Like the app
is cached and it's just re-running the old file.  I double checked to
ensure it's saved, but no luck.

How do I overcome this?  Is it because when I shut the emulator down
and restart it I just close the window and not properly shut it down?
That would take forever.  Any ideas?
--~--~-~--~~~---~--~~
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Simplifying the downloading XML or .txt files

2009-02-24 Thread Breezy

Mark,

Thanks for the help here.  Total noob.

So I tried some of the code in the tutorial out but I'm not receiving
anything - that I'm seeing.  Right now I'm just trying to pull a line
of text (baby steps).  Here's what I've got.

   String myOutput = nothing was pulled;

try {
// Create a URL for the desired page
URL url = new URL(http://breezylabs.com:80/quotes.txt;);

// Read all the text returned by the server
BufferedReader in = new BufferedReader(new InputStreamReader
(url.openStream()));
String str;
while ((str = in.readLine()) != null) {
myOutput = str;
}
in.close();
} catch (MalformedURLException e) {
} catch (IOException e) {
}

//put string myOutput into a TextView



Notice I initialized the string myOutput with data already.  This
tells me if I pulled anything from the server because if I did it
would change.

Can you see something I cant?


On Feb 24, 7:55 pm, Mark Murphy mmur...@commonsware.com wrote:
 Breezy wrote:
  Is there any good pre-defined classes that make downloading an XML
  file off the internet a snap?  What about txt files, anything pretty
  easy and light?

 URLConnection and the Apache HttpClient classes are both in Android.
 Both are used extensively in regular Java, outside of Android, as well.

 You will find URLConnection tutorials here:

 http://www.exampledepot.com/egs/java.net/pkg.html

 And HttpClient examples here:

 http://hc.apache.org/httpcomponents-client/examples.html

  On top of that, how would I go about parsing an XML file?  Pulling
  line by line off of a txt file isn't hard, but I think an XML file
  would be more organized.  Any good tutorials on parsing an XML?

 Android has DOM, SAX, and XmlPullParser. The first two are (API-wise)
 straight out of standard Java, so there are many books and tutorials
 available, such as those at:

 http://www.exampledepot.com/egs/javax.xml.parsers/pkg.html

 XmlPullParser is described at:

 http://xmlpull.org/

 --
 Mark Murphy (a Commons Guy)http://commonsware.com
 _The Busy Coder's Guide to Android Development_ Version 2.0 Published!
--~--~-~--~~~---~--~~
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Text-to-Speech for Android: Eyes-Free

2009-02-23 Thread Breezy

I can't get my emulator to play the sound of the TTS.

I manually installed the APK and now I get a message (for only like
1/2 a second) that says the voice data is being downloaded and that I
will have to restart my app.  I do it and it says the same thing for a
half second.

Any suggestions?



On Dec 29 2008, 9:32 am, blindfold seeingwithso...@gmail.com wrote:
 [Reposted because of a corrupted v0.46 APK file earlier today]

 The vOICe augmented reality for the blind app (version 0.47 beta)
 now includesTTS1.2 support, and is available from

    http://www.seeingwithsound.com/android.htm

 or from the Market (multimedia section).

 The vOICe silently detects if the user hasTTS1.2 installed, and will
 not push theTTSlibrary download upon the user with a popup dialog
 (displayInstallMessage is false). It just uses theTTSlibrary if it
 is present (it too can be installed from the Market).

 On the G1, one can change focus without clicking by using the
 trackball, and focus changes and clicked items are spoken separately.
 Blind users will, for lack of a system wide screen reader, still need
 assistance with software installation and the creation of keyboard
 shortcuts via Applications - Quick launch.

 Of course, speed performance on the G1 is still quite sluggish for
 lack of a JIT compiler or equivalent, but other than that it is not
 too bad.

 Regards

 On Dec 22, 9:22 am, blindfold seeingwithso...@gmail.com wrote:

  I had problems too a couple of days ago, and then needed to use
  anotherTTSstub .jar. I'm not sure if the material underneath the
  tutorial links has in the mean-time been adapted accordingly, but
  check out the discussion at

 http://groups.google.com/group/tts-for-android/browse_thread/thread/9...

  just in case this relates to your problem.

  Regards

  On Dec 22, 7:21 am, Wesley sit06...@gmail.com wrote:

   hi,

   I try nihaoworld_demo.apk 
   athttp://eyes-free.googlecode.com/svn/trunk/documentation/tutorial/tuto...
   no sound one??? it stop atTTSservices, then nothing happen... is it I miss
   out something???

   wesley.

--~--~-~--~~~---~--~~
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Text-to-Speech for Android: Eyes-Free

2009-02-23 Thread Breezy

Oh perfect.  Thanks man



On Feb 23, 2:25 pm, blindfold seeingwithso...@gmail.com wrote:
 I haven't tried the TTS on the emulator. Perhaps ask around in the TTS-
 for-Android grouphttp://groups.google.com/group/tts-for-android

 Regards

 On Feb 23, 8:27 am, Breezy mbre...@gmail.com wrote:

  I can't get my emulator to play the sound of the TTS.

  I manually installed the APK and now I get a message (for only like
  1/2 a second) that says the voice data is being downloaded and that I
  will have to restart my app.  I do it and it says the same thing for a
  half second.

  Any suggestions?
--~--~-~--~~~---~--~~
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...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---