Re: [android-developers] Re: Market misery !!

2010-10-10 Thread Fabrizio Giudici

 On 10/10/10 10:48 , Doug wrote:

I interviewed with Yahoo a while back, and their strategy is to
product mobile apps and SDKs that are primarily web driven with an
Android/iOS shim to access the device-specific features.  Honestly, I
think this is a smart move because it leverages all their web content,
infrastructure, and talent while minimizing the time to market for a
mobile app.

FWIW, I turned them down because hybrid mobile-web apps aren't my
interest and I'm trying to abandon my prior track as a web app
developer.  :-)
That said, leverage any web content you have because the web isn't
going away any time soon!

I second both point - that is, for some publisher the model might make 
sense, and I don't like it either :-) Indeed, this is due to an 
architectural deficiency, I mean if people exposing a web app had a good 
modular architecture, they could expose it by means of REST as well and 
easily connecting any kind of client to it...


--
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it

--
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] Market misery !!

2010-10-09 Thread Fabrizio Giudici

 On 10/9/10 20:46 , Yahel wrote:


I'm promoting my app all I can on my blog, myspace, facebook, twitter,
tumblr and all, but the best exposition tool should normally be the
market !!
Don't expect that. The market is just an easy way for people to install 
your app, but the critical promotion will only come from you and the 
mentioned tools.


--
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it

--
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] Follow up for the active install count problem

2010-10-08 Thread Fabrizio Giudici

 Just received this from the Market support:


We wanted to follow-up. By now, you should have noticed that the installs 
metrics for your applications have been restored. We identified the problem as 
occurring with application updates only, have made some changes recently that 
should resolve and prevent this problem. Please let us know if this error 
persists.

If we can assist you further, please let us know.



In my case, things have not changed at all. Downloads are increasing 
(1550) and active installs stabilized at 29% (the value before the drop 
was 44/45%). So, indeed active installs are increasing again - 29% is 
stable since three weeks - but the original percentage was not restored. 
Now, I don't know what to think... Maybe the problem is not solved, 
maybe in my specific case the active installs really dropped for a while 
(but it's curious that it only happened for a while...).
BTW, I didn't release any new upgrade since then (I have a new one 
almost ready, but I'm beyond schedule because of personal problems) - 
and maybe the count would fix itself with new upgrades...


What would you do now? Is there anybody else for which the problem was 
not solved?


--
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it

--
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: Java classes not inclded in android

2010-09-30 Thread Fabrizio Giudici

 On 9/28/10 01:49 , Lance Nanek wrote:

I kind of managed this the other day in a hackish sort of way. I
wanted to use an open source RSS library that used java.beans.** Java
classes, which aren't in Android. So I downloaded the source for those
classes from the Apache Harmony project, ripped out all the references
to AWT stuff, and got the library source code imported and compiling
against it. Then I refactored the packages to notjava.beans.**. So
anyway, sometimes you can work out a substitute for the missing Java
classes and alter all references to point to that substitute.
I've answered to this question a number of times recently... The 
quickest way to do this is not by refactoring the classes, but by using 
static bytecode manipulation tools. They are able to replace the 
references directly in bytecode, without need of patching sources and 
recompile them. They are available both for Ant and Maven.


--
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it

--
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: Android Market the Google I/O 2010 features

2010-09-21 Thread Fabrizio Giudici

 On 9/20/10 15:05 , Maps.Huge.Info (Maps API Guru) wrote:

I like The 32nd of Never better. It almost sounds like a real date.


February 29th, 2011 is good too.

--
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it

--
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: Is anyone's active install % dropping like a rock lately?

2010-09-20 Thread Fabrizio Giudici

 On 9/18/10 12:59 , Brad Gies wrote:


Actually, I am very impressed with the response, and I hope you 
thanked them. It would be good to encourage the Market people to 
respond to this kind of stuff :).


For sure I personally thank people at Google working on the issue and 
bugs happen, so not a big problem in general. But I've to say I'm not 
impressed with the timing of the response, since it appears they started 
responding with much delay, when a lot of people here got upset and 
puzzled about what was happening. Since the bug has been confirmed, and 
it's a blatant bug (I mean, it might be difficult to find a fix and 
apply it, but I'd expect that some consistency check at Google should 
raise the warning early, especially then the first people start to 
complain), I hope that anything similar in future will be posted to an 
official Google blog before so many people start scratching their heads 
for months. I mean: many other kind of bugs are annoying, but not as 
annoying as this one, since it has to do with the people's feedback 
about your app. The feedback channel with users is already broken 
enough, as it has been said many times, and when you put a big effort in 
providing yourself the information, the feedback channels, you try to 
fix bugs and add features that people are asking for, and you see what's 
supposed to be the most important metric decreasing (*), well, you might 
be tempted to give up (especially if you're on a free project).


(*) Downloads are not the most important thing for me. They are somewhat 
a measure of how you good are in making people aware of you, while the 
active install ratio is the measure of how much people like your stuff. 
In this situation, with downloads steadily increasing and active ratio 
steadily decreasing, I've been thinking for a long time that I was 
relatively good in inform people of my product, but I was describing it 
a cut above its real value. Sort of good ad, bad implementation. 
Fortunately, it *could* not be that way.


--
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it

--
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] Clarification about ImageView.setImageURI()

2010-09-16 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 9/14/10 14:02 , Fabrizio Giudici wrote:

 I'm using ImageView.setImageURI() to render an image that has been
 previously downloaded from the Internet. It works fine, but I
 haven't understood whether the call is blocking or not. In my code,
 I've implemented a background thread to download the bits, in the
 meantime a placeholder is rendered, and as soon as a download is
 complete, setImageURI() is called. This approach is used both for
 a Gallery with thumbnails and for a single, large rendered with
 ImageView. The thing is working, but I see that the application
 freezes for a while when a download has been completed and
 setImageURI() is called. Which make me wonders whether I'm using
 it properly.

 For the record, I know that the images I'm downloading are larger
 than I need (at least initially); that is, they are much larger
 than the thumbnail and the large viewer. Since images, once
 downloaded, are stored locally forever, I should probably create
 some smaller-size previews in background and then pass them to
 Gallery and ImageView? Would that make the UI really more
 responsive?

Anybody here...?

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkySJHwACgkQeDweFqgUGxeAPgCfYWxFYRudMVkTzkLfusVUWaBS
B7cAoLEKO7410fblPivzb47ozhzqX/3K
=Q2i7
-END PGP SIGNATURE-

-- 
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] OOM after ImageView.setImage() make the phone irresponsive - how to protect?

2010-09-16 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

My app, among other things, downloads and displays images from the
Internet. Some might be too large and trigge an OOM when
ImageView.setImage() is called.

Of course, this normally makes the application to crash. I've put
catch (OutOfMemoryError e) around the method invocation. I know that
catching errors is unusual, but in JSE applications it proved to work
pretty good, especially when the problem was due to image manipulation
that consumed all the memory. The Android app seemed to survive for a
while, but then it blocked the computer. All buttons are irresponsive,
even though the phone seems still alive (e.g. it's playing the audio
notification that new email has been spotted). I tried holding the
power button, it triggered the shut down menu, but touching a menu
option didn't do anything. Only after a while, the phone became
responsive again.

Now, it's reasonable that one can't display everything on a
smartphone; I'm sure there's some inefficient memory management I'm
doing (perhaps keeping too many images in memory); ok, I have to
improve my code. Given that I'll do, how can I add some safety
facility to avoid the most severe consequences? Making an irresponsive
application it's a 100% sure way to make people to uninstall my app
and give bad reviews.

I'm thinking of a two-pronged safety approach: 1) whether it's
possible to understand in advance whether an image is too large to be
rendered by itself; 2) whether it's possible to recover from an OOM in
any case.

Thanks.

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkySa8cACgkQeDweFqgUGxd0WACgqxeDnLvof8nnry2YN6spYXy6
Ga8An0CujetPySu44VsNJsAyL+BIpz1S
=cQIf
-END PGP SIGNATURE-

-- 
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] OOM after ImageView.setImage() make the phone irresponsive - how to protect?

2010-09-16 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 9/16/10 21:11 , Fabrizio Giudici wrote:

 My app, among other things, downloads and displays images from the
 Internet. Some might be too large and trigge an OOM when
 ImageView.setImage() is called.

For the record, the worse OOM (the one which crashes the phone) is one
that I haven't caught, as it originates from the event loop (see below).
In particular, it seems that ImageView.onMeasure() causes the whole
decoding of the image. It sounds strange, as I presume that
onMeasure() only needs the image dimensions, and it should be possible
to retrieve them *without* decoding the bitmap.

In any case, I'm now going to try subclassing ImageView and put a
catch (OOM) around that onMeasure(). Any other idea?


E/AndroidRuntime(15277): java.lang.OutOfMemoryError: bitmap size
exceeds VM budget
E/AndroidRuntime(15277): at
android.graphics.BitmapFactory.nativeDecodeStream(Native Method)
E/AndroidRuntime(15277): at
android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:459)
E/AndroidRuntime(15277): at
android.graphics.BitmapFactory.decodeFile(BitmapFactory.java:271)
E/AndroidRuntime(15277): at
android.graphics.BitmapFactory.decodeFile(BitmapFactory.java:296)
E/AndroidRuntime(15277): at
android.graphics.drawable.Drawable.createFromPath(Drawable.java:801)
E/AndroidRuntime(15277): at
android.widget.ImageView.resolveUri(ImageView.java:501)
E/AndroidRuntime(15277): at
android.widget.ImageView.onMeasure(ImageView.java:577)
E/AndroidRuntime(15277): at android.view.View.measure(View.java:7964)
E/AndroidRuntime(15277): at
android.widget.Gallery.setUpChild(Gallery.java:786)
E/AndroidRuntime(15277): at
android.widget.Gallery.makeAndAddView(Gallery.java:738)
E/AndroidRuntime(15277): at
android.widget.Gallery.fillToGalleryRight(Gallery.java:697)
E/AndroidRuntime(15277): at
android.widget.Gallery.layout(Gallery.java:628)
E/AndroidRuntime(15277): at
android.widget.Gallery.onLayout(Gallery.java:336)
E/AndroidRuntime(15277): at android.view.View.layout(View.java:6830)
E/AndroidRuntime(15277): at
android.widget.LinearLayout.setChildFrame(LinearLayout.java:1119)
E/AndroidRuntime(15277): at
android.widget.LinearLayout.layoutVertical(LinearLayout.java:998)
E/AndroidRuntime(15277): at
android.widget.LinearLayout.onLayout(LinearLayout.java:918)
E/AndroidRuntime(15277): at android.view.View.layout(View.java:6830)
E/AndroidRuntime(15277): at
android.widget.FrameLayout.onLayout(FrameLayout.java:333)
E/AndroidRuntime(15277): at android.view.View.layout(View.java:6830)
E/AndroidRuntime(15277): at
android.widget.FrameLayout.onLayout(FrameLayout.java:333)
E/AndroidRuntime(15277): at android.view.View.layout(View.java:6830)
E/AndroidRuntime(15277): at
android.widget.FrameLayout.onLayout(FrameLayout.java:333)
E/AndroidRuntime(15277): at android.view.View.layout(View.java:6830)
E/AndroidRuntime(15277): at
android.widget.LinearLayout.setChildFrame(LinearLayout.java:1119)
E/AndroidRuntime(15277): at
android.widget.LinearLayout.layoutVertical(LinearLayout.java:998)
E/AndroidRuntime(15277): at
android.widget.LinearLayout.onLayout(LinearLayout.java:918)
E/AndroidRuntime(15277): at android.view.View.layout(View.java:6830)
E/AndroidRuntime(15277): at
android.widget.FrameLayout.onLayout(FrameLayout.java:333)
E/AndroidRuntime(15277): at android.view.View.layout(View.java:6830)
E/AndroidRuntime(15277): at
android.widget.FrameLayout.onLayout(FrameLayout.java:333)
E/AndroidRuntime(15277): at android.view.View.layout(View.java:6830)
E/AndroidRuntime(15277): at
android.widget.FrameLayout.onLayout(FrameLayout.java:333)
E/AndroidRuntime(15277): at android.view.View.layout(View.java:6830)
E/AndroidRuntime(15277): at
android.view.ViewRoot.performTraversals(ViewRoot.java:996)
E/AndroidRuntime(15277): at
android.view.ViewRoot.handleMessage(ViewRoot.java:1633)
E/AndroidRuntime(15277): at
android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(15277): at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime(15277): at
android.app.ActivityThread.main(ActivityThread.java:4363)
E/AndroidRuntime(15277): at
java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(15277): at
java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime(15277): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
E/AndroidRuntime(15277): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
E/AndroidRuntime(15277): at dalvik.system.NativeStart.main(Native
Method)


- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

Re: [android-developers] Using WebView with local data

2010-09-16 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 9/9/10 14:11 , Fabrizio Giudici wrote:

 I'm using WebView to render a simple HTML document that I've loaded
 in memory from a file. The document contains non-latin characters,
 and I can say they are correctly loaded since if I put it into a
 regular TextView, all the text is properly rendered.

 Now, I suppose that since I've already loaded the text in memory,
 I have to specify the unicode-16 enconding, right?

 webView.loadData(myText, text/html, unicode-16);

 But I have problems with non-latin characters. Note that I've
 URI-encoded the four special characters as described in the javadoc
 of WebView.


