Re: [android-developers] I want to learn the android os ,have any suggestion?

2012-02-29 Thread Mark Ayers
Agreed. Android uses a lot of defaults and it's nice to have access to the
source. It's worth more to have the source than 2 or 3 extra AVDs.

On Wed, Feb 29, 2012 at 10:24 AM, Kristopher Micinski 
krismicin...@gmail.com wrote:

 Not for this list: you want to check out

 source.android.com

 There are a few things: the vm, the framework, and the OS.  The OS is
 linux, kernel development isn't that easy, so hopefully you've got
 some C experience.  The vm is nontrivial, though not that bad.
 However, reading the frameworks are probably the most useful for
 someone who wants to be a better android developer.

 kris

 On Wed, Feb 29, 2012 at 10:05 AM, ttgdz ttgdztu...@gmail.com wrote:
   I have seen some applications in android ,and I know something about
  the upper development,now I want to learn deeper in the native,any
  suggestion?
 
  --
  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

 --
 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


-- 
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: Losing memory on tablet but not phone

2012-02-29 Thread Mark Ayers
I've noticed a LOT of memory management issues with Honeycomb on my ASUS 
Transformer. I think there might be a defect in Honeycomb, because after my 
ICS OTA got pushed, all of those issues are gone.

On Monday, February 27, 2012 8:53:30 PM UTC-8, Yan wrote:

 The following eats away the heap on the Toshiba Thrive but not on the 
 LG G2X: 

 byteBuf = ByteBuffer.allocateDirect(vertices.length * 4); 
 byteBuf.order(ByteOrder.nativeOrder()); 
 vertexBuffer = byteBuf.asFloatBuffer(); 
 vertexBuffer.put(vertices); 
 vertexBuffer.position(0); 

 I've tried byteBuf.clear, byteBuf.reset, making byteBuf static, 
 System.gc, and combinations of these, but nothing works. I wonder why 
 this is only a problem on the Toshiba but not the LG? 


-- 
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

Re: [android-developers] What happend on 02/14 on Verizon?

2012-02-29 Thread Mark Ayers
No news articles I can find.

On Wed, Feb 29, 2012 at 1:35 AM, Mirko Schenk m...@sto-helit.de wrote:

 Hi,

 maybe it's just some strange coincidence, but thanks to the improved
 statistics I noticed that according to those stats, about 10,000 users
 uninstalled my app on 02/14 - almost all of them being Verizon users.
 All other countries and providers remained stable. I also didn't do an
 update or anything else on that day or the few before.
 Did something special happen that day on Verizon, like a special
 offer, an own Market alternative, or something like that?
 Did this only happen to my app, regard a category (it's a music
 player), or is this a general phenomenon?

 Regards
 Mirko

 --
 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


-- 
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] Good OpenGL ES Tutorials

2012-02-28 Thread Mark Ayers
What are some really good GLES tutorials for those unacquainted with low
level graphics APIs?

-- 
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

Re: [android-developers] Fragments help

2011-12-18 Thread Mark Ayers
Build target decides which jar is added as a resource, correct? If so, you
can see that the jar for 3.0 is loaded.

On Sun, Dec 18, 2011 at 3:02 PM, Mark Murphy mmur...@commonsware.comwrote:

 Presumably because you have your build target set below API Level 13.

 On Sun, Dec 18, 2011 at 5:55 PM, Mark Ayers markthe...@gmail.com wrote:
  Why is Eclipse saying this is undefined when it's right here???
 
  --
  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



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

 Warescription: Three Android Books, Plus Updates, One Low Price!

 --
 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

-- 
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: Fragments help

2011-12-18 Thread Mark Ayers
Ah. Sorry, I had my version numbers mixed up. 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: hi

2011-12-18 Thread Mark Ayers
Agreed. Take the jump, buy a book on Android development, go through it, 
ask us if you need help.

-- 
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

Re: [android-developers] What the hell is ActivityManager.isUserAMonkeyFor???

2011-09-29 Thread Mark Ayers
Google has the best names ever.

On Mon, Sep 19, 2011 at 4:44 PM, Mark Murphy mmur...@commonsware.comwrote:

 It will tell you if the user is the Test Monkey. Or possibly
 monkeyrunner. Or perhaps has the name Caesar (in which case, watch
 out, as he's one cranky monkey).

 On Mon, Sep 19, 2011 at 7:39 PM, Mark Ayers markthe...@gmail.com wrote:
  I am truely baffled by the isUserAMonkey class. What on earth is it for?

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

 Warescription: Three Android Books, Plus Updates, One Low Price!

 --
 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


-- 
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] What the hell is ActivityManager.isUserAMonkeyFor???

2011-09-19 Thread Mark Ayers
I am truely baffled by the isUserAMonkey class. What on earth is it for?

