[android-developers] Dynamically switching text-to-speech engines under ICS?

2012-07-03 Thread blindfold
Has anyone had any success reliably switching among text-to-speech engines 
and languages on-the-fly under Android 4.03 (ICS)? Under Android 2.3.3 this 
worked great using the TextToSpeech method setEngineByPackageName(), but 
that method is now not only deprecated but for some reason it no longer 
reliably switches among installed speech engines. I use the Google 
Text-to-speech Engine that comes with ICS, the SVOX Classic TTS and eSpeak 
TTS on an HTC Desire ONE X running Android 4.03. 

I had no problems quickly and reliably switching among installed TTS 
engines and their languages on an old HTC Desire running Android 2.3.3. 
Whatever I try now under Android 4.03, results are erratic at best. The 
deprecated setEngineByPackageName() sometimes works and sometimes it 
doesn't - and I really do not mind not knowing when it finishes switching 
engines. Doing stop() and shutdown() on an active TextToSpeech instance 
before creating a new one for another engine via TextToSpeech(context, 
listener, engine) and then waiting for its listener to be invoked before 
testing with isLanguageAvailable() if a certain language is supported by 
that engine also proves unreliable. As far as I am concerned, Android 4.0 
appears a major step backwards as compared to Android 2.3.3 where it comes 
to dynamically switching TTS engines and languages, and after spending many 
hours I still have not found a reliable workaround that lets me 
programmatically switch between languages among multiple installed TTS 
engines that each support different subsets of languages. It should not 
have been hard to switch between, say, SVOX Classic TTS for Dutch and the 
Google TTS for German? Or are the third-party TTS engines to blame for 
still flawed ICS support?

Thanks!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: android accelerometer to measure distance

2012-01-29 Thread blindfold
So you want to emulate stereo vision based distance measurement
through two slightly displaced views? I'm afraid the phone's sensors
are not nearly good enough to let you independently measure small
(e.g. lateral) displacements with sufficient accuracy to obtain
absolute distance measures.

On Jan 29, 3:27 am, heri_hahihu heri.pc...@gmail.com wrote:
 i am sorry..
 i want to measure distance object by phone camera like smart measure app.
 but  i want to measure object without entering data of object like height
 of object.
 in my mehtode I do twice the measurement and here I must know the distance
 of displacement measurement of the first and second measurements.

 i am sorry if my question wrong. i hope you can understand my explanation

-- 
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: Strange problem with toggleSoftInput() in Android 2.3.3

2011-09-02 Thread blindfold
As a workaround for Android 2.3.3, I can now use the 4 lines

   imm.hideSoftInputFromWindow(myView.getWindowToken(),0);
   imm.toggleSoftInput(InputMethodManager.SHOW_FORCED, 0);
   imm.hideSoftInputFromWindow(myView.getWindowToken(),0);
   imm.toggleSoftInput(InputMethodManager.SHOW_FORCED, 0);

to have the soft keyboard pop up right away. Is the need for this a
bug in Android 2.3.3?
Like I said I did not need this in Android 1.6 or 2.2.

Thanks

On Sep 1, 2:44 pm, blindfold seeingwithso...@gmail.com wrote:
 I recently upgraded the firmware of my HTC Desire from 2.2 to 2.3.3,
 and since then I find that after starting an Activity I need to call

    toggleSoftInput(InputMethodManager.SHOW_FORCED, 0);

 exactly *3* times before it pops up the soft keyboard. After that it
 works upon every call until I restart my Activity. I did not have this
 problem in Android 2.2, and my old ADP1 running Android 1.6 also
 always pops up the soft keyboard upon a first call.

 Anyone else experiencing this?

 Thanks!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Strange problem with toggleSoftInput() in Android 2.3.3

2011-09-01 Thread blindfold
I recently upgraded the firmware of my HTC Desire from 2.2 to 2.3.3,
and since then I find that after starting an Activity I need to call

   toggleSoftInput(InputMethodManager.SHOW_FORCED, 0);

exactly *3* times before it pops up the soft keyboard. After that it
works upon every call until I restart my Activity. I did not have this
problem in Android 2.2, and my old ADP1 running Android 1.6 also
always pops up the soft keyboard upon a first call.

Anyone else experiencing this?

Thanks!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: ocr implementation with android

2011-08-05 Thread blindfold
OK, thanks for your reply Nikolay. Looking forward to further
developments in this area. The ABBYY OCR engines are better than any
other OCR engine that I have encountered.

Peter


On Aug 5, 1:49 pm, Nikolay nikolay.khlebin...@gmail.com wrote:
 Hey blindfold,

 As far as i know at the moment we do not plan to develop such
 “wrapper” app for ABBYY Mobile OCR Engine due to contradiction with
 our licensing policy. But in any case, thanks for the interest to our
 Mobile SDK and notable product idea. My colleagues added it as a
 feature request and maybe they'll get back to it in the future.

 Best regards, Nikolay

 On Aug 3, 2:48 pm, blindfold seeingwithso...@gmail.com wrote:







  Hi Nikolay,

  Do you have plans to sell the ABBYY Mobile OCR Engine via the Android
  Market as part of a light-weight wrapper app? I have no plans to use
  the ABBYY Mobile OCR Engine commercially, but would be interested in
  launching an OCR app based on the ABBYY Mobile OCR Engine from within
  my own (free) app for those who have bought and installed this
  hypothetical ABBYY OCR wrapper app or similar. I already do this with
  the ZXing barcode reader and Google Goggles. I noticed that there is
  an ABBYY business card reader on the Android Market, just not a
  regular generic OCR app?

  Thanks,

  Peter Meijer

  The vOICe for Androidhttp://www.seeingwithsound.com/android.htm

  On Aug 3, 7:57 am, Nikolay nikolay.khlebin...@gmail.com wrote:

   Hello Barun,

   My name is Nikolay Khlebinskiy, I work @ ABBYY. If you are planning
   commercial usage of your software, you may want to look at our ABBYY
   Mobile OCR Engine (http://www.abbyy.com/mobileocr/). It supports
   Android OS and it’s free to try. Feel free to contact me if you have
   any questions.

   Best regards, Nikolay.

   On Jul 29, 1:34 pm, barun barunala...@gmail.com wrote:

 I want to implement the optical  character recognition  program  for
Android  phone. if any body knows something please help me. Thanks in
Advance.
                                                   Barun Kumar Nirala

-- 
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: ocr implementation with android

2011-08-03 Thread blindfold
Hi Nikolay,

Do you have plans to sell the ABBYY Mobile OCR Engine via the Android
Market as part of a light-weight wrapper app? I have no plans to use
the ABBYY Mobile OCR Engine commercially, but would be interested in
launching an OCR app based on the ABBYY Mobile OCR Engine from within
my own (free) app for those who have bought and installed this
hypothetical ABBYY OCR wrapper app or similar. I already do this with
the ZXing barcode reader and Google Goggles. I noticed that there is
an ABBYY business card reader on the Android Market, just not a
regular generic OCR app?

Thanks,

Peter Meijer


The vOICe for Android
http://www.seeingwithsound.com/android.htm


On Aug 3, 7:57 am, Nikolay nikolay.khlebin...@gmail.com wrote:
 Hello Barun,

 My name is Nikolay Khlebinskiy, I work @ ABBYY. If you are planning
 commercial usage of your software, you may want to look at our ABBYY
 Mobile OCR Engine (http://www.abbyy.com/mobileocr/). It supports
 Android OS and it’s free to try. Feel free to contact me if you have
 any questions.

 Best regards, Nikolay.

 On Jul 29, 1:34 pm, barun barunala...@gmail.com wrote:







   I want to implement the optical  character recognition  program  for
  Android  phone. if any body knows something please help me. Thanks in
  Advance.
                                                     Barun Kumar Nirala

-- 
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: Install % not updating?

2011-06-28 Thread blindfold
Sometime during the first week of May, my active installs count
suddenly dropped by 40% (with no bugs or updates on my side to explain
this) while download counts (total installs) kept growing normally.
Now that was not as bad as the recent 100% drop in active installs
count until the June 24 numbers were restored, but it never jumped
back and I was left wondering what correction had caused the 40%
drop.

On Jun 28, 2:21 pm, John Coryat cor...@gmail.com wrote:
   As a result, the ranking of the app went from a stable 125 to 180+

 Since everyone has the same problem, I doubt it has affected your position.
 There must be another issue, like total downloads or something else that's
 causing your drop.

 -John Coryat

-- 
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: Install % not updating?

2011-06-27 Thread blindfold
Today my active install count suddenly dropped to 0, zero, zilch, 0
active installs (0 %) while my download count remains at 70,000+.
Looks like they are busy trying to fix the counters? :-)

On Jun 27, 5:35 am, Zsolt Vasvari zvasv...@gmail.com wrote:
 Is it only my app which has an install% not updating, but the download
 number is?

 This has been going on for a week.

 No new installs as far as Google is concerned - Install% going down -

  Ranking from #4 to #8 -- Sales tanked

 Of course, nobody at Google is responding.

-- 
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: Install % not updating?

2011-06-27 Thread blindfold
Well, they seem to have fixed *that* problem, so now I too am back to
the June 24 download count. (At least) one more bug to go...

On Jun 27, 9:23 am, blindfold seeingwithso...@gmail.com wrote:
 Today my active install count suddenly dropped to 0, zero, zilch, 0
 active installs (0 %) while my download count remains at 70,000+.
 Looks like they are busy trying to fix the counters? :-)

 On Jun 27, 5:35 am, Zsolt Vasvari zvasv...@gmail.com wrote:







  Is it only my app which has an install% not updating, but the download
  number is?

  This has been going on for a week.

  No new installs as far as Google is concerned - Install% going down -

   Ranking from #4 to #8 -- Sales tanked

  Of course, nobody at Google is responding.

-- 
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: recognize text in images on opening the camera

2011-06-21 Thread blindfold
That is correct. The recognition quality of free open source OCR
engines like Tesseract and GOCR is unfortunately still a far cry from
what ABBYY delivers. Most OCR engines were developed for flatbed
scanners with controlled light conditions, a flat surface, no lens
distortion and little skew, and recognition robustness suffers
dramatically when using them with a mobile hand-held device such as an
Android smartphone.

Regards


The vOICe for Android
http://www.seeingwithsound.com/android.htm


On Jun 21, 2:56 pm, Mark Murphy mmur...@commonsware.com wrote:
 Converting images to text is called OCR. There are no APIs in Android for OCR.

 You are welcome to attempt to find a working OCR solution -- the only
 one I can think of that works well (ABBYY) is probably more expensive
 than you can afford. There have been attempts to port open source OCR
 engines to Android (e.g., Tesseract), but I was under the impression
 that recognition quality was not that good.









 On Tue, Jun 21, 2011 at 8:50 AM, Sapna Srivastav sapna.ari...@gmail.com 
 wrote:
  Hi everyone

  I need some help to recognize text in image when a user opens his/her
  camera then the application can detect the text in the image and show
  it in an edit text.
  Please suggest me which APIs or classes are used for developing this
  kind of application and also is there any example/tutorial available
  on net then please provide this also.

  Thanks and Regards
  Sapna Srivastav

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

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

 Android Training in London:http://bit.ly/smand1,http://bit.ly/smand2

-- 
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: Accessibility on Motorola XOOM

2011-05-17 Thread blindfold
A partial workaround can be to redefine the volume control buttons as
up and down arrow keys to hop from control to control while inside
menu and dialogs. I have done this for blind users of Android phones
that have a physical keyboard but no d-pad (really, these exist). Also
check out the on-screen keyboard of the new TalkBack screen reader
https://market.android.com/details?id=com.google.android.marvin.talkback
and discussions of it on the eyes-free list 
http://groups.google.com/group/eyes-free

Regards


The vOICe for Android
http://www.seeingwithsound.com/android.htm

On May 16, 11:41 pm, Stanley Orlenko aka Smith
orlenko.s...@gmail.com wrote:
 Hi
 Today I have taken a look on a XOOM and tried accessibilities
 functions.
 Android accessibility 
 guidehttp://developer.android.com/guide/practices/design/accessibility.html
 says:

 Following these two basic rules will solve most access-related
 problems:

 * Make all of your user interface controls accessible with a trackball
 or directional controller (d-pad).
 * Label your ImageButton, EditText, and other input widgets using the
 android:contentDescription attribute.

 If I understand correctly people with vision disability should look
 over all widgets on the screen with trackball or d-pad. The question
 is: How
 they will do that on a Motorola XOOM? This device doesn't have a
 trackball or a d-pad at all

-- 
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: Open multiple cameras simultaneously

2011-05-16 Thread blindfold
Don't know about simultaneously previewing or capturing from a front
and back camera, but I'd say that there has to be a way to
simultaneously capture from the dual cameras in the LG Optimus 3D,
Sharp Aquos SH-12C and HTC EVO 3D. However, I do not know yet what API
they are using. Lacking further information, it could just as well be
that for the Android OS their 3D camera driver hides the presence of
two cameras and just presents it to Android as a single camera with
twice the single-camera view width (side-by-side encoding for
otherwise identical cameras), or some other basic stereo vision
encoding. Fooling the Android OS into believing that there is only
one camera can be practical for manufacturers who want to
differentiate and cannot afford to wait for a new Android version with
official 3D capture support when bringing 3D capabilities to the
market. Anyone who knows more about the current situation with respect
to multiple camera support in Android?

Thanks


The vOICe for Android
http://www.seeingwithsound.com/android.htm


On May 16, 1:12 am, QD b95505...@gmail.com wrote:
 I want to open at least two cameras at the same time for some usage, (2.3.3
 and up)

 but the log message always shows that CamerasService *
 lockIfMessageWanted*

 Is that means open multiple cameras simultaneously is impossible currently?

 or just my mistake

 thanks!!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How is your app selling on the Amazon Appstore?

2011-04-28 Thread blindfold
Similar here. My free app gets between 100 and 200 downloads a day on
Android Market, and only about 1 per day via Amazon Appstore.

On Apr 28, 9:06 am, Droid rod...@gmail.com wrote:
 My app was tested in India (I knew this cos of an inn app widget
 giving me locations) and three weeks later appeared in Amazon market.

 It is a free app and gets hardly any downloads or feedback whereas in
 google market it get loads of downloads and feedback.

 Not impressed with Amazon app store yet. Google market way way way
 better.

-- 
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: Camera.getNumberOfCameras() not working

2011-04-05 Thread blindfold
getNumberOfCameras() needs API level 9 according to documentation.

On Apr 5, 8:54 am, Abhijeet Pathak pathak...@gmail.com wrote:
 I am getting error Cannot find symbol when using getNumberOfCameras(). I
 am compiling app for api level 8.
 Please help me fixing this.

 Thanks,
 Abhijeet

-- 
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: Camera.getNumberOfCameras() not working

2011-04-05 Thread blindfold
 Does this mean Android 2.3?

Yes.

 If yes, hows to retrieve number of cameras on android 2.2 (api level 8)?

You cannot. You can only make it work for Android 2.3+ and make things
degrade gracefully (not using a camera count) for Android 2.2 and
lower

On Apr 5, 9:36 am, Abhijeet Pathak pathak...@gmail.com wrote:
 Does this mean Android 2.3?
 If yes, hows to retrieve number of cameras on android 2.2 (api level 8)?
 On 5 Apr 2011 13:02, blindfold seeingwithso...@gmail.com wrote:







  getNumberOfCameras() needs API level 9 according to documentation.

  On Apr 5, 8:54 am, Abhijeet Pathak pathak...@gmail.com wrote:
  I am getting error Cannot find symbol when using getNumberOfCameras().
 I
  am compiling app for api level 8.
  Please help me fixing this.

  Thanks,
  Abhijeet

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Unique ID for a device: why aren't devices certified Android-compliant?

2011-04-01 Thread blindfold
 As far as ANDROID_ID -- please be aware that some people concerned about
 privacy very much do not like applications being able to retrieve something
 that uniquely identifies their device

I only use ANDROID_ID to identify my own test phones and suppress ads
when running my app on these test phones, to avoid inadvertently
clicking on my Google AdMob ads once in while during app testing. So
ANDROID_ID is in this use case never broadcast in any way, and there
is no privacy issue for users while I need not make any code changes
before release. Alternatively, I can implement a workaround by
checking for the presence of some secret file that I manually put on
my test phones, but using ANDROID_ID seemed a little more elegant. I
understand that it may be hard for Google to verify whether or not an
app broadcasts (encoded) unique identifiers along with non-identifying
data.

 As such, don't be surprised if in the future there appears the ability to 
 restrict access to ANDROID_ID.

Is your advice then to use the special-file-checking workaround
instead of ANDROID_ID? Both work fine technically.

Thanks

On Apr 1, 7:04 am, Dianne Hackborn hack...@android.com wrote:
 On Thu, Mar 31, 2011 at 6:19 PM, davemac davemac...@gmail.com wrote:
  It wasn't so much the unique ID I was looking for, rather some
  reassurance that Google has a certification program. From this
  particular case, and others I've heard about, it ought to be more
  robust than it is.

 It's not perfect.  Few things are.  As problems are found, it is improved.

 As far as ANDROID_ID -- please be aware that some people concerned about
 privacy very much do not like applications being able to retrieve something
 that uniquely identifies their device that can be correlated across
 applications.  As such, don't be surprised if in the future there appears
 the ability to restrict access to ANDROID_ID.

 I very strongly recommend not using ANDROID_ID.  If you want to have
 settings retained if the user uninstalls and then re-installs, consider
 using the backup manager.  This also has the advantage of allowing you to
 restore the user's settings across devices.

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Amazon Appmarket is now open!

2011-03-22 Thread blindfold
Indeed today I found that the description for my app was rewritten too
by Amazon, and in my case I do not really mind the more polished
style, although I take no responsibility for any flaws or too much
hype in the modified description.

Regards,

The vOICe for Android
http://www.amazon.com/gp/mas/dl/android/vOICe.vOICe


On Mar 22, 3:13 pm, Justin Giles jtgi...@gmail.com wrote:
 On Tue, Mar 22, 2011 at 9:09 AM, TreKing treking...@gmail.com wrote:
  Do you guy's apps have the original descriptions and bullet points you
  submitted? It seems like Amazon just wrote their own marketing descriptions
  ...

 Wow.  I just noticed that mine was modified as well.  It actually make it
 sound more polished, but some of the concepts are wrong.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How to turn on the sound in the Android Emulator?

2011-03-02 Thread blindfold
Did you avoid checking the Snapshot checkbox while creating your
AVD, as mentioned in my issue 14953 
http://code.google.com/p/android/issues/detail?id=14953
?

I just verified that for me it also affects API level 8: I get sound
upon the first run of a new API level 8 AVD with Snapshot checked,
but no sound upon subsequent runs after quitting and restarting the
emulator for this AVD. The caching seems to be causing problems with
sound (at least for me on Windows 7 64-bit).

On Mar 2, 4:26 pm, ThaMe90 theprophes...@gmail.com wrote:
 I'm not asking how to play a sound, just how to activate the sound on
 the Emulator, because I hear no sound at all...

 On 2 mrt, 13:09, Dixi dixitwadhw...@gmail.com wrote:

  create the raw folder in the layout folder and put the music file and
  use the following code

          MediaPlayer player;
          Intent msvc=new Intent(this,Music.class);
          startService(msvc);
              player = MediaPlayer.create(this, R.raw.se);   // se is
  the name of music file which is placed in the raw folder
              player.setLooping(true); // Set looping
              player.setVolume(100,100);
              player.start();

  On Mar 2, 1:57 pm, ThaMe90 theprophes...@gmail.com wrote:

   Bump...

   On 28 feb, 09:06, ThaMe90 theprophes...@gmail.com wrote:

Anybody got an idea about this?

On 25 feb, 12:51, ThaMe90 theprophes...@gmail.com wrote:

 I don't think so... I use API level 8 to develop... So I doubt this is
 the issue...

 On 25 feb, 12:15, blindfold seeingwithso...@gmail.com wrote:

  You should be getting sound from the emulator by default on Windows 
  7,
  but maybe issue 
  14953http://code.google.com/p/android/issues/detail?id=14953
  affects you too?

  On Feb 24, 11:03 am, ThaMe90 theprophes...@gmail.com wrote:

   Hello all, I wonder how to turn on the sound in the Android 
   Emulator?
   I've 2 headsets connected to my pc, but I can't seem to get sound 
   on
   either of them (One is connected through USB, the other through a
   3.5mm Jack). I've set the AVD I use to enable Audio Input  
   Output,
   and I have set the start-up option -audio winaudio. But I still
   can't hear anything...

   I am working with Eclipse, and I'm running Windows7 32bit OS.

   I've searched all over the internet, but all threads (as cryptic 
   and
   short they may be) all address to this issue on Linux systems...
   Haven't been able to find anything on Windows systems though.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How to turn on the sound in the Android Emulator?