Anybody here?

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkySczMACgkQeDweFqgUGxe/yACfbunEDP8khqWOiLXGGMhqoGUB
FF0An0LtOz7PxK4DckU4Xyr5lwLocqUT
=JXRv
-END PGP SIGNATURE-

-- 
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] Using WebView with local data

2010-09-16 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 9/16/10 21:58 , Kostya Vasilyev wrote:
 Fabrizio,

 Since your data is already in a Java string, are you sure you need
 to specify an encoding?

I'd be sure that I _don't_ need an encoding, but the method wants a
third parameter:

data A String of data in the given encoding. The date must be
URI-escaped -- '#', '%', '\', '?' should be replaced by %23, %25, %27,
%3f respectively.
mimeType The MIMEType of the data. i.e. text/html, image/jpeg
encoding The encoding of the data. i.e. utf-8, base64


I must say I don't understand this at all. What does mean a String of
data in the given encoding?. A String is Unicode 16, how can it have
an encoding? Ok for base64 - it's a string representing binary
contents, but how a String un utf-8 would look like?

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkySofsACgkQeDweFqgUGxdy3gCgnTJGCjcKPykpMIqC4gVOA/vq
dRsAmgM01i/fzFAs4uulOi8p8XxzUGmD
=dDCU
-END PGP SIGNATURE-

-- 
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: Fine-tuning the WebView

2010-09-14 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 9/14/10 07:24 , Maps.Huge.Info (Maps API Guru) wrote:
 The webview renders like a browser so if you pass it html
 formatted with css, it will display that way. I suppose you're
 passing html directly to webview instead of using a file. I haven't
 tried this myself but I'm guessing if you passed a reference to a
 file for css it would be used as expected. Try it and see. You can
 easily store it in your assets folder.


At the moment I'm passing it directly, not through a file. But since I
have some problems with non latin characters (described in a previous
post here), and I also have to manually URLencode a few characters as
per documentation, I'm considering writing the contents to a temporary
file and passing it to the WebView...

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkyPKOoACgkQeDweFqgUGxfn0wCgq9egYcGSAovxioIIGpQvjGyt
Mq0An3WNz7R9zmTsr4dJaTh933aOTau8
=fg/O
-END PGP SIGNATURE-

-- 
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: Problem in SimpleDateFormat MMM return month number

2010-09-14 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 9/13/10 00:32 , Mathieu - gpmoo7 wrote:
 Hope it helps someone else.

 12% are still using Android 1.5 ;(
I can confirm that there's a locale problem on some gear with 1.5.

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkyPKVIACgkQeDweFqgUGxfesACgiiK17W9UqZVVzwsSySc2iL11
1xYAnidP9OPhT0krt14DOc8ZCLSxvSAZ
=yJRa
-END PGP SIGNATURE-

-- 
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] Clarification about ImageView.setImageURI()

2010-09-14 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I'm using ImageView.setImageURI() to render an image that has been
previously downloaded from the Internet. It works fine, but I haven't
understood whether the call is blocking or not.
In my code, I've implemented a background thread to download the bits,
in the meantime a placeholder is rendered, and as soon as a download
is complete, setImageURI() is called. This approach is used both for a
Gallery with thumbnails and for a single, large rendered with
ImageView. The thing is working, but I see that the application
freezes for a while when a download has been completed and
setImageURI() is called. Which make me wonders whether I'm using it
properly.

For the record, I know that the images I'm downloading are larger than
I need (at least initially); that is, they are much larger than the
thumbnail and the large viewer. Since images, once downloaded, are
stored locally forever, I should probably create some smaller-size
previews in background and then pass them to Gallery and ImageView?
Would that make the UI really more responsive?

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkyPZGIACgkQeDweFqgUGxcifwCffncxl6Wdgns5BuM/tZwWx4h6
BOUAn2Lv9SYXQYAywyn796dR2jilRvgx
=Ml7X
-END PGP SIGNATURE-

-- 
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, WHAT IS GOING ON with the Active Install %? Bug in install to SDCARD is my guess!

2010-09-14 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 9/14/10 21:04 , TreKing wrote:
 I actually got a response:

 Thanks for writing in. We are currently investigating this issue.
 So far, this appears to be purely a reporting issue: some update
 events are being inaccurately recorded as uninstalls, rather than
 updates, creating a lower active installs percentage. However, our
 investigation tells us that applications are not actually being
 uninstalled. We hope to have a resolution soon.


 Which explains why it happened after updating. I guess we just sit
 tight now and wait for a fix.

 Also good to know there's some semblance of support for the Market
 issues. Maybe I won't be so harsh on them from now on =D
Great. Let's sit and wait.

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkyPzBYACgkQeDweFqgUGxcP3wCgpYiBzp96N1qkXiCmdH+auliw
2MQAn01xZw1Xn1nbuYghVybztQKhTV/p
=cEPZ
-END PGP SIGNATURE-

-- 
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: Handling large screens, such as tablets - still doesn't make sense to me

2010-09-14 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

In any case, I think that this is only part of the problem and in most
cases it's not a Google problem, but our own problem.

If in your case it makes sense to just grow the drummer up, in my case
I have some fact sheets, related to the same item, that are shown one
per screen with a tab widget. If I think of an iPad-sized tabled, it
doesn't make sense to just scale up the font sizes etc... It would
make more sense to group together some fact sheets so the user can see
many fact sheets at the same glance. For the Galaxy pad size, I don't
know since it's mid-way. In any case, I think that for many apps it
will make sense to provide alternate layouts for large screens. I
think it's also difficult to say in advance which the better solution
is: I can't figure out how a pad could be used by only having the
emulator. I need to grab a real device and play as a real user, and
then find out which is the best way to use my app with it.

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkyPzYcACgkQeDweFqgUGxdZpgCfWUDEqEZ3vaPPBaedJwygrgSL
8lwAn2ETUcChxwsjlyapYFUZvJfoc69K
=u6Vm
-END PGP SIGNATURE-

-- 
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, WHAT IS GOING ON with the Active Install %? Bug in install to SDCARD is my guess!

2010-09-14 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 9/14/10 21:21 , Pent wrote:
 Thanks for reporting back.

 Which explains why it happened after updating. I guess we just
 sit tight now and wait for a fix.

 If that turns out to be it, I'm kindof horrified how many people
 are running old versions of my app!


... we can only hope that after giving us the segmented data for stars
(I'm not saying pretty useless, but almost useless, since the average
value is enough), Google will soon give us the segmented data for the
installed versions... I also have the feeling that many people don't
update frequently and that it's a good idea to add a specific feature
in the app that e.g. reads the info from a RSS feed and pops up an
invitation to upgrade when a new version is published.

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkyP7soACgkQeDweFqgUGxeh8ACglN9H/O44JgbJfAtRlcLemWps
Wm4An3F54j+GHZqHyXKbPkD2aN0e3xnt
=1oKd
-END PGP SIGNATURE-

-- 
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, WHAT IS GOING ON with the Active Install %? Bug in install to SDCARD is my guess!

2010-09-13 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 9/13/10 15:04 , TreKing wrote:
 On Sat, Sep 4, 2010 at 6:16 AM, Fabrizio Giudici
 fabrizio.giud...@tidalwave.it
 mailto:fabrizio.giud...@tidalwave.it wrote:

 So, can you tell us which part of Google we should talk to in order
 to get some answer to the problem?


 Here's another option. Everyone with this issue should try this
 one:
 http://www.google.com/support/androidmarket/bin/request.py?contact_type=publisher


Ok,

for the record I posted:

Hello.

After a few months of steady active install ratio, the number dropped
significantly in August, with no evident reasons; in fact, comments
and stars placed on the market by users have been good as usual.

While I can't exclude that the drop in the active install rate is
physiologic and real, having seen that many people experienced the
same phenomenon in the same time slot I'd really like to be sure that
there weren't bugs in the computation of the active installs ratio.
Thanks.




I'll let you know what will be the answer.

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkyOdWcACgkQeDweFqgUGxfxpgCdEMj0jczwSM2KacdRroCbA5h0
yDwAni4M2RbgIVhjg3/x0EsJA+HxozMk
=pLYO
-END PGP SIGNATURE-

-- 
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: Is anyone's active install % dropping like a rock lately?

2010-09-13 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 9/13/10 20:11 , Zsolt Vasvari wrote:
 My app, one day last week dropped 3%, which is almost impossible.

 I have a 4.87 with 70 ratings...

For me, it seems now stable at 31/32%. Active installs are now
increasing again. A few positive reviews and even a new 5-stars.

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkyOpq4ACgkQeDweFqgUGxeGGwCbBVfdR9p/eugCnJ7EjnuedmFX
84oAnRi9QyiZ21Zz1LjFkWuFnUXoKS6/
=g5NS
-END PGP SIGNATURE-

-- 
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] Fine-tuning the WebView

2010-09-13 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I'm using WebView for rendering some moderately complex texts. It
works nicely for what I need. The only things that I still need to do
is some tuning in the way texts are rendered; in particular, the font
family and size and the padding (it seems that the component
automatically puts 6-8dips of padding even though I've specified 0; so
it doesn't get aligned with other components in the same view.

I suppose the best way is by means of a CSS, right? Is it possible to
put an external reference to an existing file, or does the CSS need to
be embedded in the document? I'd like to see some examples.

Thanks.

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkyOqE8ACgkQeDweFqgUGxfJDACcD4ZW2vVHvx9dV9NK8oh8Y14P
Bx8An1us0CPkogUbDGQT96PgV+h8KhAr
=bd5G
-END PGP SIGNATURE-

-- 
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: Is anyone's active install % dropping like a rock lately?

2010-09-11 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 9/10/10 23:57 , tdieckman wrote:
 Second, I have a paid license key for my app on the market. I've
 been keeping records daily to watch trends (why can't the console
 do this for us)? Anyway, my total sales figure right now is 584
 paid downloads, while my active downloads of that paid app is only
 452 as of two days ago. If I add the number of cancelled purchases
 (71) to my paid purchases (584), I end up with 655 which is more
 than the 639 that the console shows. I know that the console
 doesn't update as frequently, I've gotten about 10 downloads per
 day over the last few days, so that would mean the console is off
 by more than a day.

Well, thanks - your check against paid downloads is one of the most
interesting pieces of information in this thread and sounds a solid
proof that, at least in some cases, the number are buggy.

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkyLteQACgkQeDweFqgUGxfxHACfb4ZgBVtOWb8Qq6dcHOcu8CsK
tK4AmgMCqbYGqHiKSB30XNjxaNIA8qc2
=pcKj
-END PGP SIGNATURE-

-- 
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: somebody stole our app and resell it on the market.

2010-09-10 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 9/10/10 01:54 , William Ferguson wrote:
 OK,

 firstly deploying your app without obfuscating the code was a
 mistake. But now that its happened why do you think someone who is
 selling a paid version of your app and who will have a hard time
 maintaining the code (decompiling doesn't give you a nice base to
 work from) is going to be able to compete with a free up to date
 version from you?

 Secondly 1) I don't find Java particularly slow. But you can expect
 that its performance on a device will improve as more devices can
 access to JIT. 2) Eclipse is OK, but you don't have to use it. I
 don't, I prefer IntelliJ. Yes it costs, but not much.
There's also the NetBeans option.
 3) Yes, the emulator is slow to start up, but after that its fine.
 So don't close it between each iteration. I don't.

Indeed, the very fact that with Android one has got all these options,
while with iPhone doesn't (and you *have* to buy a mac) makes the
comparison pretty useless to me (in favour of Android). Of course,
this is partly subjective.

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkyJ1xcACgkQeDweFqgUGxfQ9QCgkGbSBEJRkdZVMYsvXeLIj757
UVMAn06hG/DA6k73PwV46b7VWBS7/Uwu
=Yt48
-END PGP SIGNATURE-

-- 
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] Possible (and not possible) customization of the Tab component

2010-09-09 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello.

I've got an Activity with a Tab component, whose layout is shown
below. I need to do some customizations and I'd like to know what it's
possible to do and what not - in the latter case, I'll consider
dropping the Tab component and emulating it with some buttons.

1. Between the tvTaxon TextView and whatever is rendered in the
FrameLayout a solid 1px divider with a drop shadow below is rendered.
I'd like to get rid of that. I suppose that this drawable has been
designed for separating the TabWidget from the contents below, but as
you can see in my case I have an extra component (tvTaxon) between the
two. If it's not possible to get rid of the divider, I could consider
removing tvTaxon and replicating it in every Activity that is put into
the FrameLayout.

2. I'd like not to render the text in the buttons of the TabHost, only
the icon. Is it possible?

3. When moving to landscape mode, an horizontal TabHost is really a
waste of space. I'd like to specify an alternate layout for landscape
mode and have the TabHost vertically rendered at the left edge. Is it
possible?


Thanks.



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

LinearLayout
android:orientation=vertical
android:layout_width=fill_parent
android:layout_height=fill_parent 

TabWidget
android:id=@android:id/tabs
android:layout_width=fill_parent
android:layout_height=wrap_content /
TextView
android:id=@+id/tvTaxon
style=@style/TextAppearance.Large
android:paddingLeft=4dip
android:paddingRight=4dip
android:paddingBottom=10dip
android:layout_width=fill_parent
android:layout_height=wrap_content /
FrameLayout
android:id=@android:id/tabcontent
android:layout_width=fill_parent
android:layout_height=fill_parent /
   