-- 
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

Re: [android-developers] Active Installs Total Installs = Piracy?

2011-08-25 Thread Mark Ayers
On the other hand if your analytics numbers are ALWAYS higher than total
installs in the market console, THEN youhave pirates.
On Aug 25, 2011 9:04 AM, Appaholics raghavs...@appaholics.in wrote:
 The market is in generally very broken. The numbers update at different
 times, sometimes with a day or two between updates. Use a service like
 Flurry or Google Analytics to track your installs and usage.

 Also pirated versions will not be registered in the market console. It
only
 tracks installs that are done through the Android Market.

 Thanks

 On Thu, Aug 25, 2011 at 9:23 PM, Adam Ratana adam.rat...@gmail.com
wrote:

 I've heard this mentioned before on this list, is this indeed some
piracy,
 or is there another explanation? Looking at sales reports, the total of
 active installs is actually greater than the number I've sold of the app,
 cross-referenced with appmonger/google checkout. It doesn't do daily
volume
 to the point where it might be the difference of today's stats not being
up
 to date.

 --
 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




 --
 --
 Raghav Sood
 CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles
 required to have complete control)
 http://www.raghavsood.com/
 https://market.android.com/developer?pub=Appaholics
 http://www.appaholics.in/

 --
 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

-- 
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

Re: [android-developers] what are the best practices for good coding skills and classes, methods, and variables naming +android

2011-08-25 Thread Mark Ayers
Read Code Complete second edition. It will teach you that and much much
more.
On Aug 24, 2011 5:24 AM, Naveen kumarnaveen.si...@gmail.com wrote:
 what are the best practices for good coding skills and classes,
 methods, and variables naming +android

 --
 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

-- 
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

Re: [android-developers] Re: developeing on a htc sensation

2011-08-22 Thread Mark Ayers
sounds like somebody could use a root.
On Aug 21, 2011 11:39 PM, René tan...@get2net.dk wrote:
 Hi.

 Now i have tried it a few times this morning.
 It seems like i dont have permisions for doing that. I both tried the
 adb push and install.

 I will try later on.

 René


 On 19 Aug., 19:34, Kristopher Micinski krismicin...@gmail.com wrote:
 Occasionally I've had to delete the program from my phone and then try
 an adb push?

 Does that work for you?

 (This will happen when you swap machines, for example.)

 Kris



 On Fri, Aug 19, 2011 at 1:24 PM, René tan...@get2net.dk wrote:
  Hi!
  I am using my phone for developing apps.
  It works fine, but when i make changes it doesn't seems to update.
  Can i force it some way?

  Regards.
  René

  --
  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- Skjul tekst i
anførselstegn -

 - Vis tekst i anførselstegn -

 --
 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

-- 
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

Re: [android-developers] Re: Bizarre OpenGL performance on Samsung Galaxy.

2011-08-21 Thread Mark Ayers
The Transformer probably just has the power to muscle through whatever is
causing your problem.
On Aug 21, 2011 3:39 AM, calderwa alancalderwoo...@googlemail.com wrote:
 No-one experienced this or have any ideas?

 On Aug 18, 8:54 pm, calderwa alancalderwoo...@googlemail.com wrote:
 Yeah, no problem:

 [ro.build.fingerprint]: [samsung/GT-I9000/GT-I9000:2.3.3/GINGERBREAD/
 XXJVK:user/release-keys]

 I use purely Java, and a standard GLSurfaceView. The exact same
 behaviour is seen with the nVidia test programs, which use Java merely
 to invoke standard OpenGL ES 2.0 code in a C++ library.

 Cheers,
 Alan

 On Aug 17, 10:05 am, Dan Raaka danra...@gmail.com wrote:







  Can you tell me the fingerprint of the device you are seeing this
behavior ?
  $ adb shell getprop | grep fingerprint

  -Dan

  -Original Message-
  From: android-developers@googlegroups.com

  [mailto:android-developers@googlegroups.com] On Behalf Of calderwa
  Sent: Tuesday, August 16, 2011 3:30 PM
  To: Android Developers
  Subject: [android-developers]BizarreOpenGL performance on Samsung
Galaxy.

  HI. I have been writing some OpenGL ES 2.0 code, running on both my
Galaxy S
  and Asus transformer. The Galaxy exhibits a truly weird behaviour. When
the
  phone is connected to the PC via USB, or if it is connceted wirelessly
using
  the nVidia SGXPerfServer I get smooth 32 fps performance. If the phone
is
  disconnected it is extremely jerky and approximately half this rate.
There
  appears to be no appreciable garbage collection that might explain the
  effect. It appears not to be a configuration issue, as the behaviour
  switched between good and bad when the app is running, simply by