2011-03-02 Thread blindfold
In that case I would not know why you get no sound, because emulator
sound is on by default. I use no special settings. You could try
removing (or disabling in Windows Device Manager) all your sound cards
but one (while removing your earlier special -audio startup options),
but here I am only guessing...

On Mar 3, 8:25 am, ThaMe90 theprophes...@gmail.com wrote:
 I have 2 AVD's available, both set on android 2.2 as the target.
 Both haven't got the snapshot chechbox checked...

 On 2 mrt, 17:06, blindfold seeingwithso...@gmail.com wrote:

  Did you avoid checking the Snapshot checkbox while creating your
  AVD, as mentioned in my issue 
  14953http://code.google.com/p/android/issues/detail?id=14953
  ?

  I just verified that for me it also affects API level 8: I get sound
  upon the first run of a new API level 8 AVD with Snapshot checked,
  but no sound upon subsequent runs after quitting and restarting the
  emulator for this AVD. The caching seems to be causing problems with
  sound (at least for me on Windows 7 64-bit).

  On Mar 2, 4:26 pm, ThaMe90 theprophes...@gmail.com wrote:

   I'm not asking how to play a sound, just how to activate the sound on
   the Emulator, because I hear no sound at all...

   On 2 mrt, 13:09, Dixi dixitwadhw...@gmail.com wrote:

create the raw folder in the layout folder and put the music file and
use the following code

        MediaPlayer player;
        Intent msvc=new Intent(this,Music.class);
        startService(msvc);
            player = MediaPlayer.create(this, R.raw.se);   // se is
the name of music file which is placed in the raw folder
            player.setLooping(true); // Set looping
            player.setVolume(100,100);
            player.start();

On Mar 2, 1:57 pm, ThaMe90 theprophes...@gmail.com wrote:

 Bump...

 On 28 feb, 09:06, ThaMe90 theprophes...@gmail.com wrote:

  Anybody got an idea about this?

  On 25 feb, 12:51, ThaMe90 theprophes...@gmail.com wrote:

   I don't think so... I use API level 8 to develop... So I doubt 
   this is
   the issue...

   On 25 feb, 12:15, blindfold seeingwithso...@gmail.com wrote:

You should be getting sound from the emulator by default on 
Windows 7,
but maybe issue 
14953http://code.google.com/p/android/issues/detail?id=14953
affects you too?

On Feb 24, 11:03 am, ThaMe90 theprophes...@gmail.com wrote:

 Hello all, I wonder how to turn on the sound in the Android 
 Emulator?
 I've 2 headsets connected to my pc, but I can't seem to get 
 sound on
 either of them (One is connected through USB, the other 
 through a
 3.5mm Jack). I've set the AVD I use to enable Audio Input  
 Output,
 and I have set the start-up option -audio winaudio. But I 
 still
 can't hear anything...

 I am working with Eclipse, and I'm running Windows7 32bit OS.

 I've searched all over the internet, but all threads (as 
 cryptic and
 short they may be) all address to this issue on Linux 
 systems...
 Haven't been able to find anything on Windows systems though.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How to turn on the sound in the Android Emulator?

2011-02-25 Thread blindfold
You should be getting sound from the emulator by default on Windows 7,
but maybe issue 14953 http://code.google.com/p/android/issues/detail?id=14953
affects you too?

On Feb 24, 11:03 am, ThaMe90 theprophes...@gmail.com wrote:
 Hello all, I wonder how to turn on the sound in the Android Emulator?
 I've 2 headsets connected to my pc, but I can't seem to get sound on
 either of them (One is connected through USB, the other through a
 3.5mm Jack). I've set the AVD I use to enable Audio Input  Output,
 and I have set the start-up option -audio winaudio. But I still
 can't hear anything...

 I am working with Eclipse, and I'm running Windows7 32bit OS.

 I've searched all over the internet, but all threads (as cryptic and
 short they may be) all address to this issue on Linux systems...
 Haven't been able to find anything on Windows systems though.

-- 
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] No sound with Android 3.0 emulator?

2011-02-23 Thread blindfold
I'm not getting any sound with the Android 3.0 (Honeycomb, final) SDK
emulator. I have no such problem with the Android 2.2 and 2.3.1
emulators. This is on Windows 7 64-bit. I have all volume sliders up.
Anyone else having this problem?

Thanks

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: No sound with Android 3.0 emulator?

2011-02-23 Thread blindfold
I should add that I do get sound also with the Android 3.0 *preview*
emulator, but just not with the new final Android 3.0 emulator. I
rebooted my system because the new emulator appears to be doing some
heavy caching judging from the quick startup after a first run, but to
no avail. What can one do? Is it a new bug?

On Feb 23, 9:26 am, blindfold seeingwithso...@gmail.com wrote:
 I'm not getting any sound with the Android 3.0 (Honeycomb, final) SDK
 emulator. I have no such problem with the Android 2.2 and 2.3.1
 emulators. This is on Windows 7 64-bit. I have all volume sliders up.
 Anyone else having this problem?

 Thanks

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: No sound with Android 3.0 emulator?

2011-02-23 Thread blindfold
Problem solved! The trick for me was to delete the huge (in my case
close to 1 GB) cache file snapshots.img that the new emulator had
created in my AVD folder for the Android 3.0 emulator - because I had
selected the corresponding snapshot checkbox while defining a new
AVD. Unlike a system reboot, this forced a clean restart of the
emulator (taking much longer, obviously), and next I had sound. I now
made a new Android 3.0 AVD with the snapshot checkbox not selected,
and things are fine now.

I suspected that the new emulator with the snapshot option turned on
also cached whatever PC audio device it had found and selected upon a
first run, such that if it goes wrong there one is stuck without
audio. However, creating yet another AVD with the snapshot option
turned on for some reason again gave me the same no-sound problem that
I had before, so it looks like using the snapshot option consistently
causes problems with the audio device. I did not further investigate
though.

On Feb 23, 10:07 am, blindfold seeingwithso...@gmail.com wrote:
 I should add that I do get sound also with the Android 3.0 *preview*
 emulator, but just not with the new final Android 3.0 emulator. I
 rebooted my system because the new emulator appears to be doing some
 heavy caching judging from the quick startup after a first run, but to
 no avail. What can one do? Is it a new bug?

 On Feb 23, 9:26 am, blindfold seeingwithso...@gmail.com wrote:

  I'm not getting any sound with the Android 3.0 (Honeycomb, final) SDK
  emulator. I have no such problem with the Android 2.2 and 2.3.1
  emulators. This is on Windows 7 64-bit. I have all volume sliders up.
  Anyone else having this problem?

  Thanks

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: No sound with Android 3.0 emulator?

2011-02-23 Thread blindfold
 Can I ask you to file a bug at b.android.com with the text you just wrote 
 here?

I was about to, but it seems that the behavior is a bit erratic. For
final checking before filing a bug I just made yet another AVD with
the snapshot feature checked, and this time it did give sound. So I'm
not sure anymore what the pattern is, while it is too time-consuming
to do any statistics on creating AVDs under Android 3.0, so I'd rather
wait now if other group members experience similar issues before
filing a bug report.

Thanks

On Feb 23, 4:28 pm, David Turner di...@android.com wrote:
 Thanks a lot for this information. Can I ask you to file a bug at
 b.android.com with the text you just wrote here?
 It will help us track the issue for a future fix.

 Thanks

 On Wed, Feb 23, 2011 at 11:00 AM, blindfold seeingwithso...@gmail.comwrote:

  Problem solved! The trick for me was to delete the huge (in my case
  close to 1 GB) cache file snapshots.img that the new emulator had
  created in my AVD folder for the Android 3.0 emulator - because I had
  selected the corresponding snapshot checkbox while defining a new
  AVD. Unlike a system reboot, this forced a clean restart of the
  emulator (taking much longer, obviously), and next I had sound. I now
  made a new Android 3.0 AVD with the snapshot checkbox not selected,
  and things are fine now.

  I suspected that the new emulator with the snapshot option turned on
  also cached whatever PC audio device it had found and selected upon a
  first run, such that if it goes wrong there one is stuck without
  audio. However, creating yet another AVD with the snapshot option
  turned on for some reason again gave me the same no-sound problem that
  I had before, so it looks like using the snapshot option consistently
  causes problems with the audio device. I did not further investigate
  though.

  On Feb 23, 10:07 am, blindfold seeingwithso...@gmail.com wrote:
   I should add that I do get sound also with the Android 3.0 *preview*
   emulator, but just not with the new final Android 3.0 emulator. I
   rebooted my system because the new emulator appears to be doing some
   heavy caching judging from the quick startup after a first run, but to
   no avail. What can one do? Is it a new bug?

   On Feb 23, 9:26 am, blindfold seeingwithso...@gmail.com wrote:

I'm not getting any sound with the Android 3.0 (Honeycomb, final) SDK
emulator. I have no such problem with the Android 2.2 and 2.3.1
emulators. This is on Windows 7 64-bit. I have all volume sliders up.
Anyone else having this problem?

Thanks

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: No sound with Android 3.0 emulator?

2011-02-23 Thread blindfold
OK, filed anyway: http://code.google.com/p/android/issues/detail?id=14953
after I observed that I did get sound upon the first launch of a new
AVD with the snapshot feature, and no sound upon a second launch of
this same AVD (which is way faster). I cannot vouch that this pattern
is entirely reproducible though.

On Feb 23, 4:28 pm, David Turner di...@android.com wrote:
 Thanks a lot for this information. Can I ask you to file a bug at
 b.android.com with the text you just wrote here?
 It will help us track the issue for a future fix.

 Thanks

 On Wed, Feb 23, 2011 at 11:00 AM, blindfold seeingwithso...@gmail.comwrote:

  Problem solved! The trick for me was to delete the huge (in my case
  close to 1 GB) cache file snapshots.img that the new emulator had
  created in my AVD folder for the Android 3.0 emulator - because I had
  selected the corresponding snapshot checkbox while defining a new
  AVD. Unlike a system reboot, this forced a clean restart of the
  emulator (taking much longer, obviously), and next I had sound. I now
  made a new Android 3.0 AVD with the snapshot checkbox not selected,
  and things are fine now.

  I suspected that the new emulator with the snapshot option turned on
  also cached whatever PC audio device it had found and selected upon a
  first run, such that if it goes wrong there one is stuck without
  audio. However, creating yet another AVD with the snapshot option
  turned on for some reason again gave me the same no-sound problem that
  I had before, so it looks like using the snapshot option consistently
  causes problems with the audio device. I did not further investigate
  though.

  On Feb 23, 10:07 am, blindfold seeingwithso...@gmail.com wrote:
   I should add that I do get sound also with the Android 3.0 *preview*
   emulator, but just not with the new final Android 3.0 emulator. I
   rebooted my system because the new emulator appears to be doing some
   heavy caching judging from the quick startup after a first run, but to
   no avail. What can one do? Is it a new bug?

   On Feb 23, 9:26 am, blindfold seeingwithso...@gmail.com wrote:

I'm not getting any sound with the Android 3.0 (Honeycomb, final) SDK
emulator. I have no such problem with the Android 2.2 and 2.3.1
emulators. This is on Windows 7 64-bit. I have all volume sliders up.
Anyone else having this problem?

Thanks

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Honeycomb SDK

2011-02-07 Thread blindfold
Yes I hope they will fix that for the final Honeycomb SDK, because
currently I need to recompile for either

uses-sdk android:minSdkVersion=4/
uses-sdk android:targetSdkVersion=Honeycomb/

giving me the conventional (Android 2.3-) phone appearance in the
Honeycomb emulator, or

uses-sdk android:minSdkVersion=Honeycomb/
uses-sdk android:targetSdkVersion=Honeycomb/

for the holographic appearance in the Honeycomb emulator. What I want
of course is to have one APK that is backward compatible to (in my
case) minSdkVersion=4 and that shows the holographic UI on tablets
or phones that run Honeycomb. I do not need to change anything in my
code but these manifest changes to get there, so it is very
inconvenient to forbid uses-sdk android:minSdkVersion=4/uses-sdk
android:targetSdkVersion=Honeycomb/ when aiming to get the
holographic appearance on Honeycomb  devices and the conventional
Android 2.3- UI on non-Honeycomb  devices.

On Feb 7, 8:54 am, Marcin Orlowski webnet.andr...@gmail.com wrote:
 On 7 February 2011 00:57, midtoad stewart.midwin...@gmail.com wrote:

  You will then get the Honeycomb Holograph them and your app will have
  an updated look and feel.

 http://developer.android.com/sdk/preview/index.html

 Android 3.0 offers an updated set of UI widgets that are redesigned
 for use on larger screens such as tablets and incorporate the new
 holographic theme. Your existing application can inherit the new
 design simply by setting the uses-sdk element's
 android:targetSdkVersion attribute to Honeycomb.

 If you do not update the android:targetSdkVersion attribute and the
 android:minSdkVersion is set to 9 or lower, then your application
 uses the widget designs from Android 2.3 and does not inherit the
 holographic theme.

-- 
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: Honeycomb SDK

2011-02-07 Thread blindfold
Ah yes, of course, for now (in my case) with the preview SDK uses-sdk
android:minSdkVersion=4 android:targetSdkVersion=Honeycomb/ and
soon with the final SDK uses-sdk android:minSdkVersion=4
android:targetSdkVersion=11/. Thank you, Dianne.

On Feb 7, 7:06 pm, Dianne Hackborn hack...@android.com wrote:
 You are using this wrong.  Both attributes need to be in a single uses-sdk
 tag.

 The rule is simple: if the targetSdkVersion is Honeycomb, then you get the
 new Honeycomb behavior.  (Note this is the exact same way this has worked
 forever, as documented by android.os.Build.VERSION_CODES about the changes
 in behavior you get as you target later platform versions.)

 This SDK is a preview, without final APIs, so its SDK version is a codename
 since code you write with it is by definition not tested on final builds.
  Once the final SDK is available, that will have an actual API version
 number for Honeycomb.

-- 
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: Emulator with disabled camera still has camera?

2011-02-05 Thread blindfold
It looks like the emulator currently only supports one default
hardware configuration for hasSystemFeature()
http://code.google.com/p/android/issues/detail?id=11682 which indeed
is inconvenient for emulating/testing app behavior for different
hardware configurations.

On Feb 4, 8:42 pm, Manfred Moser mosa...@gmail.com wrote:
 Hi!

 I want to test that my app behaves correctly without camera support but I
 have no device without camera. So I created a avd with Camer support set to
 no.

 However when I run the emulator this call still returns true

 public boolean hasCamera() {
         PackageManager packageManager = application.getPackageManager();
         return
 packageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA);
     }

 Is this a bug in the emulator that I should report or am I missing
 something?

 thx

 manfred

-- 
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] APIs for stereoscopic camera support in Android 3.0?

2011-02-02 Thread blindfold
Apparently, some Honeycomb (Android 3.0) tablets like the T-Mobile G-
Slate are coming out with dual rear-facing cameras for stereoscopic
video recording
http://www.androidpolice.com/2011/02/01/t-mobile-releases-details-and-images-of-the-lg-g-slate-honeycomb-tablet/

I'd like to do some depth mapping and other real-time processing of
the live stereo video feed, but cannot find the relevant APIs for
working with stereoscopic camera input in the Android 3.0 Preview SDK.
Am I missing something, is it coming with the final Android 3.0 SDK,
or is this again a manufacturer's proprietary extension that is not
(yet) covered by an official Android 3.0? I know that Android 3.0 has
support for multiple cameras, but that is here insufficient to tell
for instance which cameraId represents the left camera and which
cameraId represents the right camera. Camera.CameraInfo currently only
offers CAMERA_FACING_BACK and CAMERA_FACING_FRONT, which is irrelevant
here. In the Preview SDK there is no
Camera.CameraInfo.CAMERA_FACING_LEFT or
Camera.CameraInfo.CAMERA_FACING_RIGHT or generalization thereof as
needed to prevent a possible fragmentation of conventions.

Thanks!


The vOICe for Android
http://www.seeingwithsound.com/android.htm

-- 
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] System Bar location and height in Honeycomb?

2011-01-27 Thread blindfold
How can I find the location (bottom or top) and height of the System
Bar (status bar) in Honeycomb?

In compatibility testing of my app I find that I get some vertical
offsets in screen locations wrong in Honeycomb, apparently because I
did not yet account for the System Bar at the bottom of the screen in
Honeycomb.

Thanks!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: System Bar location and height in Honeycomb?

2011-01-27 Thread blindfold
Thank you, Dianne. Yes we can - for better or for worse. I have a
graphical screen where I track touch locations through getRawY() in
relation to my graphics. However, in the mean-time I already fixed my
problem using getLocationOnScreen() for my main view, such that along
with its getHeight() I do know both bottom and top absolute
coordinates. Perhaps an appalling approach, but it now works fine for
both the new Honeycomb UI and Android 2.3-. Problem solved.

On Jan 27, 6:24 pm, Dianne Hackborn hack...@android.com wrote:
 You can't.  Don't use Display.getWidth()/Height(), and you will be fine.
  This is one of the reasons I have been saying for years to not use the raw
 Display dimensions to do UI layout.

 If you aren't using Display to get dimensions, some more details about you
 are doing are needed.  Apps will never be given any space on the screen that
 infringes on the system bar or otherwise have any idea it is there.

 On Thu, Jan 27, 2011 at 3:29 AM, blindfold seeingwithso...@gmail.comwrote:



  How can I find the location (bottom or top) and height of the System
  Bar (status bar) in Honeycomb?

  In compatibility testing of my app I find that I get some vertical
  offsets in screen locations wrong in Honeycomb, apparently because I
  did not yet account for the System Bar at the bottom of the screen in
  Honeycomb.

  Thanks!

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  All such
 questions should be posted on public forums, where I and others can see and
 answer them.

-- 
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: Wake locks and camera

2011-01-26 Thread blindfold
Thank you, Dianne, that confirms my experimental observations with the
camera. For the future it would seem better and less heuristically
defined to decouple camera use from screen use, because it allows for
(modest) power savings in computer vision applications that send/store
their output elsewhere. However, it is not a major issue as long as
the camera is a main power hog.

I need a wake lock to keep the other sensors for location (GPS) and
orientation active, although with Android 2.2 orientation readings
still fail in standby due to issue 11028 
http://code.google.com/p/android/issues/detail?id=11028
despite using a wake lock. This is reportedly fixed with Android 2.3.

Thanks!

On Jan 26, 12:14 am, Dianne Hackborn hack...@android.com wrote:
 I believe the only way to ensure the camera continues operating is to keep
 the screen on.  All you need to do is keep the screen on, you don't need to
 hold a wake lock.

 On Tue, Jan 25, 2011 at 1:00 PM, blindfold seeingwithso...@gmail.comwrote:



  I noticed that in Android 2.2 and earlier I must do either a
  FULL_WAKE_LOCK or a combination of PARTIAL_WAKE_LOCK and
  FLAG_KEEP_SCREEN_ON to make sure the camera does not get turned off
  after a while with my app in the foreground (and I need a wake lock to
  keep GPS going). The underlying assumption seems to be that the camera
  is not useful when the screen is off, but that assumption is false for
  computer vision applications where not the user but the program is
  watching the camera view. Is this fixed in Android 2.3 (Gingerbread)?

  Thanks

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  All such
 questions should be posted on public forums, where I and others can see and
 answer them.

-- 
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: Force Close Does Not Release Camera Resource

2011-01-26 Thread blindfold
Indeed this is an old known issue (1578) 
http://code.google.com/p/android/issues/detail?id=1578
and only restarting the phone helps. You can try to  minimize
occurrences by properly releasing the camera yourself when an
exception occurs in your app.