/LinearLayout
/TabHost

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkyIq8AACgkQeDweFqgUGxeJugCfVpWX2IuoGvDwD3pra4A4X9+m
JKgAnAlrebDGlmmEJ7NxR/fZ/UXDTFJE
=DeYb
-END PGP SIGNATURE-

-- 
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] Using WebView with local data

2010-09-09 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I'm using WebView to render a simple HTML document that I've loaded in
memory from a file. The document contains non-latin characters, and I
can say they are correctly loaded since if I put it into a regular
TextView, all the text is properly rendered.

Now, I suppose that since I've already loaded the text in memory, I
have to specify the unicode-16 enconding, right?

webView.loadData(myText, text/html, unicode-16);

But I have problems with non-latin characters. Note that I've
URI-encoded the four special characters as described in the javadoc of
WebView.


- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkyIztsACgkQeDweFqgUGxcGOgCgrqL3EecxM/dA/7JkGsy38DY+
1n8AoJDOovzvGegV4CTnxy7tAnVGZfYl
=9sWs
-END PGP SIGNATURE-

-- 
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: How to make screen shoots with an android device?

2010-09-09 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 9/9/10 16:20 , Lidia G wrote:
 Thank you

Have a look at this thread:

http://groups.google.com/group/robotium-developers/browse_thread/thread/c5cf28ef88918d7d/38a80fd483c114df?hl=enlnk=gstq=Need+help+to+take+screen+shot#38a80fd483c114df

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkyI/DUACgkQeDweFqgUGxc3fwCeKYHbPO3l7clkKwzF64XT0AOz
ldsAn0s9XYs0VGptQ6og30scPUv4bWUi
=+rLV
-END PGP SIGNATURE-

-- 
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: List of Android Devices with specifications to use in Emulator

2010-09-08 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 9/8/10 07:49 , Marcus Wolschon wrote:

 Thanks.
 That should be quite useful.

There's a more efficient way to gather these data. For instance, look
at http://droidparade.noser.com/droidparade/droidparade.html


They're collecting the data from people willing to run their
diagnostic app. It's a very good approach since there's no manual copy
of data and thus no errors, and they're collecting a large number of
attributes for each model.
You have to click on a model to have the details and data aren't ready
to consume as in a spreadsheet, but it would not be difficult to write
a small HTML scraper to automatically extract the data.

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkyHQ98ACgkQeDweFqgUGxcGrQCfYUPgqlrLsusvwPB9mDP2FAII
trsAn3AfGHdR7brZ5/o7nRULVGDp5pqd
=vbdq
-END PGP SIGNATURE-

-- 
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] Recommendation for an Application with tons of media files

2010-09-07 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 9/6/10 18:50 , Frank Weiss wrote:
 I was thinking in using the sd card storage.

 That's a good idea.

 But, I don't want the user to accidentally remove the media
 files. I want it to be private, not accesible to possible
 deletions.

 How might a user accidently remove them? Why is this a concern?
Definitely a 160MB apk is not a good idea. Go for the sdcard, and add
just a consistency check for all the stuff, if you're worried about
deletions. Keep in mind that most users won't use a file manager and
thus it's not probable that they mess around with your data.


- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkyFKoQACgkQeDweFqgUGxcyKwCgie6CTEeIY77K9kkWMaMYXROh
3LwAnRQG4IneGWRStazk9Jtsykv1P+rS
=hk3x
-END PGP SIGNATURE-

-- 
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] Lost my keystore, loads of Apps, what to do?

2010-09-04 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 9/3/10 18:02 , Michael MacDonald wrote:
 You have to back up the keystore offsite.  That can be as simple
 as e-mailing it to yourself as an attachment on a gmail account.

Not that it makes much sense to send by email a private key, even
though it's encrypted by a password. Back it
up, but keep the store private, such as an USB key or a CDROM.

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkyBJjYACgkQeDweFqgUGxcJ2gCgnGsxXwKaMEoQslznOXCbiSJJ
Ma4An3PEupzah7X7Diiqu4FlnbyoMmh/
=6Gu4
-END PGP SIGNATURE-

-- 
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, WHAT IS GOING ON with the Active Install %? Bug in install to SDCARD is my guess!

2010-09-04 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 9/4/10 09:37 , Dianne Hackborn wrote:
 Yet another less for me to keep the heck away from these threads. :p

So, can you tell us which part of Google we should talk to in order to
get some answer to the problem?

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkyCKnQACgkQeDweFqgUGxcXnACgox4Zf6TxmWbOfDuPu3vjwybB
Tb8AoKgGL/q+xxxK/2/Qlo9OFt0Ewbtv
=R5ZL
-END PGP SIGNATURE-

-- 
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: Is anyone's active install % dropping like a rock lately?

2010-09-03 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 9/3/10 21:03 , Brad Gies wrote:

 This is just a question that I have been wondering about related
 to this.

 When I published one of my apps many months ago, I selected All
 Locations. However, I only have data in my app for Canada, and
 the US., and it is English only. The app would be handy for any
 English speaker that is planning on visiting Canada/US but for the
 most part, it's really only handy if you live here. I expected
 about 50% of users that download my app would uninstall it because
 they don't live in North America, and wouldn't get much use out of
 it.

 But, now my installed percentage is only 38%... it was 48% only a
 few weeks ago.. then it also started dropping.

 The question is: Has anyone experimented to find out whether your
 installed percentage climbs if you only publish to those locations
 that would get the most use out of your app? And a followup
 question :). In your opinion, is it worth changing the Locations
 now? FYI.. I just did it, so I might be able to answer this in a
 month or so :).
I could have a similar problem (I have bird lists that are localized
for large areas, let's say continents). As far as I can tell, the bulk
of the initial downloads were from UK (and initially I supported a
bird list for Europe). People from USA started asking for supporting
North America, and at a certain point I released this new feature. In
spite of a clear tip placed on the home activity, I've gotten a few
feedback from US people not understanding that they have what they
need... But this doesn't explain why there are no more active users
from the UK/Europe in general. FYI, my number is still going down (32%
from 45%) and the absolute figure is about 20 units down from a couple
of weeks ago.

BTW, I find it very disturbing that nobody from Google has confirmed
that there are no ongoing known bugs with the Market, as I and others
have asked about in this thread.

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkyBXSEACgkQeDweFqgUGxcZ6gCdGji29XFDLKd4PoKIZco5i4k/
UYAAn02s38VaAOne9J25iMLoly23yTOM
=i2Nz
-END PGP SIGNATURE-

-- 
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: Is anyone's active install % dropping like a rock lately?

2010-08-31 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 8/31/10 00:00 , Doug wrote:
 Here's a scary thought.

 What if, during development, every time you installed and
 uninstalled your app on your phone, Android phones home with an
 uninstall. Maybe that's a new feature of Froyo.

 Please, someone prove this wrong on this.  :-)

I've thought about that (with the exception that the new feature
could be just due to an update on the Market - my own development
phone is still running 2.1). This doesn't explain the facts, in my
case. My active install ratio is still dropping :-( I got to 33%, down
to 45/46% of two weeks ago, and I only disinstalled from my phone 3/4
times. I'd really like to have the feedback from Google engineering
that there are no possible bugs in the market. Sure there are chances
new users are not understanding something (my app provides features
per geographic area, recently I've advertised the extension to North
America, and users might not been able to spot it - in spite of a tip
message on the home screen). But even one comment market that would
suggest me this is in form of please add support... and means that
the user didn't uninstall the application.

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkx8s0EACgkQeDweFqgUGxe99wCfSIumtqh7py5ENGXu20Ea8XZv
9K8AoI8ylhKu6zXio1K8JtMev9M+GA3h
=fYdn
-END PGP SIGNATURE-

-- 
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] Strange instance of app not responding error

2010-08-31 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi.

A customer just notified me that she's experiencing the infamous app
not responding / wait, force close message during a specific
operation. By just waiting enough, the app resumes ok.
Now, that specific operation is indeed long and in fact it has been
programmed in a background thread, with a progress dialog signaling
the wait. I can't reproduce the problem on my development phone - I
suppose because it's perhaps faster than the phone of the user. But I
can't reproduce the problem either with the emulator, which I suppose
is slow enough.

Generally speaking, I think I could be able to solve this specific
problem with the customer giving me the proper feedback. It's the
general issue that hassles me. This part of the application is very
good covered by tests at different levels, including automated
black-box tests with Robotium that drive the UI as the user would do,
and even in stress mode (repeating the test multiple times). So I
supposed to be very safe in that area and I'm disappointed to discover
that it was a false sense of safety. What am I possibly missing?

Also, is it possible / does make sense to slow down a phone during
tests? I was thinking of a service running in background just
consuming some CPU cycles to make the phone less responsive.

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEUEARECAAYFAkx8uUcACgkQeDweFqgUGxeL7gCVGEE8EYiE2J0t9vnS48LVYOrd
hwCfZW1TN7TFM8CbYTIZR36pDU6TcSE=
=X0L9
-END PGP SIGNATURE-

-- 
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: Is anyone's active install % dropping like a rock lately?

2010-08-31 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 8/31/10 10:04 , Simon Platten wrote:
 As google take a percentage of every sale surely its in there
 interest to get this right?
In the past there have been bugs related to some apps not being
visible on the Market (see Tim Bray's blog). I suppose that also in
that case Google interest was to have the apps visible :-) Bugs
happen, of course.

As a side note, how are you guys tracking the daily history of stats?
I suppose there's no automated way, right? So we have to set up a
spreadsheet and daily copy the data, right?

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkx8uk8ACgkQeDweFqgUGxfiJwCfa5OOzkMs7s52eHiSUy3gZoeH
WaoAn0tkeTh4vfAIFj415tCsrytiVP7P
=Qli+
-END PGP SIGNATURE-

-- 
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] Strange instance of app not responding error

2010-08-31 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 8/31/10 10:22 , Mark Murphy wrote:

 The two most variable performance things I can think of in Android
 are network I/O operations and flash writes. The former is fairly
 obvious, and we've been recommending network I/O be done in an
 AsyncTask, IntentService, or background thread for some time.
Thanks for pointing out those things. Is it also reading from flash
slow? The long operation I'm talking of is reading a bunch of data
from the flash to RAM (no network, no writes).


- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkx8vlwACgkQeDweFqgUGxdgsgCgpm18MvBnIM8CGOBQ2KFGeoes
IGUAmwY1vqxep5oyyO3EjaCcuHt9rXVh
=kqG7
-END PGP SIGNATURE-

-- 
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: Ratings breakdown in Dev Console

2010-08-31 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 8/31/10 14:34 , OldSkoolMark wrote:
 ... and nice to see evidence of Google working on Market
 improvements.

Yes. Perhaps in four / five years we'll get segmented data about
phones and countries of users... :-/

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkx9EckACgkQeDweFqgUGxfVZgCfXr9Hi3Xd65wGc7Ui0gBB/miA
ag4AoLKJr0iQX2iHBZRem3q2STnufVuz
=T21U
-END PGP SIGNATURE-

-- 
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: Negative comment causing drop in sales

2010-08-29 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 8/28/10 22:30 , cyxb wrote:
 My favorite one-star Market comment: Rate one star if you want
 the full version to be free!.  Or another 1 star classic: Make
 the full version free cuz my mom won't let me buy it

 People are like lemmings.  A comment like that will cause an
 avalanche of similar comments.  Likewise, a great comment may also
 trigger other people to post nice comments.  I suppose it all evens
 out in the end, or at least that's what I tell myself.

I suppose in the end this kind of social Market features (starts and
comments) are just useless.

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkx6IqgACgkQeDweFqgUGxdhtgCfTk1jurc403AH7jBCKHjrvrWo
LGUAoKo5nMIyMBS5sariDvOPgo8wU5OC
=yUPX
-END PGP SIGNATURE-

-- 
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: Negative comment causing drop in sales

2010-08-29 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 8/29/10 12:41 , Anil wrote:
 I have a suggestion. Make short 1 minute video clips of people using
 your app and saying why they like it - post these on youtube.
 Then have a web page with links to these and also text comments from
 Market. Try to find balanced comments - all excessively sweet will
 make people mistrust your effort.
 To summarize, from the existing crop of comments on Market, find the
 most useful balanced comments, create your own video clip comments,
 and in your app description persuade people to go there.

Generalizing: don't expect that the Android Market can really help us
to promote our apps. We need to do that by ourselves, with websites,
youtube videos, what else. We need to attract people in other ways so
when they get to the market they have already decided to download our
apps, and won't pay much attention to others' comments.
 

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkx6eUEACgkQeDweFqgUGxf6ygCgjTipKcj1JC8sXv7s6jnES+v/
iDIAn2XT9W6I78sJvX0kqaZUJpIkTjhq
=2oxv
-END PGP SIGNATURE-

-- 
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: Active Installs Dropping Like Crazy but Total Downloads Increasing Steadily!

2010-08-27 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 8/26/10 17:54 , Chris Stewart wrote:
 Yeah I can imagine.  I think what you should focus on is that your
downloads
 are _steadily_ rising.  That's really what matters most and so if that
 continues and your position isn't being affected, negatively, I wouldn't
 worry too much about it.