plugging in
  and out the USB cable.
  The Asus transformer just runs the same irrespective of connection
status.
  Any ideas? I have searched long and hard on the web. I have found
multiple
  reports of poor openGL performance on Galaxy, but none related to
connection
  status.
  All help gratefully received.

  --
  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 athttp://
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

-- 
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

Re: [android-developers] Re: Google Development phones

2011-08-18 Thread Mark Ayers
The Nexus phones will always get updates quickest, though I'd be willing to
bet that after the Nexus Prime, they will all be made by Motoogle.
On Aug 18, 2011 6:06 AM, ColorTheorist colortheorydevelo...@gmail.com
wrote:
 Sorry, that was just a throwaway comment. Eventually Motorola will
 become the gold standard for Android phones due to their proximity to
 the software, but in the short term they're no different than any
 other
 device. If whoever it was needs a phone today any of the phones that
 are
 out there should be fine.

 That's not entirely true. Motorola phones are still on top of their
 updates faster than most other devices, while other cheaper phones
 might not receive updates at all, or take quite an extensive amount of
 time to get the newest releases. As a developer it is useful to get
 the newest updates in a timely manner if you plan on using them
 anywhere near the newest OS release.

 --
 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

-- 
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

Re: [android-developers] Help Me!!!!!

2011-08-16 Thread Mark Ayers
Here's a few good ones, all part of the same series.
Beginning Android 2.x Development -
http://www.mediafire.com/?5472wm23gwzc5ch
Beginning Android 3.x Development -
http://www.mediafire.com/?hvca129x3puafp0
Professional Android 2.x Development -
http://www.mediafire.com/?91be5czarmd10va
Professional Android 3.x Development -
http://www.mediafire.com/?2cs0i61b17vt9qe

On Sat, Aug 6, 2011 at 8:22 AM, RAJU V kathiriraj...@gmail.com wrote:

 Hi Am RAJU
   Am New to this android development so please help me by giving
 some android e-books to develop the apps in beginner manner please am
 begging you to send some e-books to develop android application

 ~~RAJU~~
 ~~www.itdoall.co.cc~~

 --
 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

-- 
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

Re: [android-developers] APK Decompiler

2011-08-16 Thread Mark Ayers
http://code.google.com/p/dex2jar/
http://java.decompiler.free.fr/
On Aug 11, 2011 6:59 PM, RAJU V kathiriraj...@gmail.com wrote:
 Hi friends please help me..
 Please tell me how to decompiler the apk file to source code
 files





 ~~RAJU~~
 ~~www.itdoall.co.cc~~

 --
 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

-- 
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

Re: [android-developers] Re: Google Development phones

2011-08-16 Thread Mark Ayers
I would get the one that will be up to date the fastest and the longest, ie
the Prime. If you need to test for slower devices, you can always
underclock, but you can't go the other way nearly as easily.
On Aug 16, 2011 12:10 AM, Zsolt Vasvari zvasv...@gmail.com wrote:
 I wouldn't get the best or fastest device as a development phone
 as 99% of your users won't have such a device and you may not get the
 true feel for the performance of your app.

 On Aug 16, 10:58 am, Mark Ayers markthe...@gmail.com wrote:
 Wait til September, then get either a Nexus Prime or a quad core tablet.
 Those will be far better development devices than the Nexus S. If you
can't
 wait till then, get an ASUS Transformer, as it will open up a whole bunch
 more new APIs than the Nexus S will sooner, but it might take a touch
longer
 to get an Ice Cream Sandwich update.
 On Aug 15, 2011 7:28 PM, kypriakos demet...@ece.neu.edu wrote:





  Hi all,

  one of the Android pages points to the Market for buying development
  phones
  (as long as I pay the $25 fee). Has anyone bought such phones from
  there?
  I have two HTC Dream G1 Dev phones (old - running 1.6 on them) and
  it would
  be good if I can find a couple of more of the same or (of course)
  newer models.

  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- Hide quoted
text -

 - Show quoted text -

 --
 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

-- 
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

Re: [android-developers] emulator issue

2011-08-16 Thread Mark Ayers
Move the SDK installation to a new folder in the root of the hard drive.
This happens when there is a space in the path to the sdk.
On Aug 13, 2011 10:13 PM, arun kumar arun.kata...@gmail.com wrote:
 while running the app am getting the error..so how can i solve this

 Emulator] invalid command-line parameter: plugins.
 Emulator] Hint: use '@foo' to launch a virtual device named 'foo'.
 - Emulator] please use -help for more information

 Thankyou
 arun

 --
 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

-- 
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

Re: [android-developers] Re: Prebuilt C libraries?

2011-08-15 Thread Mark Ayers
On Aug 14, 2011 11:31 PM, FBondarenko f.bondare...@web.de wrote:

 when you're looking for open source libs, why not compile them
 yourself?