On Jan 25, 10:41 pm, Joe McCann joseph.is...@gmail.com wrote:
 So while developing a custom camera application I've realized on rare
 occasions and on various devices if the app has to force close, it
 does not always release the camera resource.

 Is there a way to find/detect the process that is holding onto this
 resource and kill it?  Or some other technique?  It is rather
 difficult bug to reproduce (for me anyway), but ultimately the device
 has to be restarted.

 Thanks!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Wake locks and camera

2011-01-25 Thread blindfold
I noticed that in Android 2.2 and earlier I must do either a
FULL_WAKE_LOCK or a combination of PARTIAL_WAKE_LOCK and
FLAG_KEEP_SCREEN_ON to make sure the camera does not get turned off
after a while with my app in the foreground (and I need a wake lock to
keep GPS going). The underlying assumption seems to be that the camera
is not useful when the screen is off, but that assumption is false for
computer vision applications where not the user but the program is
watching the camera view. Is this fixed in Android 2.3 (Gingerbread)?

Thanks

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Camera preview issue on SDK 2.3 emulator?

2011-01-24 Thread blindfold
No I haven't found any solution. Please add your observation to
http://code.google.com/p/android/issues/detail?id=13133 such that it
becomes apparent to Google that it is something in need of fixing and
not a unique developer problem.

Thanks!

On Jan 24, 10:38 am, abukustfan abukust...@gmail.com wrote:
 Hi,

 I also met the same problem.
 Did you find the solutions??

 Thanks

 On Dec 8 2010, 6:14 pm, blindfold seeingwithso...@gmail.com wrote:

  Am I really the only one with this problem? Even the built-in camera
  app gives me only a blank screen in the SDK 2.3 emulator, but after
  taking a snapshot I do get a picture of the familiar green Android in
  the Gallery.

  Thanks

  On Dec 7, 12:27 pm, blindfold seeingwithso...@gmail.com wrote:

   Just found that the CameraPreview sample that comes bundled with SDK
   2.3 compiles fine but also gives me a plain white preview screen in
   the SDK 2.3 emulator on Windows 7 64-bit, so apparently it is not
   (just) my app not playing by the new rules. Any ideas? Gingerbread
   hardware acceleration acting up?

   Thanks

   On Dec 7, 11:24 am, blindfold seeingwithso...@gmail.com wrote:

In testing my camera app in the SDK 2.3 emulator, I find that it runs
OK *except* that the live camera preview is missing and instead
shows a plain white area. Is anyone else experiencing this?

Despite the live preview not showing, I can still do image processing
as expected and redraw the emulator's familiar built-in checkerboard
video on the screen, but the direct preview is plain white despite the
video data in the preview callback apparently being fine. Is there
some change in SurfaceView/SurfaceHolder handling or something?

My app runs fine in SDK 1.6 through 2.2 devices and emulators, and I
wonder what is causing the preview issue with SDK 2.3. I'm not using
any of the new camera API features of SDK 2.3, for backward
compatibility, and I am not observing any exceptions being thrown.

Thanks!

The vOICe for Androidhttp://www.seeingwithsound.com/android.htm

-- 
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 launching Google Goggles from camera app

2011-01-20 Thread blindfold
I'm launching Google Goggles from my own camera app through an intent,
which generally works fine, but occasionally Google Goggles refuses to
launch, popping up an error message reading

 Camera Error

 Cannot connect to camera. You may need to restart your device.

and after pressing OK my app takes over again and successfully resumes
its own use of the camera (no device restart, and not even an app
restart). Now of course only one app at a time can use the camera, so
I explicitly first release() the camera and set my camera object to
null before launching Google Goggles.

Just waiting for camera==null to happen automatically after a
camera.release() does not work: log output shows that the camera
object remains non-null after doing a camera.release(), and I have to
explicitly set it to null as is common practice, but after that
something is sometimes still blocking reuse of the camera. I suspect
that some camera ownership flag is still floating around deep down in
Android, but if it is not somehow exposed such that I can check for it
then it is of no use.

So what *else* can I check for to make sure that the camera REALLY has
been released and *is* available before handing control to another
camera app? Or should it be filed as an Android bug?

The problem occurs on my HTC Desire running Android 2.2. BTW, I always
do camera.stopPreview() and camera.setPreviewCallback(null) before
doing camera.release().

Thanks!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Amazon to Policy Android Market Place

2011-01-15 Thread blindfold
Indeed that can work for some, at the expense of a bloated APK (ZXing
is about twice as large as my app, so it would likely triple my APK
size), and at the expense of updates to ZXing not automatically
becoming available to your users until you release your own update
that bundles an updated ZXing, or unless you add additional checks to
see if ZXing is already installed and use that external one instead of
your baked-in copy of ZXing.

For me this approach would not work anyway, because apart from ZXing
my app also launches Google Goggles and if not installed searches for
it on Android Market, while I am working on third-party product
referrals via Android Market. Again I have no idea if those third-
party products will ever land in the Amazon Appstore.

In relation to some discussion notes by others: I welcome alternatives
for Android Market, and I distribute my app also via for instance
Phoload, AndAppStore and Getjar, as well as via my own website, but in
all those cases I need not change a bit to my APK and can rely on
Android Market for extending basic functionality of my app. Amazon
Appstore sets a precedent, and leaves the whole burden of sorting out
how to best deal with it to the developer.

Thanks


On Jan 15, 4:14 am, Brill Pappin br...@pappin.ca wrote:
 @blindfold I have an experimental app that does the same thing. Luck
 for us, the Xzing code can be pulled down an added to your local app.
 However this is apparently a drawback to multiple app stores!

 - Brill Pappin

 On Jan 14, 4:26 pm, blindfold seeingwithso...@gmail.com wrote:

  My app got rejected by Amazon Appstore today because it searches for a
  third-party app (the well-known free ZXing barcode reader) on Android

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Interfacing External Camera To An Android Mobile Device

2011-01-14 Thread blindfold
Not without some hacking for enabling USB host mode and installing a
Linux USB webcam driver. Sven Killig did something like this
http://lifehacker.com/5558594/usb-host-hack-allows-keyboards-flash-drives-to-connect-to-the-nexus-one

On Jan 14, 8:13 am, 7Sigma 7si...@gmail.com wrote:
 Hi,
 Is it possible to attach an external camera to an android mobile
 device using USB, WIFI etc. Will it be possible for the application in
 the device to use the camera for processing.

 Thanks,
 Mohit

-- 
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: Amazon to Policy Android Market Place

2011-01-14 Thread blindfold
My app got rejected by Amazon Appstore today because it searches for a
third-party app (the well-known free ZXing barcode reader) on Android
Market if the user tries to launch it from my app and it is not
installed. The barcode reader acts as a functional extension to my
app, launched via an intent, and I would not even know if it will come
to Amazon Appstore. So I'm not pleased with the Amazon Appstore
restrictions, and do not know of an elegant way to deal with this use
case. There is a related and ongoing discussion in the android-discuss
thread Amazon Market - First red flag
http://groups.google.com/group/android-discuss/browse_thread/thread/1879410c513b7df3/

On Jan 5, 11:05 pm, Leon Moreyn-Android Development
lmor...@earthcam.com wrote:
 The almighty Amazon.com feels that is should police the Android
 Market  for proper applications. On one hand I think this could be a
 good idea but on the other hand this feels took much like an Apple iOS
 development clone. With Amazon developing its own market place and
 limiting which apps can appear there you are guaranteed a visible
 market for your application. People who pursue amazon will know that
 your app may meet some sort of standard and may consider buying it.
 But just as good as that is, if Amazon is backed up with testing your
 application and like apple takes two weeks to reject your application
 based on some sort of merit what is to stop me from just uploading my
 application directly to the market place. ABSOLUTELY NOTHING. As
 someone who develops on both sides of the spectrum I don't see the
 implement of this Amazon App Market place as a good idea. I am curious
 as to other developers take on this and how many plan to actually
 develop to meet the amazon market guidelines.

-- 
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: Amazon to Policy Android Market Place

2011-01-14 Thread blindfold
Same answer as in 
http://groups.google.com/group/android-discuss/msg/b71caf66580b9cd0:

Good point. Not currently, but this I can (and will) easily fix by
checking if the Android Market app is installed, in the same way that
I check if ZXing is installed. However, doing so will AFAIK still not
suffice to comply with the Amazon Appstore requirements, because my
app would still perform a search on Android Market if the Android
Market app is installed and ZXing isn't. If Amazon only wants graceful
degradation in cases where users do not have the Android Market
installed, that is fine with me, and I'll gladly comply with that.

On Jan 14, 11:56 pm, Streets Of Boston flyingdutc...@gmail.com
wrote:
 If your app can be installed from another market than the Android
 Market, you cannot assume that the market: intent/scheme is handled
 on every device.

 If users without Android Market on their device download your app from
 Amazon Market, how would your app react if fails to find ZXing (i.e.
 if it fails the market: intent)? If your app fails gracefully and
 your app is still (fully) functional, Amazon shouldn't complain. But
 if your app just raises an error and, for example, quits your app,
 Amazon has a point of rejecting your app.

 If your app handles a lack of the market: scheme/intent gracefully
 but Amazon just tried it on a phone *with* Android Market installed
 and didn't like the fact that the Android Market activity was started,
 then I think Amazon is wrong. They can require apps to handle missing
 functionality gracefully, but they should not forbid any searches
 using the Android Market if Android Market is installed.

 On Jan 14, 4:26 pm, blindfold seeingwithso...@gmail.com wrote:

  My app got rejected by Amazon Appstore today because it searches for a
  third-party app (the well-known free ZXing barcode reader) on Android
  Market if the user tries to launch it from my app and it is not
  installed. The barcode reader acts as a functional extension to my
  app, launched via an intent, and I would not even know if it will come
  to Amazon Appstore. So I'm not pleased with the Amazon Appstore
  restrictions, and do not know of an elegant way to deal with this use
  case. There is a related and ongoing discussion in the android-discuss
  thread Amazon Market - First red 
  flaghttp://groups.google.com/group/android-discuss/browse_thread/thread/1...

  On Jan 5, 11:05 pm, Leon Moreyn-Android Development

  lmor...@earthcam.com wrote:
   The almighty Amazon.com feels that is should police the Android
   Market  for proper applications. On one hand I think this could be a
   good idea but on the other hand this feels took much like an Apple iOS
   development clone. With Amazon developing its own market place and
   limiting which apps can appear there you are guaranteed a visible
   market for your application. People who pursue amazon will know that
   your app may meet some sort of standard and may consider buying it.
   But just as good as that is, if Amazon is backed up with testing your
   application and like apple takes two weeks to reject your application
   based on some sort of merit what is to stop me from just uploading my
   application directly to the market place. ABSOLUTELY NOTHING. As
   someone who develops on both sides of the spectrum I don't see the
   implement of this Amazon App Market place as a good idea. I am curious
   as to other developers take on this and how many plan to actually
   develop to meet the amazon market guidelines.- Hide quoted text -

  - Show quoted text -

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Google analytics crash

2011-01-03 Thread blindfold
Well, after another user apparently had 6 crashes in 2 minutes from
GoogleAnalyticsTracker.trackEvent() right when launching my app, I've
updated my app to wrap all Google Analytics calls in try-catch blocks
to quench the symptoms. Even though the crash reports were rare, this
seems to be the only/simplest way for me to avoid an occasional bad
user experience due to use of Google Analytics.

Regards


java.lang.RuntimeException: Unable to start activity
ComponentInfo{vOICe.vOICe/vOICe.vOICe.The_vOICe}:
java.lang.IllegalStateException: no transaction pending at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2663) at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
2679) at android.app.ActivityThread.access$2300(ActivityThread.java:
125) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:
2033) at android.os.Handler.dispatchMessage(Handler.java:99) at
android.os.Looper.loop(Looper.java:123) at
android.app.ActivityThread.main(ActivityThread.java:4627) at
java.lang.reflect.Method.invokeNative(Native Method) at
java.lang.reflect.Method.invoke(Method.java:521) at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:878) at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:636) at
dalvik.system.NativeStart.main(Native Method) Caused by:
java.lang.IllegalStateException: no transaction pending at
android.database.sqlite.SQLiteDatabase.endTransaction(SQLiteDatabase.java:
555) at
com.google.android.apps.analytics.PersistentEventStore.putEvent(Unknown
Source) at
com.google.android.apps.analytics.GoogleAnalyticsTracker.createEvent(Unknown
Source) at
com.google.android.apps.analytics.GoogleAnalyticsTracker.trackEvent(Unknown
Source) at vOICe.vOICe.The_vOICe.a(Unknown Source) at
vOICe.vOICe.The_vOICe.onCreate(Unknown Source) at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1047) at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2627) ... 11 more

FINGERPRINT {verizon/thunderc/thunderc/thunderc:2.2/FRF91/eng.lge.
20101101.102025:user/release-keys}


On Dec 31 2010, 3:55 pm, blindfold seeingwithso...@gmail.com wrote:
 Hmm, I have only one global tracker object that I create in the
 onCreate() of my main activity, and with a regular dispatch interval
 through the format tracker.start(UA-12345-0, nseconds, this), so I'd
 say that it all works from one alive thread. However, in one pair of
 crash logs the first GoogleAnalyticsTracker.trackEvent() crash occurs
 after my app had been running for some time, while the second
 GoogleAnalyticsTracker.trackEvent() crash occurs immediately at app
 startup only 3 minutes later, for the same device FINGERPRINT,
 suggesting that indeed some sort of lock had lived on even across runs
 to cause a second crash because the second run would not be owning the
 lingering lock. This was for a Samsung GT-I5800 running Android 2.1-
 update1.

 On Dec 31, 3:21 pm, H m...@howardb.com wrote:

  Looking in the analytics source after you've called trackEvent(), I suspect
  that error is coming out when it is using a database transaction to insert
  the event into the database. Once inserted, it calls endTransaction as well
  as setTransactionSuccessful. Both of these do this check:

  if (!mLock.isHeldByCurrentThread()) {
              throw new IllegalStateException(no transaction pending);
          }

  So it could be worth checking to see if you are tracking the event from a
  thread that has ended, or calling dispatch from a different thread...?

  HTH.

-- 
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: Google analytics crash

2010-12-31 Thread blindfold
 anyone else getting this?

I have recently received several crash reports caused by Google
Analytics (version 1.1), such as

java.lang.IllegalStateException: no transaction pending at
android.database.sqlite.SQLiteDatabase.endTransaction(SQLiteDatabase.java:
480) at
com.google.android.apps.analytics.PersistentEventStore.putEvent(Unknown
Source) at
com.google.android.apps.analytics.GoogleAnalyticsTracker.createEvent(Unknown
Source) at
com.google.android.apps.analytics.GoogleAnalyticsTracker.trackEvent(Unknown
Source) at vOICe.vOICe.The_vOICe.a(Unknown Source) at
vOICe.vOICe.m.onAutoFocus(Unknown Source) at android.hardware.Camera
$EventHandler.handleMessage(Camera.java:345) at
android.os.Handler.dispatchMessage(Handler.java:99) at
android.os.Looper.loop(Looper.java:123) at
android.app.ActivityThread.main(ActivityThread.java:4363) at
java.lang.reflect.Method.invokeNative(Native Method) at
java.lang.reflect.Method.invoke(Method.java:521) at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:862) at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:620) at
dalvik.system.NativeStart.main(Native Method)

I'm not sure yet what to do about them. Maybe put a try-catch block
around all uses of Google Analytics?

Regards


On Dec 29, 8:39 pm, Mark Wyszomierski mar...@gmail.com wrote:
 Hi,

 I'm using google analytics in my app. I am getting a good number of
 force closes from users, finally got a stacktrace:

 Caused by: android.database.sqlite.SQLiteException: file is encrypted
 or is not a database
   at android.database.sqlite.SQLiteDatabase.native_setLocale(Native
 Method)
   at
 android.database.sqlite.SQLiteDatabase.setLocale(SQLiteDatabase.java:
 1864)
   at android.database.sqlite.SQLiteDatabase.init(SQLiteDatabase.java:
 1814)
   at
 android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:
 808)
   at
 android.database.sqlite.SQLiteOpenHelper.getReadableDatabase(SQLiteOpenHelper.java:
 168)
   at
 com.google.android.apps.analytics.PersistentEventStore.getNumStoredEvents(PersistentEventStore.java:
 160)
   at
 com.google.android.apps.analytics.PersistentEventStore.startNewVisit(PersistentEventStore.java:
 177)
   at
 com.google.android.apps.analytics.GoogleAnalyticsTracker.start(GoogleAnalyticsTracker.java:
 108)
   at
 com.google.android.apps.analytics.GoogleAnalyticsTracker.start(GoogleAnalyticsTracker.java:
 99)
   at
 com.google.android.apps.analytics.GoogleAnalyticsTracker.start(GoogleAnalyticsTracker.java:
 83)
   at
 com.google.android.apps.analytics.GoogleAnalyticsTracker.start(GoogleAnalyticsTracker.java:
 94)
   at com.me.myapp.MyActivity.onCreate(MyActivity.java:30)
   at
 android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
 1047)
   at
 android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
 2459)

 anyone else getting this? The call that causes it:

   private GoogleAnalyticsTracker tracker;

   tracker = GoogleAnalyticsTracker.getInstance();
   tracker.start(mykey, context);  - causes the exception.

 This is working fine for most users. I'm going to try catching the
 exception, hopefully that will work.

 Thanks

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Google analytics crash

2010-12-31 Thread blindfold
You may be right, although the crash reports that I have all suggest
that they were triggered from direct calls to
GoogleAnalyticsTracker.trackEvent() in my code leading to
java.lang.IllegalStateException: no transaction pending. Judiciously
sprinkling try-catch blocks is a great way to further uglify source
code, so maybe I'll just live with the occasional crashes until Google
fixes the problem, given that thus far only 3 out of 5000 app runs
gave me crashes.

Thanks


On Dec 31, 2:26 pm, H m...@howardb.com wrote:
 You could stick a try/catch block in, but I doubt it would catch *most* of
 the bugs. Remember that your request for a track simply gets added to the
 database at that point and then some time later the dispatcher picks
 requests up from the database and sends them (although if you ask it to
 dispatch immediately you might catch them, but due to the use of handlers, I
 still doubt it). So your try/catch in your code would only catch errors from
 the first part and not the second.

 From the ACRA reporting in my app for the previous release of the analytics,
 the vast majority of my errors were coming from the latter part of the
 process where it was trying to read back from the database or failed during
 the sending part or failed when removing entries from the database.

 The analytics team did state they fixed a load of bugs in this latest
 release. I don't know if it's against the rules or not, but I decompiled the
 latest release and built it natively into my app and that allowed me to
 stick in a sprinkling of my own try/catch clauses around spots that I
 thought looked tetchy. I haven't released this yet..

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Google analytics crash

2010-12-31 Thread blindfold
Hmm, I have only one global tracker object that I create in the
onCreate() of my main activity, and with a regular dispatch interval
through the format tracker.start(UA-12345-0, nseconds, this), so I'd
say that it all works from one alive thread. However, in one pair of
crash logs the first GoogleAnalyticsTracker.trackEvent() crash occurs
after my app had been running for some time, while the second
GoogleAnalyticsTracker.trackEvent() crash occurs immediately at app
startup only 3 minutes later, for the same device FINGERPRINT,
suggesting that indeed some sort of lock had lived on even across runs
to cause a second crash because the second run would not be owning the
lingering lock. This was for a Samsung GT-I5800 running Android 2.1-
update1.

On Dec 31, 3:21 pm, H m...@howardb.com wrote:
 Looking in the analytics source after you've called trackEvent(), I suspect
 that error is coming out when it is using a database transaction to insert
 the event into the database. Once inserted, it calls endTransaction as well
 as setTransactionSuccessful. Both of these do this check:

 if (!mLock.isHeldByCurrentThread()) {
             throw new IllegalStateException(no transaction pending);
         }

 So it could be worth checking to see if you are tracking the event from a
 thread that has ended, or calling dispatch from a different thread...?

 HTH.

-- 
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: App disappeared from Market Home

2010-12-21 Thread blindfold
I got the JSON parsing error too when uploading an updated APK
yesterday and today, using Firefox. Did not get this error in the past
with Firefox. Just reloading the page then gives you a draft listing,
and you can next proceed to fill in the Recent Changes (was grayed out
after the error) and press Publish.

 I think it's a cheap way to get people to use Chrome

Reminds me of all those online banking and booking sites that would
break unless you used Microsoft Internet Explorer. :-)

Regards

