[android-developers] Voice recognition without screen

2011-05-30 Thread moa-code
Currently true voice control is not possible, since if Andoid has an
issue understanding the user or other error a dialog is displayed
which needs dismissed via the screen.

1/

Is this going to be changed, so the developer can set an Intend to be
called on error, so the screen user interaction can be avoided.

2/

There are some uses where the developer knows the user is only going
to respond in a finite number of ways;
yes/no, numbers only, go/stop/pause and so on. It would be useful if
the developer could set the valid dictionary before the recognition
was initiated. That was the VR could match far better. currently where
a user can either respond yes/no the VR brings back things like snow
so on.

A perfect solution would be some kind regex thing;

[order/cancel] [00-99] items

kind of thing.



Is VR heading is this direction, or will it always be a more basic
offering as is now?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] CTS and frameword modifications

2011-03-30 Thread Adrien Moa
Hi all,

I'm porting Android to a particular board and I have some questions.

First, Can we implements just 50 % of a fonctionality. For exemple, in the
framework there is a Class that contain a method  public String
myFunction(){  //frameword Code}. Can I change it for public static String
myFunction(){ return );}?

Finally, a question more complex, can I make my own implementation of an
Interface a pass it in a framework factory decorated with @hide. Exemple :

@hide
public class MyFactory{

 public InterfaceC getAObject(){
return (InterfaceC) new A();
 }

 public InterfaceC getBObject(){
   return (InterfaceC) new B();
 }
}

A and B implement InterfaceC.
Factory is a framework class in android package.


Can I write something like

public class MyFactory{

 public InterfaceC getAObject(){
return (InterfaceC) new D();
 }

 public InterfaceC getBObject(){
   return (InterfaceC) new D();
 }
}

D implements InterfaceC.

Do this two modification are CTS compliant?


Thanks,
Adrien

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Dynamic class loading - how?

2010-11-02 Thread moa
Is it possible to dynamically load classes from a URL into your
application in the same way as a desktop application can? For example,
can you do a simple boot-strap application which you install onto the
device, that boots up loads the main jars required for the
applications from a server, or from a local jar on the SD for example?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Voice Recognition for Voice Control?

2010-09-02 Thread moa
Hi,

Is it possible to use the voice recognition api in order to handle a
known set of commands yet?

For example;

Text to speech prompts Say Yes or No

User says no

VR matches this against a specific valid vocabulary containing only
yes  no, and then returns no.

Can you do this yet?


Last time I looked you could not. The VR would match against a full
vocabulary and user saying no would come back with things like
snow and so on.

The other BIG problem was that if the VR got no match a Retry dialog
was displayed, this needed to be dismissed by using the screen, which
meant the the voice control process failed at this point, terminally.

Is there any closer to being usable in 2.2 ?

Thanks in advance for any feedback.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] extending voice commands

2010-05-28 Thread moa
Is it possible to add you own application so it's a registered voice
command application.

As the navigate keyword is linked to maps, can link shop to your
own application?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Speech recognition: prevent or automatically handle No matches found dialog

2010-05-26 Thread moa
have the 2.2 api changes done anything to help with this?

Another feature I always wanted was the ability to define the valid
responses for the engine to match against; yes/no and so. so you don;t
get things like snow coming back as a response.

Also, defining digit recognition only and so.

Don't see any movement on this yet :(



On May 19, 1:10 am, GregM grego...@gmail.com wrote:
 I had this same problem. Since the speechrecognitionrequires
 clicking the dialog window when an error occurs, my app cannot be
 truely hands free. This is a big problem if you are trying to use
 speechrecognitionto save the user from having to look at the device.

 Calling finishactivity works but I hope google will add better
 controls in the future.

 Greg

 On May 18, 12:48 pm, pac patty.c...@gmail.com wrote:



  Thanks for your information.

  I ended up having the app sleep for several seconds and then do a
  finishActivity() because if nothing happened by then, some error must
  have occurred.

  On Apr 20, 2:28 pm, Dianne Hackborn hack...@android.com wrote:

   Sorry, the current API does not provide this kind of control.

   On Tue, Apr 20, 2010 at 10:45 AM, pac patty.c...@gmail.com wrote:
My speechrecognitionapp needs to work without human intervention, so
the situations where the No speech heard or the No matches found
dialogs come up and require a button press are a problem.

Is there a way to prevent this dialog from displaying?

Is there a way to programming perform the button click?

Is there a way to programmatically close the dialog?