Because automake doesn't work too well on my Windows development box, and
automake and friends are pretty much a requirement for building most open
source libs.

 which libraries do you need?
libcario is the big one, along with pixman. Other than those, anything that
might help in building a graphics/drawing app.

-- 
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

Re: [android-developers] Re: Prebuilt C libraries?

2011-08-15 Thread Mark Ayers
I have 3 linux boxes, but my dev box is Windows because things stop working
less ofter and because drivers are easier to come by. I'm not porting code,
but I am looking to the GIMP source when I get stuck, and having libcairo
available would make things easier.
On Aug 15, 2011 12:31 AM, Nikolay Elenkov nikolay.elen...@gmail.com
wrote:
 On Mon, Aug 15, 2011 at 4:20 PM, Mark Ayers markthe...@gmail.com wrote:

 On Aug 14, 2011 11:31 PM, FBondarenko f.bondare...@web.de wrote:

 when you're looking for open source libs, why not compile them
 yourself?
 Because automake doesn't work too well on my Windows development box, and
 automake and friends are pretty much a requirement for building most open
 source libs.

 Make your life easier and get a Linux box :) Automake and friends don't
 play too nice with the NDK, but it's possible to build libraries that use
 them. You should ask on the NDK list if you have specific problems.


 which libraries do you need?
 libcario is the big one, along with pixman. Other than those, anything
that
 might help in building a graphics/drawing app.

 I don't know what you are trying to build, but the android graphics
package
 should have most of the things you can do with Cairo. Unless you are
porting
 code that already uses Cairo, you should have a look.

 --
 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

-- 
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

Re: [android-developers] Active install percent metric: now it's just ridiculous!

2011-08-15 Thread Mark Ayers
Methinks at least 5% of your userbase are pirates.
On Aug 14, 2011 6:04 PM, Doug beafd...@gmail.com wrote:
 If you ever had any doubt in your mind that the market console's
 active install % metric was accurate in any way, allow me to remove
 all that doubt from your mind!

 One prominent paid app I work on has achieved 100% active installs.
 What's funnier is that the number ratio reported is 179686 total to
 187915 active (so, actually 105%?). Unbelievable. :-)

 Doug

 --
 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

-- 
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

Re: [android-developers] Active install percent metric: now it's just ridiculous!

2011-08-15 Thread Mark Ayers
Well, either that or a lot of people are installing it on more than one
device.
On Aug 14, 2011 6:04 PM, Doug beafd...@gmail.com wrote:
 If you ever had any doubt in your mind that the market console's
 active install % metric was accurate in any way, allow me to remove
 all that doubt from your mind!

 One prominent paid app I work on has achieved 100% active installs.
 What's funnier is that the number ratio reported is 179686 total to
 187915 active (so, actually 105%?). Unbelievable. :-)

 Doug

 --
 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

-- 
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

Re: [android-developers] Re: Can I use drawable-small, large, xlarge instead of hdpi, mdpi, ldpi?

2011-08-15 Thread Mark Ayers
Larger screens tend to have lower pixel density, so drawable-large would
trigger on a tablet, but also mdpi or ldpi.
On Aug 14, 2011 10:58 AM, Droid rod...@gmail.com wrote:
 So on an hdpi screen the icons will be smaller.
 So my apps made on a nexus and emulator will
 not display as I believe they will. Rather all my images
 will be smaller whilst text boxes etc will be the same
 (unless I am using dip not sp).
 Then drawable-large folder is for large screens with hdpi or
 mdpi? And I am not sure whether photoshop's dpi setting
 does anything than change the size of the image.

 Clearly I need to go to school about all this because I come
 from a programming background. At first site I need larger images
 for larger dpi screens. Hope I can find out how much larger and
 which folder to put them in.







 On Aug 14, 5:41 pm, Mark Murphy mmur...@commonsware.com wrote:
 On Sun, Aug 14, 2011 at 4:57 AM, Droid rod...@gmail.com wrote:
  I find too many possible image folders confusing and it does not seem
  to make any difference if I make an image in Photoshop as 70 dpi, 150
  dpi or whatever - it just makes a bigger or smaller image.

 Of course. That's the point. On a high density device, you use a
 high-pixel-count image to result in something that renders the right
 size but has more detail. On a low density device, you use a
 low-pixel-count image to result in something that renders the right
 size (i.e., not blown up huge).

  So, can I use just drawable-small, large, xlarge and DROP all my hdpi,
  mdpi and ldpi folders

 Not really.

   (which confuse me).

 Since screen density is going to be fairly important in all GUI
 programming going forward, perhaps you should consider learning more
 about screen density, rather than thinking you can ignore the problem.

 For example, I am typing this on a notebook with a 15.6 notebook with
 a 1080p (1920x108) display. This is a significantly higher screen
 density than typical notebooks. As a result, icons, text, etc. tend to
 come out smaller, since few programmers or Web designers think about
 screen density. And, sometimes Web designers even actively prevent
 solutions (e.g., can't increase font size using a browser because
 they're doing something screwy that just doesn't respond).

  If I can get away with this, life would be so much easier.

 Not really.

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

 _Android Programming Tutorials_ Version 3.9 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