On Dec 21, 12:14 am, TreKing treking...@gmail.com wrote:
 Which browser are you guys using? I had an issue updating yesterday where it
 wouldn't accept my hi-rez icon on Firefox and gave me some strange JSON
 parsing error when I uploaded my app.

 Everything went fine when I used Chrome instead.

 I think it's a cheap way to get people to use Chrome :-P

 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How to simulate a (missing) DPAD

2010-12-18 Thread blindfold
OK, I've got it working, and in a rather straightforward manner.
Although dispatchKeyEvent() for some reason does not always determine
which UI element gets focus, it turned out that the UI element
actually does have a focus that one can in onKeyDown() reliably
perform a hasFocus() for after having done setFocusable(),
setFocusableInTouchMode() on all UI elements and a requestFocus(),
requestFocusFromTouch() on one element. Next, after putting all UI
elements like radiobuttons, checkboxes and editboxes in (for instance)
arrays, one can assign focus to the previous or next element when the
volume up or down key is pressed, thus hard-coding in what order UI
elements are traversed. Not very elegant, but thus far it works
reliably (no strange dependencies on whether a view is scrollable),
does the accessibility job for me in all activities, and it did not
require a major program overhaul. Tested on Android 1.6 and 2.2. It is
a bit like defining the tab order when programming for Microsoft
Windows. The key thing was to discard use of dispatchKeyEvent()
altogether and manually do what dispatchKeyEvent() was supposed to
do in terms of moving focus to a next UI element for a generated
KeyEvent.KEYCODE_DPAD_DOWN and KeyEvent.KEYCODE_DPAD_UP.

Thanks


On Dec 17, 10:06 am, Dianne Hackborn hack...@android.com wrote:
 I doubt you will get this to work correctly, because you are doing this
 after parts of the framework that deal with things like going in and out of
 touch mode have seen the events.

 Why are you doing this?  If a device doesn't have a DPAD, the user isn't
 going to think to use the volume keys to navigate focus(!!).  You should be
 giving them a good touch-based UI.

 On Fri, Dec 17, 2010 at 12:38 AM, blindfold seeingwithso...@gmail.comwrote:



  For Android phones that lack a physical d-pad or trackball (e.g.
  Alcatel OT-980, Motorola Droid Pro), I am trying to remap the physical
  up and down volume keys to simulated up and down d-pad keys using code
  like

  �...@override
    public boolean onKeyDown(int keyCode, KeyEvent event) {
       if (keyCode == KeyEvent.KEYCODE_VOLUME_DOWN) {
          KeyEvent ke = new KeyEvent(KeyEvent.ACTION_DOWN,
  KeyEvent.KEYCODE_DPAD_UP);
          dispatchKeyEvent(ke);
          return true;
       }
       return super.onKeyDown(keyCode, event);
    }

  Although this works fine with a ListView and with activity views that
  become scrollable because they are too large to fit on the physical
  screen, it somehow does not work at all for activity views that remain
  small enough to fit on the screen. I can test this by increasing the
  number of radio buttons in some activity view and then see how the
  above key remapping begins to work fine as soon as there are more
  controls than fit on the screen. I have tried all sorts of things with
  setting focus after making things focusable using setFocusable(true),
  setFocusableInTouchMode(true), requestFocus(), requestFocusFromTouch()
  and so on, but nothing seems to help. The above onKeyDown() executes
  in all relevant cases as shown by my Log.i() output, but it is the
  dispatchKeyEvent() that  in the described cases does nothing. All my
  activity views are surrounded by ScrollView/ScrollView in the XML
  of their respective layouts. More about the context of this problem at

 http://groups.google.com/group/eyes-free-dev/browse_thread/thread/374...
  (eyes-free-dev list).

  So the above code works sometimes, but I need a reliable/general
  solution. How can one reliably remap physical keys to perform key
  functions for which there are no physical keys on the Android device?

  Thanks!

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  All such
 questions should be posted on public forums, where I and others can see and
 answer them.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] How to simulate a (missing) DPAD

2010-12-17 Thread blindfold
For Android phones that lack a physical d-pad or trackball (e.g.
Alcatel OT-980, Motorola Droid Pro), I am trying to remap the physical
up and down volume keys to simulated up and down d-pad keys using code
like

  @Override
   public boolean onKeyDown(int keyCode, KeyEvent event) {
  if (keyCode == KeyEvent.KEYCODE_VOLUME_DOWN) {
 KeyEvent ke = new KeyEvent(KeyEvent.ACTION_DOWN,
KeyEvent.KEYCODE_DPAD_UP);
 dispatchKeyEvent(ke);
 return true;
  }
  return super.onKeyDown(keyCode, event);
   }

Although this works fine with a ListView and with activity views that
become scrollable because they are too large to fit on the physical
screen, it somehow does not work at all for activity views that remain
small enough to fit on the screen. I can test this by increasing the
number of radio buttons in some activity view and then see how the
above key remapping begins to work fine as soon as there are more
controls than fit on the screen. I have tried all sorts of things with
setting focus after making things focusable using setFocusable(true),
setFocusableInTouchMode(true), requestFocus(), requestFocusFromTouch()
and so on, but nothing seems to help. The above onKeyDown() executes
in all relevant cases as shown by my Log.i() output, but it is the
dispatchKeyEvent() that  in the described cases does nothing. All my
activity views are surrounded by ScrollView/ScrollView in the XML
of their respective layouts. More about the context of this problem at
http://groups.google.com/group/eyes-free-dev/browse_thread/thread/3747abb6f0b9df11
(eyes-free-dev list).

So the above code works sometimes, but I need a reliable/general
solution. How can one reliably remap physical keys to perform key
functions for which there are no physical keys on the Android device?

Thanks!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How to simulate a (missing) DPAD

2010-12-17 Thread blindfold
Thanks Dianne! Good to know, even though it presents a setback.

 Why are you doing this?

For accessibility purposes. One of my blind users just bought an
Alcatel OT-980 running Android 2.1. This phone does have a physical
QWERTY keyboard but no d-pad or equivalent (BTW, the same applies to
Motorola Droid Pro and Sony Ericsson X10 mini pro). So I want to make
provisions for blind navigation of menu and dialogs through Google's
screen reader TalkBack. This currently requires physical keys, because
Android still lacks the kind of touch event model of the iPhone where
(blind) users can explore the screen by touch and hear GUI elements
spoken without immediately activating whatever elements they are
touching or sliding over. This is particularly relevant for the soft
keyboard, but even with Android phones that have a physical keyboard
we face this accessibility problem when there is no d-pad. These users
are motivated enough to learn a few workarounds, because that is part
of their daily life.

Best regards


The vOICe for Android
http://www.seeingwithsound.com/android.htm

On Dec 17, 10:06 am, Dianne Hackborn hack...@android.com wrote:
 I doubt you will get this to work correctly, because you are doing this
 after parts of the framework that deal with things like going in and out of
 touch mode have seen the events.

 Why are you doing this?  If a device doesn't have a DPAD, the user isn't
 going to think to use the volume keys to navigate focus(!!).  You should be
 giving them a good touch-based UI.

 On Fri, Dec 17, 2010 at 12:38 AM, blindfold seeingwithso...@gmail.comwrote:



  For Android phones that lack a physical d-pad or trackball (e.g.
  Alcatel OT-980, Motorola Droid Pro), I am trying to remap the physical
  up and down volume keys to simulated up and down d-pad keys using code
  like

  �...@override
    public boolean onKeyDown(int keyCode, KeyEvent event) {
       if (keyCode == KeyEvent.KEYCODE_VOLUME_DOWN) {
          KeyEvent ke = new KeyEvent(KeyEvent.ACTION_DOWN,
  KeyEvent.KEYCODE_DPAD_UP);
          dispatchKeyEvent(ke);
          return true;
       }
       return super.onKeyDown(keyCode, event);
    }

  Although this works fine with a ListView and with activity views that
  become scrollable because they are too large to fit on the physical
  screen, it somehow does not work at all for activity views that remain
  small enough to fit on the screen. I can test this by increasing the
  number of radio buttons in some activity view and then see how the
  above key remapping begins to work fine as soon as there are more
  controls than fit on the screen. I have tried all sorts of things with
  setting focus after making things focusable using setFocusable(true),
  setFocusableInTouchMode(true), requestFocus(), requestFocusFromTouch()
  and so on, but nothing seems to help. The above onKeyDown() executes
  in all relevant cases as shown by my Log.i() output, but it is the
  dispatchKeyEvent() that  in the described cases does nothing. All my
  activity views are surrounded by ScrollView/ScrollView in the XML
  of their respective layouts. More about the context of this problem at

 http://groups.google.com/group/eyes-free-dev/browse_thread/thread/374...
  (eyes-free-dev list).

  So the above code works sometimes, but I need a reliable/general
  solution. How can one reliably remap physical keys to perform key
  functions for which there are no physical keys on the Android device?

  Thanks!

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  All such
 questions should be posted on public forums, where I and others can see and
 answer them.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How to simulate a (missing) DPAD

2010-12-17 Thread blindfold
Thanks Mark. I can easily detect touch events by their coordinates,
but not so easily identify what UI elements lie underneath - unless I
define and layout each of these UI elements graphically myself in
terms of screen coordinates. I think your proposed TalkBackOverlayView
would require that too, if I understand you correctly. My main screen
already uses different touch screen events for gross positions like
center, top middle, left middle, bottom left and bottom right, and
speaks the relevant user actions. Here I did without an exploration
mode, although that should have been easily possible through handling
ACTION_DOWN and ACTION_UP events separately in dispatchTouchEvent().
This very basic level of touch screen use is indeed accessible for
blind persons, as are the keyboard shortcuts that I have defined for
phones with a physical keyboard.

However, at some point one would want to make good use of standard UI
elements (listviews, buttons, radio buttons, checkboxes etc) for which
Android determines the concrete layout instance, and render these
standard elements accessible rather than having to define a range of
dedicated touch views corresponding to each and every activity view
that sighted users would use. I have no ambition to reinvent the
Android layout framework. The iPhone, through VoiceOver, offers a
generic touch screen solution for this as part of the OS. I feel that
any accessibility hook for standard UI elements that I add at
application level to my specific Android app should be only an interim
solution and a stop gap until Android catches up and offers a
similarly general accessibility solution as part of the OS. Otherwise,
blind users will in the future at best have a few accessible point
solutions, but no general accessibility with phones that lack a
physical keyboard and/or d-pad.

Now while trying to bridge the current accessibility limitations for d-
pad-less Android phones, apparently even a simple key remapping is not
that, erm... simple, with the current set of event Listeners and
onWhatevers(). :-(


On Dec 17, 11:37 am, Mark Murphy mmur...@commonsware.com wrote:
 On Fri, Dec 17, 2010 at 4:31 AM, blindfold seeingwithso...@gmail.com wrote:
  This currently requires physical keys, because
  Android still lacks the kind of touch event model of the iPhone where
  (blind) users can explore the screen by touch and hear GUI elements
  spoken without immediately activating whatever elements they are
  touching or sliding over.

 If this is your own app, I would think you could do this on your own.
 Have a blind mode that puts a TalkBackOverlayView on top of the
 regular UI. TalkBackOverlayView would use the same techniques as
 GestureOverlayView to detect touch events and selectively pass them
 through. In particular, in an exploration mode, it would behave as
 you describe -- when the screen is touched, find out the widget
 underneath it at those pixel coordinates, and announce what it is.

 Offering this for other apps would require firmware mods, of course.

 And, of course, I haven't tried this, nor have I looked at the
 GestureOverlayView code to see how tough it would be to implement.
 It's just an idea that popped to mind while reading your post.

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

 _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
 Available!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How to simulate a (missing) DPAD

2010-12-17 Thread blindfold
Hi Mark, walking the View tree with getLocationOnScreen() while
retrieving element labels might be possible, and is a good idea in
itself, but this is more the kind of thing that one would try for a
generic accessibility layer, such as for a screen reader that works
across all apps (currently limited by security restrictions), or as
part of the OS. For a single app it may be too much work for what
should be a temporary app-specific solution. Perhaps I am pessimistic,
but my estimate is that it would take a significant effort that may
run into unforeseen limitations along the road much like even my
simple key remapping attempt turned into a time waster. I once looked
at something similar to UI-tree walking to obtain icon names at the
mouse pointer on the Microsoft Windows desktop, but there it was a
royal pain and still did not quite yield the sought information.
Unfortunately Google rarely discloses what they are up to, so one
cannot know how much of the app-level accessibility patching and
bridging will become obsolete in what time frame. For instance, I made
my app's UI elements self-voicing before Google released TalkBack, but
by now that effort is mostly obsolete. Basically all blind Android
phone users and would-be users are now clamoring for something
equivalent to the iPhone touch screen experience, but that requires
changes to the OS, and we non-Google accessibility developers do not
know if or when these are forthcoming.

Thanks


The vOICe for Android
http://www.seeingwithsound.com/android.htm


On Dec 17, 1:00 pm, Mark Murphy mmur...@commonsware.com wrote:
 On Fri, Dec 17, 2010 at 6:52 AM, blindfold seeingwithso...@gmail.com wrote:
  Thanks Mark. I can easily detect touch events by their coordinates,
  but not so easily identify what UI elements lie underneath - unless I
  define and layout each of these UI elements graphically myself in
  terms of screen coordinates.

 Walk the widgets in the layout and figure out who is on the screen at
 your touch coordinates via getLocationOnScreen() (or maybe
 getLocationInWindow())? I'm probably being a bit simplistic, but I
 would think there should be some way to figure out what is underneath
 the touch coordinate.

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

 _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
 Available!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How to simulate a (missing) DPAD

2010-12-17 Thread blindfold
Hi Brill, you may be right in hindsight, but key remapping seemed like
such a simple and effective countermeasure that I expected it to work,
and it would have made more Android phone types accessible to blind
users. Alas...

On Dec 17, 3:04 pm, Brill Pappin br...@pappin.ca wrote:
 I'm not sure that is going to work all that well for you, but instead of
 emulating the DPAD, can you simply listen for the keys you are trying to
 remap instead of remapping them?

 I think its great that you are trying to solve a problem for a user that is
 having trouble with your app because of an unusual circumstance... however I
 also feel that the user in question should maybe take that problem up with
 whoever they got the phone from and get a new phone; you may be willing to
 make an effort, but most apps won't, so they really have the wrong phone.

 - Brill

-- 
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: HeaderView in ListView causing ClassCastException

2010-12-10 Thread blindfold
http://stackoverflow.com/questions/4393775/android-classcastexception-when-adding-a-header-view-to-expandablelistview
helped me out with addHeaderView() and the infamous
ClassCastException.

Basically you do TopSearch.setLayoutParams(new
ListView.LayoutParams(ListView.LayoutParams.FILL_PARENT,
ListView.LayoutParams.WRAP_CONTENT)); right before
lv.addHeaderView(TopSearch);

Regards

On Dec 10, 5:37 pm, bobetko bobe...@gmail.com wrote:
 I have added a view to the header of my ListView by following way:

         ListView lv = (ListView)getListView();
         View TopSearch =  (View) View.inflate(this, R.layout.search,
 null);
         lv.addHeaderView(TopSearch, null, false);

 And everything is fine until I make changes to data adapter and then
 try to execute:

        adapter.notifyDataSetChanged();

 This always crashes my application giving me following error:

 java.lang.ClassCastException: android.widget.HeaderViewListAdapter

 If I don't add header view to my list view, then everything works fine
 with no errors
 Any suggestions?

 Thanks.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Problem with toggleSoftInput() doing nothing after a third-party startActivityForResult()

2010-12-09 Thread blindfold
I have a problem with the soft keyboard after launching another
activity. Upon a touch event I use

InputMethodManager imm = (InputMethodManager)
getSystemService(INPUT_METHOD_SERVICE);
imm.toggleSoftInput(InputMethodManager.SHOW_FORCED, 0);

to pop up the soft keyboard, which works just fine.

However, after launching and returning from another (third-party)
activity via startActivityForResult(), the touch events again work
fine but the soft keyboard no longer shows up with the above lines. I
have this problem after launching the phone's browser, after launching
ZXing as well as after launching an Admob test ad. Apparently
something about the launched activity still lingers after returning
from these third-party activities. What must one do to restore a
proper state to get the soft keyboard to pop up again, or is this an
Android bug?

Curiously, the problem is cured after doing yet another
startActivityForResult() but then for one of my own activities. The
question is what exactly it is that I need to reset to regain proper
toggleSoftInput() behavior.

Thanks!

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Camera preview issue on SDK 2.3 emulator?

2010-12-08 Thread blindfold
Am I really the only one with this problem? Even the built-in camera
app gives me only a blank screen in the SDK 2.3 emulator, but after
taking a snapshot I do get a picture of the familiar green Android in
the Gallery.

Thanks

On Dec 7, 12:27 pm, blindfold seeingwithso...@gmail.com wrote:
 Just found that the CameraPreview sample that comes bundled with SDK
 2.3 compiles fine but also gives me a plain white preview screen in
 the SDK 2.3 emulator on Windows 7 64-bit, so apparently it is not
 (just) my app not playing by the new rules. Any ideas? Gingerbread
 hardware acceleration acting up?

 Thanks

 On Dec 7, 11:24 am, blindfold seeingwithso...@gmail.com wrote:

  In testing my camera app in the SDK 2.3 emulator, I find that it runs
  OK *except* that the live camera preview is missing and instead
  shows a plain white area. Is anyone else experiencing this?

  Despite the live preview not showing, I can still do image processing
  as expected and redraw the emulator's familiar built-in checkerboard
  video on the screen, but the direct preview is plain white despite the
  video data in the preview callback apparently being fine. Is there
  some change in SurfaceView/SurfaceHolder handling or something?

  My app runs fine in SDK 1.6 through 2.2 devices and emulators, and I
  wonder what is causing the preview issue with SDK 2.3. I'm not using
  any of the new camera API features of SDK 2.3, for backward
  compatibility, and I am not observing any exceptions being thrown.

  Thanks!

  The vOICe for Androidhttp://www.seeingwithsound.com/android.htm



-- 
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] Camera preview issue on SDK 2.3 emulator?

2010-12-07 Thread blindfold
In testing my camera app in the SDK 2.3 emulator, I find that it runs
OK *except* that the live camera preview is missing and instead
shows a plain white area. Is anyone else experiencing this?

Despite the live preview not showing, I can still do image processing
as expected and redraw the emulator's familiar built-in checkerboard
video on the screen, but the direct preview is plain white despite the
video data in the preview callback apparently being fine. Is there
some change in SurfaceView/SurfaceHolder handling or something?

My app runs fine in SDK 1.6 through 2.2 devices and emulators, and I
wonder what is causing the preview issue with SDK 2.3. I'm not using
any of the new camera API features of SDK 2.3, for backward
compatibility, and I am not observing any exceptions being thrown.

Thanks!


The vOICe for Android
http://www.seeingwithsound.com/android.htm

-- 
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: New ADT and SDK breaks Eclipse (Again!)

2010-12-07 Thread blindfold
Confirmed. I had the same issue and solution (I'm on Windows 7 64-
bit).

On Dec 7, 9:46 am, Kostya Vasilyev kmans...@gmail.com wrote:
 07.12.2010 8:48, Zarah пишет:

  - Some errors where encountered when installing, failure to rename a
  file?  The dialog says close all anti-virus software, so I did that. I
  also closed down all instances of Windows Explorer.  I tried to run
  Unlocker on the folder in question, and it said only Eclipse is using
  the folder.  Here's the error from the SDK manager:
  Failed to rename directory C:\android-sdk-windows\platforms\android-7
  to C:\android-sdk-windows\temp\PlatformPackage.old02.
  Failed to rename directory C:\android-sdk-windows\platforms\android-3
  to C:\android-sdk-windows\temp\PlatformPackage.old02.

 Updating the SDK outside of Eclipse helps avoid these (run android.bat
 to launch the SDK/AVD manager).

 --
 Kostya Vasilyev -- WiFi Manager + pretty widget 
 --http://kmansoft.wordpress.com

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Camera preview issue on SDK 2.3 emulator?

2010-12-07 Thread blindfold
Just found that the CameraPreview sample that comes bundled with SDK
2.3 compiles fine but also gives me a plain white preview screen in
the SDK 2.3 emulator on Windows 7 64-bit, so apparently it is not
(just) my app not playing by the new rules. Any ideas? Gingerbread
hardware acceleration acting up?