Hmmm... I disagree. We have discussed that there could be non-worrying
reasons for the phenomenon (*), but of course downloads increasing and
active installations not increasing may be as well the warning of a
problem. For instance, you're advertising your application in such a
way that users are really excited about it, but the app doesn't match
their expectations; or they are searching for some feature that is in
the app, but they can't find it (for an usability design problem). I
suppose that in this case, sooner or later you also get a negative
review, tough.

(*) Reading that so many of us seem to be experiencing the same thing
at the same moment, I'm guessing whether it's a market bug... it would
be nice to eventually have a feedback from the Google engineers
confirming that on their side everything is fine.

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEUEARECAAYFAkx3cCsACgkQeDweFqgUGxe0EgCgmBPrhYB8nVlh0E4ddQll9bbG
kPYAmLnfJVe9kJR6zWpT5YsRP0iJPrs=
=nR6O
-END PGP SIGNATURE-

-- 
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] Making sure that ... (not an ellipsis) is not wrapped

2010-08-27 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

In some cases I have messages, typically shown in a toast message,
where there are three trailing periods. For instance, bla bla bla.
Please wait Note that this is _not_ an elipsis, as the string is
not truncated. The problem is that sometimes the string is wrapped at
the end of line and I get two periods in the first line, a newline,
and then a single orphaned period in the next line.

I'd like to have the ... not broken by any means. How can this be
done in a reliable way? E.g. is there any Unicode single char
guaranteed to be available in all Android appliances that
gets rendered as three periods?

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkx4EgkACgkQeDweFqgUGxcVxQCgppQtp3Owqa9vaYKw2ivAOaZH
o2sAoJLb4+dLbSlosvFoi3weL25i21Yc
=00Kj
-END PGP SIGNATURE-

-- 
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] Using Bouncy Castle with an Android app

2010-08-27 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 8/28/10 00:55 , fba wrote:


 Or, could I get around this by making sure that I am using the
 same version that is included in the OS?   (Or, in a nutshell, is
 the ClassCastException likely to be a problem because the
 parameters defined for the same method names don't match?)
I don't fully understand what's happening to you because more details
are needed, and generally speaking I think that Android would prevent
you from embedding in your app classes which are already present in
the runtime, but your problem seems to definitely fall within this area.

One possible solution (but it's about the symptom, not necessarily the
real cause and thus not necessarily the best solution) is to use a
static bytecode manipulator that renames packages in a jar. I use
Maven and there is the maven-shade-plugin, but I'm sure similar tools
exist for Ant. The basic idea is that if you have L.jar containing
com.acme.MyClass and A.jar referring to it, with the tool you can
directly feed in L.jar and A.jar and achieve L2.jar and A2.jar where
both the original class and its references have been replaced by
something such as foo.bar.com.acme.MyClass. This works for me (not for
BouncyCastle but for other stuff). With this trick, your source files
stay as they are, but the binary code gets fixed before being
converted to dex.

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkx4SjMACgkQeDweFqgUGxfolwCfeStWh31mcmgzcRdjkcbCNA+Y
qOsAn0Twzw2rUyRDwSh5hT2UKyUD/dzK
=zjwJ
-END PGP SIGNATURE-

-- 
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] Negative comment causing drop in sales

2010-08-26 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 8/26/10 14:45 , TreKing wrote:
 On Thu, Aug 26, 2010 at 7:28 AM, abowman abow...@gmail.com
 mailto:abow...@gmail.com wrote:

 What can I do about this?


 With the current system, not much.


 Is there anyway to respond to this false comment besides editing
 the description of my app?


 Post your own comment directly after explaining that this is wrong
 and / or have some friends do the same.

 Alternatively, and this is more work, update your app to show a
 huge dialog that states the comment is wrong and why.


 Is there anyway to get the comment removed, since there is nothing
 wrong with the app?


 Nope. You can try marking the comment as Unhelpful (Version
 2.2), or as Spam, but I doubt either of those does much of
 anything, if anything at all.

If you have some registered users, or anyway you are in touch with
them, you might ask them to post a positive review. Even though people
can't distinguish your friends from your customers, having the latter
ones to post sounds as a better move.

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkx2ZzEACgkQeDweFqgUGxeTTwCfeBxJNBOqagsNXcNdQ5cuGPob
dM0AoJzgESjzanYTZFuqm8we3Jm7CQD4
=AVbT
-END PGP SIGNATURE-

-- 
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] Android Emulator vs iPhone emulator (Why does it take so long)

2010-08-26 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 8/25/10 21:14 , Vedran Rodic wrote:
 On Wed, Aug 25, 2010 at 5:39 PM, Frank Weiss fewe...@gmail.com
 wrote:
 Just to be a bit cheeky, why use the Android emulator at all? You
 know it doesn't cost $99/year to to run your Android apps on a
 device.


 I'm worried about flash memory in my phone wearing down, + I
 mostly find it more convenient to have results on the same screen,
 on a device I don't have to hold in my hands.

I understand this, but you're taking high risks if you don't test on
real devices, since there are many things that can fail on a real
device and don't on the emulator. FYI, for several weeks at my
beginning of the development I believed that my app was fine with
Android 1.5, because it ran fine in the emulator, while it was
regularly crashing on 1.5 devices (nothing special depending on
hardware, such as GPS: it was just an icon resource placed in an
improper way). This also caused my ratings to start with a wonderful
1 star - it crashes on my phone that isn't precisely the best way to
present yourself to the world.

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEUEARECAAYFAkx2abUACgkQeDweFqgUGxdQIwCgpN9MfaTSM8m1GTXg0hFPNw0i
vLgAlAokSatM3W1vLMNQtTLDiKDJ1UM=
=L20j
-END PGP SIGNATURE-

-- 
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: Is anyone's active install % dropping like a rock lately?

2010-08-26 Thread Fabrizio Giudici
I've spotted this thread only now. It's happening to me too - in a
week it dropped from a _steady_ 45% (held since several weeks) to 36%,
with a single new active install out of regularly increasing new
downloads. I even posted that on my blog - a commenter pointed out
that when people upgrade an app the download counter might increase,
while the active install doesn't (actually, I've released two updates
in this month). Can you confirm?

-- 
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] Cannot use the sdcard while connected by means of USB - problems testing

2010-08-21 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 8/20/10 17:07 , Kostya Vasilyev wrote:
 Fabrizio,

 You can try changing USB connection mode to Portal  Tools. I've
 posted screenshots here:

 http://kmansoft.wordpress.com/2010/08/19/enabling-adb-on-the-motorola-milestone/




- -- Kostya

Thanks Kostya, I've already tried that, but if I select Portal 
Tools I don't see my device from adb (and USB debug connection
disappears from the notification area, confirming that the link has
been disconnected).

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxvsf8ACgkQeDweFqgUGxdtgQCfWJCBOiv2ISralynd2Ek0iZt6
6cwAn1GU5/q5xVwQqy4Rt0jb571+vApn
=/8VN
-END PGP SIGNATURE-

-- 
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] Cannot use the sdcard while connected by means of USB - problems testing

2010-08-20 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

When I connect my Droid to the USB port, its sdcard gets mounted to my
laptop (Mac OS X). While this is occasionally useful, the sdcard
becomes unusable from the apps - which causes me troubles when I try
to test features that use the sdcard. Detaching the USB works, of
course, but I want to keep it attached in order to keep adb shell and
adb logcat running. Unmounting unilaterally the sdcard from the laptop
doesn't work - I see a notification on the phone that the sdcard is
again available only when I detach the USB.

Thanks.


- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxulHsACgkQeDweFqgUGxfXlgCfZFUoDbA8JBcY5JrLpGTAlapJ
4kcAn0dn5BFbEg5MXB8cU2xf+0YqpSXH
=RFmU
-END PGP SIGNATURE-

-- 
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] Optimizing image processing algorithms for Android

2010-08-19 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 8/19/10 13:35 , Amit wrote:

 Now, I know that native code will *not* yield any significant
 performance improvement over Java code
Well, specifically for image processing this won't be true, for sure
up to 2.1 included (as the bytecode is purely interpreted); in 2.2 we
have JIT, but can't speak as I haven't seen it yet.


- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxtHakACgkQeDweFqgUGxe83wCfSDP1NEN+TLD0iOCZ/zSvQDRw
I5cAoJOEoC7eREU5KuPU7m93/GDj9VUr
=2ZDf
-END PGP SIGNATURE-

-- 
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: Optimizing image processing algorithms for Android

2010-08-19 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 8/19/10 14:33 , Amit wrote:
 Well yes, I only meant that just the fact of using native code
 (over Java) won't be very effective. At least that is the
 impression I have (which may be wrong).

 Considering the fact that even native code ultimately runs inside
 the Dalvik VM instance, performance gains from use of native code
 would be modest, right?

Things are a bit different. As far as I understand, applications in
general only run inside the Dalvik VM - which means that e.g.
activities, boot code etc... is bytecode. In other words, a 100%
native app can't exist in Android. But the NDK allows you to create
portions of native code that are called by the app. That is, a flow of
operations is always started by the VM, but your native code gets
executed directly on the processor. This is more or less the same that
happens with JNI in the regular Java JDK.

Given that, before moving to native code I'd wait for others to share
with you their experience specifically with image processing.

PS It's a shame that Google dropped some imaging back-end classes from
Harmony, as there are a number of powerful and complete imaging
libraries in Java such as JAI.

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxtKYAACgkQeDweFqgUGxdg6wCgpJM/beTx9U0thsO30tjNh0Mp
lOUAnRRBs/XxM9PutV+7KOh7CoLGehE8
=bXS+
-END PGP SIGNATURE-

-- 
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] Rendering problems with an Activity having android:screenOrientation=landscape

2010-08-19 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi.

I have a regular list with a list of names. When I pick one name, I
need to show it on the screen with the largest font size (they are
supposed to be made available for reading by the phone owner to other
people). On this purpose, I activate a new Activity that declares
android:screenOrientation=landscape so it can take advantage of the
wider screen available. The Activity has also the FullScreen style.

It works, but for a couple of rendering details. First, the slide in
screen effect that I've configured on my Droid doesn't work - the
activity is rendered without any effect. Second, for a glimpse there
are foreign contents on the screen (they are parts of the last
notification screen that I opened). I presume it's a problem of the
frame buffer off-screen contents being not properly managed. If the
problem is not clear, I can later post a link to a short video.

If I start with the regular list already in landscape mode (because I
rotated the phone) everything works fine. The problem seems to be
transitioning from an activity in portrait mode directly to an
activity in landscape mode.
I guess I've hit a known bug...

I was thinking of trying the following thing:

1. Drop the android:screenOrientation=landscape setting in the
AndroidManifest.xml
2. Keep the widgets on the Activity initially not visible, so a blank
activity slides in.
3. After a short delay, programmatically switching to landscape mode
and set the widgets visible
4. When quitting the activity, run the reverse steps (setting the
widgets to not visible, programmatically switching to portrait mode,
waiting for a short delay, finishing).

Thoughts? Better workarounds? Thanks.

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxtR6wACgkQeDweFqgUGxcFbwCfTiiS0KpTECkLB5ZOuypNGSRe
rDwAn3PSPJE0+EhBLDoKhDa4qvCGXgiD
=YQq2
-END PGP SIGNATURE-

-- 
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] Changing default location of R.java

2010-08-19 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 8/18/10 22:34 , Fabrizio Giudici wrote:

 On 8/18/10 12:19 , Roj wrote:
 Hi, Is there any way to change the default location of R.java
 file which is getting created in gen folder? By default R.Java
 will get created in gen folder under the package (of the
 application) directory.

 I have a common code (with UI) which has to go with different
 applications with different package names/branding. When ever I
 change the package name in manifest file, R.java will created
 inside that package so I have to change the import statement in
 all the files with the new location of R. How I can avoid it?
 Also is there is any provision to have two or more R files in
 one application?
 There are at least two ways to deal with that - I'm enumerating
 them and also taking the chance of asking to the list if there are
 some relevant consequences in choosing one or the other.

 1. You can trick your build system with two AndroidManifest.xml
 files. The former has e.g. com.acme.app as the package and thus
 com.acme.app.R is generated. Just before you run the packager you
 replace/tweak it by changing the package name. This is relatively
 simple to do with Maven and is described here:
 http://groups.google.com/group/maven-android-developers/browse_thread/thread/56b2449756fd4a40?fwc=1pli=1


- - I suppose you can do the same with ant.

 2. aapt has got the   --rename-manifest-package option that seems
 to do the trick as well.
Well, after experimenting I've found that #2 is the way to go, at
least if you have explicit intents. In fact, if the code packages for
activities stays the same, Android will pop up a question box when an
explicit intent is activated, asking to choose one of the two apps.
This means that the two apps are not well separated.

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxtTxkACgkQeDweFqgUGxc03QCfbxSLPDG8DQBm0/wYMceYU1+j
t64AnR9cPdpAB6nIUdpkFauIMkPqp/qc
=fCna
-END PGP SIGNATURE-

-- 
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] Changing default location of R.java

2010-08-19 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 8/19/10 17:34 , Fabrizio Giudici wrote:

 Well, after experimenting I've found that #2 is the way to go, at
 least if you have explicit intents. In fact, if the code packages
 for activities stays the same, Android will pop up a question box
 when an explicit intent is activated, asking to choose one of the
 two apps. This means that the two apps are not well separated.