-- 
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

Re: [android-developers] Can I use drawable-small, large, xlarge instead of hdpi, mdpi, ldpi?

2011-08-15 Thread Mark Ayers
There are ways to convince a computer that you have such a screen, I imagine
it'd look pretty funny though.


On Mon, Aug 15, 2011 at 4:36 AM, Greg Donald gdon...@gmail.com wrote:

 On Sun, Aug 14, 2011 at 11:41 AM, Mark Murphy mmur...@commonsware.com
 wrote:
  For example, I am typing this on a notebook with a 15.6 notebook with
  a 1080p (1920x108) display. This is a significantly higher screen
  density than typical notebooks. As a result, icons, text, etc. tend to
  come out smaller, since few programmers or Web designers think about
  screen density.

 Or the rare 1920x108 display for that matter.


 --
 Greg Donald

 --
 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


-- 
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

Re: [android-developers] back home key in api

2011-08-15 Thread Mark Ayers
To add another Mark to this conversation, I think he's asking for a way to
make something happen when the home button is pressed. I don't believe this
is possible.

On Mon, Aug 15, 2011 at 4:13 AM, Mark Murphy mmur...@commonsware.comwrote:

 On Mon, Aug 15, 2011 at 5:13 AM, mark2011 androidmark2...@gmail.com
 wrote:
 I want to set the back  home function in my API.

 That sentence is unclear.

  I use finish or system.exit(0) to return my last page.

 Do not use System.exit(0) in any production-grade Android application.

  How do I go back to my home page?

 Call startActivity() with an Intent identifying your home page,
 perhaps with appropriate flags to control the stack (e.g.,
 FLAG_ACTIVITY_CLEAR_TOP|FLAG_ACTIVITY_SINGLE_TOP).

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

 Android App Developer Books: http://commonsware.com/books

 --
 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


-- 
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

Re: [android-developers] back home key in api

2011-08-15 Thread Mark Ayers
That was what I meant, it sounded like he wanted to use that for navigation
within an app.
On Aug 15, 2011 6:07 AM, Appaholics raghavs...@appaholics.in wrote:
 It is if the user makes your app the default homescreen. Then when the
home
 button is pressed your app will be displayed. However this is not a good
 solution for whatever he is trying to do.

 On Mon, Aug 15, 2011 at 6:32 PM, Mark Ayers markthe...@gmail.com wrote:

 To add another Mark to this conversation, I think he's asking for a way
to
 make something happen when the home button is pressed. I don't believe
this
 is possible.


 On Mon, Aug 15, 2011 at 4:13 AM, Mark Murphy mmur...@commonsware.com
wrote:

 On Mon, Aug 15, 2011 at 5:13 AM, mark2011 androidmark2...@gmail.com
 wrote:
  I want to set the back  home function in my API.

 That sentence is unclear.

  I use finish or system.exit(0) to return my last page.

 Do not use System.exit(0) in any production-grade Android application.

  How do I go back to my home page?

 Call startActivity() with an Intent identifying your home page,
 perhaps with appropriate flags to control the stack (e.g.,
 FLAG_ACTIVITY_CLEAR_TOP|FLAG_ACTIVITY_SINGLE_TOP).

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

 Android App Developer Books: http://commonsware.com/books

 --
 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


 --
 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




 --
 
 Raghav Sood
 CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles
 required to have complete control)
 http://www.raghavsood.com/
 https://market.android.com/developer?pub=Appaholics
 http://www.appaholics.in/

 --
 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

-- 
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

Re: [android-developers] How I can ask multiple touches in my game?

2011-08-15 Thread Mark Ayers
Try event.getHistoricalX() and event.getHistoricalY()
On Aug 15, 2011 11:58 AM, Zwiebel hunzwie...@gmail.com wrote:
 I want to make a game, where in one activity, I need to get multiple
 touches one after another one... So if I want to make for example a
 UI. Then on this UI I can got the first touch with if statement.
 if(event.x  in the zone  event.y  in the zone) else (do what I
 want) , but I don't know how to get the next touch. I think that I
 need a statement, but I don't know what/which. It's important because
 in the game the order is very important.

 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

-- 
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

Re: [android-developers] Google Development phones