Thanks

On Dec 7, 11:24 am, blindfold seeingwithso...@gmail.com wrote:
 In testing my camera app in the SDK 2.3 emulator, I find that it runs
 OK *except* that the live camera preview is missing and instead
 shows a plain white area. Is anyone else experiencing this?

 Despite the live preview not showing, I can still do image processing
 as expected and redraw the emulator's familiar built-in checkerboard
 video on the screen, but the direct preview is plain white despite the
 video data in the preview callback apparently being fine. Is there
 some change in SurfaceView/SurfaceHolder handling or something?

 My app runs fine in SDK 1.6 through 2.2 devices and emulators, and I
 wonder what is causing the preview issue with SDK 2.3. I'm not using
 any of the new camera API features of SDK 2.3, for backward
 compatibility, and I am not observing any exceptions being thrown.

 Thanks!

 The vOICe for Androidhttp://www.seeingwithsound.com/android.htm

-- 
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: Market expanding to technically non-compliant devices?

2010-11-30 Thread blindfold
Yes, things are getting confusing if not messy. The Logitech TV Cam
accessory for the Logitech Revue Google TV adds a camera to Google TV
http://www.logitech.com/en-us/smartTV/accessories/devices/tv-cam but
it can reportedly not be used by Android apps: The TV Cam cannot be
accessed from other applications at this time 
http://forums.adobe.com/message/3256491#3256491

Great, so there *is* a camera for this Android device (Google TV) but
it cannot be used by regular Android apps. Now this probably means
that Android camera apps will simply remain invisible on the Android
Market for this Google TV, but for developers it is just as important
to know if a device is compatible with their app or not - to be able
to tell their customers. One should not have to scour web forums in
the hope of getting an indication of that. In other words, should it
not be *required* that Logitech clearly indicates on their website
that Logitech TV Cam does not work with third-party (and Google's!)
Android camera apps, and *only* works with their own proprietary video
call app? I currently cannot find this on the Logitech TV Cam product
page
http://www.logitech.com/en-us/smartTV/accessories/devices/tv-cam and
even if it is hidden somewhere in the small print that is hardly
practical for developers who need to be able to quickly tell
compatibility for a range of new devices to answer customer
inquiries.

Looks like there should be some additional requirements for
manufacturers here in order to be allowed to use the Google TV brand,
because everybody already knows that Google TV runs Android
http://www.google.com/tv/developers.html and if there is a camera
accessory everybody would assume that Android camera apps would run
fine and not be in for an unpleasant surprise or a heap of
uncertainty.

Thanks!


On Nov 30, 8:20 am, Spiral123 cumis...@gmail.com wrote:
 GoogleTV.  My Logitech Revue has no touch screen - assuming the market
 gets expanded to this device (yes please!) then I won't want to see
 any apps where I need to touch the screen.

-- 
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: Feature Graphic, High Resolution Application Icon and Promotional Video.

2010-11-25 Thread blindfold
Right, in my case too the uploaded feature graphic and hi-res icon
keep vanishing some time after a successful upload.

Looks like someone misconfigured the Monkey tool to write software
rather than test software.

On Nov 25, 11:10 am, sblantipodi perini.dav...@dpsoftware.org wrote:
 Hi,
 as stated in other thread the Feature Graphic, High
 Resolution Application Icon and Promotional Video are always removed
 after we upload them.

 Is there someone who know when we can finally upload this file without
 having to re-upload and re-upload it?

 Do you know also what URL should we use for Promotional Video?
 Is it good a youtube url or they need a direct link to a video file ?

-- 
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: can we create app to use phone camera as magnifier

2010-11-24 Thread blindfold
http://www.androlib.com/android.application.com-davidparry-magnifier-qmmmA.aspx

On Nov 24, 1:39 pm, Atik atik0...@gmail.com wrote:
 hi guys

 i need to know that can we use android phone camera as magnifier
 glass.
 i want to create such application, which will open the camera and zoom
 it to read some small text etc, it wont capture any picture neither it
 will record any video.

 pls suggest if any one have any ideas

 Thanks
 'Atik

-- 
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: Can't Upgrade Apps Since Console Maintenance ?

2010-11-21 Thread blindfold
I also have Firefox 3.6.12 but for me the new images never showed
after pressing the Upload button. They do now after uploading via
Google Chrome. Don't know what's different.

On Nov 21, 10:19 am, Pent tas...@dinglisch.net wrote:
  Argh! Just found that I can upload PNG feature graphic and 512x512
  icon just fine with Google Chrome, but not with Firefox! Apparently
  the extended interface is not yet browser-neutral, because I had
  uploaded the other images in the past just fine with Firefox (which is
  my default browser).

 I used firefox, 3.6.12.

 Pent

-- 
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: Can't Upgrade Apps Since Console Maintenance ?

2010-11-20 Thread blindfold
Well, I cannot upload a feature graphic or 512x512 icon, no matter if
I try PNG (with or without alpha) or JPEG. No error messages, but no
image shows up. I haven't tried uploading a new app version.

On Nov 20, 8:35 pm, Pent tas...@dinglisch.net wrote:
 I understand the maintenance window is long past, but the Upload
 Upgrade linky button just disappears when I click it for all my apps.

 I can upload assets without problem e.g. the new 512x512 icon.

 Anyone else ?

 Pent

-- 
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: Can't Upgrade Apps Since Console Maintenance ?

2010-11-20 Thread blindfold
Argh! Just found that I can upload PNG feature graphic and 512x512
icon just fine with Google Chrome, but not with Firefox! Apparently
the extended interface is not yet browser-neutral, because I had
uploaded the other images in the past just fine with Firefox (which is
my default browser).

Regards

On Nov 20, 10:58 pm, blindfold seeingwithso...@gmail.com wrote:
 Well, I cannot upload a feature graphic or 512x512 icon, no matter if
 I try PNG (with or without alpha) or JPEG. No error messages, but no
 image shows up. I haven't tried uploading a new app version.

 On Nov 20, 8:35 pm, Pent tas...@dinglisch.net wrote:

  I understand the maintenance window is long past, but the Upload
 Upgradelinky button just disappears when I click it for all myapps.

  I can upload assets without problem e.g. the new 512x512 icon.

  Anyone else ?

  Pent



-- 
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: Camera saving corrupted photos

2010-11-14 Thread blindfold
2.592 x 1.952 looks like an unusual (unsupported) image size to me.
Maybe try 2.592 x 1.944?

Regards

On Nov 14, 7:58 pm, Stephen Lebed srle...@gmail.com wrote:
 I can't figure out why I'm getting corrupted images when I save them
 in my app.  In fact the thumbnail seems to be fine, but the actual
 image is corrupted, as if the stride value is not being set
 correctly.  The following is the code I'm using the save the image,
 which is taken from other version of camera apps almost directly.  In
 other apps it seems to be saving images without problem.  This is
 called from a Camera.PictureCallback.onPictureTaken(byte[] data,
 Camera camera)

 File filename = new File(Test_SnapShotK.jpg);
 File exportDir = new File(Environment.getExternalStorageDirectory(),
 TestDir);

 if (!exportDir.exists()) {
         exportDir.mkdirs();
         Log.i(TAG, making directory  + exportDir.toString());

 }

 File file = new File(exportDir, filename.getName());

 try {
         FileOutputStream fileOutputStream = new FileOutputStream(file);
         fileOutputStream.write(data);
         fileOutputStream.flush();
         fileOutputStream.close();

 } catch (IOException e) {

         Log.e(TAG, e.getMessage(), e);

 }

 Since I can't attach the image I'm getting directly in this post, here
 is a link to it.

 http://www.mechnology.com/Test_SnapShotK.jpg

 Has anyone else gotten this problem and have been able to resolve it.
 I'm testing this on a G2 phone.  Any help is greatly appreciated.

 Stephen

-- 
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: Camera saving corrupted photos

2010-11-14 Thread blindfold
Sounds like a G2/Android bug then, because still image results should
always be totally unrelated to any (screen) layout settings. Only
camera preview results can be linked to layout.

On Nov 15, 1:26 am, Stephen Lebed srle...@gmail.com wrote:
 It is a supported size on the g2.  I'm not specifying the size, its
 the default res for the camera.

 It looks like part of the problem is with

 getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
 WindowManager.LayoutParams.FLAG_FULLSCREEN);

 I use this in the onCreate method.  Again, I use this all the time,
 but when I comment out this line, I can save uncorrupted images. I'm
 still hunting for an answer.  It is related to my layout xml.

 On Nov 14, 12:53 pm, blindfold seeingwithso...@gmail.com wrote:

  2.592 x 1.952 looks like an unusual (unsupported) image size to me.
  Maybe try 2.592 x 1.944?

  Regards

  On Nov 14, 7:58 pm, Stephen Lebed srle...@gmail.com wrote:

   I can't figure out why I'm getting corrupted images when I save them
   in my app.  In fact the thumbnail seems to be fine, but the actual
   image is corrupted, as if the stride value is not being set
   correctly.  The following is the code I'm using the save the image,
   which is taken from other version of camera apps almost directly.  In
   other apps it seems to be saving images without problem.  This is
   called from a Camera.PictureCallback.onPictureTaken(byte[] data,
   Camera camera)

   File filename = new File(Test_SnapShotK.jpg);
   File exportDir = new File(Environment.getExternalStorageDirectory(),
   TestDir);

   if (!exportDir.exists()) {
           exportDir.mkdirs();
           Log.i(TAG, making directory  + exportDir.toString());

   }

   File file = new File(exportDir, filename.getName());

   try {
           FileOutputStream fileOutputStream = new FileOutputStream(file);
           fileOutputStream.write(data);
           fileOutputStream.flush();
           fileOutputStream.close();

   } catch (IOException e) {

           Log.e(TAG, e.getMessage(), e);

   }

   Since I can't attach the image I'm getting directly in this post, here
   is a link to it.

  http://www.mechnology.com/Test_SnapShotK.jpg

   Has anyone else gotten this problem and have been able to resolve it.
   I'm testing this on a G2 phone.  Any help is greatly appreciated.

   Stephen



-- 
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: Samsung Galaxy Camera flash-mode and zoom-supported oddities

2010-10-08 Thread blindfold
I have no Galaxy S Epic to test with, and I essentially use something
like

if (camera.getParameters().getFlashMode(camera.getParameters()) !=
null) parameters.setFlashMode(Camera.Parameters.FLASH_MODE_TORCH)

to turn on the torch, so from your description I gather that this
ought to work also on the Galaxy.

However, I used FLASH_MODE_OFF to turn the torch LED off, which works
fine on the HTC Desire with Android 2.2, but according to your
description this would fail with the Galaxy. You can try my app The
vOICe for Android (search Market for seeingwithsound, and toggle
the color identification on/off via the Menu key (second entry) to see
if indeed it fails to turn off the torch when done with the color
identification feature. You could use this to validate your analysis
of the Galaxy S Epic.

On Oct 8, 5:26 am, mjmeyer mjmeye...@gmail.com wrote:
 I've been stunned by how different Samsung's camera behaves compared
 to the other devices I've tested camera preview stuff with.

 Mind you, this is in 2.1 so the SDK 8 Camera.getZoomRatios() and
 Camera.isZooomSupported() are not available.

 Looking at the Camera.getParameters().flatten() result shows that the
 common zoom-supported that I see in HTC, N1, and Mototrolla devices
 is not there.

 Instead there's something called digi-zoom. I couldnt find any
 documentation or posts about its usage but a little experimenting
 revealed it takes numerals 1..10 as string and will zoom accordingly.
 I have no idea what the ratios would be.

 Also, there's some madness with the flash mode on the Galaxy S Epic
 that I have tested with.

 Calls to getSupportedFlashModes() return only auto,on,off. There is no
 torch supported.

 However, if you do
 params.setFlashMode(Camera.Parameters.FLASH_MODE_TORCH) it will turn
 the LED on!

 Sadly, subsequently setting it to FLASH_MODE_OFF or FLASH_MODE_AUTO
 does not turn the LED off! It's stuck on until Camera.release(), or
 maybe Camera.stopPreview(), I havent traced into it yet to see which
 actually turns it off.

 I suppose that's why Samsung doesnt return torch in the supported
 list. I'd prefer not to have to stop and restart the preview to turn
 it off for this model.

 Any suggestions or knowledge of apps that successfully turn torch on
 and then off on Galaxy?

-- 
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: Method called after release()

2010-09-23 Thread blindfold
I also find the Method called after release() occasionally in my
camera app's crash logs with end users, and have thus far not been
able to track it down because I did not encounter it on my own phones
(ADP1 with Android 1.6 and HTC Desire with Android 2.2). Apparently
something camera related in android.hardware.Camera sometimes lives on
even after releasing the camera, or I overlooked something in doing a
join when cleaning up. Difficult to debug. You can try inserting
mCamera.setPreviewCallback(null) in between mCamera.stopPreview() and
mCamera.release(), ending it all with setting mCamera=null and
wrapping everything in a mCamera!=null check and see if that works for
you.

Regards

On Sep 23, 10:35 am, Pedro Teixeira pedroteixeir...@gmail.com wrote:
 No ideias for this?

 I just keep reading on google to release the camera.. and I've just  
 done that but I get the error anyway..

 On Sep 22, 2010, at 11:43 PM, Pedro Teixeira wrote:



  Hi, I'm getting this error ( in the end of this post)... which I guess
  I understand it's because I'm calling something after releasing it..
  but I can't find a wy to work it around... Here is the method:

  public void surfaceDestroyed(SurfaceHolder holder) {
             mPreviewRunning = false;
             mCamera.stopPreview();
             mCamera.release();
     }

  I've tried all combinations.. I've tried:
  mCamera.setPreviewCallback(null);
  This class, where the surfaceview is implemented can be accessed by 2
  different classes.. one that doesnt implement surfaceview and other
  that does.. the error just shows me when I go from the activity that
  uses the camera to the activity that also uses camera.. I don't know
  what else to do.. I've google it and can't find any answer. any
  suggestion?

  09-22 19:55:57.475: ERROR/AndroidRuntime(900):     Uncaught handler:
  thread main exiting due to uncaught exception
  09-22 19:55:57.605: ERROR/AndroidRuntime(900):
  java.lang.RuntimeException: Method called after release()
  09-22 19:55:57.605: ERROR/AndroidRuntime(900):     at
  android.hardware.Camera.stopPreview(Native Method)
  09-22 19:55:57.605: ERROR/AndroidRuntime(900):     at
  com.pedroteixeira.thennnow.cameraView.surfaceDestroyed
  (cameraView.java:
  184)
  09-22 19:55:57.605: ERROR/AndroidRuntime(900):     at
  android.view.SurfaceView.reportSurfaceDestroyed(SurfaceView.java:426)
  09-22 19:55:57.605: ERROR/AndroidRuntime(900):     at
  android.view.SurfaceView.updateWindow(SurfaceView.java:351)
  09-22 19:55:57.605: ERROR/AndroidRuntime(900):     at
  android.view.SurfaceView.onWindowVisibilityChanged(SurfaceView.java:
  182)

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

 Pedro Teixeira

 www.pedroteixeira.org

-- 
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: Can android support more than one sdcard?

2010-09-12 Thread blindfold
Hi Dianne,

Thank you for confirming my expectations.

I hope your colleagues will consider device enumeration as being
important for limiting future fragmentation of a supposedly open
platform and for encouraging new application areas, going well beyond
nice.

Regards


On Sep 12, 12:40 am, Dianne Hackborn hack...@android.com wrote:
 Well you are totally missing my point.  Of course it would be *nice* to
 support an arbitrary number of everything.  To actually ship a product on
 time, though, you probably aren't going to be able to do so.

 The SD card is an especially good case of this, because it's not just a
 matter of adding an API -- you also need to figure out the whole UX around
 this, which is fairly non-trivial.

 Anyway, done with this thread.

 On Sat, Sep 11, 2010 at 1:51 AM, blindfold seeingwithso...@gmail.comwrote:



   A marketing or engineering department that can't accept limitations is an
   organization that will never ship a product.

  When you are a research department you aim to develop new products
  rather than shorten time to market. When even the basic building
  blocks are already highly restrictive it becomes much harder to
  innovate.

  Although this thread is mostly about having a second SD card, your
  comments seem to indicate a general attitude towards and lack of
  interest in generalized API support for enumerating peripherals:

   I'll only support one camera!  Okay.

  Not OK! If one wants to compete on the market one has to look at
  competitors that already sport two cameras, such as a front-facing
  camera. Think many Nokia phones, and Apple's iPhone 4G. (I added
  second camera support to my own Nokia Java MIDlet app back in 2006.)
  Do you want every Android phone manufacturer to invent and develop
  their own proprietary Android API extensions even to just keep up with
  existing functionality elsewhere? You encourage fragmentation!

  Also, please look across platform boundaries as well as look at
  broadening the scope towards gaming devices. What Microsoft is doing
  with Kinect (formerly Natal) involves either a stereo camera or a time-
  of-flight camera. Do you want individual Android device manufacturers
  to create proprietary API extensions here too? Why make it impossible
  to develop an Android counterpart of the Nintendo 3DS by sticking to a
  conventional single camera API, forcing proprietary extensions?

  Thanks!

  The vOICe for Android
 http://www.seeingwithsound.com/android.htm

  On Sep 11, 3:04 am, Dianne Hackborn hack...@android.com wrote:
   On Fri, Sep 10, 2010 at 2:33 PM, Doug Gordon gordo...@gmail.com wrote:
I am really surprised that the Android design would only account for
one of anything. In my experience, any time you say we're only going
to support one of feature X, the marketing or engineering departments
decide to add another X. In any case, having support for more than
one is the same as having support for any quantity.

   U...  I'll only support one touch screen!  Okay.  I'll only support
  one
   DPAD!  Okay.  I'll only support one CPU!  Okay.  I'll only support one
   graphics accelerator!  Okay.  I'll only support one SIM!  Okay.  I'll
  only
   support one headphone output!  Okay.  I'll only support one camera!
   Okay.

   A marketing or engineering department that can't accept limitations is an
   organization that will never ship a product.

   (And you don't note all of the complexity that comes from going from 1 to
  2
   -- how is this reflecting in the UI?  How does the user decide where they
   want their stuff to go?  How about telling them how much space is where?
    And now you've got to let them move stuff around.  I can make a good
   argument that multiple SD cards is just intrinsically a crummy user
   experience and should be avoided.  Heck even one SD card significantly
   complicates the UX.)

   --
   Dianne Hackborn
   Android framework engineer
   hack...@android.com

   Note: please don't send private questions to me, as I don't have time to
   provide private support, and so won't reply to such e-mails.  All such
   questions should be posted on public forums, where I and others can see
  and
   answer them.

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  All such
 questions should be posted on public forums, where I and others can see and
 answer them.

-- 
You received this message because

[android-developers] Re: Can android support more than one sdcard?

2010-09-12 Thread blindfold
Please stay on topic. Device enumeration is a generalization of the
ability to have and use more than one SD card. You have made it quite
clear now that you have little interest in that or in adding device
enumeration for other device classes.

On Sep 12, 9:54 am, Dianne Hackborn hack...@android.com wrote:
 Do you practice at being this way, or is it a talent?

-- 
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: Can android support more than one sdcard?

2010-09-12 Thread blindfold
Hi Mark,

I appreciate your thoughtful comments. Some things are fairly trivial
at API level, but hard at implementation level. Sometimes it is also
at API level not immediately clear which choices are most elegant and
future proof. I also realize that the Android team has been
exceedingly busy first realizing the core of what is currently needed
on most mobile devices, for the time being skipping certain
generalized features that have been available for quite some time on
other popular platforms, and that do have merit beyond the time to
market consideration. Ms. Hackborn's emotional and rather rude
response cut this discussion short, despite concrete examples of
existing implementations from Samsung as mentioned by Kostya and
Indicator. For cameras there exists the two-camera HTC Evo 4G, and
outside Android there exist two-camera phones from Nokia (I even have
an old Nokia 6680 with two cameras) and from Apple (iPhone 4G).
Therefore I felt that I am not just sketching some hypothetical
situation that awaits concrete examples of devices that are being sold
by the millions.

 -- New versions of the same methods are added to Environment that take
 some sort of identifier as a parameter, with some sort of
 getExternalStorageDevices() method to list them