Never mind my previous post. The problem are *implicit* intents, not
explicit ones. If you don't have implicit intents, #1 strategy should
be fine.

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxtWEsACgkQeDweFqgUGxfooQCdGLl1Y+x3ZFnXzmauQQsRpXnK
u9QAoLPccyPsGv35zTOSqXEjwqqiTQH9
=ir8f
-END PGP SIGNATURE-

-- 
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] Getting critical feedback on your application

2010-08-19 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 8/19/10 18:24 , Frank Weiss wrote:
 I wanted to add that if you really want to keep your customers
 satisfied, a complaint is a gift. The problem in this case is
 finding the sincere complaints.

... and detailed complaints. Because sometimes you don't understand
what's wrong.

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxtXdkACgkQeDweFqgUGxchTwCdHghBSCUplWaALwtW5AuU9+nH
74kAnjxmTwpS+pmnsHdfev96wE84J+qt
=rLLb
-END PGP SIGNATURE-

-- 
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] Explicit intent in custom Preferences screen

2010-08-19 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi. I'm currently using this in preferences.xml:

PreferenceCategory android:title=@string/preferences_taxonomy
PreferenceScreen
android:title=@string/preferences_taxonomy_title
android:summary=@string/preferences_taxonomy_summary
intent
android:action=it.tidalwave.bluebill.mobile.android.snapshot.action.PICK_TAXONOMY
/
/PreferenceScreen
/PreferenceCategory

This allows to trigger a custom Activity when this specific
preferences item is triggered. Copying from the documentation, I'm
using an implicit intent, and it's working.
But I'd solve a problem if I could use an explicit intent, that is
writing the fully qualified class name of the target Activity. I
didn't find documentation about this, so I don't know whether it's
possible and how to do that.
Thanks.

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxtjscACgkQeDweFqgUGxesbwCfTvDkzWefaBjWv0PDm0G/LvDF
HJYAn3USABw1KIX1UtpnOHnpwuC+vFJO
=uKkV
-END PGP SIGNATURE-

-- 
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] Getting critical feedback on your application

2010-08-19 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 8/19/10 18:12 , TreKing wrote:

 I also respond to user comments in the app itself. Not much more
 you can do.
BTW, does this mean that you reply to the comments in the Market? I'm
only aware that I can post a single comment after giving some stars -
are there other ways?


- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxtpMoACgkQeDweFqgUGxd2jgCeO1awq36tTvOLQlaoqy8hW0ey
nuUAnRfS89yRDRZcf9BTHSDb1M+jZfxo
=Zgfl
-END PGP SIGNATURE-

-- 
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: Need confirmation: it is impossible to programmatically set the default locale in a device, right?

2010-08-18 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 8/18/10 00:55 , DanH wrote:
 You can in theory do java.util.Locale.setDefault within your
 application, to change the apps Locale from whatever the machine
 default is.  Whether/how it works on Android is hard to say.

Tried and for what I've seen it's has problems. For what I've seen it
doesn't change the locale in parts handled by Android (e.g. selection
of xml resources), so even though it would be picked by my code (where
I use Locale.getDefault()) you'd end up with a mix of two Locales,
which doesn't make any sense.

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxrk/YACgkQeDweFqgUGxcgvwCffx7MRC8c+u967Ks2UG7s5n0M
j+0An1k4Efw7z6kECk1dNRJhhQs6PhDg
=5YCz
-END PGP SIGNATURE-

-- 
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: How to test Apps on a variety of devices?

2010-08-18 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 8/18/10 16:37 , Maps.Huge.Info (Maps API Guru) wrote:
 I have found the emulator to be useful for testing the screen sizes
 but little else. The emulator is fine for basic functionality tests
 but it is woefully inadequate for determining if an app will run
 without crashing on any particular device.
...

I second John's words. The emulator is just a gross filter for trivial
problems. In addition to his advices, I'd suggest to check out the
local Java User Group (JUG) to seek for help. There's usually a number
of JUG members who own an Android phone and I've been helped in a few
cases thanks to this channel.

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxr8fcACgkQeDweFqgUGxcy0QCgtJ0jomeuYBBNLePWJ2wvhgrN
b1gAn1fMv7iwpkHuIdjL2+JJKDYdAhR8
=lXpn
-END PGP SIGNATURE-

-- 
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] Pros/cons of multiple activities in an app vs. one activity, multiple views

2010-08-18 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


It's partly subjective, of course. Another advantage of multiple
activities is the inter-app integration, or expandability. For
instance, splitting into activities and using implicit intents, you
are effectively creating public integration points for your
application, that could be used by other applications.

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxsFXIACgkQeDweFqgUGxccCgCgg7vB68PYmjQ3uE7LyodxMnQX
Z4UAn3ootEvqGQdDafBFhTJEskEal59r
=Hwc1
-END PGP SIGNATURE-

-- 
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] Changing default location of R.java

2010-08-18 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 8/18/10 12:19 , Roj wrote:
 Hi, Is there any way to change the default location of R.java file
 which is getting created in gen folder? By default R.Java will
 get created in gen folder under the package (of the application)
 directory.

 I have a common code (with UI) which has to go with different
 applications with different package names/branding. When ever I
 change the package name in manifest file, R.java will created
 inside that package so I have to change the import statement in all
 the files with the new location of R. How I can avoid it? Also is
 there is any provision to have two or more R files in one
 application?
There are at least two ways to deal with that - I'm enumerating them
and also taking the chance of asking to the list if there are some
relevant consequences in choosing one or the other.

1. You can trick your build system with two AndroidManifest.xml files.
The former has e.g. com.acme.app as the package and thus
com.acme.app.R is generated. Just before you run the packager you
replace/tweak it by changing the package name. This is relatively
simple to do with Maven and is described here:
http://groups.google.com/group/maven-android-developers/browse_thread/thread/56b2449756fd4a40?fwc=1pli=1
- - I suppose you can do the same with ant.

2. aapt has got the   --rename-manifest-package option that seems to
do the trick as well.




I'm going to need this soon as I would keep separate package names for
the official releases and the snapshot builds, so I can install both
at the same time.

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxsQ8QACgkQeDweFqgUGxcjHwCeNNL5zXn3AZGovnbzjDKr6B1A
z4UAnRFJQi3GK2LrZdtd/dYh/9q/8VLx
=7Wot
-END PGP SIGNATURE-

-- 
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] Getting critical feedback on your application

2010-08-18 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 8/18/10 17:55 , MapleWorks wrote:
 I was wondering how people manage to find the best feedback on the
 apps they create. We've developed an application as a test for the
 Android platform but the community reviews on various sites are
 not the most helpful. 'Bug with text but good everywhere else'
 isn't the most detailed description of what's wrong and there is no
 way to follow up with these anonymous reviewers. Do people look to
 forums to post their app and get feedback or other methods?

 I don't want to post our actual app here in case it is not allowed
 and I do not want this to come across as spam.


 Thank you for any help.

Same frustration in my experience. I'm receiving very few meaningful
comments related to bugs and most of them make me think that some user
doesn't correctly figure out how to use the application (which is a
usability bug, of course, but not having the possibility to contact
them I can't know for sure). There's only a single bug that has been
precisely reported. I've set up a Facebook page and a forum (not
working yet, indeed), but they haven't been used yet - consider that
I've almost 1000 downloads (+ 100 more in alternate markets). OTOH,
I've gotten some extremely helpful feedback by 3/4 users that
contacted me by email, making it possible for me to get back to them.

I've planned to add a specific form in the app itself for reporting
bugs, maybe they will be more willing to use it. Also I'm considering
to embed in the app a simple poll that could be periodically used to
explicitly ask for feedback (and eventually prioritize new features).

Anyway I'd be happy to hear from others with more experience in this
field.

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxsRWQACgkQeDweFqgUGxcZUgCgjfngJ7k4JL1wTBVqWlJqEbu8
vI0AmwZnZql/GQpYyHa0MYG5yW8rY1LU
=hdZH
-END PGP SIGNATURE-

-- 
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: Problem computing the free space on the external card - only with a single installation

2010-08-18 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 8/18/10 22:37 , Kostya Vasilyev wrote:

 The code above multiplies two ints and casts them to long. If the
 intermediate result is over 2Gb, you'll get a negative number.

 Try multiplying long values instead:

 long byteCount = blockSize * (long) avlBlocks;


A they are ints Hell. I think it can be definitely that.
It is not reproduced on my Droid because it has 5.5Gb free that are
reported as 1.5Gb. Indeed, it will report a negative number when the
free space is between 2Gb and 4Gb, 6Gb and 8Gb, 10Gb and 12Gb, 14Gb
and 18Gb etc... And my user has got 14Gb.

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxsUqwACgkQeDweFqgUGxdJNQCaAwtrwoaj+WMUsL8ZqseowIiw
UR0AnixwG7t0M6V9SVhVW/sydNMk0xEw
=X1Pt
-END PGP SIGNATURE-

-- 
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: How to test Apps on a variety of devices?

2010-08-18 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 8/18/10 21:45 , nation-x wrote:
 You can test you applications on all Motorola devices by using
 their Device Anywhere service or whatever it's called... it costs
 money though.

Yes. I know that service from the JME times, and probably is ok if you
are running a commercial app. But if you're after a free one, it's too
expensive as you said. BTW, they offer a good number of Android phones
in addition to Motorola.

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxsWKYACgkQeDweFqgUGxdOcgCfTd+Oi4WvX99+jhVWOQyTew1r
pG4AnR18pPFAjE4wsmDnJfitrF5IYSbU
=HSbT
-END PGP SIGNATURE-

-- 
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: Chilling news: Oracle sues Google over Android

2010-08-17 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 8/17/10 08:20 , nexbug wrote:
 Face it, This is just a ploy by msft and apl to distract android
 devs from writing code And make them spend all the time speculating
 and starting flame wars.

So, as I said, we'd just keep on writing code and improve our apps! Right?

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxqQAIACgkQeDweFqgUGxdrhQCggTw57DvV4M5bYDqibHP8NyyD
uK0AnRLvHHX29U8t/LHJCHg1VLTUuWeq
=tPeG
-END PGP SIGNATURE-

-- 
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 confirmation: it is impossible to programmatically set the default locale in a device, right?

2010-08-17 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I know that for testing with the emulator, the default locale can be
changed by proper adb shell commands, as documented by the official
docs. In the docs there's no mention about doing a similar thing in a
real device. I assume that there's no other way to change the default
locale than by manually using the Parameters app, right? Of course,
I'm talking of testing.

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxq/CYACgkQeDweFqgUGxdJRACZAcaTBdKJLIHabu5DGRaeiCVb
9/wAmwazX9dHxPPdGEVUKuxGvRxEIJHv
=TNFg
-END PGP SIGNATURE-

-- 
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] Need confirmation: it is impossible to programmatically set the default locale in a device, right?

2010-08-17 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 8/17/10 23:52 , Frank Weiss wrote:
 I'd be surprised if you can't do per-app locale changes in Android.

It would be ok for me to change the locale of the whole phone.

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxrCiUACgkQeDweFqgUGxeJeACfbkFS907YmVctqXYnChoNbvR1
ckwAn2LLrh9hqTLclnq3WgUe+BKLEO49
=5OpG
-END PGP SIGNATURE-

-- 
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: Chilling news: Oracle sues Google over Android

2010-08-16 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 8/16/10 05:07 , DanH wrote:
 Having written 13 software patents, I'm well aware that many are
 very weak, or, if not weak, very narrow.  But proving all that in a
 court of law is the trick -- the presumption is that the patent,
 having been cleared by the patent office, is valid.  (I'd have
 several more patents if it weren't for the ones the PO rejected
 because of supposed prior art, even though the quoted prior art
 had no relation to the area of my applications.)

Exactly. I don't think that Oracle made such an obvious mistake, even
though the patents might be actually weak. They can anyway cause harm
to Google with the trial thing. This only consolidates the idea that
Oracle doesn't want to shut down Android, but come to a deal (maybe
I'm wrong, but note that even though Oracle officially asked to
withdraw and destroy Android, they didn't ask for a temporary
suspension of Android activities until the trial is finished). If the
deal is only money, it won't affect us in any way. If the deal is also
about changes in the way Android is, it will affect us. I think there
are both positive and negative outcomes - but until they come to a
deal, we really can't know.

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxo7g0ACgkQeDweFqgUGxdKiACdEHWE9jpxcpbONq9SttNgs3tP
xZ4AnRyE3V5sQD2k5ASP4L3S9pLn2icg
=Y+xk
-END PGP SIGNATURE-

-- 
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: Chilling news: Oracle sues Google over Android

2010-08-16 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Suggested read:

http://blogs.forbes.com/taylorbuley/2010/08/13/android-lawsuit-is-really-just-oracle-flirting-with-google/

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxo8dwACgkQeDweFqgUGxcXuQCcCiFY+IC2kXMsWzbejUXOtRqb
qjMAmQHJBRWpCQTOoCfjd00bLwMh+aMZ
=m91m
-END PGP SIGNATURE-

-- 
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] XML parsing slow ... cache!