2011-08-15 Thread Mark Ayers
Wait til September, then get either a Nexus Prime or a quad core tablet.
Those will be far better development devices than the Nexus S. If you can't
wait till then, get an ASUS Transformer, as it will open up a whole bunch
more new APIs than the Nexus S will sooner, but it might take a touch longer
to get an Ice Cream Sandwich update.
On Aug 15, 2011 7:28 PM, kypriakos demet...@ece.neu.edu wrote:

 Hi all,

 one of the Android pages points to the Market for buying development
 phones
 (as long as I pay the $25 fee). Has anyone bought such phones from
 there?
 I have two HTC Dream G1 Dev phones (old - running 1.6 on them) and
 it would
 be good if I can find a couple of more of the same or (of course)
 newer models.

 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

-- 
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

Re: [android-developers] Can I use drawable-small, large, xlarge instead of hdpi, mdpi, ldpi?

2011-08-14 Thread Mark Ayers
Photoshop just uses the dpi for ruler scaling, doesn't change the image.
On Aug 14, 2011 1:57 AM, Droid rod...@gmail.com wrote:
 I find too many possible image folders confusing and it does not seem
 to make any difference if I make an image in Photoshop as 70 dpi, 150
 dpi or whatever - it just makes a bigger or smaller image.

 So, can I use just drawable-small, large, xlarge and DROP all my hdpi,
 mdpi and ldpi folders (which confuse me).

 If I can get away with this, life would be so much easier.

 --
 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

-- 
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] Smooth path.

2011-08-14 Thread Mark Ayers
In the Sketchbook app, all the brushes draw very smooth paths, anyone have
any clue how they're doing this?

-- 
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

Re: [android-developers] Can I use drawable-small, large, xlarge instead of hdpi, mdpi, ldpi?

2011-08-14 Thread Mark Ayers
Coming from a web design background, I take offense on this. All GOOD web
designers think about screen density and user accessibility quite a bit. CSS
media queries are my favorite way of making it easy on those with screens I
am jealous of.
On Aug 14, 2011 9:43 AM, Mark Murphy mmur...@commonsware.com wrote:
 On Sun, Aug 14, 2011 at 4:57 AM, Droid rod...@gmail.com wrote:
 I find too many possible image folders confusing and it does not seem
 to make any difference if I make an image in Photoshop as 70 dpi, 150
 dpi or whatever - it just makes a bigger or smaller image.

 Of course. That's the point. On a high density device, you use a
 high-pixel-count image to result in something that renders the right
 size but has more detail. On a low density device, you use a
 low-pixel-count image to result in something that renders the right
 size (i.e., not blown up huge).

 So, can I use just drawable-small, large, xlarge and DROP all my hdpi,
 mdpi and ldpi folders

 Not really.

 (which confuse me).

 Since screen density is going to be fairly important in all GUI
 programming going forward, perhaps you should consider learning more
 about screen density, rather than thinking you can ignore the problem.

 For example, I am typing this on a notebook with a 15.6 notebook with
 a 1080p (1920x108) display. This is a significantly higher screen
 density than typical notebooks. As a result, icons, text, etc. tend to
 come out smaller, since few programmers or Web designers think about
 screen density. And, sometimes Web designers even actively prevent
 solutions (e.g., can't increase font size using a browser because
 they're doing something screwy that just doesn't respond).

 If I can get away with this, life would be so much easier.

 Not really.

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

 _Android Programming Tutorials_ Version 3.9 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

-- 
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] Prebuilt C libraries?

2011-08-14 Thread Mark Ayers
Are there any open source C libraries that are available prebuilt for
Android? If not, can someone help me figure out how to build libcairo for
android?

https://github.com/anoek/android-cairo/

-- 
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] Canvas clipping question?

2011-08-13 Thread Mark Ayers
Sorry if this is obvious, but I can't tell from the documentation what the
various Canvas.clipWhatever methods do. I'm looking for a method that will
allow me to select a certain area, hopefully somewhat like Photoshop, and
I'm wondering if this is what I've been looking for.

-- 
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

Re: [android-developers] Canvas clipping question?

2011-08-13 Thread Mark Ayers
What I mean is I want a tool that can define a certain area, so that all
drawing is restricted to that area. It sounds like this is what I need.

On Sat, Aug 13, 2011 at 8:29 PM, Romain Guy romain...@android.com wrote:

 Hi,

 What do you mean by select a certain area? What are you trying to
 accomplish? Setting the clip on a Canvas lets you restrict drawing to a
 particular area. For instance, if the clip rectangle is 100,100,200,200, a
 point drawn at 300,300 (outside of the clip) will not appear on screen.

 On Sat, Aug 13, 2011 at 8:26 PM, Mark Ayers markthe...@gmail.com wrote:

  Sorry if this is obvious, but I can't tell from the documentation what
 the various Canvas.clipWhatever methods do. I'm looking for a method that
 will allow me to select a certain area, hopefully somewhat like Photoshop,
 and I'm wondering if this is what I've been looking for.

 --
 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




 --
 Romain Guy
 Android framework engineer
 romain...@android.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