Yes, I am aware of the organic growth option, but the zero-parameter
getExternalStorageDirectory() would have been redundant if support for
multiple devices had been foreseen and the parametrized method simply
limited in value range by letting a getExternalStorageCount() return
1 (or zero) until manufacturers support higher counts. The third-party
developer can then write code today that supports higher counts
without having to wait for a future version of Android that specifies
how getExternalStorageDirectory() gets an additional companion method
or overloads one of the parameters.

For zero risk with supporting a second camera one could have looked at
how Nokia supports additional cameras in Java ME using the capture://
locator, since the existing market has long given feedback on any
issues with that (such that one can at the same time avoid making the
same mistakes).

It largely boils down to the question what should come first, a
general future-proof API or an actual  implementation on a popular
device that needs an existing API to be generalized for more
widespread use. An actual implementation that is not supported by an
API is typically a bit ugly, brings legacy code issues later on, and
can discourage adoption of new features because third-party developers
will be less inclined to write brand-specific code to exploit such
features.

 No, she has made it quite clear now that she has little interest in
 doing any of that until there are concrete implementations ready to
 be, um, implemented.

OK, good to know. I guess I was hoping for the type of leadership that
Chris just mentioned.

Regards


On Sep 12, 12:43 pm, Mark Murphy mmur...@commonsware.com wrote:
 On Sun, Sep 12, 2010 at 2:59 AM, blindfold seeingwithso...@gmail.com wrote:
  I hope your colleagues will consider device enumeration as being
  important for limiting future fragmentation of a supposedly open
  platform and for encouraging new application areas, going well beyond
  nice.

 I imagine that they will add support for multiple forms of external
 storage as manufacturers request it (or, perhaps, where manufacturers
 contribute back code). As Ms. Hackborn indicated, an API for things
 like this is the tip of the iceberg. It's not also terribly relevant
 until the rest of the iceberg exists, and there's no sense in them
 spending time trying to design an API until they know what that API is
 going to need to contain.

 With respect to future fragmentation, the pattern for handling this
 is rather obvious. Let's take external storage:

 -- The zero-parameter getExternalStorageDirectory() and kin do what
 they do today, reporting on the default external storage

 -- New versions of the same methods are added to Environment that take
 some sort of identifier as a parameter, with some sort of
 getExternalStorageDevices() method to list them

 However, there are plenty of unknowns: what the identifier is
 (string or more complex object), what getExternalStorageDevices()
 returns (ArrayList or some Environment.DeviceRoster object), etc.
 Those details are impractical to design ahead of the full
 implementation. So they didn't try. This is not terribly surprising --
 in fact, it would have been more surprising had they spent a lot of
 time on it and skipped other functionality as a result.

 I am not aware of any compatible Android devices with multiple forms
 of external storage back in, say, January. There were some (e.g.,
 ARCHOS 5 Android tablet) that had multiple forms of external storage,
 but they were not in compliance with the compatibility definition in
 other areas. Hence, when Android 2.2 was being baked, particularly
 from the standpoint of low-level system stuff like external

[android-developers] Re: Can android support more than one sdcard?

2010-09-12 Thread blindfold
Eeks, better not the Apollo 13 bit, Mark. I tried the Houston, we
have a problem persiflage once before, and it was certainly not
appreciated. :-)

By and large we agree, I think. I see the trade-offs that you mention.
The one main opening that a constructive discussion could have created
is that the Android team does not have to throw a final future-proof
API over the wall as part of an official Android release. Their time
and expertise is finite too, so yes, chances are that what they do
would be flawed. The Java ME (dual) camera support with Nokia is
actually rather messy too, riddled with ad hoc choices and a
consequent legacy of device incompatibilities.

 And you can see some places where they did try to future-proof things
 better. Take sensors, for example. They took a stab at implementing a
 future-proof sensor API, then had to deprecate *twice*. Locations are
 another place, where they took a shot at future-proof, and sorta hit
 it so far, if you ignore the whole mock location stuff popping in and
 out of the SDK. They didn't totally ignore the issue -- they just
 didn't do it everywhere. And, as the sensors API demonstrates,
 future-proof, like past performance, is no guarantee of future
 results.

True. What the Android team could have initiated long ago is to
publish draft API proposals, such that you and I and anyone else here
can take a stab at them (review them and suggest improvements) and
thus help improve quality before the result gets incorporated in an
official Android release. Of course the future can still prove you
wrong, but at least it ups the chances of getting it first time right.
Such a way of working could save a lot of frustration on both sides,
and help avoid later API deprecations.

Regards


On Sep 12, 3:58 pm, Mark Murphy mmur...@commonsware.com wrote:
 On Sun, Sep 12, 2010 at 9:29 AM, blindfold seeingwithso...@gmail.com wrote:
  Therefore I felt that I am not just sketching some hypothetical
  situation that awaits concrete examples of devices that are being sold
  by the millions.

 Oh, in many of these cases, the hardware concept is certainly
 foreseeable. However:

 -- all the details of the hardware, and the resulting impacts those
 details may have on an API, are not always foreseeable

 -- the demand for such hardware is not uniform (e.g., dual cameras
 would seem more likely than dual screens, which would seem more likely
 than interfaces to Kenmore dishwashers)

 -- developing a truly future-proof API takes more engineering time
 than creating an API that gets the job done, and engineering time is
 not infinite

 At some point, they have to draw a line. I think you and I are in
 agreement that where they drew the line is sometimes less-than-ideal
 from the perspective of third-party developers.

  Yes, I am aware of the organic growth option, but the zero-parameter
  getExternalStorageDirectory() would have been redundant if support for
  multiple devices had been foreseen and the parametrized method simply
  limited in value range by letting a getExternalStorageCount() return
  1 (or zero) until manufacturers support higher counts. The third-party
  developer can then write code today that supports higher counts
  without having to wait for a future version of Android that specifies
  how getExternalStorageDirectory() gets an additional companion method
  or overloads one of the parameters.

 No arguments there.

 :: pause for laughter at the pun ::

 :: still waiting ::

 :: aw, c'mon, guys, it wasn't *that* bad... ::

 The case of external storage is probably the least defensible, even
 looking at it at the time of original implementation.

  For zero risk with supporting a second camera one could have looked at
  how Nokia supports additional cameras in Java ME using the capture://
  locator, since the existing market has long given feedback on any
  issues with that (such that one can at the same time avoid making the
  same mistakes).

 I'd argue that the line they drew on camera support is more
 defensible, because cameras are significantly more complex and in a
 greater state of flux than is the concept of external storage.

  It largely boils down to the question what should come first, a
  general future-proof API or an actual  implementation on a popular
  device that needs an existing API to be generalized for more
  widespread use. An actual implementation that is not supported by an
  API is typically a bit ugly, brings legacy code issues later on, and
  can discourage adoption of new features because third-party developers
  will be less inclined to write brand-specific code to exploit such
  features.

 And you can see some places where they did try to future-proof things
 better. Take sensors, for example. They took a stab at implementing a
 future-proof sensor API, then had to deprecate *twice*. Locations are
 another place, where they took a shot at future-proof, and sorta hit
 it so far, if you ignore the whole mock location stuff popping

[android-developers] Re: Can android support more than one sdcard?

2010-09-11 Thread blindfold
 A marketing or engineering department that can't accept limitations is an
 organization that will never ship a product.

When you are a research department you aim to develop new products
rather than shorten time to market. When even the basic building
blocks are already highly restrictive it becomes much harder to
innovate.

Although this thread is mostly about having a second SD card, your
comments seem to indicate a general attitude towards and lack of
interest in generalized API support for enumerating peripherals:

 I'll only support one camera!  Okay.

Not OK! If one wants to compete on the market one has to look at
competitors that already sport two cameras, such as a front-facing
camera. Think many Nokia phones, and Apple's iPhone 4G. (I added
second camera support to my own Nokia Java MIDlet app back in 2006.)
Do you want every Android phone manufacturer to invent and develop
their own proprietary Android API extensions even to just keep up with
existing functionality elsewhere? You encourage fragmentation!

Also, please look across platform boundaries as well as look at
broadening the scope towards gaming devices. What Microsoft is doing
with Kinect (formerly Natal) involves either a stereo camera or a time-
of-flight camera. Do you want individual Android device manufacturers
to create proprietary API extensions here too? Why make it impossible
to develop an Android counterpart of the Nintendo 3DS by sticking to a
conventional single camera API, forcing proprietary extensions?

Thanks!


The vOICe for Android
http://www.seeingwithsound.com/android.htm


On Sep 11, 3:04 am, Dianne Hackborn hack...@android.com wrote:
 On Fri, Sep 10, 2010 at 2:33 PM, Doug Gordon gordo...@gmail.com wrote:
  I am really surprised that the Android design would only account for
  one of anything. In my experience, any time you say we're only going
  to support one of feature X, the marketing or engineering departments
  decide to add another X. In any case, having support for more than
  one is the same as having support for any quantity.

 U...  I'll only support one touch screen!  Okay.  I'll only support one
 DPAD!  Okay.  I'll only support one CPU!  Okay.  I'll only support one
 graphics accelerator!  Okay.  I'll only support one SIM!  Okay.  I'll only
 support one headphone output!  Okay.  I'll only support one camera!  Okay.

 A marketing or engineering department that can't accept limitations is an
 organization that will never ship a product.

 (And you don't note all of the complexity that comes from going from 1 to 2
 -- how is this reflecting in the UI?  How does the user decide where they
 want their stuff to go?  How about telling them how much space is where?
  And now you've got to let them move stuff around.  I can make a good
 argument that multiple SD cards is just intrinsically a crummy user
 experience and should be avoided.  Heck even one SD card significantly
 complicates the UX.)

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  All such
 questions should be posted on public forums, where I and others can see and
 answer them.

-- 
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: Can android support more than one sdcard?

2010-09-11 Thread blindfold
Right, device enumeration should not have been an afterthought - and
in Android it is not even an afterthought yet!

Microsoft thought of device enumeration ages ago, with functions like
GetLogicalDrives(), waveInGetNumDevs(), waveOutGetNumDevs(),
mixerGetNumDevs(),
CreateClassEnumerator(CLSID_VideoInputDeviceCategory,,), etc, etc.
Things tend to become much less messy when designing APIs for
accommodating multiple devices of a given type from the outset. It
looks like the broadening scope of Android was (and is)
underestimated.

Regards

On Sep 11, 10:42 am, Indicator Veritatis mej1...@yahoo.com wrote:
 Что Вы? Видно, это не то, что имела ввиду.

 But the truth of the matter is as Dianne so laconically stated: since
 there is no platform API for it, trying to support two SD cards is
 going to be ugly. Or in the case of the Samsung phone, already is
 ugly.

 That said, I really wish Google had thought of this possibility ahead
 of time. It really should not have been that difficult. Having 2 SD
 cards is only a little odd, no more odd than having two SIMS, which is
 also fairly common (at least for European phones).

 Part of marketing's job IS to anticipate such future requirements,
 communicate them to engineering so that engineering can design with an
 eye for the future. In this case, that would have meant leaving 'room'
 in the API for supporting multiple (especially two) SD cards.

 Just think, for example, how much easier it is to backup your phone if
 you have two SD cards in two separate slots: one for backup, the other
 for data and programs.

 Finally, it is unfair to compare this to having two of everything and
 anything, since two SD cards is so much more handy and so much less
 expensive than having two touch screens, two CPUs etc.

 On Sep 10, 10:59 am, Kostya Vasilyev kmans...@gmail.com wrote:

    10.09.2010 21:51, Dianne Hackborn пишет: There is no platform API for 
  developers to find the second SD card, so
   I would strongly discourage having one since it will result in a
   poorer user experience with their apps.

  How do you discourage phone owners from buying and installing an sdcard?

  --
  Kostya Vasilyev -- WiFi Manager + pretty widget 
  --http://kmansoft.wordpress.com

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Camera preview runs dark on Motorola i1

2010-09-08 Thread blindfold
Unless it is you under another alias, there is a similar report at
http://www.satelliteguys.us/dishpointer-com-official-support-forum/223914-screen-darkens-motorola-i1.html

Regards

On Sep 8, 9:47 pm, Mike Reed waterrock...@gmail.com wrote:
 Anyone have any experience with this?

 The barcode app, Yelp, and the Google sample app all show the camera
 preview as being dark. The camera app that comes with the phone looks
 normal, but all other apps that use the Camera.startPreview() code
 show up with what looks like a 50% opacity black surface over the
 camera image. The top-bar menu is normal brightness, so it's just the
 camera image that exhibits this.

 I've tried mucking with different Camera.Parameters options, but very
 few of these are available in Android 1.5.

-- 
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: Capturing RAW data in Android 2.2(HTC Desire)

2010-09-06 Thread blindfold
Yes, many have reported problems with camera preview in portrait mode,
and one way out is to force your app in landscape mode and just not
use portrait. Otherwise, consider the solutions suggested in
http://code.google.com/p/android/issues/detail?id=1193 (I have not
tested those because landscape suited me best).

The vOICe for Android
http://www.seeingwithsound.com/android.htm


On Sep 6, 4:57 am, uday uday.pic...@gmail.com wrote:
 Thanks Blindfold for ur information... Currently im working on Camera
 Capture in Android. I can able to display the image in portrait by
 forcing the preview as portrait in AndroidManifest.xml file.. But the
 image preview is not correct as i expected.. The image preview is like
 streched... I dont have an idea of how to maintain the Aspect ratio so
 that the image preview will be clear..

 Do u have any idea on this?? I saw some of the blogs on this but no
 luck..

 On Sep 5, 1:09 pm, blindfold seeingwithso...@gmail.com wrote:

  You can do image processing on camera preview images, which are
  smaller and almost raw even while not supporting the raw format
  either: the default YCbCr_420_SP format uses 1.5 bytes per pixel by
  subsampling U and V by a factor 2 in YUV color space; 1.5 times the
  number of pixels in a typical preview size is still manageable in
  terms of the amount of memory, but you need to do your own color
  conversion/decoding to maybe arrive at a byte count of 4 times the
  number of pixels for an RGBA integer-per-pixel (4 bytes per pixel)
  encoding for more convenient image processing. This is a hassle in
  Android for lack of conversion/decoding APIs, but doable and not very
  memory hungry as long as you do image processing on preview images
  from PreviewCallback.

  Regards

  The vOICe for Android http://www.seeingwithsound.com/android.htm

-- 
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: Capturing RAW data in Android 2.2(HTC Desire)

2010-09-06 Thread blindfold
 So you have hard coded in manifest.xml file for the field
 screenOrientation=landscape am i right??

Yes.

 Do u able to get the correct preview in Landscape mode???

Yes, just check my app.

The vOICe for Android
http://www.seeingwithsound.com/android.htm

On Sep 6, 10:38 am, uday uday.pic...@gmail.com wrote:
 So you have hard coded in manifest.xml file for the field
 screenOrientation=landscape am i right??

 Do u able to get the correct preview in Landscape mode???

 On Sep 6, 11:48 am, blindfold seeingwithso...@gmail.com wrote:

  Yes, many have reported problems with camera preview in portrait mode,
  and one way out is to force your app in landscape mode and just not
  use portrait. Otherwise, consider the solutions suggested 
  inhttp://code.google.com/p/android/issues/detail?id=1193(Ihave not
  tested those because landscape suited me best).

  The vOICe for Android http://www.seeingwithsound.com/android.htm

-- 
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: Capturing RAW data in Android 2.2(HTC Desire)

2010-09-06 Thread blindfold
 Thanks for the information... Where is ur application??

It was in my signature, or you can search the Market for
seeingwithsound.

The vOICe for Android
http://www.seeingwithsound.com/android.htm


On Sep 6, 11:18 am, uday uday.pic...@gmail.com wrote:
 Thanks for the information... Where is ur application??

 On Sep 6, 1:50 pm, blindfold seeingwithso...@gmail.com wrote:

   So you have hard coded in manifest.xml file for the field
   screenOrientation=landscape am i right??

  Yes.

   Do u able to get the correct preview in Landscape mode???

  Yes, just check my app.

  The vOICe for Androidhttp://www.seeingwithsound.com/android.htm

-- 
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: Capturing RAW data in Android 2.2(HTC Desire)

2010-09-05 Thread blindfold
You can do image processing on camera preview images, which are
smaller and almost raw even while not supporting the raw format
either: the default YCbCr_420_SP format uses 1.5 bytes per pixel by
subsampling U and V by a factor 2 in YUV color space; 1.5 times the
number of pixels in a typical preview size is still manageable in
terms of the amount of memory, but you need to do your own color
conversion/decoding to maybe arrive at a byte count of 4 times the
number of pixels for an RGBA integer-per-pixel (4 bytes per pixel)
encoding for more convenient image processing. This is a hassle in
Android for lack of conversion/decoding APIs, but doable and not very
memory hungry as long as you do image processing on preview images
from PreviewCallback.

Regards

The vOICe for Android
http://www.seeingwithsound.com/android.htm

On Sep 5, 6:20 am, uday uday.pic...@gmail.com wrote:
 Do u have any idea of how much memory of raw data will generate for
 the resolution 640x480 and 176x144??

 Actually in my application we have image processing on raw data.. If
 it is not available then is there any approach to do that??

 On Sep 4, 6:13 pm, blindfold seeingwithso...@gmail.com wrote:

  Yes. Raw images would also claim too much memory with typical high-res
  still images in the current Android memory model, so a compressed
  format such as JPEG is needed to get around that. There is no support
  for incremental block-based or scanline readout or something like that
  to process the image in smaller (raw) chunks.

  On Sep 4, 1:11 pm, uday uday.pic...@gmail.com wrote:

   Thanks Blindfold..

   So do u got any information regarding this?? What ever it may be the
   resolution currently Android is not able to do the Raw image capture..
   am i right??

   On Sep 1, 1:07 am, blindfold seeingwithso...@gmail.com wrote:

Right, already on February 11 2009 Google's David Sparks wrote in
response to one of my postings,

 I'm talking about deprecating the raw picture callback that has never 
 worked.

and

 As for the camera API in SDK 1.0: It was never intended for signal 
 processing.

   http://groups.google.com/group/android-developers/browse_thread/threa...

Regards

The vOICe for Androidhttp://www.seeingwithsound.com/android.htm