This is how I'm firing the RecognizerIntent:

       Intent intent= new
Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);
       intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,
                       RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);
       intent.putExtra(RecognizerIntent.EXTRA_PROMPT, Speech
   recognitiondemo);
       startActivityForResult(intent, VOICE_RECOGNITION_REQUEST_CODE);

--
You received this message because you are subscribed to the Google
Groups Android Developers group.
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.

   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email 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 
  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 
 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] Calendar - Custom Appointment Data

2009-12-21 Thread moa
Hi,

Is it possible to hook into a calendar appointment so that I can
create a new button for the appointments' menu? I would like to add
some extra functionality to an appointment. When my new button is
pressed the appointment will be passed to my new activity?

Is this possible? and how?


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] MEDIA BUTTON

2009-11-05 Thread moa
How to I simulate the Media Button (the button on the wired headset)
that starts the media player, being pressed in the emulator?

I've looked and looked... can't see it :(

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


[android-developers] Speech - True Voice Control Not Possible

2009-11-05 Thread moa
I have been playing with the speech recognition package to try and do
a totally voice controlled application. However, the current api makes
this impossible.

I can get an application to talk to the user and then the user can
talk back to the application. I can then process this reply and then
move on to the next interaction with the user. All by voice.

This all works fine when the recogniser returns values for me to
process. However, if the recogniser fails to get any match or the user
says nothing, a dialog appears asking them to try again. At this point
the user must press a button.

This should not be forced behaviour. It should be possible to pass a
parameter to the recogniser to indicate that the dialog should not
appear, and an array of zero results should be returned in the same
manner as if actual results were found. This way physical user
intervention could be avoided if the developer (me in this case)
required none.

Is there a better place to log this as a feature request?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Speech Recognition

2009-11-02 Thread moa
Hmmm... it's not the most workable solution ever. Could get a big list
of if-maybe-but's quite quickly.

Most of the SR i've used before seem to have the concept of plug-in
lists of vocabulary that the engine matches against. This would seem
by far the best way to handle commands rather than just free from
recognition. If this is not possible now, is it coming in the future?



On Nov 2, 2:23 am, Carmen Delessio carmendeles...@gmail.com wrote:
 I tried to whittle down GREATER THAN responses by doing this:
                 queryHeard=queryHeard.replaceAll(greater than,);
                 queryHeard=queryHeard.replaceAll(greater then,);
                 queryHeard=queryHeard.replaceAll(crater than,);
                 queryHeard=queryHeard.replaceAll(craters than,);
                 queryHeard=queryHeard.replaceAll(crater then,);
                 queryHeard=queryHeard.replaceAll(craters then,);

 I'll have to check out retainAll

 Carmen
 --
 Carmenhttp://www.twitter.com/CarmenDelessiohttp://www.talkingandroid.comhttp://www.facebook.com/BFFPhotohttp://www.twitter.com/DroidDrop

 On Sun, Nov 1, 2009 at 8:57 PM, davemac davemac...@gmail.com wrote:
  Once you get back the set of responses you could filter them down to
  those in your valid commands set. Try the retainAll() method on
  matches using your valid commands as the argument. You'll probably
  either get one or zero elements left in matches every time. The same
  thing should work for numbers.

  - dave

  On Nov 1, 5:36 pm, moa mich...@jixel.com wrote:
   I want to use the SR api to handle commands in my application. I know
   at any given point in my application what the valid commands would be
   at that point so would like to limit the results that the SR is
   matched against.

   For example, if the only valid commands were Yes or No I would
   like to be able to restrict the SR to only try and match against those
   two words. Otherwise on full vocabulary I get Snow and other false
   words. Limiting the vocabulary should make matching 90%+ accurate on
   limited words.

   Is this possible?

   Also, can I limit the SR to only match numerics for number input only?

   The internal dialer seems to be able to do this sort of this, so can
   I?

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Speech Recognition

2009-11-02 Thread moa
Additional (I forgot) , limited vocabulary recognition also tends to
make the process much faster too, which is another advantage for using
this method for commands on a mobile device.

On Nov 2, 12:22 pm, moa mich...@jixel.com wrote:
 Hmmm... it's not the most workable solution ever. Could get a big list
 of if-maybe-but's quite quickly.

 Most of the SR i've used before seem to have the concept of plug-in
 lists of vocabulary that the engine matches against. This would seem
 by far the best way to handle commands rather than just free from
 recognition. If this is not possible now, is it coming in the future?

 On Nov 2, 2:23 am, Carmen Delessio carmendeles...@gmail.com wrote:

  I tried to whittle down GREATER THAN responses by doing this:
                  queryHeard=queryHeard.replaceAll(greater than,);
                  queryHeard=queryHeard.replaceAll(greater then,);
                  queryHeard=queryHeard.replaceAll(crater than,);
                  queryHeard=queryHeard.replaceAll(craters than,);
                  queryHeard=queryHeard.replaceAll(crater then,);
                  queryHeard=queryHeard.replaceAll(craters then,);

  I'll have to check out retainAll

  Carmen
  --
  Carmenhttp://www.twitter.com/CarmenDelessiohttp://www.talkingandroid.comhtt...

  On Sun, Nov 1, 2009 at 8:57 PM, davemac davemac...@gmail.com wrote:
   Once you get back the set of responses you could filter them down to
   those in your valid commands set. Try the retainAll() method on
   matches using your valid commands as the argument. You'll probably
   either get one or zero elements left in matches every time. The same
   thing should work for numbers.

   - dave

   On Nov 1, 5:36 pm, moa mich...@jixel.com wrote:
I want to use the SR api to handle commands in my application. I know
at any given point in my application what the valid commands would be
at that point so would like to limit the results that the SR is
matched against.

For example, if the only valid commands were Yes or No I would
like to be able to restrict the SR to only try and match against those
two words. Otherwise on full vocabulary I get Snow and other false
words. Limiting the vocabulary should make matching 90%+ accurate on
limited words.

Is this possible?

Also, can I limit the SR to only match numerics for number input only?

The internal dialer seems to be able to do this sort of this, so can
I?

   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Speech Recognition

2009-11-01 Thread moa
I want to use the SR api to handle commands in my application. I know
at any given point in my application what the valid commands would be
at that point so would like to limit the results that the SR is
matched against.

For example, if the only valid commands were Yes or No I would
like to be able to restrict the SR to only try and match against those
two words. Otherwise on full vocabulary I get Snow and other false
words. Limiting the vocabulary should make matching 90%+ accurate on
limited words.

Is this possible?

Also, can I limit the SR to only match numerics for number input only?

The internal dialer seems to be able to do this sort of this, so can
I?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Speech Recognition

2009-07-30 Thread moa

A couple of questions;

1. How does it work with numbers. Is it possible to limit the text
returned? If I wanted VR to listen for numbers can I get it to return
115 instead of one hundered and fifteen?

2. Is it possible to define/limit the dictionary of words which it
tries to match against? For example; if I new they could only respond
in 2 ways, hello and goodbye. Can you define that as the only words
to match, so I will only get those and not halo or good buy ?




On Jul 29, 10:24 pm, Dianne Hackborn hack...@android.com wrote:
 The platform only defines the API for voice recognition; because the current
 implementation we have is tied to Google services, this is not part of the
 base platform, so not available on all phones.  This is one of the reasons
 the API is a loosly-bound Intent protocol.



 On Wed, Jul 29, 2009 at 11:03 AM, moa mich...@jixel.com wrote:

  I think this is the situation. VR is part of cupcake 1.5, however,
  this has not been fully implemented on many current devices. UK
  vodafone for example. If your google search widget does bot have the
  microphone on it then I think your version of cupcake on the device
  does not have the relevent libraries needed to support VR.

  If you install some of the custom roms from xda you will see they have
  the mic icon on search. I think (although I have not got around to
  trying myself) that it will work fine on these.

  so, no mic icon on seach == no VR support.

  please correct me if i'm wrong, but that's my take.

  ps. what is the story with TTS (text to speech) is that in there too
  at all?

  On Jul 14, 6:25 pm, Steven shamilt...@gmail.com wrote:
   I figured out what was wrong. But like the commenter below I get the
   recognizer is not present displayed when I run my code in the
   emulator. I read that googlevoicesearch must be installed for
  thevoicerecognitionintent to work. Is this correct?
   -Steven

   On Jul 9, 6:08 pm, Mark Murphy mmur...@commonsware.com wrote:

Steven wrote:
 So when I use the code from voiceRecognition.java to see if it will
 work. I get and error with R.layout.voice_recognition as well as R.id

What are the error messages?

Also, remember that you cannot necessarily just grab bits of Java code
-- these errors are referring to items in a layout that may be missing.

 and when I try import com.example.android.apis.R it wants me to
  create
 the class.

That should be automatically built once we get the other problems above
fixed.

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

Need help for your Android OSS project?http://wiki.andmob.org/hado

 --
 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: Speech Recognition

2009-07-29 Thread moa

I think this is the situation. VR is part of cupcake 1.5, however,
this has not been fully implemented on many current devices. UK
vodafone for example. If your google search widget does bot have the
microphone on it then I think your version of cupcake on the device
does not have the relevent libraries needed to support VR.

If you install some of the custom roms from xda you will see they have
the mic icon on search. I think (although I have not got around to
trying myself) that it will work fine on these.

so, no mic icon on seach == no VR support.

please correct me if i'm wrong, but that's my take.

ps. what is the story with TTS (text to speech) is that in there too
at all?




On Jul 14, 6:25 pm, Steven shamilt...@gmail.com wrote:
 I figured out what was wrong. But like the commenter below I get the
 recognizer is not present displayed when I run my code in the
 emulator. I read that googlevoicesearch must be installed for 
 thevoicerecognitionintent to work. Is this correct?
 -Steven

 On Jul 9, 6:08 pm, Mark Murphy mmur...@commonsware.com wrote:

  Steven wrote:
   So when I use the code from voiceRecognition.java to see if it will
   work. I get and error with R.layout.voice_recognition as well as R.id

  What are the error messages?

  Also, remember that you cannot necessarily just grab bits of Java code
  -- these errors are referring to items in a layout that may be missing.

   and when I try import com.example.android.apis.R it wants me to create
   the class.

  That should be automatically built once we get the other problems above
  fixed.

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

  Need help for your Android OSS project?http://wiki.andmob.org/hado
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Using ANT not Eclipse, How do I add a 3rd party jar

2009-07-10 Thread moa

Hi,

I want to be able to add google's exteneded json library to my app
(gson.jar). I can get it in the path so I can compile but it is not
being bundled into the application when being deployed. How can I do
this?

I am NOT using eclipse, so need to do it via the ant. I'm actually
using Netbeans as my ide and all works sweet but for this.


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



[android-developers] Camera preview zoom?

2009-05-21 Thread moa

Currently the camera performs previews of the shot at 480x320 allowing
for real time processing.

Is it possible define what part of full 1536x2024 camera image is used
for the smaller preview image? Basically some kind of zoom?

I am trying to get a more detailed part of the image, without have to
do a full camera acquire and crop that.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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: Converting bitmap to grayscale

2009-05-21 Thread moa

Actually figured it out in the end! :)