-- 
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] Saving file causes exception

2011-08-12 Thread Mark Ayers
I'm working on a drawing app, and the code for my file saving routine goes
like this:

case SAVE_MENU_ID:
Config config = Config.ARGB_;
 Bitmap mBitmap = Bitmap.createBitmap(mDrawingPanel.getWidth(),
mDrawingPanel.getHeight(), config);
Canvas canvas = new Canvas(mBitmap);
 mDrawingPanel.draw(canvas);
Handler saveHandler = new Handler(){
@Override
 public void handleMessage(Message msg) {
final AlertDialog alertDialog = new AlertDialog.Builder(_panel).create();
 alertDialog.setTitle(Saved 1);
alertDialog.setMessage(Your drawing had been saved :));
 alertDialog.setButton(OK, new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int which) {
 return;
}
});
 alertDialog.show();
}
} ;

new ExportBitmapToFile(_panel, saveHandler, mBitmap).execute(null);
return true;
 }



The ExportBitmapToFile class is as follows:

private class ExportBitmapToFile extends AsyncTaskIntent,Void,Boolean {
 private Context mContext;
private Handler mHandler;
private Bitmap nBitmap;

public ExportBitmapToFile(Context context,Handler handler,Bitmap bitmap) {
mContext = context;
 nBitmap = bitmap;
mHandler = handler;
}

@Override
protected Boolean doInBackground(Intent... arg0) {
 try {
if (!APP_FILE_PATH.exists()) {
APP_FILE_PATH.mkdirs();
 }

final FileOutputStream out = new FileOutputStream(new File(APP_FILE_PATH +
/myAwesomeDrawing.png));
 nBitmap.compress(Bitmap.CompressFormat.PNG, 100, out);
out.flush();
 out.close();
return true;
}catch (Exception e) {
 e.printStackTrace();
}
Toast.makeText(_panel, Success!, 5);
 return false;
}


@Override
 protected void onPostExecute(Boolean bool) {
super.onPostExecute(bool);
 if ( bool ){
mHandler.sendEmptyMessage(1);
}
 }
}

The logcat is attached.

-- 
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=en08-12 11:42:20.880: ERROR/AndroidRuntime(12793): FATAL EXCEPTION: AsyncTask #1
08-12 11:42:20.880: ERROR/AndroidRuntime(12793): java.lang.RuntimeException: An 
error occured while executing doInBackground()
08-12 11:42:20.880: ERROR/AndroidRuntime(12793): at 
android.os.AsyncTask$3.done(AsyncTask.java:266)
08-12 11:42:20.880: ERROR/AndroidRuntime(12793): at 
java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:273)
08-12 11:42:20.880: ERROR/AndroidRuntime(12793): at 
java.util.concurrent.FutureTask.setException(FutureTask.java:124)
08-12 11:42:20.880: ERROR/AndroidRuntime(12793): at 
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:307)
08-12 11:42:20.880: ERROR/AndroidRuntime(12793): at 
java.util.concurrent.FutureTask.run(FutureTask.java:137)
08-12 11:42:20.880: ERROR/AndroidRuntime(12793): at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1081)
08-12 11:42:20.880: ERROR/AndroidRuntime(12793): at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:574)
08-12 11:42:20.880: ERROR/AndroidRuntime(12793): at 
java.lang.Thread.run(Thread.java:1020)
08-12 11:42:20.880: ERROR/AndroidRuntime(12793): Caused by: 
java.lang.RuntimeException: Can't create handler inside thread that has not 
called Looper.prepare()
08-12 11:42:20.880: ERROR/AndroidRuntime(12793): at 
android.os.Handler.init(Handler.java:121)
08-12 11:42:20.880: ERROR/AndroidRuntime(12793): at 
android.widget.Toast$TN.init(Toast.java:310)
08-12 11:42:20.880: ERROR/AndroidRuntime(12793): at 
android.widget.Toast.init(Toast.java:84)
08-12 11:42:20.880: ERROR/AndroidRuntime(12793): at 
android.widget.Toast.makeText(Toast.java:226)
08-12 11:42:20.880: ERROR/AndroidRuntime(12793): at 
com.appineering.android.drawingpad.DrawActivity$ExportBitmapToFile.doInBackground(DrawActivity.java:236)
08-12 11:42:20.880: ERROR/AndroidRuntime(12793): at 
com.appineering.android.drawingpad.DrawActivity$ExportBitmapToFile.doInBackground(DrawActivity.java:1)
08-12 11:42:20.880: ERROR/AndroidRuntime(12793): at 
android.os.AsyncTask$2.call(AsyncTask.java:252)
08-12 11:42:20.880: ERROR/AndroidRuntime(12793): at 
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
08-12 11:42:20.880: ERROR/AndroidRuntime(12793): ... 4 more
08-12 11:42:20.900: WARN/ActivityManager(140):   Force finishing activity 
com.appineering.android.drawingpad/.DrawActivity