On Aug 31, 6:30 pm, David Erosa García soul...@gmail.com wrote:

 On Tue, Aug 31, 2010 at 6:17 PM, uday uday.pic...@gmail.com wrote:
  Hi All,
  I'm facing problem when capturing RAW data in Android Froyo. Im 
  using
  HTC Desire(5MP) device.  in the method of
  PictureCallback rawCallback = new PictureCallback() {
                 public void onPictureTaken(byte[] data, Camera 
  camera)
                 {
                 }
  the data im getting is null. Is this the problem due to Heap size in
  the device or is there another way to capture this raw data??

 AFAIK, raw callbacks always get null arrays (maybe not implemented?)

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to 
  android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Capturing RAW data in Android 2.2(HTC Desire)

2010-09-04 Thread blindfold
Yes. Raw images would also claim too much memory with typical high-res
still images in the current Android memory model, so a compressed
format such as JPEG is needed to get around that. There is no support
for incremental block-based or scanline readout or something like that
to process the image in smaller (raw) chunks.

On Sep 4, 1:11 pm, uday uday.pic...@gmail.com wrote:
 Thanks Blindfold..

 So do u got any information regarding this?? What ever it may be the
 resolution currently Android is not able to do the Raw image capture..
 am i right??

 On Sep 1, 1:07 am, blindfold seeingwithso...@gmail.com wrote:

  Right, already on February 11 2009 Google's David Sparks wrote in
  response to one of my postings,

   I'm talking about deprecating the raw picture callback that has never 
   worked.

  and

   As for the camera API in SDK 1.0: It was never intended for signal 
   processing.

 http://groups.google.com/group/android-developers/browse_thread/threa...

  Regards

  The vOICe for Androidhttp://www.seeingwithsound.com/android.htm

  On Aug 31, 6:30 pm, David Erosa García soul...@gmail.com wrote:

   On Tue, Aug 31, 2010 at 6:17 PM, uday uday.pic...@gmail.com wrote:
Hi All,
I'm facing problem when capturing RAW data in Android Froyo. Im using
HTC Desire(5MP) device.  in the method of
PictureCallback rawCallback = new PictureCallback() {
               public void onPictureTaken(byte[] data, Camera camera)
               {
               }
the data im getting is null. Is this the problem due to Heap size in
the device or is there another way to capture this raw data??

   AFAIK, raw callbacks always get null arrays (maybe not implemented?)

--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
   http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Galaxy Tablet and Android Market

2010-09-03 Thread blindfold
Thanks! That worked very well and helped validate that my app scaled
properly to 1024 x 600 (fortunately it did).

Next I was curious if I could crank up the landscape resolution to
HDTV format (1920 x 1080, dreaming of Android on Google TV), but alas,
I could get no further than for instance 1280 x 806. Trying 1280 x 808
or 1282 x 806 would fail (the emulator window would simply not
appear), suggesting a (memory or hard-coded) limit of ~1 megapixel
maximum? Is there a way to go beyond that and emulate the 2 megapixel
HDTV / format?

My Windows 7 64-bit PC has a Full HD (HDTV) screen, so that cannot be
the reason for this ~1 megapixel limit.

Regards

On Sep 3, 8:50 am, Sam samuel.law...@gmail.com wrote:
 Zsolt, String

 I had a quick play - there may be a more official way. But this works:

 1) Go into the directory: android-sdk/platforms/android-8/skins/ and
 make a copy of your WVGA854 directory - rename this directory to
 tablet

 2) Alter the contents of the layout file (see below) to adjust for the
 difference in width and height. I kept it in portrait by default to
 make the changes easier. I also removed the backgrounds - they're not
 necessary.

 3) Go to your AVD manager and create your new AVD based on your new
 tablet skin. No need to change any other values.

 Here is what you need in your layout file:

 parts {
     portrait {

     }
     landscape {

     }
...

-- 
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: Capturing RAW data in Android 2.2(HTC Desire)

2010-08-31 Thread blindfold
Right, already on February 11 2009 Google's David Sparks wrote in
response to one of my postings,

 I'm talking about deprecating the raw picture callback that has never worked.

and

 As for the camera API in SDK 1.0: It was never intended for signal processing.

http://groups.google.com/group/android-developers/browse_thread/thread/65191ea020f6bb27/

Regards


The vOICe for Android
http://www.seeingwithsound.com/android.htm


On Aug 31, 6:30 pm, David Erosa García soul...@gmail.com wrote:
 On Tue, Aug 31, 2010 at 6:17 PM, uday uday.pic...@gmail.com wrote:
  Hi All,
  I'm facing problem when capturing RAW data in Android Froyo. Im using
  HTC Desire(5MP) device.  in the method of
  PictureCallback rawCallback = new PictureCallback() {
                 public void onPictureTaken(byte[] data, Camera camera)
                 {
                 }
  the data im getting is null. Is this the problem due to Heap size in
  the device or is there another way to capture this raw data??

 AFAIK, raw callbacks always get null arrays (maybe not implemented?)



  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Why has my app disappeared from the market? Has this happened to anyone before?

2010-08-21 Thread blindfold
Same with me: suddenly 1 total, 0 active installs for my free
augmented reality app. I presume it is a Market bug. Just hope my
first use yesterday of Chrome to Phone did not trigger some bug...

On Aug 21, 7:57 am, KG kevinconca...@gmail.com wrote:
 Mine did too.  However, the market is acting up so I'm guessing it has
 to do with that.

 On Aug 20, 10:46 pm, Greg Siano gregmsi...@gmail.com wrote:

  My app is a legitimate app, it isn't one of those sexy wallpaper, etc.
  apps.  Its been on the store for a while.  I have a free version with
  ads and a 99 cent ad free version.  I can still see the 99 cent one,
  but the ad free one has disappeared. Any explanations? Thanks

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Camera preview - strange on Samsung Galaxy S (2.1update1)

2010-07-10 Thread blindfold
I have no experience with Samsung, but did you try uncommenting all of
p.set(ORIENTATION, PORTRAIT); p.set(ROTATION, 90);
p.setPreviewSize(s.width,s.height); to see what happens?

 Anybody experiencing such issue on the Samsung Galaxy S as well?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How to detect presence of camera on an Android device.

2010-07-07 Thread blindfold
 1. Are there plans to support pluggable USB webcams (e.g. on
 netbooks)? In such a case, would the same Android APIs work for them
 too?

I don't expect an answer from Google on this (because they never tell
in advance what they will come up with), but just want to say that I
am very interested in this in order to have options for head-mounted
cameras (for augmented reality applications). For the same purpose I
hope that there will come USB host support and webcam drivers for
Android phones. Wearing the phone on your head is not the ideal hands-
free augmented reality solution. :-)

On Jul 7, 2:22 pm, Daman damanji...@gmail.com wrote:
 Thanks for confirming the reliability of these APIs.
 I have few related questions -
 1. Are there plans to support pluggable USB webcams (e.g. on
 netbooks)? In such a case, would the same Android APIs work for them
 too?
 2. Would hasSystemFeature(PackageManager.FEATURE_CAMERA) return true
 if a USB camera is plugged and false otherwise (on a device which
 doesn’t have a build-in camera)?

 -Daman

 On Jun 30, 9:34 pm, Dianne Hackborn hack...@android.com wrote:

  You need to do this on a real device.

  On Wed, Jun 30, 2010 at 3:45 AM, Daman damanji...@gmail.com wrote:
   I did try that, but this doesn't work.
   I created an emulator image with no camera support. But
   PackageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA) still
   returns true.

   On Jun 30, 5:12 am, Dianne Hackborn hack...@android.com wrote:
Use PackageManager.hasSystemFeature(PackageManager.FEATURE_CAMERA).

Of course if your app requires a camera, you should declare so in your
manifest so that devices without a camera won't see it.

On Thu, Jun 24, 2010 at 4:53 AM, Daman damanji...@gmail.com wrote:
 How can I detect the presence of camera on an Android device?

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to
   android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
   android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@googlegroups.com

 For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

--
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see
   and
answer them.

   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

  --
  Dianne Hackborn
  Android framework engineer
  hack...@android.com

  Note: please don't send private questions to me, as I don't have time to
  provide private support, and so won't reply to such e-mails.  All such
  questions should be posted on public forums, where I and others can see and
  answer them.

-- 
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: setParameters Failed

2010-06-23 Thread blindfold
Sorry, this is a developer group, so members are expected to have
access to the source code. Best to contact the maker of your APK to
have the problem fixed.

Regards

On Jun 23, 2:36 pm, grace grace.a...@wipro.com wrote:
 thanks for ur reply,
 I have gone through the link.
 As i understand the fix for this problem is to give the supported
 parameters to the camera object which we get from the list of
 getSupportedPreviewSizes().

 but my case is little different i guess,i just have the apk of the
 application i downloaded not the source code to make the changes
 accordingly.
 I am trying to run it on N1 which has 2.1 update1.
 so,how to use the above fix to solve this issue on my phone.

 pls help..

 On Jun 22, 5:49 pm, blindfold seeingwithso...@gmail.com wrote:



  See the declined issue discussion on setPreviewSize() 
  athttp://code.google.com/p/android/issues/detail?id=7909andthe
  recommendations made there by Wu-Cheng (Comment 29).

  Regards

  The vOICe for Androidhttp://www.seeingwithsound.com/android.htm

  On Jun 22, 10:59 am,gracegrace.a...@wipro.com wrote:

   Hi,

   I have downloaded one open source ocr application.
   when i run it on the g1 phone it is working,but for  the nexus one its
   throwing up a exception telling
   E/QualcommCameraHardware(   52): Invalid preview size requested:
   533x310

   E/AndroidRuntime( 5038): java.lang.RuntimeException: setParameters
   failed

   hoe can i make this work on nexus too.

   thanks in advance..

  Grace.- Hide quoted text -

 - Show quoted text -

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: setParameters Failed

2010-06-22 Thread blindfold
See the declined issue discussion on setPreviewSize() at
http://code.google.com/p/android/issues/detail?id=7909 and the
recommendations made there by Wu-Cheng (Comment 29).

Regards


The vOICe for Android
http://www.seeingwithsound.com/android.htm


On Jun 22, 10:59 am, grace grace.a...@wipro.com wrote:
 Hi,

 I have downloaded one open source ocr application.
 when i run it on the g1 phone it is working,but for  the nexus one its
 throwing up a exception telling
 E/QualcommCameraHardware(   52): Invalid preview size requested:
 533x310

 E/AndroidRuntime( 5038): java.lang.RuntimeException: setParameters
 failed

 hoe can i make this work on nexus too.

 thanks in advance..

 Grace.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: How is the camera view angle determined in getHorizontalViewAngle ()?

2010-06-14 Thread blindfold
The getHorizontalViewAngle() and getVerticalViewAngle() can at best
return fixed hardware-dependent values as set by the phone
manufacturer for their own built-in lens. As soon as the user applies
an add-on lens (e.g. one of those magnetic detachable fish-eye lenses
as recommended for my app) those function values will be wrong. In
general there exists no reliable way to calculate the field of view
from a camera view without applying a calibration step on the user
side.

Regards


The vOICe for Android
http://www.seeingwithsound.com/android.htm


On Jun 14, 1:34 am, Stephen Lebed srle...@gmail.com wrote:
 I'm bumping this thread because I could really use an answer.  I'm
 developing an app on the G1 phone and I can't find any info on the
 focal length or field of view for the camera.  If anyone has this
 info, or knows where I can find it I'd greatly appreciate it.  The
 camera.getHorizontalViewAngle () command seems like it would return a
 value from the camera that I could use, but I'd like my app to run on
 pre 2.2 hardware.

 Thanks,

 Stephen

 On May 21, 4:46 am, Stephen Lebed srle...@gmail.com wrote:

  I'm curious how the camera view angle determined using
  getHorizontalViewAngle?

  Is it predefined within the API, or is it provided by the hardware?

  Thanks,

  Stephen

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group 
  athttp://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Latency due to Garbage collection on onPrevFrame

2010-06-08 Thread blindfold
You may wish to follow the issue 2794 discussion at
http://code.google.com/p/android/issues/detail?id=2794 and consider
the use of addCallbackBuffer() and setPreviewCallbackWithBuffer().

Regards

On Jun 6, 8:53 pm, Jay Ha nicejae...@gmail.com wrote:
 Hi.

 I'm writing an Augmented Reallity codes that should works in realtime,

 But the VM's garbage collection hinders my program's performance.

 I checked my program's execution time for each in OnPrevFrame(byte[],
 Camera)

 and it execution time increases from around 50ms  to 120ms at just
 after each garbage collection.

 I copied parts of logs below.
 (local time is just before and after of signal processing, and global
 time is time stamps for every onPreviewFrame() calling )
 -
 06-06 18:42:26.340: WARN/matchTarget(725):     global 151844ms, local
 167ms
 06-06 18:42:26.390: WARN/matchTarget(725):     global 55ms, local 54ms
 06-06 18:42:26.510: DEBUG/dalvikvm(725): GC_FOR_MALLOC freed 20
 objects / 346432 bytes in 88ms
 06-06 18:42:26.510: WARN/matchTarget(725):     global 119ms, local
 115ms
 06-06 18:42:26.600: WARN/matchTarget(725):     global 83ms, local 75ms
 06-06 18:42:26.670: WARN/matchTarget(725):     global 76ms, local 70ms
 06-06 18:42:26.740: WARN/matchTarget(725):     global 66ms, local 63ms
 06-06 18:42:26.820: DEBUG/dalvikvm(725): GC_FOR_MALLOC freed 73
 objects / 464096 bytes in 55ms
 06-06 18:42:26.830: WARN/matchTarget(725):     global 95ms, local 94ms
 06-06 18:42:26.890: WARN/matchTarget(725):     global 57ms, local 56ms
 06-06 18:42:26.940: WARN/matchTarget(725):     global 46ms, local 45ms
 06-06 18:42:27.000: WARN/matchTarget(725):     global 59ms, local 59ms
 06-06 18:42:27.070: DEBUG/dalvikvm(725): GC_FOR_MALLOC freed 144
 objects / 466776 bytes in 56ms
 06-06 18:42:27.080: WARN/matchTarget(725):     global 80ms, local 79ms
 06-06 18:42:27.150: WARN/matchTarget(725):     global 71ms, local 65ms
 06-06 18:42:27.210: WARN/matchTarget(725):     global 61ms, local 60ms
 06-06 18:42:27.250: WARN/matchTarget(725):     global 41ms, local 39ms
 06-06 18:42:27.310: WARN/matchTarget(725):     global 57ms, local 41ms
 06-06 18:42:27.350: DEBUG/dalvikvm(725): GC_FOR_MALLOC freed 207
 objects / 584128 bytes in 39ms
 06-06 18:42:27.420: WARN/matchTarget(725):     global 116ms, local
 59ms
 06-06 18:42:27.470: WARN/matchTarget(725):     global 50ms, local 49ms
 06-06 18:42:27.530: WARN/matchTarget(725):     global 58ms, local 55ms
 06-06 18:42:27.620: DEBUG/dalvikvm(725): GC_FOR_MALLOC freed 210
 objects / 353680 bytes in 58ms
 06-06 18:42:27.630: WARN/matchTarget(725):     global 96ms, local 95ms
 06-06 18:42:27.690: WARN/matchTarget(725):     global 61ms, local 57ms
 06-06 18:42:27.740: WARN/matchTarget(725):     global 57ms, local 55ms
 06-06 18:42:27.820: WARN/matchTarget(725):     global 76ms, local 68ms
 06-06 18:42:27.870: WARN/matchTarget(725):     global 49ms, local 46ms
 06-06 18:42:27.900: DEBUG/dalvikvm(725): GC_FOR_MALLOC freed 226
 objects / 469944 bytes in 34ms
 06-06 18:42:27.970: WARN/matchTarget(725):     global 97ms, local 55ms
 06-06 18:42:28.000: WARN/matchTarget(725):     global 39ms, local 38ms
 06-06 18:42:28.080: WARN/matchTarget(725):     global 80ms, local 61ms
 06-06 18:42:28.170: DEBUG/dalvikvm(725): GC_FOR_MALLOC freed 220
 objects / 469184 bytes in 50ms
 06-06 18:42:28.170: WARN/matchTarget(725):     global 86ms, local 84ms
 06-06 18:42:28.230: WARN/matchTarget(725):     global 60ms, local 52ms
 06-06 18:42:28.280: WARN/matchTarget(725):     global 52ms, local 51ms
 06-06 18:42:28.340: WARN/matchTarget(725):     global 61ms, local 59ms
 06-06 18:42:28.420: DEBUG/dalvikvm(725): GC_FOR_MALLOC freed 193
 objects / 468200 bytes in 53ms
 06-06 18:42:28.430: WARN/matchTarget(725):     global 82ms, local 81ms
 06-06 18:42:28.490: WARN/matchTarget(725):     global 64ms, local 57ms
 06-06 18:42:28.550: WARN/matchTarget(725):     global 61ms, local 60ms
 06-06 18:42:28.610: WARN/matchTarget(725):     global 57ms, local 56ms
 06-06 18:42:28.690: DEBUG/dalvikvm(725): GC_FOR_MALLOC freed 205
 objects / 468832 bytes in 58ms
 06-06 18:42:28.700: WARN/matchTarget(725):     global 88ms, local 86ms
 06-06 18:42:28.750: WARN/matchTarget(725):     global 58ms, local 55ms
 06-06 18:42:28.810: WARN/matchTarget(725):     global 54ms, local 53ms
 06-06 18:42:28.860: WARN/matchTarget(725):     global 52ms, local 51ms
 06-06 18:42:28.990: DEBUG/dalvikvm(725): GC_FOR_MALLOC freed 226
 objects / 469544 bytes in 42ms
 06-06 18:42:28.990: WARN/matchTarget(725):     global 134ms, local
 100ms
 06-06 18:42:29.060: WARN/matchTarget(725):     global 62ms, local 52ms
 06-06 18:42:29.100: WARN/matchTarget(725):     global 49ms, local 47ms
 06-06 18:42:29.160: WARN/matchTarget(725):     global 51ms, local 50ms
 06-06 18:42:29.240: DEBUG/dalvikvm(725): GC_FOR_MALLOC freed 197
 objects / 468320 bytes in 52ms
 

[android-developers] Google TV frame capture?

2010-05-21 Thread blindfold
Will Google allow Android applications to grab and process individual
video frames of the currently selected channel in Google TV sets? I
would be interested in that, and the process can be very similar to
capturing preview images from a (second) camera.

Thanks


The vOICe for Android
http://www.seeingwithsound.com/android.htm

-- 
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: Google TV frame capture?

2010-05-21 Thread blindfold
I know, I seem to make a habit of nagging ahead of time, just like I
did with the JIT compiler in 2008 when it is was deemed to have a low
priority (and there was no NDK back then to ease the pain), and the
need to allow for in-memory audio synthesis and support for multiple
cameras. So I rather mention it now when Google TV APIs are hopefully
still very malleable rather than finding it tweaked in much later as
an afterthought, or not at all.

On May 21, 1:40 pm, Mark Murphy mmur...@commonsware.com wrote:
  Will Google allow Android applications to grab and process individual
  video frames of the currently selected channel in Google TV sets?

 That will be a fine question for 6-9 months from now, when the Google TV
 SDK add-on for Android (or however they package it) becomes available.

 Right now, I doubt anybody knows.

 --
 Mark Murphy (a Commons Guy)http://commonsware.com
 Android App Developer Books:http://commonsware.com/books.html

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group 
 athttp://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: ApiDemos/Graphics/CamerPreview Nexus One force close

2010-04-27 Thread blindfold
Thanks for sharing, wurp! Having to work like that is incredibly messy
though, and not having a Nexus One to test on I would not want to
depend on complex code like that even if it works. I hope someone can
shed more light on what is going on here and either fix the bug
(Google?) or explain what exactly are the minimum steps to finally get
the camera working reliably. The camera has been the most troublesome
and time-wasting part for me since the beginning of Android in 2008.
Since apparently even Google's sample code now fails here on their
Nexus One I think it is the Google Android developers who need to
chime in here, assuming that the problem is reproducible.

Perhaps the problem is related to what was recently discussed in the
thread

http://groups.google.com/group/android-developers/browse_thread/thread/792707bd366d4732/

I increasingly receive startPreview related crash reports for users of
Android 2.1-update1 (HKDKC100 Odroid by Hardkernel, and Motorola
Droid; no crash reports at all for Android 2.1) while my camera app
works fine on the emulator for 2.1-update1 and also runs fine on my
good old ADP1. Under such conditions I cannot properly support users
of my app who run into these problems.

Thanks

The vOICe for Android
http://www.seeingwithsound.com/android.htm

On Apr 27, 5:12 am, wurp bobbymart...@gmail.com wrote:
 I did have this same problem.  The issue is that the Camera.open
 method bombs out.

 I created a camera wrapper class that does a bunch of initialization
 to ensure that open works, then takePicture works, etc.  I found the
 initialization code by looking through the Camera source code for
 Google's main Camera app.

 I think the code you need is:

         private synchronized void preOpen(Context context) {
         mPreferences =
 PreferenceManager.getDefaultSharedPreferences(context);
         upgradePreferences(mPreferences);
         }

     public static final String KEY_VERSION = pref_version_key;
     public static final String KEY_RECORD_LOCATION =
         pref_camera_recordlocation_key;
     public static final String KEY_VIDEO_DURATION =
             pref_camera_video_duration_key;
     public static final String KEY_JPEG_QUALITY =
 pref_camera_jpegquality_key;

     public static final int CURRENT_VERSION = 3;

     private static void upgradePreferences(SharedPreferences pref) {
         int version;
         try {
             version = pref.getInt(KEY_VERSION, 0);
         } catch (Exception ex) {
             version = 0;
         }

         logPreferences(pref);

         if (version == CURRENT_VERSION) return;

         SharedPreferences.Editor editor = pref.edit();
         if (version == 0) {
             // For old version, change 1 to 10 for video duration
 preference.
             if (pref.getString(KEY_VIDEO_DURATION, 1).equals(1)) {
                 editor.putString(KEY_VIDEO_DURATION, 10);
             }
             version = 1;
         }
         if (version == 1) {
             // Change jpeg quality {65,75,85} to
 {normal,fine,superfine}
             String quality = pref.getString(KEY_JPEG_QUALITY, 85);
             if (quality.equals(65)) {
                 quality = normal;
             } else if (quality.equals(75)) {
                 quality = fine;
             } else {
                 quality = superfine;
             }
             editor.putString(KEY_JPEG_QUALITY, quality);
             version = 2;
         }
         if (version == 2) {
             editor.putString(KEY_RECORD_LOCATION,
                     pref.getBoolean(KEY_RECORD_LOCATION, false)
                     ? on
                     : off);
             version = 3;
         }
         editor.putInt(KEY_VERSION, CURRENT_VERSION);
         editor.commit();
     }

 I can't imagine a reason this would be required, but after I added it,
 Camera.open worked.  Strangely, later I commented out the call to
 upgradePreferences and it still worked... I don't know if that's
 because the critical thing is just acquiring the preferences, or
 somehow one time initialization is enough.

 I noticed also that rebooting my phone and making the Camera.open be
 the very first thing I did also worked (without the preOpen call).

 None of this behavior makes sense to me; I'm just reporting what I
 saw, and what has continued to work for me.

 BTW, you also have to startPreview before you can takePicture.

 Bobby

 On Apr 25, 10:21 am, Scott Sheppard scottsheppar...@gmail.com wrote:



  I am running the android-7 ApiDemo sample project on a Nexus One
  device.  I am interested specifically in the Graphics/CameraPreview
  sample code.  The project works fine, but when I select Camera the
  device displays a Force Quit message.  I am not receiving any error
  information in the debugger.

  The CameraPreview code works fine in the emulator.

  Anyone else had this problem?

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post 