2010-08-16 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 8/16/10 16:02 , Davide wrote:
 Hi,

 I have seen that xml parsing is very slow. Using sax would be better,
 but benchmark show that sax work only 30%
 faster as dom. Is right? Is faster if I construct a DOM using sax?

 To reduce time i like to cache xml file. Caching it as xml is not a
 good idea because the parsing time is there again
 the secondo time.

 Should I use sqllite? Is faster? Is an idea to use an
 ObjectOutputStream? Can I put in asset a file maked by
 ObjectOutputStream
 or the serialized objects can be different in different mobile hardware?
Davide, have you run some precise test so you are sure you've spotted
the bottleneck? Just to be sure that it's really XML the problem (and
not I/O). JSON could be an alternative. I've run some tests with
serialization and theoretically works (I exchanged objects between
Android and a JavaSE app), but it's somewhat brittle. Also, I'm not
sure it's fast because introspection is not fast on Android (it might
be different with 2.2). Also consider JDom / Jaxen as an alternate XML
parser, might be worth while compare their performance.

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxpTMMACgkQeDweFqgUGxdHiwCgne+CB+ZbtRZxLLN0VjH9ppZK
pPEAoKC5cyf8MwUAl46+pdAGugg6/nES
=gE71
-END PGP SIGNATURE-

-- 
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] Problem computing the free space on the external card - only with a single installation

2010-08-15 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello.

My application allow to download files and store them on the external
card. To avoid filling it, I've implemented a safety check so it
prevents downloading when the free space is less than 20MB. The
computation of the free space is done by:

public synchronized long getFreeSpace()
  {
if (statFs == null)
  {
statFs = new
StatFs(getExternalStorageDirectory().getAbsolutePath());
  }

return statFs.getAvailableBlocks() * statFs.getBlockSize();
  }

which I presume is correct. In fact, it works in all my tests and for
what I can say for the 99% of users. But a single user notified me
that my app is constantly giving the card full message, as if the
above method didn't work. He also told me that the problem went away
after a while, and returned after upgrading a new release of my app.
The user seems an advanced one, and I think he's able to check and
correctly manage the contents of his external card. He reported that
the card has more than 1.4GB free on the card. Are you aware of any
specific issue or bug? The smartphone of the user is a Dell Streak
with Android 1.6. Thanks.

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxnnlYACgkQeDweFqgUGxcjjACgqoLP3HiHB5r8lsQytu/59Xdb
bE8An1t/mt2gKIdisyZc1sI3/lGHp8dh
=dZLt
-END PGP SIGNATURE-

-- 
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: Chilling news: Oracle sues Google over Android

2010-08-15 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 8/14/10 23:04 , Sebastián Treu wrote:
 The problem it's not if Oracle wants to shutdown Android. The
 problem is how this will *affect* the android platform both
 acceptance and distribution. Android is new and it's making his way
 in the market. With this issue on the horizon, how will affect
 Android to be the choice of phone makers? Will you risk, as a phone
 maker, to continue supporting Android and distributing it in your
 phone without knowing what is happening behind the scenes?
Good points, but Android has already made its way in the market. The
same day Oracle filed the complaint (not a coincidence IMHO) there was
the news that Android has passed iPhone in the USA and it's #2 on the
USA market. So, it's well consolidated. The Oracle legal issue might
certainly make some damage, but it largely depends on how long the
trial will go on. I suppose that time is precisely one of the cards
that Oracle is playing. If they settle down to an agreement in a
relatively short time, we won't be affected by any major problem. So,
there are still some months before one should be worried, I think.

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxnpDcACgkQeDweFqgUGxcgagCgj82bwFlhqpq0BuyUC2cB9ohp
HW8An2zqzHyjRX1inXC8VbBAW1g7qdo2
=bTFY
-END PGP SIGNATURE-

-- 
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: My app is not visible for some (potential) users

2010-08-14 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 8/14/10 03:29 , String wrote:
 It's the difference between target and min sdk in your manifest.
 As long as you have min set to 3, it'll deploy fine to 1.5 devices;
 the unknown xml elements and attributes will just be ignored.

 String

 On Aug 13, 5:38 pm, Fabrizio Giudici
 fabrizio.giud...@tidalwave.it wrote: On 8/13/10 18:00 , Lance
 Nanek wrote:

 You can have a build target higher than Android 1.5, but
 still specify Android 1.5 support in the
 android:minSdkVersion attribute of the uses- sdk element.

 It's the thing described in Supporting legacy... in Android
 docs, right? I hoped to avoid that, but I don't see other
 solutions.

Many thanks to Lance and Sterling. It's clear and I'm working on it.

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxmTzYACgkQeDweFqgUGxc62wCgqP9zQRLdv0pzSZAX4n/a0CIQ
jz0An3ny0LzY0r0Bwam1f/a55LkImtAS
=9hEo
-END PGP SIGNATURE-

-- 
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] Android 1.5 device behaves differently than the emulator

2010-08-14 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 8/14/10 12:28 , { Devdroid } wrote:
 We had different problem on 1.5 where app worked fine on emulator
 but crashed on device. In our case it was string formatting
 difference where some call returned coma separated output on device
 while on emulator it was dot separated (thus come conversion calls
 crashed later on).

I've experienced differences too. I was doing the wrong thing with the
drawable resource directories - my fault, but the 1.5 emulator worked
fine while the real device crashed.

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxmqIgACgkQeDweFqgUGxfYvACcCwcqzbCV4Jm1VtoX1ztQLMHc
R2sAoI+BW0L7UniAJjx9hlmcc0K0VmdS
=YmBM
-END PGP SIGNATURE-

-- 
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: Chilling news: Oracle sues Google over Android

2010-08-14 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 8/14/10 12:27 , netlander wrote:

 Now! can anyone (Google guys?) enlighten us on what's the lawsuit
 about?

You can bet that none of Google will talk about this in the mailing
lists :-) I suppose only lawyers, spokesmen and some executives will
be allowed to talk in the next weeks.

My point is that we developers should not be much worried about that.
I don't think that Oracle has any real intention to shut down Android,
since it's a pot of money. You usually want to have a part of it, or
be part of the game, not to destroy it. My principal concerns about
Android are the same as one week ago, that is to make my app work at best.

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxmqYYACgkQeDweFqgUGxeQQQCgssZ5EBXd5lQQqfC0ZuLNVGZO
L6QAoIEWRNQgxbg8mErHgb9Ed23d9ux8
=XOxW
-END PGP SIGNATURE-

-- 
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] Chilling news: Oracle sues Google over Android

2010-08-13 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 8/13/10 10:18 , Miguel Morales wrote:

 Eclipse is not snappy, at all.  Not even close.  KDevelop is
 snappy. XCode is snappy enough. Azureus is slow too, you have to
 really tune the settings to get some decent performance, same with
 Eclipse. Never used Tomcat?  It can slow a server to a crawl with
 just a few processes. Not all of us can afford top of the line
 computers in order to run some software that runs fast in other
 programming languages.
Do you know that most of the web sites, services and whatever on the
internet are powered by Java and by a good percentage by Tomcat? Java
= slow is bullishit at least since five years, so please don't spread
FUD any longer.
 Yes, the java JVM works nicely in a server environment. Again, for
 your standard server applications. Subtle things in the GC process
 (as previously explained) make it too slow optimal performance.
Other FUD. GC is no more a problem, unless a programmer is really
ham-handed, since several years.

 That's why java is good for your standard apps, which is what it's
 great for. It doesn't push the standard in speed the way C does.
This is meaningless given some context. There are plenty of benchmarks
around that demonstrates than Java or C are faster. The JIT
technology, BTW, allows for higher optimization than C, since it can
only optimize statically. Of course, single benchmarks aren't
meaningful, since in a real world project one have to do some
trade-offs. There are many real-world examples that can be done, just
the first one that is public and comes to my mind has been recently
presented at Jazoon. See
http://jazoon.com/Conference/Thursday/OMullane, slide #40, which I'm
copying:

Is Java fast enough..
? On some processors with highly tuned C compilers  the C can be
faster than java (max factor 2)
?You can play cat and mouse for ever with any specific  piece of code ..
? On most Intel?s Java is as fast or faster than C ?JIT(JustIn Time)
Compiler  with Hotspot remarkable!
? Just one example from Gaia
?Relativity C code running in simulator 10 years on super  computer
?The orginal Author rewrote it in java
?Its is ~10 times faster in JAVA !



- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxlB7MACgkQeDweFqgUGxeVOgCgnbD37bXfa+50WQe9ohcf3Dwq
G8AAoIDPZ97nFoICkc9Wdi+r6q61LM1c
=qduP
-END PGP SIGNATURE-

-- 
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] Chilling news: Oracle sues Google over Android

2010-08-13 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 8/13/10 11:39 , Miguel Morales wrote:
 I don't know of any popular fast java applications, despite all
 these features. Again, Java is ok, great for what it does.  But

 just not as good as its alternatives. It's great for android
 because it's popular.  It's stable, there's tons of libraries, it's
 fast/efficient enough.  You can optimize the hell out of it.
 That's why I said it's ok to good.  When was the last time you
 heard of java in the news or in anything interesting until recently
 with android? Like I said, Oracle should be grateful google chose
 to use java.

Java on customer desktop applications has been limited by a number of
things that you previously cited: it's hard (but not impossible) to
get a native look and feel, and for many years in the past it was even
difficult to get a decent look and feel, and for many years there have
been hard times in deploying it easily (there are still some residual
problems). These are important things if you have to reach the end
customers. In the industrial world, where both issues are less
important, Java is widespread. Just have a look at
http://platform.netbeans.org/screenshots.html and
http://eclipse.org/community/rcp.php. You'll find tons of applications
made even by large corporates and for basically all the industrial
segments, running on the desktop. These are only the subset of Java
applications using the NetBeans Platform and Eclipse RCP technologies
- - there are many others. And these are only those that the makers were
available to speak on; for instance, I've been consulting for years
also on Java on the desktop and have customers running large and
business applications which are 100% Java, also on the desktop, but
aren't interested in publicly talking about them. Also, industrial
applications don't make easily through common news as customer
applications do, and this explain why Java is not well known to the
large public.

Yes, Java needs more memory in comparison with C. So, what's the
point? It's a matter of cost / benefit ratio and memory is cheap
enough to wholly compensate the increment in productivity that one has
by working with the whole Java ecosystem (which include tools heavily
based on bytecode manipulation, such as profilers, AOP, coverage
reporting tools, etc...) that aren't in the domain of C because it
compiles to native code.

For what comes to Android, I'd like to recall that up to 2.1 we didn't
have any JIT, that has been introduced with 2.2. I'd be curious to
know whether people who has experienced some performance troubles with
Dalvik has tried his app on Froyo.

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxlFnYACgkQeDweFqgUGxempQCdEzt80ZrbqIWWdVB8WP7gsHMA
82YAoIgv2TyivL70dfjQNtpbk+SqHovH
=R0Su
-END PGP SIGNATURE-

-- 
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: Chilling news: Oracle sues Google over Android

2010-08-13 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 8/13/10 14:05 , DanH wrote:
 Acually, SUN has one of the worst JVMs available, and that's probably
 a big part of what's got Oracle upset about Android.  (That and the
 money, of course.)

 I would assume that Google got one of the standard development
 licenses from Sun, where they could do pretty much whatever they
 wanted -- it just had to pass the JCK tests if they used the name
 Java.  I'm assuming that Android Java passes the JCK somehow.