Bitmap bm = Bitmap.createBitmap(500, 500,
Bitmap.Config.RGB_565);
Canvas c = new Canvas(bm);
Paint paint = new Paint();
ColorMatrix cm = new ColorMatrix();
cm.setSaturation(0);
ColorMatrixColorFilter f = new ColorMatrixColorFilter
(cm);
paint.setColorFilter(f);
int xo = (w-500)/2;
int yo = (h-500)/2;
c.drawBitmap(bmp, -xo, -yo, paint);
bmp.recycle();

Cheers.

On May 20, 12:07 pm, moa mich...@jixel.com wrote:
 I would like to convert a Bitmap to a grayscale array of bytes (one
 byte per pixel). At the same time I want to just crop at section from
 the middle. Having looked though the various api's it is not clear to
 me what the best way would be.

 The best way I have found in se java is as below;

 BufferedImage image = new BufferedImage(cropWidth, cropHeight,
 BufferedImage.TYPE_BYTE_GRAY);
 Graphics g = image.getGraphics();
 g.drawImage(colorImage, cropOffsetX, cropOffsetY, null);
 g.dispose();

 Leaving me with a graysale image of the right section;

 What is the equivalent method with android api's. I am guessing it is
 along these lines

                 Bitmap bm = Bitmap.createBitmap(500, 500,
 Bitmap.Config.ALPHA_8); // ALPHA_8?
                 Canvas c = new Canvas(bm);
                 Paint paint = new Paint(); // should something be set
 here to get grayscale?
                 c.drawBitmap(bm, 200, 200, paint);
                 bm..getPixels(...); // I want byte/pixel not int/
 pixel ??

 However, I have two questions;

 1) What is ALPHA_8? is that grayscale?

 I have a feeling that the grayscale effect should be done via some
 saturation on the paint object, right?

 2) once I have the Bitmap in grayscale and the right size, what is the
 best way to get that to a byte[] of pixels (one byte per pixel) ?

 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: xsd/dtd for AndroidManifest.xml