[android-developers] Re: Android camera problem on HTC Desire

2010-04-22 Thread blindfold
Did you try other camera (preview/AR) apps from Android Market? I
receive regular crash reports from users, almost always due to a
java.lang.RuntimeException: startPreview failed error. I cannot
reproduce the problem on my good old ADP1 (G1), while the emulator
(SDK 1.6 and 2.1) also does not show problems, making it hard to track
down what exactly is happening with affected users.

Regards


The vOICe for Android
http://www.seeingwithsound.com/android.htm


On Apr 21, 11:18 am, Jo Vermeulen jo.vermeu...@gmail.com wrote:
 Yeah, I also noticed that. No idea what the lines about a 'camera
 switch' are about ...

 I also tried the API demos (one of the samples that came with the
 Android SDK), and found to my surprise that Google's own camera
 preview example also crashed on the HTC Desire. Hope it's not a bug in
 the Desire's firmware ... The camera and camcorder apps that came with
 the device work perfectly though.

 It would be great if other people with a HTC Desire could try the
 Camera Preview API demo to verify that they experience the same
 problem.

 Cheers,

 -- Jo

 On 20 apr, 23:45, Streets Of Boston flyingdutc...@gmail.com wrote:

  mm that looks strange.

  From the stack-trace it (almost) looks like you're trying to access a
  2ndcameraon the device. I have no idea of how that could happen or
  why it would even try to do so.
  But, then again, i could be completely wrong and of no help to you at
  all.. :)

  
  W/CameraSwitch( 3801): open maincamera
  W/CameraSwitch( 3801): no file - can't switchcamera
  E/CameraSwitch( 3801): setSwitchFile failed: /sys/android_camera2/
  htcwc
  E/CameraSwitch( 3801): java.io.FileNotFoundException: /sys/
  android_camera2/htcwc
  

  On Apr 20, 10:32 am, Jo Vermeulen jo.vermeu...@gmail.com wrote:

   Hi,

   I have a problem with a simple application that captures images from
   thecamera. It works on the emulator, but throws an exception when I
   run it on the HTC Desire.

   Here are the relevant log messages:

   W/CameraSwitch( 3801): open maincamera
   W/CameraSwitch( 3801): no file - can't switchcamera
   E/CameraSwitch( 3801): setSwitchFile failed: /sys/android_camera2/
   htcwc
   E/CameraSwitch( 3801): java.io.FileNotFoundException: /sys/
   android_camera2/htcwc

   E/CameraSwitch( 3801):  at
   org.apache.harmony.luni.platform.OSFileSystem.open(OS
   FileSystem.java:244)
   E/CameraSwitch( 3801):  at
   java.io.FileOutputStream.init(FileOutputStream.java
   :97)
   E/CameraSwitch( 3801):  at java.io.FileWriter.init(FileWriter.java:
   58)
   E/CameraSwitch( 3801):  at
   android.hardware.CameraSwitch.setSwitchFile(CameraSwi
   tch.java:44)
   E/CameraSwitch( 3801):  at
   android.hardware.CameraSwitch.openMainCamera(CameraSw
   itch.java:22)
   E/CameraSwitch( 3801):  at android.hardware.Camera.open(Camera.java:
   90)
   E/CameraSwitch( 3801):  at
   be.uhasselt.edm.research.sherlock.CameraPreview.surfa
   ceCreated(SherlockActivity.java:51)
   E/CameraSwitch( 3801):  at
   android.view.SurfaceView.updateWindow(SurfaceView.jav
   a:454)
   E/CameraSwitch( 3801):  at
   android.view.SurfaceView.dispatchDraw(SurfaceView.jav
   a:287)
   E/CameraSwitch( 3801):  at
   android.view.ViewGroup.drawChild(ViewGroup.java:1583)

   E/CameraSwitch( 3801):  at
   android.view.ViewGroup.dispatchDraw(ViewGroup.java:13
   12)
   E/CameraSwitch( 3801):  at android.view.View.draw(View.java:6538)
   E/CameraSwitch( 3801):  at
   android.widget.FrameLayout.draw(FrameLayout.java:352)

   E/CameraSwitch( 3801):  at
   android.view.ViewGroup.drawChild(ViewGroup.java:1585)

   E/CameraSwitch( 3801):  at
   android.view.ViewGroup.dispatchDraw(ViewGroup.java:13
   12)
   E/CameraSwitch( 3801):  at android.view.View.draw(View.java:6538)
   E/CameraSwitch( 3801):  at
   android.widget.FrameLayout.draw(FrameLayout.java:352)

   E/CameraSwitch( 3801):  at com.android.internal.policy.impl.PhoneWindow
   $DecorVie
   w.draw(PhoneWindow.java:1866)
   E/CameraSwitch( 3801):  at android.view.ViewRoot.draw(ViewRoot.java:
   1364)
   E/CameraSwitch( 3801):  at
   android.view.ViewRoot.performTraversals(ViewRoot.java
   :1118)
   E/CameraSwitch( 3801):  at
   android.view.ViewRoot.handleMessage(ViewRoot.java:165
   0)
   E/CameraSwitch( 3801):  at
   android.os.Handler.dispatchMessage(Handler.java:99)
   E/CameraSwitch( 3801):  at android.os.Looper.loop(Looper.java:123)
   E/CameraSwitch( 3801):  at
   android.app.ActivityThread.main(ActivityThread.java:4
   595)
   E/CameraSwitch( 3801):  at
   java.lang.reflect.Method.invokeNative(Native Method)
   E/CameraSwitch( 3801):  at java.lang.reflect.Method.invoke(Method.java:
   521)
   E/CameraSwitch( 3801):  at com.android.internal.os.ZygoteInit
   $MethodAndArgsCalle
   r.run(ZygoteInit.java:860)
   E/CameraSwitch( 3801):  at
   com.android.internal.os.ZygoteInit.main(ZygoteInit.ja
   va:618)
   E/CameraSwitch( 3801):  at dalvik.system.NativeStart.main(Native
   Method)
   D/CameraService(   57): 

[android-developers] Re: Android camera problem on HTC Desire

2010-04-22 Thread blindfold
Interesting. I checked my user crash logs, and I find occasional
startPreview related crashes with Android 1.6, 2.0 and 2.01, and four
for 2.1-update1, but not a single one for 2.1, making me wonder if the
update1 for 2.1 introduces a new problem.

Regards

The vOICe for Android
http://www.seeingwithsound.com/android.htm


On Apr 21, 10:32 pm, Bob Kerns r...@acm.org wrote:
 The camera preview API demo crashes on my N1 (2.1-Update 1) as well.
 I've been meaning to investigate (debugger, bugs database) but haven't
 gotten around to it yet.

 On Apr 21, 2:18 am, Jo Vermeulen jo.vermeu...@gmail.com wrote:

  Yeah, I also noticed that. No idea what the lines about a 'camera
  switch' are about ...

  I also tried the API demos (one of the samples that came with the
  Android SDK), and found to my surprise that Google's own camera
  preview example also crashed on the HTC Desire. Hope it's not a bug in
  the Desire's firmware ... The camera and camcorder apps that came with
  the device work perfectly though.

  It would be great if other people with a HTC Desire could try the
  Camera Preview API demo to verify that they experience the same
  problem.

  Cheers,

  -- Jo

  On 20 apr, 23:45, Streets Of Boston flyingdutc...@gmail.com wrote:

   mm that looks strange.

   From the stack-trace it (almost) looks like you're trying to access a
   2ndcameraon the device. I have no idea of how that could happen or
   why it would even try to do so.
   But, then again, i could be completely wrong and of no help to you at
   all.. :)

   
   W/CameraSwitch( 3801): open maincamera
   W/CameraSwitch( 3801): no file - can't switchcamera
   E/CameraSwitch( 3801): setSwitchFile failed: /sys/android_camera2/
   htcwc
   E/CameraSwitch( 3801): java.io.FileNotFoundException: /sys/
   android_camera2/htcwc
   

   On Apr 20, 10:32 am, Jo Vermeulen jo.vermeu...@gmail.com wrote:

Hi,

I have a problem with a simple application that captures images from
thecamera. It works on the emulator, but throws an exception when I
run it on the HTC Desire.

Here are the relevant log messages:

W/CameraSwitch( 3801): open maincamera
W/CameraSwitch( 3801): no file - can't switchcamera
E/CameraSwitch( 3801): setSwitchFile failed: /sys/android_camera2/
htcwc
E/CameraSwitch( 3801): java.io.FileNotFoundException: /sys/
android_camera2/htcwc

E/CameraSwitch( 3801):  at
org.apache.harmony.luni.platform.OSFileSystem.open(OS
FileSystem.java:244)
E/CameraSwitch( 3801):  at
java.io.FileOutputStream.init(FileOutputStream.java
:97)
E/CameraSwitch( 3801):  at java.io.FileWriter.init(FileWriter.java:
58)
E/CameraSwitch( 3801):  at
android.hardware.CameraSwitch.setSwitchFile(CameraSwi
tch.java:44)
E/CameraSwitch( 3801):  at
android.hardware.CameraSwitch.openMainCamera(CameraSw
itch.java:22)
E/CameraSwitch( 3801):  at android.hardware.Camera.open(Camera.java:
90)
E/CameraSwitch( 3801):  at
be.uhasselt.edm.research.sherlock.CameraPreview.surfa
ceCreated(SherlockActivity.java:51)
E/CameraSwitch( 3801):  at
android.view.SurfaceView.updateWindow(SurfaceView.jav
a:454)
E/CameraSwitch( 3801):  at
android.view.SurfaceView.dispatchDraw(SurfaceView.jav
a:287)
E/CameraSwitch( 3801):  at
android.view.ViewGroup.drawChild(ViewGroup.java:1583)

E/CameraSwitch( 3801):  at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:13
12)
E/CameraSwitch( 3801):  at android.view.View.draw(View.java:6538)
E/CameraSwitch( 3801):  at
android.widget.FrameLayout.draw(FrameLayout.java:352)

E/CameraSwitch( 3801):  at
android.view.ViewGroup.drawChild(ViewGroup.java:1585)

E/CameraSwitch( 3801):  at
android.view.ViewGroup.dispatchDraw(ViewGroup.java:13
12)
E/CameraSwitch( 3801):  at android.view.View.draw(View.java:6538)
E/CameraSwitch( 3801):  at
android.widget.FrameLayout.draw(FrameLayout.java:352)

E/CameraSwitch( 3801):  at com.android.internal.policy.impl.PhoneWindow
$DecorVie
w.draw(PhoneWindow.java:1866)
E/CameraSwitch( 3801):  at android.view.ViewRoot.draw(ViewRoot.java:
1364)
E/CameraSwitch( 3801):  at
android.view.ViewRoot.performTraversals(ViewRoot.java
:1118)
E/CameraSwitch( 3801):  at
android.view.ViewRoot.handleMessage(ViewRoot.java:165
0)
E/CameraSwitch( 3801):  at
android.os.Handler.dispatchMessage(Handler.java:99)
E/CameraSwitch( 3801):  at android.os.Looper.loop(Looper.java:123)
E/CameraSwitch( 3801):  at
android.app.ActivityThread.main(ActivityThread.java:4
595)
E/CameraSwitch( 3801):  at
java.lang.reflect.Method.invokeNative(Native Method)
E/CameraSwitch( 3801):  at java.lang.reflect.Method.invoke(Method.java:
521)
E/CameraSwitch( 3801):  at com.android.internal.os.ZygoteInit
$MethodAndArgsCalle
r.run(ZygoteInit.java:860)
E/CameraSwitch( 

[android-developers] Re: Device Seeding Program for Top Contributors to Community Forums

2010-03-14 Thread blindfold
I have 275 in Android Developers and 107 in Android Discuss, and an
app in the Market, but no e-mail from Google. :-(

On Mar 14, 10:09 pm, Tim tdh...@gmail.com wrote:
 On 10 Mar, 23:27, Robert Green rbgrn@gmail.com wrote:

  I only have a meager 340 in this group.  :)

 I have nowhere near that many (probably less than 100) and I got an
 email from Google. I reckon you also have to have an app published in
 the market.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


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

2010-03-03 Thread blindfold
Too bad, my app (The vOICe for Android) has over 24,000 downloads but
a miserable 2.4 rating, so I did not get the e-mail. Well, at least my
developer work was recognized and featured on BBC television (BBC
Horizon) two weeks ago. Guess one cannot have it all, and yes, that
was for work on Nokia Symbian camera phones...

The vOICe for Android
http://www.seeingwithsound.com/android.htm

On Mar 3, 12:53 am, Larry lar...@gmail.com wrote:
 Dear all,

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

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

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

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

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

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

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

 Thanks.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: AudioTrack.getPlaybackHeadPosi tion() is buggy????

2010-02-26 Thread blindfold
 thanks, though therein i didnt find anything about
 getPlaybackHeadPosition() 

Then you missed my posts 12 and 13 in that thread,

http://groups.google.com/group/android-developers/tree/browse_frm/thread/56ab381d56069436/a3905a29d60466f6?rnum=11lnk=nl

as well as my bug report

http://code.google.com/p/android/issues/detail?id=2563

Regards

On Feb 26, 12:33 am, HeHe cnm...@gmail.com wrote:
 thanks, though therein i didnt find anything about
 getPlaybackHeadPosition() 

 i just cannot believe that a simple function like
 getPlaybackHeadPosition() can go wrong.

 anyone has getPlaybackHeadPosition() work with pause()?

 On Feb 25, 12:38 am, blindfold seeingwithso...@gmail.com wrote:

  See the earlier 
  threadhttp://groups.google.com/group/android-developers/browse_frm/thread/5...

  I did not get useful results from trying to get the current playing
  position and gave up on it. I do not know if Android 2.1 is any better
  here.

  On Feb 25, 1:12 am, HeHe cnm...@gmail.com wrote:

   folks,

   does anybody use AudioTrack.getPlaybackHeadPosition()?
   i found that, if i call AudioTrack.pause() in the middle of playing
   audio frames, at end of playback getPlaybackHeadPosition() always
   returns hundreds of frames less than the number of frames fed into
   the
   AudioTrack object .

   did anybody also run into the same issue?

   if you did, how did you work around this unexpected behavior?

   thank u~



-- 
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: AudioTrack.getPlaybackHeadPosi tion() is buggy????

2010-02-25 Thread blindfold
See the earlier thread 
http://groups.google.com/group/android-developers/browse_frm/thread/56ab381d56069436/

I did not get useful results from trying to get the current playing
position and gave up on it. I do not know if Android 2.1 is any better
here.

On Feb 25, 1:12 am, HeHe cnm...@gmail.com wrote:
 folks,

 does anybody use AudioTrack.getPlaybackHeadPosition()?
 i found that, if i call AudioTrack.pause() in the middle of playing
 audio frames, at end of playback getPlaybackHeadPosition() always
 returns hundreds of frames less than the number of frames fed into
 the
 AudioTrack object .

 did anybody also run into the same issue?

 if you did, how did you work around this unexpected behavior?

 thank u~

-- 
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: any nexus discount for developers?

2010-01-10 Thread blindfold
I do not know about other mobile OS developing organizations, but in
the past I certainly received free hardware or other tangible signs of
appreciation from companies in return for developing with or beta-
testing their SDKs - and without any strings or conditions attached.

On Jan 10, 9:27 am, Jeffrey Blattman jeffrey.blatt...@gmail.com
wrote:
 Do any of the other mobile OS developing organizations hand out free phones
 to developers?

 On Jan 9, 2010 11:12 PM, blindfold seeingwithso...@gmail.com wrote:

 Probably not. Googlers got one for free, but us mortal developers are
 not considered worthy of a similar treatment.

 On Jan 10, 6:22 am, ian stilbit...@gmail.com wrote:  Does anybody know if
 developers will be abl...

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group 
 athttp://groups.google.com/group/android-developers?hl=en
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: any nexus discount for developers?

2010-01-09 Thread blindfold
Probably not. Googlers got one for free, but us mortal developers are
not considered worthy of a similar treatment.

On Jan 10, 6:22 am, ian stilbit...@gmail.com wrote:
 Does anybody know if developers will be able to buy a Nexus for less
 than $529?

  I need a phone for testing my apps soon but the price seems steep.

 Also I'm worried 2,1 may break my apps, which are designed for 1.5.
-- 
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: App crashes on Droid, works fine on G1

2010-01-08 Thread blindfold
The best bet for developers who cannot afford to buy all popular/
latest phones is to upload the stacktrace from the user's phone when a
crash occurs. See 
http://stackoverflow.com/questions/601503/how-do-i-obtain-crash-data-from-my-android-application
for a lead.

I develop on ADP1 and had many crash reports from Droid users until I
used this approach to obtain crash reports.

Regards


On Jan 8, 9:07 pm, MJB mbrennan8...@gmail.com wrote:
 Hi Dianne,

 That's the difficulty, only end-users see the crash so I can't see the
 stack trace.  If I had my own Droid to try it on, it should be
 relatively easy to work through the bug.  Unfortunately, I don't have
 a Droid and even if I wanted one, they are not available in my
 country.

 The app I'm referring to specifically is Andrometer (2nd place in ADC2
 misc. category).

 Thanks,
 Mike

 On Jan 7, 4:37 pm, Dianne Hackborn hack...@android.com wrote:

  What is the stack crawl of the crash?

  On Thu, Jan 7, 2010 at 1:12 PM, MJB mbrennan8...@gmail.com wrote:
   Hi All,
   I'm having a problem where my app crashes on the Droid and seems to
   work fine on the G1.  We have a G1 dev phone but do not have access to
   a Droid phone, so the issue is difficult to debug at this stage.

   The app loads up the main screen okay, but once the user moves beyond
   the main screen, the app crashes.  Moving beyond main screen initiates
   the following:

   - GPS signal acquired
   - Accelerometer sensor listener active
   - Geomagnetic sensor listener active
   - Camera preview active

   I have a suspicion that the issue may be related to the camera
   preview.  With the G1, it didn't seem to matter how I set the camera
   preview size, so I just made it fit the size of the view.

    Camera.Parameters parameters = mCamera.getParameters();
   parameters.setPreviewSize(w, h);   //where w, h are the width and
   height.

   One possibility is that with the Droid having a larger screen
   resolution to the G1, it may be setting the preview size to something
   that is not supported.  I plan on addressing this, but I have a few
   questions that I was hoping someone could shed some light on.

   1. If the app attempts to set a preview size that is not supported,
   will it just be ignored or will the app crash?
   2. If the preview size is smaller than the surface that is holding the
   preview, will the image be stretched to fill the surface?
   3. Can anyone think of anything else that may be related specifically
   to the Droid that could be causing me problems?

   Thanks,
   Mike

   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubs­cr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

  --
  Dianne Hackborn
  Android framework engineer
  hack...@android.com

  Note: please don't send private questions to me, as I don't have time to
  provide private support, and so won't reply to such e-mails.  All such
  questions should be posted on public forums, where I and others can see and
  answer them.- Hide quoted text -

  - Show quoted text -


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

  1   2   3   4   >