You're assuming wrong. Google took the runtime from Harmony, which is
a willing-to-be-Java implementation made by the Apache Software
Foundation and that never got the permission by Sun to be tested
against the JCK (thus it can't be named as Java). It's a well known
debate between Sun and the Apache that has been going for years. When
we use the Android SDK we're using the Java compiler from Sun/Oracle,
we're having an intermediate passage through Sun/Oracle bytecode, but
we end with bytecode made by Google and with a runtime that has
nothing to do with Java. I've read previously discussions about the
topic that seemed to miss completely this fact.

Google has never claimed that it's compatible with Java(TM) and I
think there's not a single bit of Sun code in Android - in fact,
Oracle filed the sue not about a license violation concerning its own
SDK, but mentioning more general patents, as you can read here:
http://www.scribd.com/doc/35815632/Oracle-Google-Complaint

?Protection Domains To Provide Security In A Computer System?
?Controlling Access To A Resource
?Method And Apparatus For Preprocessing And Packaging Class Files?
?System And Method For Dynamic Preloading Of Classes Through Memory
Space Cloning Of A Master Runtime System Process?
?Method And Apparatus For Resolving Data References In Generate Code?
?Interpreting Functions Utilizing A Hybrid Of Virtual And Native
Machine Instructions?
?Method And System for Performing Static Initialization?



In other words, this is the classic patent-based war that often occurs
among large corporates and that, thanks to the currently flawed patent
bills, allows every corporate to sue any other one.

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxlO3IACgkQeDweFqgUGxeVLQCfbMoRpUswnloeo/EpCI86/7Ye
lVYAoJGlV2fHi8BXHzNymsaJpFjQ+olZ
=p/8D
-END PGP SIGNATURE-

-- 
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: My app is not visible for some (potential) users

2010-08-13 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 8/13/10 17:14 , Lance Nanek wrote:

 I'd make sure the supports-screens element is present in your
 AndroidManifest.xml with android:smallScreens set to true, or that
 the android:targetSdkVersion attribute is present on your uses-sdk
 element and set high enough to make the smallScreens attribute
 default to true on its own as per this page:
 http://developer.android.com/guide/topics/manifest/supports-screens-element.html

Thanks

for trying it. But isn't that supposed to hold for Android 1.6
and upper? I'm targetting 1.5 and this should automatically make the
app compatible with every screen, right?. After all, otherwise I
shouldn't ever see the app from my Droid that has got a 'large' screen...

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxlZH8ACgkQeDweFqgUGxeymwCfYCggnDvvTqwCKmQ/S2wqp4fS
ZPoAnjf20e2b5H/Yx56UnOt2tHJ3sq13
=GyJ4
-END PGP SIGNATURE-

-- 
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: My app is not visible for some (potential) users

2010-08-13 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 8/13/10 17:34 , Lance Nanek wrote:
 Apps that do not support large screens are still available to
 large screen devices. Apps that do not support small screens are
 not available to small screen devices.

Thanks. I've verified with the customer and he's indeed running an HTC
wildfire, which is a 240 x 320 QVGA, so it makes sense.
Now, the final question: since the support-screens manifest element
is not supported with Android 1.5, does this mean that any application
targeting Android 1.5 is not compatible with small screens? Right?

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxlaPkACgkQeDweFqgUGxfGAwCeMqH5UNjs4bQ+0JH1wrFaLps8
UIIAoJ8B+WbECUXcUNIve7D9z47hZF4T
=V2qC
-END PGP SIGNATURE-

-- 
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: My app is not visible for some (potential) users

2010-08-13 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 8/13/10 18:00 , Lance Nanek wrote:
 You can have a build target higher than Android 1.5, but still
 specify Android 1.5 support in the android:minSdkVersion attribute
 of the uses- sdk element.

It's the thing described in Supporting legacy... in Android docs,
right? I hoped to avoid that, but I don't see other solutions.

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxldPgACgkQeDweFqgUGxeBEwCgj1UV7YUIlCaowfamyqtb+VDN
1j0AnRKXCjFksS/HM6HUObGA/arhEK0V
=/95c
-END PGP SIGNATURE-

-- 
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: Chilling news: Oracle sues Google over Android

2010-08-13 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 8/13/10 19:08 , DanH wrote:
 Yeah, I saw the list of patents, and commented above that from the
 titles they likely were pretty narrow.  This is going to be an
 angels- on-the-head-of a-pin battle.

To complete the scenario, I've been pointed to that in the complaint
there's also a copyright violation allegation, regarding Java itself.
It is not clear to what it refers to and I still believe that there
are not Sun bits in Android. In any case, it is cited after the seven
patents, so I think that the last ones are the real core of the case.

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxljGYACgkQeDweFqgUGxeG3ACfUTWGMGoaaXaIlTLRyBzkKO8l
vZgAoIG/tPMa12OEydov+FzsM4p6Ml7w
=Jlky
-END PGP SIGNATURE-

-- 
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: Chilling news: Oracle sues Google over Android

2010-08-13 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


 On Fri, Aug 13, 2010 at 11:46 AM, DanH danhi...@ieee.org
 mailto:danhi...@ieee.org wrote:

 I do wish that Sun had fully opensourced and open licensed Java
 like they were planning to several years back.  I'm guessing the
 plan was killed when Oracle began negotiating with them.

Java Standard Edition _is_ fully open sourced under the GPL+CPE
license (Java Micro Edition is a different thing, but it's not related
with Android). As fas as I understand, even though you open source a
product, there's still the patent thing. Usually these are handled by
having the license to grant users a perpetual right to use the
technology guaranteeing that they won't be accused of breaking a
patent. But this clearly applies only to people using the plain open
Java made by Sun / Oracle. Back to the license thing, I suppose that
Oracle might refer to the Java specifications and namespaces (the
java.* thing). Probably, even though Google has never claimed that
Android is Java and their implementation doesn't derive from Sun, the
weak point could be the fact that Android uses a subset of the runtime
specifications and namespaces.

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxlqJEACgkQeDweFqgUGxd7LQCgkq+uB04uYEOgtnRlDBpTuXIr
oxwAn2pPRrHaRWHa6TkeU+/Mo+YdrRAQ
=ZvTF
-END PGP SIGNATURE-

-- 
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: Chilling news: Oracle sues Google over Android

2010-08-13 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 8/13/10 22:38 , François Masurel wrote:
 That's what I was asking to myself : what if Google simply
 infringed Oracle copyrights by using Java specifications and
 namespaces ?  Can APIs be copyrighted ?

Of course they can and specs can be licensed independently of an
implementation. It's a complex thing and today I've read opposite
opinions on many blogs by people who should have a knowledge on the
matter. I suppose we'd better to wait some days for a better analysis
of the problem.

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxluJgACgkQeDweFqgUGxd/fgCfX2LSyhtTzLygHUBYGanDE+kY
RXIAmwafjkrF5X4+HQPsQGNbZl3A5aA2
=Mboi
-END PGP SIGNATURE-

-- 
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] My app is not visible for some (potential) users

2010-08-12 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I'm getting feedbacks from a few potential users that they can't see
my application (blueBill Mobile) on the Market. I've checked it myself
and for what I can see everything is fine. Today two persons reported
the problem, one from UK and the other from Italy. They both have
recent Android versions that are supported by my application. It
sounds they are not doing any error in the search since they used the
QRCode I've published on my website, that I'm able to confirm.

What's happening? It's really annoying - one makes a new release,
publishes the news, I can see more hits on my own webpage, and yet
some users can't get the application. Should I fine an issue to the
Android issue tracker?

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxkUBcACgkQeDweFqgUGxcd/QCeL5x3WzjM5xMNeE2Gw0vl+I+O
FIkAoK+GtjVmkgrhoohRcJltokNXKjfj
=kBmq
-END PGP SIGNATURE-

-- 
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't make restartPackage() / killBackgroundProcesses() to work

2010-08-10 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 8/9/10 23:19 , Indicator Veritatis wrote:
 That depends on where you draw your line to decide what is in and
 outside of the black box. If you use JUnit, and have all your
 Applications under test inherit from the basic test (TestCase),
 can't you get the black box test effect you desire?

Black box to me means using the minimum or not at all the APIs of
the application, but driving instead the tests emulating user gestures
to the UI. The reason for that is that I want to test what my users
will see, and everything done outside the black-box approach would
break that constraint.

This can be done with JUnit and the Android API; the problem is that
if you need that tests are run in isolation, e.g. every test starts
from scratch, this is not possible from a single adb invocation,
because you can't force unloading stuff (of course I could call some
of my application methods to force a clean up of the app status, but
it wouldn't be black-box). The only resort is multiple invocation of
adb, which seems to do the required clean up.

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxhO1kACgkQeDweFqgUGxdbnACghaUY3YU0zLGrkG+kkHYXz32g
r7gAoIGRc6TNqlLPuIF5rlIij/wKjL/F
=/UOF
-END PGP SIGNATURE-

-- 
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't make restartPackage() / killBackgroundProcesses() to work

2010-08-09 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 8/9/10 04:03 , Dianne Hackborn wrote:
 Well if you need it, write your own code to do it.  They are your
 apps, right?  You can have a way for them to interact to have one
 ask the other to kill itself -- send a broadcast to it, have a
 service to bind to to send a command to it, or heck even just have
 an instrumentation test case that does a self-murder and run that
 between every real test case.

It's what I'm doing in other cases, but this wouldn't be a black-box
testing.


 (Note from looking at your manifest -- applications have never
 been able to get the INJECT_EVENT permission, so there is no reason
 to request it.)

Yes, it's a residual for other tries. Thanks.




- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxf3uIACgkQeDweFqgUGxfR9gCfThS8ssQCOpmiH2O+DZv4jtpb
fg8An1grVKrBcaBFyUdnhVgjAOyRJMsB
=C1du
-END PGP SIGNATURE-

-- 
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't make restartPackage() / killBackgroundProcesses() to work

2010-08-08 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 8/7/10 19:59 , Dianne Hackborn wrote:
 Sorry you can't do this.  Apps now can only kill processes of
 other apps that are in the background.

Too bad. This makes functional testing more complex and longer than it
should... :-(
But why doesn't it work in older emulator versions than 2.2?

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxend8ACgkQeDweFqgUGxdY8wCfdS/DjA7VIg6NRP3HdjAonvIJ
6CsAn0udiHGHk+MEUF9Szr4zGhsE+a5M
=DiZF
-END PGP SIGNATURE-

-- 
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] Can't make restartPackage() / killBackgroundProcesses() to work

2010-08-07 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello.

I'm trying to have restartPackage() work - please note that I'm aware
of all the discussions related to APIs for restarting another
application; I'm not trying to do this in production, but during
functional tests in order to be sure to have the application under
test to start clean every time (without it, I'm currently forced to
run one functional test at a time with adb, which is an annoyance). I
know that restartPackage() has been deprecated in 2.2 and now is
equivalent to   killBackgroundProcesses(), which is perfectly fine for
me.

This is the code I'm trying (from setUp() of an
ActivityInstrumentationTestCase2):

private void resetApplication()
  {
logger.info( RESTARTING APP);
final Context context = getInstrumentation().getContext(); //
also tried with getTargetContext(), even though I suppose getContext()
is correct
final ActivityManager manager =
(ActivityManager)context.getSystemService(Context.ACTIVITY_SERVICE);
manager.restartPackage(it.tidalwave.bluebill.mobile.android);
  }

but I constantly get:

W/ActivityManager( 1280): Permission Denial: restartPackage() from
pid=6014, uid=10071 requires android.permission.RESTART_PACKAGES
I/TestRunner( 6014): failed:
testRun(it.tidalwave.bluebill.mobile.android.test.functional.InsertOneObservationFromScratch)
I/TestRunner( 6014): - begin exception -
I/TestRunner( 6014):
I/TestRunner( 6014): java.lang.SecurityException: Permission Denial:
restartPackage() from pid=6014, uid=10071 requires
android.permission.RESTART_PACKAGES
I/TestRunner( 6014): at
android.os.Parcel.readException(Parcel.java:1218)
I/TestRunner( 6014): at
android.os.Parcel.readException(Parcel.java:1206)
I/TestRunner( 6014): at
android.app.ActivityManagerProxy.restartPackage(ActivityManagerNative.java:2383)
I/TestRunner( 6014): at
android.app.ActivityManager.restartPackage(ActivityManager.java:910)
I/TestRunner( 6014): at
it.tidalwave.bluebill.mobile.android.ScenarioTestSupport.resetApplication(ScenarioTestSupport.java:183)
I/TestRunner( 6014): at
it.tidalwave.bluebill.mobile.android.ScenarioTestSupport.setUp(ScenarioTestSupport.java:87)
I/TestRunner( 6014): at
it.tidalwave.bluebill.mobile.android.test.functional.ObservationScenarioTestSupport.setUp(ObservationScenarioTestSupport.java:48)
I/TestRunner( 6014): at
junit.framework.TestCase.runBare(TestCase.java:125)
I/TestRunner( 6014): at
junit.framework.TestResult$1.protect(TestResult.java:106)
I/TestRunner( 6014): at
junit.framework.TestResult.runProtected(TestResult.java:124)
I/TestRunner( 6014): at
junit.framework.TestResult.run(TestResult.java:109)
I/TestRunner( 6014): at
junit.framework.TestCase.run(TestCase.java:118)
I/TestRunner( 6014): at
android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:169)
I/TestRunner( 6014): at
android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:154)
I/TestRunner( 6014): at
android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:430)
I/TestRunner( 6014): at
android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1447)
I/TestRunner( 6014): - end exception -


Of course I put the required permission in the AndroidManifest.xml:

?xml version=1.0 encoding=UTF-8?
manifest package=it.tidalwave.bluebill.mobile.android.tests
android:versionCode=1545
xmlns:android=http://schemas.android.com/apk/res/android;
android:versionName=0.14.0-SNAPSHOT
  uses-sdk android:minSdkVersion=3/
  uses-permission android:name=android.permission.INJECT_EVENT/
  uses-permission android:name=android.permission.RESTART_PACKAGES/
  application android:label=blueBill Mobile Functional Tests
uses-library android:name=android.test.runner/
  /application
  instrumentation
android:name=android.test.InstrumentationTestRunner
android:targetPackage=it.tidalwave.bluebill.mobile.android
android:label=Tests for blueBill Mobile for Android./
/manifest

The app with tests is signed with the same signature of the app under
test (the debug key). It happens both with the emulator (1.5 and 2.2)
and a Motorola Droid (2.1). Of course the 2.2 with the variant that
the required permission is android.permission.KILL_BACKGROUND_PROCESSES.


Why am I still getting the error? Thanks.

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxdDr4ACgkQeDweFqgUGxcRFgCgkkyp8VcxyqPCfUkqs7U6HQ5R
s5YAn3V2dETNVU7Lga6vHhf7JQB1WQEm
=kRZ5
-END PGP SIGNATURE-

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

Re: [android-developers] Re: Android testing: can't programmatically press buttons, etc...

2010-08-06 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 8/5/10 19:11 , A. Elk wrote:
 In other words, you can do button presses in a sample Android
 app from a test package, but you can't do them from your app's
 test package to the app under test.