2009-05-21 Thread moa

Yes, me too!

Would help loads.

Anyone know here is it?




On Apr 21, 12:09 pm, bobby karande...@gmail.com wrote:
 Hi,

 Where can we find schema definition forAndroidManifest.xml? I see
 that this question has been asked long back but no 
 response:http://groups.google.com/group/android-developers/browse_thread/threa...

 Any pointers will be of great help.

 Cheers,
 Karan
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Converting bitmap to grayscale

2009-05-20 Thread moa

I would like to convert a Bitmap to a grayscale array of bytes (one
byte per pixel). At the same time I want to just crop at section from
the middle. Having looked though the various api's it is not clear to
me what the best way would be.

The best way I have found in se java is as below;

BufferedImage image = new BufferedImage(cropWidth, cropHeight,
BufferedImage.TYPE_BYTE_GRAY);
Graphics g = image.getGraphics();
g.drawImage(colorImage, cropOffsetX, cropOffsetY, null);
g.dispose();

Leaving me with a graysale image of the right section;

What is the equivalent method with android api's. I am guessing it is
along these lines

Bitmap bm = Bitmap.createBitmap(500, 500,
Bitmap.Config.ALPHA_8); // ALPHA_8?
Canvas c = new Canvas(bm);
Paint paint = new Paint(); // should something be set
here to get grayscale?
c.drawBitmap(bm, 200, 200, paint);
bm..getPixels(...); // I want byte/pixel not int/
pixel ??