Re: [android-developers] Tricky layout

2011-08-12 Thread Mark Ayers
You might be better off using jQuery Mobile inside of a webView, and coding
it as a website. I could be totally wrong here.
On Aug 12, 2011 2:28 PM, darrinps darri...@gmail.com wrote:
 I am trying to create something that looks like this:
 http://i254.photobucket.com/albums/hh105/darrinps/SameImage.jpg

 In short, an area that has borders all the way around it but the
 background is white for the text views and edit boxes inside that area
 which need to be seamless beside one another.

 The area housing the word Address is a TextView and the area to the
 right is an EditText. I am having a heck of a time getting this to
 look like the image. It always seems to have a gap in between.

 Here is my latest attempt at it with just the first line there for
 brevity sake. Anyone know how to do this sort of thing?

 TextView
 android:text=@string/us_destination
 android:textSize=16sp
 android:textColor=#54627F
 android:textStyle=bold
 android:singleLine=true
 android:paddingTop=10px
 android:paddingLeft=10px
 android:layout_width=wrap_content
 android:layout_height=wrap_content
 /TextView


 TableLayout
 android:id=@+id/destination_entries
 android:orientation=horizontal
 android:layout_width=fill_parent
 android:layout_height=wrap_content
 android:stretchColumns=1

 TableRow
 android:paddingLeft=10px
 android:paddingRight=10px
 TextView
 android:text=@string/address
 android:textSize=14sp
 android:textColor=#54627F
 android:background=#ff
 android:textStyle=bold
 android:singleLine=true
 android:paddingTop=10px
 android:layout_width=wrap_content
 android:layout_height=wrap_content
 /TextView

 EditText
 android:id=@+id/destination_address
 android:text=1313 Mockingbird Lane
 android:textSize=14sp
 android:textColor=#54627F
 android:background=#ff
 android:textStyle=bold
 android:singleLine=true
 android:gravity=right|bottom
 android:layout_gravity=right
 android:layout_width=fill_parent
 android:layout_height=fill_parent
 /EditText
 /TableRow
 /TableLayout

 --
 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

-- 
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] Honeycomb testing

2011-08-03 Thread Mark Ayers
If anyone needs apps tested on Honeycomb but doesn't have a tablet, I would
be happy to test apps and help with debugging. My tab is an Asus Transformer
TF101 16GB. Knowing that the current HC emulator doesn't work on anything
but a supercomputer, I hope this can save some devs from needing to spend
$400 to develop for 3.x. I'm currently running 3.1, but would be happy to
downgrade to 3.0.1 or upgrade to 3.2 if needed. Shoot me an email if you're
interested.

-- 
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

Re: [android-developers] Re: Request to Google's Android SDK team

2011-07-25 Thread Mark Ayers
For the development cost, you could just wait till September and get the new
Archos tablethttp://www.archos.com/products/gen9/index.html?country=uslang=en
that
starts at $270. It looks like it should be the fastest available tablet.

On Sat, Jul 23, 2011 at 12:49 PM, Mark Murphy mmur...@commonsware.comwrote:

 On Sat, Jul 23, 2011 at 3:15 PM, Jimen Ching jimen.ch...@gmail.com
 wrote:
  If you do not agree a VirtualBox solution is a more convenient
  and efficient solution, then I don't think there's anything I can say to
  convince you otherwise.

 If it would work, it might be. However, I doubt that it will work,
 since it does not solve the graphics acceleration problem. The mere
 fact that VirtualBox might expose hardware graphics acceleration
 capabilities does not mean that Honeycomb will be able to exploit them
 without significant work. I would expect that performance of a
 Honeycomb VirtualBox to perhaps be incrementally better than a
 Honeycomb qemu. Or, to put it another way, I would expect the ratio of
 pain between 2.3 and 3.0 to be roughly the same on qemu and
 VirtualBox. Furthermore, I recall suggesting this very solution to Xav
 at Google I|O and being told that it did not help.

 There is also the minor issue that VirtualBox is owned by Oracle. :-)

 Personally, I wish that the Honeycomb source code had been released,
 specifically so that the community could work on this sort of thing
 and see if we can come up with something.

  Are you speaking for Google?

 Nope.

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

 Android App Developer Books: http://commonsware.com/books

 --
 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


-- 
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