Right.

 (The test package is the same as the test app and the app under
 test is the application you're trying to build.)

 Are you using ActivityInstrumentationTestCase2 as your test case
 class? I assume that you're calling TouchUtils.clickView(t,v)
 where

 t is the test case object (probably _this_), and v is the Button
 object you want to click, in the Activity you're testing in the
 app under test.

I'm trying _also_ with TouchUtils.clickView(); I'm also exploring
other testing frameworks. The cited Robotium, for instance, creates
MotionEvents with the DOWN/UP sequence and the proper position and
feeds them to the Instrumentation (yes, I'm using AITC2). I've
manually verified that the events are properly created (uptime,
coordinates are ok - tested with the hierarchyviewer - etc).

Yesterday night I discovered that tests launched my application not in
touch mode (in fact, I could see a focused button in orange). This
would have been an explanation, but then I explicitly added
setActivityInitialTouchMode(true) in setUp(), I got a visual
confirmation that it has been accepted (I no more see a focused
button), but it's not yet working.


- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxbsrYACgkQeDweFqgUGxfhaACfZpiS5INwfKXAHoblnkbGammP
dbwAn0WuoLcxXkTbDzj8qRORCEVZQaUf
=3h7h
-END PGP SIGNATURE-

-- 
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 to check whether insterted SD Card is full or not

2010-08-06 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 8/6/10 18:21 , TreKing wrote:
 On Fri, Aug 6, 2010 at 8:23 AM, pradeep gan@gmail.com
 mailto:gan@gmail.com wrote:

 Could you please let me know if there is any API to check
 whether inserted SD Card is full . If it has free space, then
 how to know how much free space is left.


 The SD card is a Java File like any other. Knowing this, doing this
 http://tinyurl.com/2cmrt59  led me to

 http://download.oracle.com/javase/6/docs/api/java/io/File.html#getTotalSpace()

 and

 http://download.oracle.com/javase/6/docs/api/java/io/File.html#getFreeSpace()

 Try that.

I do this:

statFs = new
StatFs(getExternalStorageDirectory().getAbsolutePath());
return statFs.getAvailableBlocks() * statFs.getBlockSize();

Seems to work, with a user that once said that he experienced a
problem that could be tracked down to that value erroneously computed
as zero (or a very small value) even if the card was ok. But I had no
more feedback from him and no other notices of error.

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxcRcgACgkQeDweFqgUGxfcmgCgsQtqykvLuCZrPEBxjo18t6RW
gzAAn0xfWkvqp5N3JanzrbdYIMknQSAI
=fNGB
-END PGP SIGNATURE-

-- 
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] Programmatically expanding / collapsing items of an ExpandableListView

2010-08-06 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello.

This should be a very simple thing, but it's driving me crazy and
currently one of the older bugs of my app. Given an ExpandableListView
I want to collapse all the groups but the last one and expand the last
one. The code below doesn't work (basically seems to do things at
random). Thanks.



final ExpandableListView expandableListView =
getExpandableListView();
final int groupCount = expandableListView.getCount();

for (int i = 0; i  groupCount - 1; i++)
  {
expandableListView.collapseGroup(i);
  }

expandableListView.expandGroup(groupCount - 1);

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxcRi8ACgkQeDweFqgUGxdVJACfQHBr/CU/NZThhzjR6ycAHSKS
yFMAn1UFAsg4eMMxP1zqZTSniix1gP4w
=7WLX
-END PGP SIGNATURE-

-- 
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] Programmatically expanding / collapsing items of an ExpandableListView

2010-08-06 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 8/6/10 20:12 , TreKing wrote:
 On Fri, Aug 6, 2010 at 12:28 PM, Fabrizio Giudici
 fabrizio.giud...@tidalwave.it
 mailto:fabrizio.giud...@tidalwave.it wrote:

 The code below doesn't work (basically seems to do things
 at random).


 What does it does things at random mean?

 I would not collapse all but the last group. I would collapse them
 all to make sure they're all the same, then expand the one you want.
 Try that?

Hmmm... the problem seems to be fixed by replacing:

final int groupCount = expandableListView.getCount();

with
final int groupCount =
expandableListView.getExpandableListAdapter().getGroupCount();


getCount() always returns a smaller number that it should be (e.g. 0
when there is 1 item in the list). That explains the behaviour for
which some nodes that are not the last one sometimes get expanded. I
supposed that getCount() was equivalent to
getExpandableListAdapter().getGroupCount(), but I'm clearly wrong.

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxced4ACgkQeDweFqgUGxfsxwCgh1u+p4hZpLGoHuRWj6Mn5cdr
s/EAoKGpW+ax54dK4BA34cuL8jKa5Dmr
=DLp9
-END PGP SIGNATURE-

-- 
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] Android testing: can't programmatically press buttons, etc...

2010-08-05 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello.

I'm trying to write some functional tests for my application that
include interactions with the UI. As part of the test I'm trying to
press a button programmatically. I've both tried
TouchUtils.clickView() and Robotium (third party's utility for this
task). But buttons don't get pressed.
With Robotium, whose sources are simpler to understand, I can track my
code until it properly generates ACTION_DOWN and ACTION_UP events. At
the same time, I've tried a Robotium sample together with a small
sample application, and it works perfectly. So, Robotium works and my
Android SDK is ok - it must be something specific of my application.
What should I check? Is it possible to track with the system logger
events sent by mean of Instrumentation.sendPointerSync()?

For the record, I've tried the sample application with Eclipse, while
I'm developing mine with NetBeans + Maven. But I don't think this
makes a difference. Also, of course my application perfectly works if
I manually test it.

Thanks.

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxayRsACgkQeDweFqgUGxe+nACeL66XyDdH18ozPM5+eRxBbLxS
ARcAniMNuBE/XdjltsGwir1UPKsABZic
=tfuS
-END PGP SIGNATURE-

-- 
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: Android testing: can't programmatically press buttons, etc...

2010-08-05 Thread Fabrizio Giudici

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 8/5/10 17:56 , Brion Emde wrote:
 Did you try working with the testing tutorial?

 http://developer.android.com/resources/tutorials/testing/activity_test.html



That gives an example of using the Instrumentation to send key presses
 to an Activity.

Yes, I've been able to run example tests both from vanilla Android and
from Robotium - they work. For what I've checked (multiple times) the
set up, manifest, etc... are properly configured in my app. I don't
know what to check more, that's why I'd like to know whether there's
some kind of system diagnostics to understand what's happening.

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxa5cYACgkQeDweFqgUGxee1ACfYErl7SuHOHq9GXAWO8A1Gwjx
GVkAn27QZt7aZTV8qWxYgJs1Ze4u2UGv
=lvr2
-END PGP SIGNATURE-

-- 
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: Avoiding GPL

2010-06-26 Thread Fabrizio Giudici
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 6/25/10 22:53 , Anton Persson wrote:
 Well, to connect to a MySQL database you need a connector, and the
 connector library shipped with MySQL is under GPL. Which is what I
 meant. And, hence, corporations buy licenses from MySQL to avoid
 having to release their applications under the GPL. (If you still
 don't believe me, try explaining the reason why they HAVE a dual
 license model... If they only wanted to sell support and
 indemnification, a separate paid-for license would NOT be needed...
 See Red Hat for an example of how that works..)

But I was referring to MySQL, not the connector. Also, sure there will
be also corporates who pay for not using the GPL, but my point was
that one is not forced to pay to use it. Now I think we are made clear
our points, and MySQL was only an example.

 And; the INTENT of MySQL is that if you use the GPL version of the
 MySQL database, your application should also be GPL. But, of
 course, there are loopholes. However, using these loopholes in a
 way that is obviously a circumvention is against this INTENT.

 If you want people to respect YOUR intellectual property, you
 should respect others as well, and not exploit their software in an
 unintended manner.

Licenses arbitrate how much land each entity has the right to own, in
other words they establish borders in a objective way that everybody
agrees on, not a subjective or moralistic one. So while I personally
might have some interest in what other people are willing to do
(subjective and moral position), not everybody is compelled to do
that, but only respect the law. Everybody uses licenses to try to
place that border in the most convenient possible way. An author of
FLOSS software tries to place the border in the best possible position
in his perspective, and a user of a FLOSS software has the same right,
in his perspective.

PS MySQL intent was to make money, and GPL is one of the best way to
do that, because of the double licensing thing. In fact, they made a
lot of money. Note that the owner of MySQL has changed many times and
the intents of the original founders, of Sun Microsystems and Oracle
might have been changed. Frankly, if I used MySQL I wouldn't be
interested in what their intents are, only in what I can do.


- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkwmRwIACgkQeDweFqgUGxdGBACbBX13NejP63WSlLMgtoCuZ2xb
cQcAn15F0686sMX6qDugfZy8ScS4ajE/
=ME+q
-END PGP SIGNATURE-

-- 
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: Avoiding GPL

2010-06-25 Thread Fabrizio Giudici
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 6/25/10 04:55 , Andy Savage wrote:
 I forgot to say in my previous post.

 In response to the person talking about MySQL. I believe this is
 quite different as MySQL is a completely self contained database
 system that other applications communicate with. As in, it's a
 completely GPL package, rather than a part of another application.

 If you actually incorporated the MySQL code within your application
 I believe it would break GPL (presuming your application was closed
 source). I am not sure how this applies to the MySQL libraries that
 are setup to use mysql say from PHP.


This is correct, and I was referring to MySQL. The difference stays in
that incorporating - as you said, if the two apps were still
considered as two separate, collaborating apps it would be fine.

On 6/25/10 09:39 , Anton Persson wrote:
 Not entirely true. Yes; a LOT of non-FLOSS (closed source) apps use
MySQL.. But they do that by buying the non-FLOSS-licenses that MySQL
_sell_.
 MySQL allows you to use MySQL with the GPL license as long as YOUR
application is also using GPL. That is their idea, and that's why many
prefer PostgreSQL. So, if you are using MySQL with the GPL license you
are doing something MySQL doesn't want you to do.


This is COMPLETELY incorrect. Corporates buy the paid license of MySQL
because of support and indemnification. The GPL license CLEARLY says
that a GPL application can be used without applying the virality when
it runs in a separate process and is used by connecting with a socket
(or other ways, such as clear API access points - otherwise,
everything using Linux should be GPL as well, and clearly it isn't).


- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkwlC9oACgkQeDweFqgUGxd1sgCgkmJuBWeEGzc50aATw08v/Uke
Is0AoJ/o8RAoJ1XMTRvlWXQA3jM74sHQ
=Q5fR
-END PGP SIGNATURE-

-- 
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: Avoiding GPL

2010-06-25 Thread Fabrizio Giudici
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 6/23/10 10:51 , Sean Hodges wrote:
 You really need to consult a specialist on this subject, developers
 (including me) have a tendency to give out I am not a lawyer type
 advice, which is inherently unreliable.

 In the strategy you describe, I believe putting A and B in the same
 APK means you are distributing both components as a single piece of
 software. A person cannot modify and distribute B without either
 bundling closed-source A, or modifying the build process (which also
 violates the GPL). You would be closer to a solution if you created 2
 separate APK's, as long as A and B are completely independent of each
 other.

 The nature of the GPL is that the authors *do not want* their code
 distributed in a closed-source solution, and this is exactly why it is
 so difficult to find a legal way to do it. If you want to mix
 licences; seek legal advice, and/or contact the authors about the
 possibility of a dual-licence solution.
I agree that binding everything into a single .apk is very likely a
GPL violation; in the best case, an expert would be needed to clarify
the point. I repeat, the simpler thing is to ask the FSF about, as
they are quite open (!) to talk to people.

- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkwlDHMACgkQeDweFqgUGxeQvwCfY2KWbanVJWP4IooODu9AWwqM
AJsAni7uJGyN0lR66RcjPFyO6Sy4W//F
=glY7
-END PGP SIGNATURE-

-- 
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] Avoiding GPL

2010-06-23 Thread Fabrizio Giudici
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 6/22/10 13:19 , Tom Gibara wrote:
 I am not a lawyer etc. but I think you should be very careful
 about trying to circumvent the GPLv3 in this way; its wording is
 broad.

 You have several options without attempting this, they include:
 finding a revenue model that's compatible with open sourcing your
 application, consulting a lawyer first, contacting the author of
 the library and explaining the situation.

While I second the point that legal things must be properly
understood, I don't agree that this is trying to circumvent a
license. License explain what can be done and what can't be done, and
the original poster is just trying to find a legal way to do that. For
instance, MySQL is GPL, but tons of non-FLOSS projects use it, because
GPL applies to the concept of linking to the code, and doesn't apply
to separate process communicating. That's how a non FLOSS application
can use MySQL, without circumventing the GPL. Thus, the original
idea of setting up a inter-process communication makes sense and if it
were plain Java on a plain desktop I'd say it's fine (IANAL, of
course). I don't know how this can apply to Android. Maybe looking at
the FSF FAQs or sending them an email would help.


- -- 
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - We make Java work. Everywhere.
java.net/blog/fabriziogiudici - www.tidalwave.it/people
fabrizio.giud...@tidalwave.it
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkwgn50ACgkQeDweFqgUGxdSxQCeMaMJfIIEe4Zu1oQJ2TaAaQ0Z
lyAAoJsSKsHyvJr2ze3ENa1GhXD5JByi
=WP8Z
-END PGP SIGNATURE-

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