However, I have two questions;

1) What is ALPHA_8? is that grayscale?

I have a feeling that the grayscale effect should be done via some
saturation on the paint object, right?

2) once I have the Bitmap in grayscale and the right size, what is the
best way to get that to a byte[] of pixels (one byte per pixel) ?

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: Bluetooth and Serial Port Profile

2009-05-20 Thread moa

What is the process for it becoming available on real devices?

If an SDK update is released that supports SPP or RFCOMM. Does that
mean applications compiled on that SDK will run on current cupcake
devices (like the Magic) without any new firmware on the phone?

Or once new BT support is added to the SDK does that mean new firmware
on the phone to be compatible?




On May 19, 11:14 am, Ahn mhahn0...@gmail.com wrote:
 Hi Nick,

 Could you update the current status on your RfcommSocket.java?
 I really wanna use BT/RFCOMM.

 BT

 --Ahn

 On 5월13일, 오후3시19분, Nick Pelly npe...@google.com wrote:

  Just a quick heads up. I'm almost complete on reworking RfcommSocket.java to
  improve its interface, fix a number of bugs, and eventually make it a public
  API. I will soon post on android-platform once its ready for more eyes.

  Cheers,
  Nick

  On Tue, May 12, 2009 at 11:01 AM, Zach Hobbs ho...@helloandroid.com wrote:

   Another note:

   You don't really have to flash the image with the @hide gone, that
   class will be accessible by any APK.  You just need to have it visible
   in your development environment.

   -Zach

   On May 12, 1:05 pm, Alin Radut alin.claudiu.ra...@gmail.com wrote:
On May 12, 7:00 am, Zach Hobbs ho...@helloandroid.com wrote:

 Did you change anything when you built the SDK?  If not, then the
 classes will still not be visible.

 Hint: classes or methods with @hide in the comment block above the
 code are not visible in the jar built for the SDK.

I removed the @hide from RfcommSocket.java and after a lengthy 4 hour
compile now it shows up in the .jar file.

The problem is that after I flashed the device with the img files I
can't access the Wireless controls screen because it crashes. It
appears that there is a problem with the bluetooth A2DP service. The
adb logcat output is available here:http://clawoo.ro/pub/logcat.txt
and the traces.txt file is available here:
  http://clawoo.ro/pub/traces.txt

The problem is that I cannot enable the bluetooth service if I cannot
access that screen so I cannot test if I can interact with RFCOMM as I
need. Do  anyone have any idea why the wireless controls screen
crashes and what can I do about it?

Thanks,
Alin
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Search by Voice - Not in HTC Magic!!

2009-05-06 Thread moa

Looking on here at the video;
http://www.android.com/releases/

and reading the pdf that came with my new htc magic (uk vodafone).
there should be a voice search option, which show as a mic icon
after the search box.

This does not seem to be here on my phone Is the uk vodafone 1.5
cupcake a crippled version with this missing???

will be well pissed if this is the case :(


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] HTC Magic

2009-05-05 Thread moa

Anyone got an HTC Magic?

http://groups.google.co.uk/group/htc-magic


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Bluetooth

2009-05-03 Thread moa

Can someone explain the current situation with bluetooth from a
developer point?

I take it the latest 1.5 version still does not have development of
bluetooth apps?

If not, when is this going to happen? It's been in J2ME for years!

I saw some post about it being available via compiling the framework,
what does this mean? Does this mean an app can be done that uses
bluetooth or is this just for developemt only?

I am only just starting to look at Android, so totally new to this.
However, if I can't do bluetooth SPP connections then it's no use to
me for what I want, so I'll not bother for now.




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Netbeans

2008-11-20 Thread moa

Does anyone know what the current state is for development with the
netbeans ide?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---