[android-developers] Re: G1 detected as 'offline' by Eclipse plugin

2008-12-02 Thread GiladH

Hi,
Setting stay awake makes no differentce. So does rebooting desktop 
device...
I am using the driver supplied by Google.

GiladH




On Dec 1, 10:58 pm, joshv [EMAIL PROTECTED] wrote:
 Make sure stay awake in the Application | Development menu settings
 is enabled - if I don't have that enabled, adb will regularly crash
 when the phone goes to sleep.  Sometimes unplugging the phone's USB
 cord and plugging it back in will help, but sometimes I've found that
 periodically the windows drivers will just stop working, and adb can't
 see the phone no matter what I do - I basically have to reboot to
 restore connectivity.  Are you sure the drivers installed properly to
 begin with?

 -josh

 On Dec 1, 2:34 pm,GiladH[EMAIL PROTECTED] wrote:

  Guys,

  I can debug my app just fine with the emulator.

  However, when I connect my G1 device to desktop via USB and attempt
  to run/debug my app on it (after following Developing on Device
  Hardware steps in android docs) I fail.

  The error msg I get: Failed to upload MyAppName.apk on device
  'HT841LC09904': Unable to open sync connection!

  Running adb devices displays the G1 device is as 'offline'.

  The G1 relevant configuration values are:
       - Wireless controlsAirplain mode==true
       - SDCard Use for USB storage==false
       - ApplicationUnknown Resources==true
       - DevelopmentUSB Debugging==true

  Also - application section of manifest app contains:
  android:debuggable=true

  Any helpful idea will be welcomed.

 GiladH
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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
-~--~~~~--~~--~--~---



[android-developers] Re: Whether is android compatible with GWT?

2008-12-02 Thread nanbo jia
Hi all, it's bug of GWT 1.5.2, develop web application for Android using
GWT,  1.5.3 or above is ok.

On Mon, Dec 1, 2008 at 5:10 PM, nanbo jia [EMAIL PROTECTED] wrote:



 On Mon, Dec 1, 2008 at 3:32 PM, [EMAIL PROTECTED] [EMAIL PROTECTED]wrote:


 I write a  simple web application using GWT,  it run successfully
 using IE and firefox, but It always return error when I browse using
 Android, I try to find out problem, but it seems It have not special
 thing.  please give me your comments.
 below is the error hint copy from tomcat's log:
 2008-11-27 23:39:16 org.apache.catalina.core.ApplicationContext log
 ÑÏÖØ: Exception while dispatching incoming RPC call
 java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.RangeCheck(Unknown Source)
at java.util.ArrayList.get(Unknown Source)
at

 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.extract
 (ServerSerializationStreamReader.java:617)
at

 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.readInt
 (ServerSerializationStreamReader.java:432)
at

 com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.prepareToRead
 (AbstractSerializationStreamReader.java:38)
at

 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.prepareToRead
 (ServerSerializationStreamReader.java:383)
at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:234)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall
 (RemoteServiceServlet.java:163)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost
 (RemoteServiceServlet.java:86)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
 (ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter
 (ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke
 (StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke
 (StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke
 (StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke
 (ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke
 (StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service
 (CoyoteAdapter.java:263)
at org.apache.coyote.http11.Http11Processor.process
 (Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol
 $Http11ConnectionHandler.process(Http11Protocol.java:584)
at
 org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
 447)
at java.lang.Thread.run(Unknown Source)
 
 I have known, it should update GWT to 1.5.3, I will check this, if ok, I
 will mark here for avoiding other guys be puzzled by 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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Loading a bitmap from a byte buffer

2008-12-02 Thread Koush

And as I said, decodeByteArray is for compressed images, such as PNG
and JPG. It does not work with uncompressed byte buffers that are in
R8G8B8A8 or R5G6B5 formats. What is needed are the lockPixels and
unlockPixels methods on a mutable Bitmap.

On Dec 2, 1:15 am, Christine [EMAIL PROTECTED] wrote:
 As John says, why don't you use BitmapFactory.decodeByteArray?

 On Dec 2, 10:03 am, Koush [EMAIL PROTECTED] wrote:

  Also, the Bitmap class internally (in the C++ JNI atleast) supports
  the all familiar lockPixels and unlockPixels methods, which allows
  direct access to the byte buffer. I would suggest extending the Java
  API to include those methods.

  On Dec 2, 1:00 am, Koush [EMAIL PROTECTED] wrote:

   Dianne Hackborn: I am asking this in the context of how to create a
   screenshot application. Taking screenshots is not possible on the G1
   anyways, because reading from /dev/graphics/fb0 is only available to
   root and shell and not available to actual applications. Thus is only
   works on hacked phones. So you're asking me to not do something, when
   I'm well past the line of things I should not be doing. :)
   Incidentally, the inability to take a simple screenshot of what is on
   your phone is a pretty significant oversight (you're not going to
   always be hooked up to a PC with the SDK/DDMS tool at your disposal).

   John Spurlock: Decode byte array is for compressed byte arrays, such
   as PNGs and JPG.
   I am basically trying to copy directly into the pixel buffer.

   On Dec 1, 3:34 pm, John Spurlock [EMAIL PROTECTED] wrote:

BitmapFactory.decodeByteArray ?

   http://code.google.com/android/reference/android/graphics/BitmapFacto...

On Dec 1, 5:58 pm, Koush [EMAIL PROTECTED] wrote:

 I inspected Bitmap.cpp and found this function:

 static jboolean Bitmap_writeToParcel(JNIEnv* env, jobject,
                                      const SkBitmap* bitmap,
                                      jboolean isMutable, jobject
 parcel) {
     if (parcel == NULL) {
         SkDebugf(--- writeToParcel null parcel\n);
         return false;
     }

     android::Parcel* p = android::parcelForJavaObject(env, parcel);

     p-writeInt32(isMutable);
     p-writeInt32(bitmap-config());
     p-writeInt32(bitmap-width());
     p-writeInt32(bitmap-height());
     p-writeInt32(bitmap-rowBytes());

     if (bitmap-getConfig() == SkBitmap::kIndex8_Config) {
         SkColorTable* ctable = bitmap-getColorTable();
         if (ctable != NULL) {
             int count = ctable-count();
             p-writeInt32(count);
             memcpy(p-writeInplace(count * sizeof(SkPMColor)),
                    ctable-lockColors(), count * sizeof(SkPMColor));
             ctable-unlockColors(false);
         } else {
             p-writeInt32(0);   // indicate no ctable
         }
     }

     size_t size = bitmap-getSize();
     bitmap-lockPixels();
     memcpy(p-writeInplace(size), bitmap-getPixels(), size);
     bitmap-unlockPixels();
     return true;

 }

 I can manually marshal a Bitmap parcel in the proper format, and then
 append the custom byte buffer, and then use createFromParcel to create
 a bitmap. That gets me indirect access to creating a bitmap directly
 from a byte buffer. It's a bit of a hack obviously, and not ideal. Is
 there a better way to do this?

 On Dec 1, 2:41 pm, Koush [EMAIL PROTECTED] wrote:

  I'm trying to populate a create a bitmap from something other than 
  an
  RGBA int array.
  However, the Bitmap creation overloads only take int arrays as 
  inputs.

  In particular, I have a byte buffer that is in the R5G6B5 format 
  that
  I want to load directly into a bitmap. The format is supposedly
  supported internally, but I can't figure out how to create the 
  bitmap
  without doing the R5G6B5 to A8R8G8B8 conversion first.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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
-~--~~~~--~~--~--~---



[android-developers] insert the data in the Sqlite Database

2008-12-02 Thread Rahul

i want to insert data in the database of Android Application i create
this code

String Iname=EtName.getText().toString();
String Imob=EtMob.getText().toString();
String Icity=EtCity.getText().toString();

String strsql=INSERT TABLE DataTable(Name,Mobile,City) 
VALUES (+
Iname +,+ Imob +,+ Icity +);
 DB.execSQL(strsql);

but it shows following error

12-02 16:37:59.460: ERROR/Database(370): Failure 21 (out of memory) on
0x0 when preparing 'INSERT TABLE DataTable(Name,Mobile,City) VALUES
(sad,732,asd)'.
12-02 16:38:00.481: ERROR/Exception on query:-(370):
android.database.sqlite.SQLiteException: unknown error: INSERT TABLE
DataTable(Name,Mobile,City) VALUES (sad,732,asd)
i dont undestand this error
so plz any one help me .
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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
-~--~~~~--~~--~--~---



[android-developers] Re: Download the Android Developers

2008-12-02 Thread David Given

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Xavier Mathews wrote:
 Is There A Reason Why You Post This?

It's spam --- just ignore it and it'll be eaten by your spam filter.

(Good advice, BTW, for all mailing list spam. Many's the time I've only
received a piece of spam because someone replied to it; the initial
message didn't make it through the filters and was eaten.)

- --
David Given
[EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJNR1Xf9E0noFvlzgRAoDmAJ43Y2VzfjDgwV8GLi2kQkuuyuAFCQCdFyQi
qpxxPqyrL3X26WGVPMd1hGQ=
=i+B9
-END PGP SIGNATURE-

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



[android-developers] Re: insert the data in the Sqlite Database

2008-12-02 Thread crontabpy

On Dec 2, 8:11 am, Rahul [EMAIL PROTECTED] wrote:
 i want to insert data in the database of Android Application i create
 this code

         String Iname=EtName.getText().toString();
         String Imob=EtMob.getText().toString();
         String Icity=EtCity.getText().toString();

                         String strsql=INSERT TABLE 
 DataTable(Name,Mobile,City) VALUES (+
 Iname +,+ Imob +,+ Icity +);

INSERT INTO table_name
VALUES (value1, value2, value3,...)

http://www.w3schools.com/SQL/sql_insert.asp

              DB.execSQL(strsql);

 but it shows following error

 12-02 16:37:59.460: ERROR/Database(370): Failure 21 (out of memory) on
 0x0 when preparing 'INSERT TABLE DataTable(Name,Mobile,City) VALUES
 (sad,732,asd)'.
 12-02 16:38:00.481: ERROR/Exception on query:-(370):
 android.database.sqlite.SQLiteException: unknown error: INSERT TABLE
 DataTable(Name,Mobile,City) VALUES (sad,732,asd)
 i dont undestand this error
 so plz any one help me .
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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
-~--~~~~--~~--~--~---



[android-developers] Re: audio recording issues

2008-12-02 Thread Dorn Hetzel

Melody,

Unfortunately, this does seem to be the situation until at least the
next release of the SDK.

I am trying to find a way around it through other interfaces in the
native code, but I get the impression that even if I find one,
it won't actually be useable in combination with SDK code.

Maybe we need to start another mailing list for unrequited android
realtime audio :)

Regards,

-Dorn

On Mon, Dec 1, 2008 at 10:02 PM, melody [EMAIL PROTECTED] wrote:

 I've been working on an application that requires the user to record
 some audio, and for that audio to be sent my server.  On our end, we
 then analyze that audio and return results to the user.  The percieved
 performance of our application benefits greatly from being able to
 start sending the audio data to our server while the user is still
 recording.

 My problem:

 The MediaRecorder class only seems to support writing to a file at the
 moment.  This audio data seems to be flushed to this output file in
 4kB chunks, which works out to about 7 seconds of audio.  This means I
 can't start sending any data to my server until after the first 7
 seconds of recording (and then I can't send anything again for another
 7 seconds, and so on).  Ideally I would like to start sending the
 audio to the server much sooner, and in much smaller chunks than
 that.  This is not only to minimize the potential impact of a slow
 connection, but also so that I can start processing the chunks of
 audio earlier.

 The perfect situation would be that when the user stops recording
 audio, I will have already received and processed almost all that he/
 she recorded, with only a very small chunk leftover.

 Thanks for your help.
 


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



[android-developers] Problem with Serversocket

2008-12-02 Thread sal

But now i am encountering a new problem as follows


i have created Serversocket as follows


ServerSocket clientListenerSocket = new ServerSocket();


But i dont see  port#  being in listening state when i do
netstat
-a on windows XP machine.Strange part is that its not generating any
exception. because of this my client on another host is unable to
connect to the this server emulator


Problem here is the socket is not listening on any interface ,  I
guess host OS is not allowing to allocate these ports. and morover i
am confused about port redirection concepts of android


i would like to know  following stuffs,

1. Will the above server code work for android without specifically
binding to any particular interface.(as SDK document states IP address
of emulator is different from that of development machine)


2 what could be the other reasons for this particular problem.

3. what is the procedure to finding  free ports on Windows XP
machine.


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



[android-developers] Re: 2D over 3D

2008-12-02 Thread fcalzada

Hi,

I'm having the same issue, I tried hard but without success.
Did you find a workaround ?

thanks

On Nov 20, 1:57 pm, petunio [EMAIL PROTECTED] wrote:
 Hi

 I am porting an application based on the sdk 3.0, and I am having
 countless problems...

 now, I am struggling trying to put 2D graphics on top of a 3D scene...

 After a lot of headache, I managed to create a opengl context, which
 now works, but when I try to put 2D graphics on top of it, this is
 what happens:

 public void drawFrame(GL10 gl)
 {
                 //view is a SurfaceView, and the value is not null !
                 mySurfaceHolder=view.getSurfaceHolder();

                 Canvas c=mySurfaceHolder.lockCanvas();

                 //this is where I wanted to place my 2D drawing, but
 after the above line, this is
                 //what I got in the Log:
 //11-20 12:52:02.508: ERROR/SurfaceComposerClient(490): eLocked set
 when entering lock_layer(), //layer=1 (lcblk=0x410420a0),
 state=0020
 //11-20 12:52:02.598: ERROR/SurfaceHolder(490): Exception locking
 surface

                 mySurfaceHolder.unlockCanvasAndPost(c);

 }

 Any help would be very appreciated

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



[android-developers] Re: 2d Canvas over Opengl (Flickering !!)

2008-12-02 Thread fcalzada

Hi petunio,

you said I managed (after a lot of problems) to put 2D graphics on
top of 3D.
I'm trying hard to do the same, and i don't find a solution.
how did you do ?

thanks a lot

On Nov 27, 3:09 pm, petunio [EMAIL PROTECTED] wrote:
 Hi all

 does anybody know what am I doing wrong?

 I managed (after a lot of problems) to put 2D graphics on top of 3D.
 But the 2D graphics are flickering...

 this is the main loop:

 public void drawFrame(GL10gl, my3DObject world, Canvas myCanvas)
 {
       gl.glClear(GL10.GL_COLOR_BUFFER_BIT |GL10.GL_DEPTH_BUFFER_BIT);
       gl.glClearColor(0, 0, 0, 1);

       world.draw(gl);          //draws the 3D world, it works...

       drawIcons(myCanvas);             //draws the 2D graphics. the
 ones that are flickering...

       mEgl.eglSwapBuffers(mEglDisplay, mEglSurface);

 }

 Also, in the SurfaceCreated method I obtain the canvas, by doing:
 myCanvas=mHolder.lockCanvas();
 and then, when the surface is destroyed, I do:
 mHolder.unlockCanvasAndPost(myCanvas);

 Any help would be very appreciated
 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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Is it possible to use c/c++ shared object using android application

2008-12-02 Thread Chandrakar Aravind-rqj386
Hi,

 

I am quite new to android, I have one query is it possible to use C/C++
shared object using android application.

 

Thanks in Advance

 Arvind


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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
-~--~~~~--~~--~--~---



[android-developers] Re: unknown socket error -1

2008-12-02 Thread martin d.

Hi

* sal wrote/
schrieb:

 But i dont see  port#  being in listening state when i do netstat
 -a on windows XP machine.Strange part is its not generating any
 exception. because of this client is unable to connect to this port

I guess you only open a port inside the emulator and not on the host
machine. Have a look at the forwarding options of the emulator:
http://code.google.com/android/reference/emulator.html#portredirection

MartinD:
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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
-~--~~~~--~~--~--~---



[android-developers] Re: Loading a bitmap from a byte buffer

2008-12-02 Thread Koush

Also, the Bitmap class internally (in the C++ JNI atleast) supports
the all familiar lockPixels and unlockPixels methods, which allows
direct access to the byte buffer. I would suggest extending the Java
API to include those methods.

On Dec 2, 1:00 am, Koush [EMAIL PROTECTED] wrote:
 Dianne Hackborn: I am asking this in the context of how to create a
 screenshot application. Taking screenshots is not possible on the G1
 anyways, because reading from /dev/graphics/fb0 is only available to
 root and shell and not available to actual applications. Thus is only
 works on hacked phones. So you're asking me to not do something, when
 I'm well past the line of things I should not be doing. :)
 Incidentally, the inability to take a simple screenshot of what is on
 your phone is a pretty significant oversight (you're not going to
 always be hooked up to a PC with the SDK/DDMS tool at your disposal).

 John Spurlock: Decode byte array is for compressed byte arrays, such
 as PNGs and JPG.
 I am basically trying to copy directly into the pixel buffer.

 On Dec 1, 3:34 pm, John Spurlock [EMAIL PROTECTED] wrote:

  BitmapFactory.decodeByteArray ?

 http://code.google.com/android/reference/android/graphics/BitmapFacto...

  On Dec 1, 5:58 pm, Koush [EMAIL PROTECTED] wrote:

   I inspected Bitmap.cpp and found this function:

   static jboolean Bitmap_writeToParcel(JNIEnv* env, jobject,
                                        const SkBitmap* bitmap,
                                        jboolean isMutable, jobject
   parcel) {
       if (parcel == NULL) {
           SkDebugf(--- writeToParcel null parcel\n);
           return false;
       }

       android::Parcel* p = android::parcelForJavaObject(env, parcel);

       p-writeInt32(isMutable);
       p-writeInt32(bitmap-config());
       p-writeInt32(bitmap-width());
       p-writeInt32(bitmap-height());
       p-writeInt32(bitmap-rowBytes());

       if (bitmap-getConfig() == SkBitmap::kIndex8_Config) {
           SkColorTable* ctable = bitmap-getColorTable();
           if (ctable != NULL) {
               int count = ctable-count();
               p-writeInt32(count);
               memcpy(p-writeInplace(count * sizeof(SkPMColor)),
                      ctable-lockColors(), count * sizeof(SkPMColor));
               ctable-unlockColors(false);
           } else {
               p-writeInt32(0);   // indicate no ctable
           }
       }

       size_t size = bitmap-getSize();
       bitmap-lockPixels();
       memcpy(p-writeInplace(size), bitmap-getPixels(), size);
       bitmap-unlockPixels();
       return true;

   }

   I can manually marshal a Bitmap parcel in the proper format, and then
   append the custom byte buffer, and then use createFromParcel to create
   a bitmap. That gets me indirect access to creating a bitmap directly
   from a byte buffer. It's a bit of a hack obviously, and not ideal. Is
   there a better way to do this?

   On Dec 1, 2:41 pm, Koush [EMAIL PROTECTED] wrote:

I'm trying to populate a create a bitmap from something other than an
RGBA int array.
However, the Bitmap creation overloads only take int arrays as inputs.

In particular, I have a byte buffer that is in the R5G6B5 format that
I want to load directly into a bitmap. The format is supposedly
supported internally, but I can't figure out how to create the bitmap
without doing the R5G6B5 to A8R8G8B8 conversion first.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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
-~--~~~~--~~--~--~---



[android-developers] Re: 2D over 3D

2008-12-02 Thread Robert Green

In desktop 3D stuff I've always just created billboards and drawn to
the textures for them.  I'm sure this same technique would work.

On Dec 2, 4:29 am, fcalzada [EMAIL PROTECTED] wrote:
 Hi,

 I'm having the same issue, I tried hard but without success.
 Did you find a workaround ?

 thanks

 On Nov 20, 1:57 pm, petunio [EMAIL PROTECTED] wrote:

  Hi

  I am porting an application based on the sdk 3.0, and I am having
  countless problems...

  now, I am struggling trying to put 2D graphics on top of a 3D scene...

  After a lot of headache, I managed to create a opengl context, which
  now works, but when I try to put 2D graphics on top of it, this is
  what happens:

  public void drawFrame(GL10 gl)
  {
                  //view is a SurfaceView, and the value is not null !
                  mySurfaceHolder=view.getSurfaceHolder();

                  Canvas c=mySurfaceHolder.lockCanvas();

                  //this is where I wanted to place my 2D drawing, but
  after the above line, this is
                  //what I got in the Log:
  //11-20 12:52:02.508: ERROR/SurfaceComposerClient(490): eLocked set
  when entering lock_layer(), //layer=1 (lcblk=0x410420a0),
  state=0020
  //11-20 12:52:02.598: ERROR/SurfaceHolder(490): Exception locking
  surface

                  mySurfaceHolder.unlockCanvasAndPost(c);

  }

  Any help would be very appreciated

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



[android-developers] Re: searchs in Android

2008-12-02 Thread android_soft

You can use the article at this link to understand GeoCode class:
http://www.anddev.org/simple_googlemaps_with_threads-t2943.html
As for search, the above article has its own search mechanism
implemented, but you can look up the API of SearchManager to
understand how to directly use the SearchUI available to you in your
activity.
useful Activity Methods:
onSearchRequested() can be called to start a search.

Setting meta-data and searchable.xml are described in the
SearchManager API and depending on you need you need to customize it.

On Dec 1, 9:58 pm, Peterman [EMAIL PROTECTED] wrote:
 Hi

 Someone know how to do a search in android? I would like make a search
 that it give me the coordenates of the locations founded. I heard
 about the class Geocoder but I don't know to use it or it this class
 is the solution.

 thanks a lot
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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
-~--~~~~--~~--~--~---



[android-developers] Re: Loading a bitmap from a byte buffer

2008-12-02 Thread Koush

{ SkImageDecoder_GIF_Factory,   SkImageDecoder::kGIF_Format },
{ SkImageDecoder_PNG_Factory,   SkImageDecoder::kPNG_Format },
{ SkImageDecoder_ICO_Factory,   SkImageDecoder::kICO_Format },
{ SkImageDecoder_WBMP_Factory,  SkImageDecoder::kWBMP_Format },
{ SkImageDecoder_BMP_Factory,   SkImageDecoder::kBMP_Format },
// jpeg must be last, as it doesn't have a good sniffer yet
{ SkImageDecoder_JPEG_Factory,  SkImageDecoder::kJPEG_Format }

That's the list of formats supported by SKImageDecoder. Another
possible solution is to dummy up a BMP header (pretty trivial) and
then decode the bytes. But that is still a hack...

On Dec 2, 1:15 am, Christine [EMAIL PROTECTED] wrote:
 As John says, why don't you use BitmapFactory.decodeByteArray?

 On Dec 2, 10:03 am, Koush [EMAIL PROTECTED] wrote:

  Also, the Bitmap class internally (in the C++ JNI atleast) supports
  the all familiar lockPixels and unlockPixels methods, which allows
  direct access to the byte buffer. I would suggest extending the Java
  API to include those methods.

  On Dec 2, 1:00 am, Koush [EMAIL PROTECTED] wrote:

   Dianne Hackborn: I am asking this in the context of how to create a
   screenshot application. Taking screenshots is not possible on the G1
   anyways, because reading from /dev/graphics/fb0 is only available to
   root and shell and not available to actual applications. Thus is only
   works on hacked phones. So you're asking me to not do something, when
   I'm well past the line of things I should not be doing. :)
   Incidentally, the inability to take a simple screenshot of what is on
   your phone is a pretty significant oversight (you're not going to
   always be hooked up to a PC with the SDK/DDMS tool at your disposal).

   John Spurlock: Decode byte array is for compressed byte arrays, such
   as PNGs and JPG.
   I am basically trying to copy directly into the pixel buffer.

   On Dec 1, 3:34 pm, John Spurlock [EMAIL PROTECTED] wrote:

BitmapFactory.decodeByteArray ?

   http://code.google.com/android/reference/android/graphics/BitmapFacto...

On Dec 1, 5:58 pm, Koush [EMAIL PROTECTED] wrote:

 I inspected Bitmap.cpp and found this function:

 static jboolean Bitmap_writeToParcel(JNIEnv* env, jobject,
                                      const SkBitmap* bitmap,
                                      jboolean isMutable, jobject
 parcel) {
     if (parcel == NULL) {
         SkDebugf(--- writeToParcel null parcel\n);
         return false;
     }

     android::Parcel* p = android::parcelForJavaObject(env, parcel);

     p-writeInt32(isMutable);
     p-writeInt32(bitmap-config());
     p-writeInt32(bitmap-width());
     p-writeInt32(bitmap-height());
     p-writeInt32(bitmap-rowBytes());

     if (bitmap-getConfig() == SkBitmap::kIndex8_Config) {
         SkColorTable* ctable = bitmap-getColorTable();
         if (ctable != NULL) {
             int count = ctable-count();
             p-writeInt32(count);
             memcpy(p-writeInplace(count * sizeof(SkPMColor)),
                    ctable-lockColors(), count * sizeof(SkPMColor));
             ctable-unlockColors(false);
         } else {
             p-writeInt32(0);   // indicate no ctable
         }
     }

     size_t size = bitmap-getSize();
     bitmap-lockPixels();
     memcpy(p-writeInplace(size), bitmap-getPixels(), size);
     bitmap-unlockPixels();
     return true;

 }

 I can manually marshal a Bitmap parcel in the proper format, and then
 append the custom byte buffer, and then use createFromParcel to create
 a bitmap. That gets me indirect access to creating a bitmap directly
 from a byte buffer. It's a bit of a hack obviously, and not ideal. Is
 there a better way to do this?

 On Dec 1, 2:41 pm, Koush [EMAIL PROTECTED] wrote:

  I'm trying to populate a create a bitmap from something other than 
  an
  RGBA int array.
  However, the Bitmap creation overloads only take int arrays as 
  inputs.

  In particular, I have a byte buffer that is in the R5G6B5 format 
  that
  I want to load directly into a bitmap. The format is supposedly
  supported internally, but I can't figure out how to create the 
  bitmap
  without doing the R5G6B5 to A8R8G8B8 conversion first.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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
-~--~~~~--~~--~--~---



[android-developers] Re: How to integrate c code with java code

2008-12-02 Thread Eric Chan
To Amit :

To interaction between C and Java maybe a little complicate, you can do it
follows this:

*Because each class loader maintains a set of native libraries, the
programmer may use a single library to store all the native methods needed
by any number of classes as long as those classes have the same defining
loader. *

*Native libraries will automatically be unloaded by the virtual machine when
their corresponding class loaders are garbage collected.*



it a example

JNIEXPORT jstring JNICALL Java_Prompt_getLine
(JNIEnv *env, jobject obj, jstring prompt)
{
char buf[128];
  const char *str = (*env)-GetStringUTFChars(env, prompt, 0);
   printf(%s, str);
  (*env)-ReleaseStringUTFChars(env, prompt, str);

}
I just writed a document about this, but sorry it is a Chinese version, i
will post it after tranlate to English

2008/12/2 Amit [EMAIL PROTECTED]


 Android supports JNI at application framework level.
 For example, in platform/frameworks/base.git, Mediaplayer.java at:

 http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=media/java/android/media/MediaPlayer.java;h=b6064e1bb6b0f40f72fc1535b264f5c3fa190548;hb=HEAD
 file has got some native function calls
 And these native function calls must be implemented in either
 libmedia_jni.so or media_jni.dll
 but i'm unable to located either of the files in the source code. plz
 tell me the path if they are present in the source code.

 i found a c++ file android_media_MediaPlayer.cpp at:

 http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=media/jni/android_media_MediaPlayer.cpp;h=f9f3646f0c308bf19bb3c3af02fc0e0e4260afbd;hb=HEAD
 that implements the corresponding native functions,
 but coudnt find how it calls the actual c/c++ libraries. Also, it
 includes files media/mediaplayer.h which i coudnt find.
 This must be the file generated by java file using javah.

 It also included files JNIHelp.h and android_runtime/AndroidRuntime.h
 which are also untraceable.
 Plz help me in this problem.

 Thanks
 Amit

 On Dec 1, 2:07 pm, [EMAIL PROTECTED] [EMAIL PROTECTED]
 wrote:
  Hi Amit,
 
  DigitalAirways (www.digitalairways.com) does this to allow all the
  Kaleido applications to run on Android with great performances and
  very limited porting effort.
 
  Franck
 
  On Nov 28, 11:00 am, Amit [EMAIL PROTECTED] wrote:
 
 
 
   Hello friends,
 
   Can u plz tell that if i want to write some piece of code for android
   in c or c++, how can i integrate the code with java code.
 
   Any help appreciated
 
   Thanks
   Amit- Hide quoted text -
 
  - Show quoted text -
 



-- 
Best Regards

Eric Chan

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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
-~--~~~~--~~--~--~---



[android-developers] Re: Loading a bitmap from a byte buffer

2008-12-02 Thread Christine

As John says, why don't you use BitmapFactory.decodeByteArray?

On Dec 2, 10:03 am, Koush [EMAIL PROTECTED] wrote:
 Also, the Bitmap class internally (in the C++ JNI atleast) supports
 the all familiar lockPixels and unlockPixels methods, which allows
 direct access to the byte buffer. I would suggest extending the Java
 API to include those methods.

 On Dec 2, 1:00 am, Koush [EMAIL PROTECTED] wrote:

  Dianne Hackborn: I am asking this in the context of how to create a
  screenshot application. Taking screenshots is not possible on the G1
  anyways, because reading from /dev/graphics/fb0 is only available to
  root and shell and not available to actual applications. Thus is only
  works on hacked phones. So you're asking me to not do something, when
  I'm well past the line of things I should not be doing. :)
  Incidentally, the inability to take a simple screenshot of what is on
  your phone is a pretty significant oversight (you're not going to
  always be hooked up to a PC with the SDK/DDMS tool at your disposal).

  John Spurlock: Decode byte array is for compressed byte arrays, such
  as PNGs and JPG.
  I am basically trying to copy directly into the pixel buffer.

  On Dec 1, 3:34 pm, John Spurlock [EMAIL PROTECTED] wrote:

   BitmapFactory.decodeByteArray ?

  http://code.google.com/android/reference/android/graphics/BitmapFacto...

   On Dec 1, 5:58 pm, Koush [EMAIL PROTECTED] wrote:

I inspected Bitmap.cpp and found this function:

static jboolean Bitmap_writeToParcel(JNIEnv* env, jobject,
                                     const SkBitmap* bitmap,
                                     jboolean isMutable, jobject
parcel) {
    if (parcel == NULL) {
        SkDebugf(--- writeToParcel null parcel\n);
        return false;
    }

    android::Parcel* p = android::parcelForJavaObject(env, parcel);

    p-writeInt32(isMutable);
    p-writeInt32(bitmap-config());
    p-writeInt32(bitmap-width());
    p-writeInt32(bitmap-height());
    p-writeInt32(bitmap-rowBytes());

    if (bitmap-getConfig() == SkBitmap::kIndex8_Config) {
        SkColorTable* ctable = bitmap-getColorTable();
        if (ctable != NULL) {
            int count = ctable-count();
            p-writeInt32(count);
            memcpy(p-writeInplace(count * sizeof(SkPMColor)),
                   ctable-lockColors(), count * sizeof(SkPMColor));
            ctable-unlockColors(false);
        } else {
            p-writeInt32(0);   // indicate no ctable
        }
    }

    size_t size = bitmap-getSize();
    bitmap-lockPixels();
    memcpy(p-writeInplace(size), bitmap-getPixels(), size);
    bitmap-unlockPixels();
    return true;

}

I can manually marshal a Bitmap parcel in the proper format, and then
append the custom byte buffer, and then use createFromParcel to create
a bitmap. That gets me indirect access to creating a bitmap directly
from a byte buffer. It's a bit of a hack obviously, and not ideal. Is
there a better way to do this?

On Dec 1, 2:41 pm, Koush [EMAIL PROTECTED] wrote:

 I'm trying to populate a create a bitmap from something other than an
 RGBA int array.
 However, the Bitmap creation overloads only take int arrays as inputs.

 In particular, I have a byte buffer that is in the R5G6B5 format that
 I want to load directly into a bitmap. The format is supposedly
 supported internally, but I can't figure out how to create the bitmap
 without doing the R5G6B5 to A8R8G8B8 conversion first.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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
-~--~~~~--~~--~--~---



[android-developers] Re: How to get MediaController positioned at a required location?

2008-12-02 Thread David Given

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Nilangini wrote:
[...]
 Do you have any idea how can we position the MediaController at a
 required location?
 I could not find any way to set the position of MediaController.

Heh --- I just asked this!

One it's *playing*, you can use MediaPlayer.seekTo() to change the
position in the stream.

But if it *hasn't started playing yet*, you can't change the position.
In other words, you need to wait for it the buffer the initial part of
the stream and start playing before you can call seekTo().

- --
David Given
[EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJNRz2f9E0noFvlzgRAp6CAKCTytVsJnLdCkWnIGuKpkWvCZ54BgCgtl5Z
nxsTmm1t8lgdK0sXE/uGq7k=
=DFUc
-END PGP SIGNATURE-

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



[android-developers] Re: How to integrate c code with java code

2008-12-02 Thread Amit

Android supports JNI at application framework level.
For example, in platform/frameworks/base.git, Mediaplayer.java at:
http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=media/java/android/media/MediaPlayer.java;h=b6064e1bb6b0f40f72fc1535b264f5c3fa190548;hb=HEAD
file has got some native function calls
And these native function calls must be implemented in either
libmedia_jni.so or media_jni.dll
but i'm unable to located either of the files in the source code. plz
tell me the path if they are present in the source code.

i found a c++ file android_media_MediaPlayer.cpp at:
http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=media/jni/android_media_MediaPlayer.cpp;h=f9f3646f0c308bf19bb3c3af02fc0e0e4260afbd;hb=HEAD
that implements the corresponding native functions,
but coudnt find how it calls the actual c/c++ libraries. Also, it
includes files media/mediaplayer.h which i coudnt find.
This must be the file generated by java file using javah.

It also included files JNIHelp.h and android_runtime/AndroidRuntime.h
which are also untraceable.
Plz help me in this problem.

Thanks
Amit

On Dec 1, 2:07 pm, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
 Hi Amit,

 DigitalAirways (www.digitalairways.com) does this to allow all the
 Kaleido applications to run on Android with great performances and
 very limited porting effort.

 Franck

 On Nov 28, 11:00 am, Amit [EMAIL PROTECTED] wrote:



  Hello friends,

  Can u plz tell that if i want to write some piece of code for android
  in c or c++, how can i integrate the code with java code.

  Any help appreciated

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



[android-developers] Distribution of updates.

2008-12-02 Thread Don Pellegrino

I have not yet noticed any updates to the built-in applications or to
the applications I have installed from the Market.  It could be that
none have been deployed but I don't seem to have a way to confirm
this.  I was unable to find documentation on the general update
distribution process.  The following questions occurred to me:

What will the user experience be for updates to the built-in
applications?

What will the user experience be for updates to applications
distributed from the Market?

Is there a way for the user to get verification that the installed
applications are up-to-date?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: (Service == Process)?

2008-12-02 Thread patrick

Hi guys,

thanks very much for your answers. Your answers and the link that I
obviously missed helped me clear out these things.

Patrick

On Dec 1, 8:03 pm, Dianne Hackborn [EMAIL PROTECTED] wrote:
 On Mon, Dec 1, 2008 at 5:41 AM, patrick [EMAIL PROTECTED] wrote:
   - therefore an activity is a process
    - but from what I know a service uses another address space than the
  hosting activity

 If there is anything 
 inhttp://code.google.com/android/intro/appmodel.htmlorthe other docs
 leading you to this conclusion, please let me know what
 that is so we can fix it. :)

  - how are AIDL IPC calls synchronized when they are different
  processes?

 There is a special driver in the kernel called binder that takes care of
 these IPCs.

 --
 Dianne Hackborn
 Android framework engineer
 [EMAIL PROTECTED]

 Note: please don't send private questions to me, as I don't have time to
 provide private support.  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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Loading a bitmap from a byte buffer

2008-12-02 Thread Koush

Dianne Hackborn: I am asking this in the context of how to create a
screenshot application. Taking screenshots is not possible on the G1
anyways, because reading from /dev/graphics/fb0 is only available to
root and shell and not available to actual applications. Thus is only
works on hacked phones. So you're asking me to not do something, when
I'm well past the line of things I should not be doing. :)
Incidentally, the inability to take a simple screenshot of what is on
your phone is a pretty significant oversight (you're not going to
always be hooked up to a PC with the SDK/DDMS tool at your disposal).

John Spurlock: Decode byte array is for compressed byte arrays, such
as PNGs and JPG.
I am basically trying to copy directly into the pixel buffer.

On Dec 1, 3:34 pm, John Spurlock [EMAIL PROTECTED] wrote:
 BitmapFactory.decodeByteArray ?

 http://code.google.com/android/reference/android/graphics/BitmapFacto...

 On Dec 1, 5:58 pm, Koush [EMAIL PROTECTED] wrote:

  I inspected Bitmap.cpp and found this function:

  static jboolean Bitmap_writeToParcel(JNIEnv* env, jobject,
                                       const SkBitmap* bitmap,
                                       jboolean isMutable, jobject
  parcel) {
      if (parcel == NULL) {
          SkDebugf(--- writeToParcel null parcel\n);
          return false;
      }

      android::Parcel* p = android::parcelForJavaObject(env, parcel);

      p-writeInt32(isMutable);
      p-writeInt32(bitmap-config());
      p-writeInt32(bitmap-width());
      p-writeInt32(bitmap-height());
      p-writeInt32(bitmap-rowBytes());

      if (bitmap-getConfig() == SkBitmap::kIndex8_Config) {
          SkColorTable* ctable = bitmap-getColorTable();
          if (ctable != NULL) {
              int count = ctable-count();
              p-writeInt32(count);
              memcpy(p-writeInplace(count * sizeof(SkPMColor)),
                     ctable-lockColors(), count * sizeof(SkPMColor));
              ctable-unlockColors(false);
          } else {
              p-writeInt32(0);   // indicate no ctable
          }
      }

      size_t size = bitmap-getSize();
      bitmap-lockPixels();
      memcpy(p-writeInplace(size), bitmap-getPixels(), size);
      bitmap-unlockPixels();
      return true;

  }

  I can manually marshal a Bitmap parcel in the proper format, and then
  append the custom byte buffer, and then use createFromParcel to create
  a bitmap. That gets me indirect access to creating a bitmap directly
  from a byte buffer. It's a bit of a hack obviously, and not ideal. Is
  there a better way to do this?

  On Dec 1, 2:41 pm, Koush [EMAIL PROTECTED] wrote:

   I'm trying to populate a create a bitmap from something other than an
   RGBA int array.
   However, the Bitmap creation overloads only take int arrays as inputs.

   In particular, I have a byte buffer that is in the R5G6B5 format that
   I want to load directly into a bitmap. The format is supposedly
   supported internally, but I can't figure out how to create the bitmap
   without doing the R5G6B5 to A8R8G8B8 conversion first.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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
-~--~~~~--~~--~--~---



[android-developers] Re: socket exception error

2008-12-02 Thread sal

Hi,

Thanks for your concern,

The problem with socketException got solved by putting INTERNET
permission in manifest.xml file.

But now i am encountering a new problem as follows

i have created Serversocket as follows

ServerSocket clientListenerSocket = new ServerSocket();

But i dont see  port#  being in listening state when i do netstat
-a on windows XP machine.Strange part is its not generating any
exception. because of this client is unable to connect to this port

I guess host OS is not allowing to allocate these ports. i would like
to know what could be the other reasons for this particular problem.
and what is the procedure to find free ports on Windows XP machine.


Thanks


On Dec 1, 5:18 pm, RichardS [EMAIL PROTECTED] wrote:
 On 1 Dec, 11:44, sal123 [EMAIL PROTECTED] wrote:

  Hi All,

  I am getting a socketexception , when i am trying to create a new
  socket. may i know the reason for this

 Have you added the permission to your AndroidManifest.xml?  Something
 like:

     uses-permission android:name=android.permission.INTERNET /

 R
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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
-~--~~~~--~~--~--~---



[android-developers] Re: unknown socket error -1

2008-12-02 Thread sal

Hi,

Thanks for your concern,

The problem with socketException got solved by putting INTERNET
permission in manifest.xml file.

But now i am encountering a new problem as follows

i have created Serversocket as follows

ServerSocket clientListenerSocket = new ServerSocket();

But i dont see  port#  being in listening state when i do netstat
-a on windows XP machine.Strange part is its not generating any
exception. because of this client is unable to connect to this port

I guess host OS is not allowing to allocate these ports. i would like
to know what could be the other reasons for this particular problem.
and what is the procedure to find free ports on Windows XP machine.


Thanks


On Dec 1, 7:58 pm, Huebi [EMAIL PROTECTED] wrote:
 You need to add the INTERNET permission to your app in the Manifest.
 That should solve the issue

 On 1 Dez., 15:27, sal [EMAIL PROTECTED] wrote:



  1. Can anyone point me to simple TCP client/server program on
  android ??

  2. Whenever i try to create socket with port and IPaddress i get
  IOException which points to a SocketException which gives a message
  unknown socket error -1 , it would be nice if someone could tell the
  root cause for this problem. i guess this is something to do with TCP
  settings of emulator.

  3. Do we need to have any configuration changes to Emulator or
  androidmanifest.xml file to eliminate this problem ?

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



[android-developers] Re: Is it possible to use c/c++ shared object using android application

2008-12-02 Thread Ludwig
No, native code is not supported ATM.This question has been asked a quite a
few times in recent days and I would not expect the answer to change any
time soon.

Ludwig

2008/12/2 Chandrakar Aravind-rqj386 [EMAIL PROTECTED]

   Hi,



 I am quite new to android, I have one query is it possible to use C/C++
 shared object using android application.



 Thanks in Advance

  Arvind

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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
-~--~~~~--~~--~--~---



[android-developers] Re: ice-e on Android?

2008-12-02 Thread supernova

I,ve read the following

-Ice-E for Java currently supports Java Micro Edition (ME) CLDC 1.1
with MIDP 2.0, Java ME CDC 1.0  with PP 1.0 as well as Java Standard
Edition (SE) version 2, 5 and 6.


Also Ice-E can run on Android because it supports a relatively large
subset of the Java Standard Edition 5.0 library. Is it OK?

On 1 dic, 19:45, Xavier Mathews [EMAIL PROTECTED] wrote:
 Possible yes but with runner i don't think so!

 Xavier A. Mathews
 Student/Browser Specialist/Developer/Web-Master
 Google Group Client Based Tech Support Specialist
 Hazel Crest Illinois
 [EMAIL PROTECTED]@[EMAIL PROTECTED]
 Fear of a name, only increases fear of the thing itself.

 On Mon, Dec 1, 2008 at 7:28 AM, supernova [EMAIL PROTECTED] wrote:

  Is ist possible to run Ice-e on Android? Maybe with J2ME MIDP Runner?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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
-~--~~~~--~~--~--~---



[android-developers] Re: 2D over 3D

2008-12-02 Thread fcalzada

Yes i thought about it, but it's gonna take some 3d resources... and
my application is already quite heavy in vertices number


On Dec 2, 3:51 pm, Robert Green [EMAIL PROTECTED] wrote:
 In desktop 3D stuff I've always just created billboards and drawn to
 the textures for them.  I'm sure this same technique would work.

 On Dec 2, 4:29 am, fcalzada [EMAIL PROTECTED] wrote:

  Hi,

  I'm having the same issue, I tried hard but without success.
  Did you find a workaround ?

  thanks

  On Nov 20, 1:57 pm, petunio [EMAIL PROTECTED] wrote:

   Hi

   I am porting an application based on the sdk 3.0, and I am having
   countless problems...

   now, I am struggling trying to put 2D graphics on top of a 3D scene...

   After a lot of headache, I managed to create a opengl context, which
   now works, but when I try to put 2D graphics on top of it, this is
   what happens:

   public void drawFrame(GL10 gl)
   {
                   //view is a SurfaceView, and the value is not null !
                   mySurfaceHolder=view.getSurfaceHolder();

                   Canvas c=mySurfaceHolder.lockCanvas();

                   //this is where I wanted to place my 2D drawing, but
   after the above line, this is
                   //what I got in the Log:
   //11-20 12:52:02.508: ERROR/SurfaceComposerClient(490): eLocked set
   when entering lock_layer(), //layer=1 (lcblk=0x410420a0),
   state=0020
   //11-20 12:52:02.598: ERROR/SurfaceHolder(490): Exception locking
   surface

                   mySurfaceHolder.unlockCanvasAndPost(c);

   }

   Any help would be very appreciated

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



[android-developers] Re: RatingBar ratingBarStyleSmall

2008-12-02 Thread Michael

On Dec 1, 2:49 pm, Xavier Mathews [EMAIL PROTECTED] wrote:
 Right but are there add-on rate bars?

What the heck are you talking about?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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
-~--~~~~--~~--~--~---



[android-developers] Re: Getting information from the Internet

2008-12-02 Thread Michael

 Who's Code Would That Be? And what about the difference between http and htp
 is there a code for each one?

See, now I'm starting to think you're a troll.  What is 'htp'?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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
-~--~~~~--~~--~--~---



[android-developers] Re: Android Camera Preview Filter Using Camera.PreviewCallback.onPreviewFrame

2008-12-02 Thread dmanpearl

I decoded the RGB color data from the Android Camera PreviewCallback
onPreviewFrame() frame.
My function that decodes the YUV byte[] buffer from the preview
callback and converts it into an ARGB_ int[] buffer is presented
below.

The luminance buffer takes up the first width * height bytes of the
byte buffer and can be displayed as a gray-scale image if desiered.
The chromonance follows with each U or V value representing a 2x2
square region of 4 luminance values. The bytes are packed as follows
(display in monospaced font to view as grid):
Y1a Y1b Y2c Y2d Y3e Y3f
Y1g Y1h Y2i Y2j Y3k Y3l
Y4m Y4n Y5o Y5p Y6q Y6r
Y4s Y4t Y5u Y5v Y6w Y6x
U1  V1  U2  V2  U3  V3
U4  V4  U5  V5  U6  V6

I strongly believe that Google, you should have told us this
yourselves and saved me several days.

This code has been tested on the HTC G1 device processing 480x320 size
frames.  Similar functions downrez in the same single pass through the
image to a smaller frame size for full display on the screen at a
faster rate.  Note: this processing must be done in a separate Thread
from onPreviewFrame().

// decode Y, U, and V values on the YUV 420 buffer described as
YCbCr_422_SP by Android
// David Manpearl 081201
public static void decodeYUV(int[] out, byte[] fg, int width, int
height) throws NullPointerException, IllegalArgumentException {
final int sz = width * height;
if(out == null) throw new NullPointerException(buffer 'out' is
null);
if(out.length  sz) throw new IllegalArgumentException(buffer 'out'
size  + out.length +   minimum  + sz);
if(fg == null) throw new NullPointerException(buffer 'fg' is null);
if(fg.length  sz) throw new IllegalArgumentException(buffer 'fg'
size  + fg.length +   minimum  + sz * 3/ 2);
int i, j;
int Y, Cr = 0, Cb = 0;
for(j = 0; j  height; j++) {
int pixPtr = j * width;
final int jDiv2 = j  1;
for(i = 0; i  width; i++) {
Y = fg[pixPtr]; if(Y  0) Y += 255;
if((i  0x1) != 1) {
final int cOff = sz + jDiv2 * width + (i  1) 
* 2;
Cb = fg[cOff];
if(Cb  0) Cb += 127; else Cb -= 128;
Cr = fg[cOff + 1];
if(Cr  0) Cr += 127; else Cr -= 128;
}
int R = Y + Cr + (Cr  2) + (Cr  3) + (Cr  5);
if(R  0) R = 0; else if(R  255) R = 255;
int G = Y - (Cb  2) + (Cb  4) + (Cb  5) - (Cr  
1) + (Cr 
3) + (Cr  4) + (Cr  5);
if(G  0) G = 0; else if(G  255) G = 255;
int B = Y + Cb + (Cb  1) + (Cb  2) + (Cb  6);
if(B  0) B = 0; else if(B  255) B = 255;
out[pixPtr++] = 0xff00 + (B  16) + (G  8) + R;
}
}
}

On Dec 1, 8:52 am, Dave Sparks [EMAIL PROTECTED] wrote:
 The G1 preview format is YUV 420 semi-planar (U and V are subsampled
 by 2 in both X and Y). The Y plane is first, followed by UV pairs - I
 believe the U sample comes first in the pair.

 Technically it's YCbCr 420 semi-planar, but very few people use that
 term.

 On Nov 26, 6:27 pm, dmanpearl [EMAIL PROTECTED] wrote:



  Hello Blindfold,

  Thanks for your help.  I solved the user interface problems I was
  experiencing by using a separate thread to do my image processing. I'm
  still using an ImageView, and without problems.  Perhaps I will try a
  Canvas in a SurfaceHolder later in this exercise to compare speeds.

  MORE ON THE CAMERA LIVE PREVIEW FILTERED DISPLAY CAPABILITY

  As you know, I want to display live camera data through a custom
  filter.

  I got most of the way through theYCbCr_422_SPdata buffer returned to
  Android's Camera.PreviewCallback onCameraFrame() callback function,
  and now I am looking for help decyphering the U, V portion of the
  buffer.  I verified that the first (width*height) bytes are simple Y
  luminance values that can be displayed (via Bitmap and ImageView) to
  make a viable gray-scale image.  The total number of bytes are (width
  * height * 3 / 2).

  The remaining 1/2 image bytes are clearly used to store U, V (Cb, Cr)
  data.  Therefore, there are 1/4 image bytes for each U, V component
  (i.e. each U, V component is used for 4 pixels of the image).  This
  looks like 411 or 420 data, not 422, but we have bigger fish to fry.

  I cannot determine if the U V data is aligned adjacently, in
  alternating rows, or in squares as described in this Wikipedia
  graphical description:  http://en.wikipedia.org/wiki/Image:Yuv420.svg.
  Once I finally determine the structure of the U, V data, I have
  several equations to convert from YUV to RGB and I have tried many
  ways of combining the UV data with the luminance data of the first 2/3
  of the buffer to no avail.  So far I can only display 

[android-developers] Re: G1 detected as 'offline' by Eclipse plugin

2008-12-02 Thread GiladH

Problem resolved.
Probably due to improper USB driver installation.



On Dec 1, 10:34 pm, GiladH [EMAIL PROTECTED] wrote:
 Guys,

 I can debug my app just fine with the emulator.

 However, when I connect my G1 device to desktop via USB and attempt
 to run/debug my app on it (after following Developing on Device
 Hardware steps in android docs) I fail.

 The error msg I get: Failed to upload MyAppName.apk on device
 'HT841LC09904': Unable to open sync connection!

 Running adb devices displays the G1 device is as 'offline'.

 The G1 relevant configuration values are:
      - Wireless controlsAirplain mode==true
      - SDCard Use for USB storage==false
      - ApplicationUnknown Resources==true
      - DevelopmentUSB Debugging==true

 Also - application section of manifest app contains:
 android:debuggable=true

 Any helpful idea will be welcomed.

 GiladH
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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
-~--~~~~--~~--~--~---



[android-developers] Re: Netflix Instant

2008-12-02 Thread Michael


This is an Android development forum, I think you can assume people
are talking about Android applications.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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
-~--~~~~--~~--~--~---



[android-developers] Re: Trouble inflating a view

2008-12-02 Thread Romain Guy

Hi,

The line:
View.inflate(FileBrowser.this, R.layout.icon, null);

Should be:
LayoutInflate.from(FileBrowser.this).inflate(R.layout.icon, parent, false);

You have to pass the parent so that the generated layout parameters
are of the right type. In the case of a GridView, it is also important
to pass false to the attach to root parameter so that the View is
not added directly to the parent (prevents a call to parent.addView.)
The latter is mandatory because GridView will add the View to itself
automatically after calling your getView() method.

On Tue, Dec 2, 2008 at 1:27 AM, CaseyB [EMAIL PROTECTED] wrote:

 I am trying to use a grid with a custom component but when I try to
 inflate the view I get the following exception:

 12-02 04:18:07.790: ERROR/AndroidRuntime(1146): Uncaught handler:
 thread main exiting due to uncaught exception
 12-02 04:18:08.030: ERROR/AndroidRuntime(1146):
 java.lang.ClassCastException: android.widget.AbsListView$LayoutParams
 12-02 04:18:08.030: ERROR/AndroidRuntime(1146): at
 android.widget.LinearLayout.measureVertical(LinearLayout.java:323)
 12-02 04:18:08.030: ERROR/AndroidRuntime(1146): at
 android.widget.LinearLayout.onMeasure(LinearLayout.java:275)
 12-02 04:18:08.030: ERROR/AndroidRuntime(1146): at
 android.view.View.measure(View.java:6621)
 12-02 04:18:08.030: ERROR/AndroidRuntime(1146): at
 android.widget.GridView.onMeasure(GridView.java:937)
 12-02 04:18:08.030: ERROR/AndroidRuntime(1146): at
 android.view.View.measure(View.java:6621)
 12-02 04:18:08.030: ERROR/AndroidRuntime(1146): at
 android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:2791)
 12-02 04:18:08.030: ERROR/AndroidRuntime(1146): at
 android.widget.FrameLayout.onMeasure(FrameLayout.java:208)
 12-02 04:18:08.030: ERROR/AndroidRuntime(1146): at
 android.view.View.measure(View.java:6621)
 12-02 04:18:08.030: ERROR/AndroidRuntime(1146): at
 android.widget.LinearLayout.measureVertical(LinearLayout.java:461)
 12-02 04:18:08.030: ERROR/AndroidRuntime(1146): at
 android.widget.LinearLayout.onMeasure(LinearLayout.java:275)
 12-02 04:18:08.030: ERROR/AndroidRuntime(1146): at
 android.view.View.measure(View.java:6621)
 12-02 04:18:08.030: ERROR/AndroidRuntime(1146): at
 android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:2791)
 12-02 04:18:08.030: ERROR/AndroidRuntime(1146): at
 android.widget.FrameLayout.onMeasure(FrameLayout.java:208)
 12-02 04:18:08.030: ERROR/AndroidRuntime(1146): at
 android.view.View.measure(View.java:6621)
 12-02 04:18:08.030: ERROR/AndroidRuntime(1146): at
 android.view.ViewRoot.performTraversals(ViewRoot.java:620)
 12-02 04:18:08.030: ERROR/AndroidRuntime(1146): at
 android.view.ViewRoot.handleMessage(ViewRoot.java:1103)
 12-02 04:18:08.030: ERROR/AndroidRuntime(1146): at
 android.os.Handler.dispatchMessage(Handler.java:88)
 12-02 04:18:08.030: ERROR/AndroidRuntime(1146): at
 android.os.Looper.loop(Looper.java:123)
 12-02 04:18:08.030: ERROR/AndroidRuntime(1146): at
 android.app.ActivityThread.main(ActivityThread.java:3742)
 12-02 04:18:08.030: ERROR/AndroidRuntime(1146): at
 java.lang.reflect.Method.invokeNative(Native Method)
 12-02 04:18:08.030: ERROR/AndroidRuntime(1146): at
 java.lang.reflect.Method.invoke(Method.java:515)
 12-02 04:18:08.030: ERROR/AndroidRuntime(1146): at
 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
 (ZygoteInit.java:739)
 12-02 04:18:08.030: ERROR/AndroidRuntime(1146): at
 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497)
 12-02 04:18:08.030: ERROR/AndroidRuntime(1146): at
 dalvik.system.NativeStart.main(Native Method)

 Here is the code I am using to try to inflate the view:

 @Override
 public View getView(int index, View convertView, ViewGroup parent)
 {
View iconLayout;
ImageView icon;
TextView fileName;

if (convertView == null)
{
iconLayout = View.inflate(FileBrowser.this, R.layout.icon, 
 null);

icon = (ImageView)iconLayout.findViewById(R.id.Icon);
icon.setScaleType(ImageView.ScaleType.FIT_CENTER);
icon.setLayoutParams(new GridView.LayoutParams(50, 50));

fileName = (TextView)iconLayout.findViewById(R.id.FileName);
}
else
{
iconLayout = convertView;
icon = (ImageView)convertView.findViewById(R.id.Icon);
fileName = (TextView)convertView.findViewById(R.id.FileName);
}

icon.setImageResource(getIcon(index));
fileName.setText(mFiles.get(index).getName());

return iconLayout;
 }

 and here is the layout file:

 ?xml version=1.0 encoding=utf-8?
 LinearLayout
android:layout_width=wrap_content
android:layout_height=wrap_content
xmlns:android=http://schemas.android.com/apk/res/android;
android:orientation=vertical
android:id=@+id/IconLayout

ImageView
  

[android-developers] Re: ice-e on Android?

2008-12-02 Thread Michael


By default, that J2SE application would not run at all on Android,
since it doesn't support native Java classes - all Android apps are
run in a Dalvik virtual machine, so must be converted to DEX format.
Not to mention that Android has its own GUI interface, which is not
the standard stuff used for desktop applications...

So you're probably out of luck.

- michael
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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
-~--~~~~--~~--~--~---



[android-developers] android.graphics, drawing paths, and patterns

2008-12-02 Thread Bradley Kite

Hi fellow developers,

I have a requirement to draw a path on a canvas (which is easy
enough), but to then stamp symbols over it every few pixels.

In particular, the symbols I want to stamp over it are .png images,
and basically change the line so that it contains 'x' shapes on it -
as an example - but the shape can be any thing that can be loaded from
a .png image. This could produce a line that looks like:

--x--x--x--x--x-- etc. - but with the 'x' shapes rotated according to
the angle of the line.

Is there any particular way that this can be done? I've gone through
the following classes - Paint, Path, PathEffect, Canvas and Bitmap -
but cannot find any way to implement the above.

The closest thing I've seen is the DashPathEffect - but all this can
do is break up the line so that dashes are included.

My feeling at this point is that I'm going to have to create a custom
PathEffect which can do this. Is this the correct approach? Have I
missed something glaringly obvious? Could any one give some advise
with regards to how to create custom PathEffects ?

Many thanks in advance.

Regards
--
Brad

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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
-~--~~~~--~~--~--~---



[android-developers] Re: Getting information from the Internet

2008-12-02 Thread Xavier Mathews

What Are You Talking About? If You Don't Know What Htp is Then Why Are
You Even In This Group! ANYWAYS

On 12/02/2008, Michael [EMAIL PROTECTED] wrote:

 Who's Code Would That Be? And what about the difference between http and
 htp
 is there a code for each one?

 See, now I'm starting to think you're a troll.  What is 'htp'?
 



-- 
Xavier A. Mathews
Student/Browser Specialist/Developer/Web-Master
Google Group Client Based Tech Support Specialist
Hazel Crest Illinois
[EMAIL PROTECTED]@[EMAIL PROTECTED]
Fear of a name, only increases fear of the thing itself.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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
-~--~~~~--~~--~--~---



[android-developers] Re: Getting information from the Internet

2008-12-02 Thread Michael

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



[android-developers] Re: Loading a bitmap from a byte buffer

2008-12-02 Thread Mike Reed

The only ways to specify the pixels directly are via:
- consing up a BMP in memory
- using setPixels(...) api (which takes 32bit ARGB ints)

I apologize there there is no direct API that takes 565 values as input.

On Dec 2, 2008, at 4:41 AM, Koush wrote:


{ SkImageDecoder_GIF_Factory,   SkImageDecoder::kGIF_Format },
{ SkImageDecoder_PNG_Factory,   SkImageDecoder::kPNG_Format },
{ SkImageDecoder_ICO_Factory,   SkImageDecoder::kICO_Format },
{ SkImageDecoder_WBMP_Factory,  SkImageDecoder::kWBMP_Format },
{ SkImageDecoder_BMP_Factory,   SkImageDecoder::kBMP_Format },
// jpeg must be last, as it doesn't have a good sniffer yet
{ SkImageDecoder_JPEG_Factory,  SkImageDecoder::kJPEG_Format }

That's the list of formats supported by SKImageDecoder. Another
possible solution is to dummy up a BMP header (pretty trivial) and
then decode the bytes. But that is still a hack...

On Dec 2, 1:15 am, Christine [EMAIL PROTECTED] wrote:
 As John says, why don't you use BitmapFactory.decodeByteArray?

 On Dec 2, 10:03 am, Koush [EMAIL PROTECTED] wrote:

 Also, the Bitmap class internally (in the C++ JNI atleast) supports
 the all familiar lockPixels and unlockPixels methods, which allows
 direct access to the byte buffer. I would suggest extending the Java
 API to include those methods.

 On Dec 2, 1:00 am, Koush [EMAIL PROTECTED] wrote:

 Dianne Hackborn: I am asking this in the context of how to create a
 screenshot application. Taking screenshots is not possible on the G1
 anyways, because reading from /dev/graphics/fb0 is only available to
 root and shell and not available to actual applications. Thus is  
 only
 works on hacked phones. So you're asking me to not do something,  
 when
 I'm well past the line of things I should not be doing. :)
 Incidentally, the inability to take a simple screenshot of what is  
 on
 your phone is a pretty significant oversight (you're not going to
 always be hooked up to a PC with the SDK/DDMS tool at your  
 disposal).

 John Spurlock: Decode byte array is for compressed byte arrays, such
 as PNGs and JPG.
 I am basically trying to copy directly into the pixel buffer.

 On Dec 1, 3:34 pm, John Spurlock [EMAIL PROTECTED] wrote:

 BitmapFactory.decodeByteArray ?

 http://code.google.com/android/reference/android/graphics/BitmapFacto 
 ...

 On Dec 1, 5:58 pm, Koush [EMAIL PROTECTED] wrote:

 I inspected Bitmap.cpp and found this function:

 static jboolean Bitmap_writeToParcel(JNIEnv* env, jobject,
  const SkBitmap* bitmap,
  jboolean isMutable, jobject
 parcel) {
 if (parcel == NULL) {
 SkDebugf(--- writeToParcel null parcel\n);
 return false;
 }

 android::Parcel* p = android::parcelForJavaObject(env,  
 parcel);

 p-writeInt32(isMutable);
 p-writeInt32(bitmap-config());
 p-writeInt32(bitmap-width());
 p-writeInt32(bitmap-height());
 p-writeInt32(bitmap-rowBytes());

 if (bitmap-getConfig() == SkBitmap::kIndex8_Config) {
 SkColorTable* ctable = bitmap-getColorTable();
 if (ctable != NULL) {
 int count = ctable-count();
 p-writeInt32(count);
 memcpy(p-writeInplace(count * sizeof(SkPMColor)),
ctable-lockColors(), count *  
 sizeof(SkPMColor));
 ctable-unlockColors(false);
 } else {
 p-writeInt32(0);   // indicate no ctable
 }
 }

 size_t size = bitmap-getSize();
 bitmap-lockPixels();
 memcpy(p-writeInplace(size), bitmap-getPixels(), size);
 bitmap-unlockPixels();
 return true;

 }

 I can manually marshal a Bitmap parcel in the proper format, and  
 then
 append the custom byte buffer, and then use createFromParcel to  
 create
 a bitmap. That gets me indirect access to creating a bitmap  
 directly
 from a byte buffer. It's a bit of a hack obviously, and not  
 ideal. Is
 there a better way to do this?

 On Dec 1, 2:41 pm, Koush [EMAIL PROTECTED] wrote:

 I'm trying to populate a create a bitmap from something other  
 than an
 RGBA int array.
 However, the Bitmap creation overloads only take int arrays as  
 inputs.

 In particular, I have a byte buffer that is in the R5G6B5  
 format that
 I want to load directly into a bitmap. The format is supposedly
 supported internally, but I can't figure out how to create the  
 bitmap
 without doing the R5G6B5 to A8R8G8B8 conversion first.



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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
-~--~~~~--~~--~--~---



[android-developers] Re: android.graphics, drawing paths, and patterns

2008-12-02 Thread Mike Reed

Since you want to draw a bitmap, rather than a path/shape, along the  
path, I think you'll have to walk the path using PathMeasure manually.  
Something like this might be the right skeleton.

void drawBitmapAlongPath(Path p, Bitmap b) {
 Matrix m = new Matrix();
 PathMeasure meas = new PathMeasure(p, false);
 final float length = meas.getLength();
 final float advance = b.getWidth();// might be larger to have  
space between each bitmap
 float distance = 0;
 final int flags = PathMeasure.POSITION_MATRIX_FLAG |  
PathMeasure.TANGENT_MATRIX_FLAG;

 while (distance  length) {
 meas.getMatrix(distance, m, flags);
 canvas.drawBitmap(b, m, ...);
 distance += advance;
 }
}

The idea is to walk the path (via pathmeasure), and at some interval  
(measured in arc-length), retrieve the matrix for that location/angle,  
and use that to draw a bitmap. You may need to adjust the matrix (via  
preTranslate) to center the bitmap at each location.

mike

PS - the above is just a sketch. I didn't try to compile/run it.

On Dec 2, 2008, at 11:38 AM, Bradley Kite wrote:


Hi fellow developers,

I have a requirement to draw a path on a canvas (which is easy
enough), but to then stamp symbols over it every few pixels.

In particular, the symbols I want to stamp over it are .png images,
and basically change the line so that it contains 'x' shapes on it -
as an example - but the shape can be any thing that can be loaded from
a .png image. This could produce a line that looks like:

--x--x--x--x--x-- etc. - but with the 'x' shapes rotated according to
the angle of the line.

Is there any particular way that this can be done? I've gone through
the following classes - Paint, Path, PathEffect, Canvas and Bitmap -
but cannot find any way to implement the above.

The closest thing I've seen is the DashPathEffect - but all this can
do is break up the line so that dashes are included.

My feeling at this point is that I'm going to have to create a custom
PathEffect which can do this. Is this the correct approach? Have I
missed something glaringly obvious? Could any one give some advise
with regards to how to create custom PathEffects ?

Many thanks in advance.

Regards
--
Brad




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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
-~--~~~~--~~--~--~---



[android-developers] Re: Getting information from the Internet

2008-12-02 Thread Michael


Heh.  Clearly a troll.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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
-~--~~~~--~~--~--~---



[android-developers] Re: Getting information from the Internet

2008-12-02 Thread Xavier Mathews

Thats Nice.

On 12/02/2008, Michael [EMAIL PROTECTED] wrote:


 Heh.  Clearly a troll.
 



-- 
Xavier A. Mathews
Student/Browser Specialist/Developer/Web-Master
Google Group Client Based Tech Support Specialist
Hazel Crest Illinois
[EMAIL PROTECTED]@[EMAIL PROTECTED]
Fear of a name, only increases fear of the thing itself.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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
-~--~~~~--~~--~--~---



[android-developers] Re: Getting information from the Internet

2008-12-02 Thread Xavier Mathews

YOU NEED TO GO FIND YOU SOME BUSINESS.

On 12/02/2008, Xavier Mathews [EMAIL PROTECTED] wrote:
 Thats Nice.

 On 12/02/2008, Michael [EMAIL PROTECTED] wrote:


 Heh.  Clearly a troll.
 



 --
 Xavier A. Mathews
 Student/Browser Specialist/Developer/Web-Master
 Google Group Client Based Tech Support Specialist
 Hazel Crest Illinois
 [EMAIL PROTECTED]@[EMAIL PROTECTED]
 Fear of a name, only increases fear of the thing itself.



-- 
Xavier A. Mathews
Student/Browser Specialist/Developer/Web-Master
Google Group Client Based Tech Support Specialist
Hazel Crest Illinois
[EMAIL PROTECTED]@[EMAIL PROTECTED]
Fear of a name, only increases fear of the thing itself.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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
-~--~~~~--~~--~--~---



[android-developers] Re: insert the data in the Sqlite Database

2008-12-02 Thread NuuNeoI

You may forget Double Quote

String strsql=INSERT TABLE DataTable(Name,Mobile,City) VALUES (\+
Iname +\,\+ Imob +\,\+ Icity +\);

On Dec 2, 6:11 pm, Rahul [EMAIL PROTECTED] wrote:
 i want to insert data in the database of Android Application i create
 this code

         String Iname=EtName.getText().toString();
         String Imob=EtMob.getText().toString();
         String Icity=EtCity.getText().toString();

                         String strsql=INSERT TABLE 
 DataTable(Name,Mobile,City) VALUES (+
 Iname +,+ Imob +,+ Icity +);
              DB.execSQL(strsql);

 but it shows following error

 12-02 16:37:59.460: ERROR/Database(370): Failure 21 (out of memory) on
 0x0 when preparing 'INSERT TABLE DataTable(Name,Mobile,City) VALUES
 (sad,732,asd)'.
 12-02 16:38:00.481: ERROR/Exception on query:-(370):
 android.database.sqlite.SQLiteException: unknown error: INSERT TABLE
 DataTable(Name,Mobile,City) VALUES (sad,732,asd)
 i dont undestand this error
 so plz any one help me .
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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
-~--~~~~--~~--~--~---



[android-developers] Re: ice-e on Android?

2008-12-02 Thread Xavier Mathews

But Keep In Mind There Are Diffrent Java's One Of Them May Work i.e If
Compatiable It Is Need To Match The API i.e And What Ever Format But
Android Has It Own Interface So When It Come Down To It You Can
Try But It May Not Work!

On 12/02/2008, Michael [EMAIL PROTECTED] wrote:


 By default, that J2SE application would not run at all on Android,
 since it doesn't support native Java classes - all Android apps are
 run in a Dalvik virtual machine, so must be converted to DEX format.
 Not to mention that Android has its own GUI interface, which is not
 the standard stuff used for desktop applications...

 So you're probably out of luck.

 - michael
 



-- 
Xavier A. Mathews
Student/Browser Specialist/Developer/Web-Master
Google Group Client Based Tech Support Specialist
Hazel Crest Illinois
[EMAIL PROTECTED]@[EMAIL PROTECTED]
Fear of a name, only increases fear of the thing itself.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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
-~--~~~~--~~--~--~---



[android-developers] Re: Wifi Ip Address

2008-12-02 Thread Ralf

On the device, go to the wifi settings and select the connected wifi
network. It will show you its IP address.

If you mean programmatically, sorry, I do not know.

R/

On Mon, Dec 1, 2008 at 2:49 AM, Andrea [EMAIL PROTECTED] wrote:

 How can I get the Ip address assigned by a WiFi network to which my
 device is connected?
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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
-~--~~~~--~~--~--~---



[android-developers] email attatchments

2008-12-02 Thread bryan

How do I open email attatchments it never let's me

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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
-~--~~~~--~~--~--~---



[android-developers] getListView().setTextFilterEnabled(true) get the filter text problem

2008-12-02 Thread [EMAIL PROTECTED]

I use getListView().setTextFilterEnabled(true) to fillter the resutl
list,


now I want to get the filter text , how do it?


and how to set default filter text when call this intent?


seem is internal object. can you help me?

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



[android-developers] Music file format supported by Android

2008-12-02 Thread Jatin

Hello,
 Can u please let me know the list of the Music file format supported
by Android and the Music Player supported by Android.

Thanks,
Jatin

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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
-~--~~~~--~~--~--~---



[android-developers] Adding frames into an Image

2008-12-02 Thread sukumar

hi All,

I need to add frames (like smiling face, decarator broaders) into an
Image. My usecase is - select any picture from phones, and add the
preloaded frames to the picture and store the resultant Image.Can
anyone please point me to some references or suggest me some ways to
acheive this. Thanks a lot in advance.

-Sukumar.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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
-~--~~~~--~~--~--~---



[android-developers] how can i detect my g-phone on the PC via USB?

2008-12-02 Thread [EMAIL PROTECTED]

Hello everybody...
...thanks for the great job you are doing lately
I have a question that is driving me crazy.
.how can i detect my g-phone on the PC via USB?...
By the way, i have Windows Vista.and i saw some answers on
other forums answering like i had XPbut i don't.

Please help me out soon as you can

Angelo

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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
-~--~~~~--~~--~--~---



[android-developers] Re: Exchange Server Support

2008-12-02 Thread [EMAIL PROTECTED]

I absolutely love Open Source for the collaborative efforts
available.  I've been working on Exchange support for the default mail
client since it hit Open Source, but hadn't heard much in the way of
others working on it.  Since k9 is a community driven variant, I've
been including my work there so it's available to others.  It's
actually made a lot of progress so far.  You can check out the
exchange branch of k9mail (http://k9mail.googlecode.com).  With any
luck within the next couple of days an alpha release with Exchange
WebDAV support will be available.

On Nov 15, 10:41 pm, davin_thompson [EMAIL PROTECTED] wrote:
 It appears the Big hurdle right now... is a bug in
 org.apache.harmonyx, which is completely stalling my progress... I
 cannot seem to find a work-around for a non-root ssl cert.  In the
 meantime, Im setting up a localexchangeserver, that i can disable
 ssl on... so i can get on to the heart of this project =P  at that
 point, whenever the bug in harmonyX gets fixed... it should just work
 =P

 On Nov 13, 11:03 pm, davin_thompson [EMAIL PROTECTED] wrote:

  Im about to have a look into that one, and see how he got past the
  hurdle im currently stuck on.  it seems that java.net has NTLM
  authentication, but has no way to implment propfind and search
  requests.  org.apache.http is extensable, and i have propfind and
  search working there, but no NTLM.  Once i get past that hurdle, the
  rest of it should just be a porting job

  On Nov 13, 4:21 am, Timbobsteve [EMAIL PROTECTED] wrote:

   I am currently looking @ another OpenSource project called ExchangeIt
   (available in the Market). Brian has got the beginnings of a Java WebDAV
   connection happening on Android. I am going to review the code and see
   where we can go from there. Hopefully, depending on time, Brian will
   also come on-board if we get project off the ground.

   FYI, source is @http://code.google.com/p/exchangeit

   Regards,
   Timbobsteve

   davin_thompson wrote:
Unfortunatly... Im not very good with with java... but I'm working on
it.  However, prepairing for this project, I have written anexchange
webdav client in php, so I solidly have the concept. Hopefully, in a
few days, i'll have something working in java (so far I've made it
to a basic http request =P).  Wish me luck, and i'll share my results

On Oct 17, 11:12 am, Timbobsteve [EMAIL PROTECTED] wrote:

Hi Zero,
For what it's worth I can supply my time and effort to 
anExchangeclient/library. From what I can see most of the opensource 
stuff on MAPI is limited toExchange2000. Most other implementations 
accessExchangethrough Outlook Web Access (OWA) + WebDAV.
I will read up on using WebDAV and then we can look into getting an 
Android WebDAV client library in place. I'm not the best programmer, 
but everyone starts somewhere right?
Cheers.
zero wrote:if there would be a group of developers willing to build an 
opensource implementation of MAPI for java, i'd be happy to 
contribute. but it's way to huge to tackle it alone. at least, for me. 
there's propably a few other ways, like webdav, to connect toexchange, 
but they differ in stability, and clearly an opensource mapi 
implementation would be way more elegant. zero openintents.org 
zeroblog.exu-mobile.com On Oct 17, 1:20 pm, Timbobsteve[EMAIL 
PROTECTED]wrote:Hi All, This isn't another thread asking 
ifexchangeserver is supported on Android... so don't worry :P I just 
wanted to start a dialog with other developers about how to possibly 
tackle the MSExchangesupport issues on Android. I'm not the best coder 
in the world, so I can't really provide example code or anything, but 
this is more of a discussion-type thread. From what I can tell, my 
iPhone uses WebDAV to connect toExchangeto get mail (correct me if I'm 
wrong). So I started looking @ opensource implementations of Java 
WebDAV clients and came across Apache SLIDE Server and Client. 
Unfortunately Slide has been discontinued. There is not that it was 
replaced by Apache JackRabbit, but from what I can see JackRabbit is a 
Server implementation of WebDAV technologies. I was also searching for 
Java MAPI support, but a lot of the MAPI APIs for Java are 
closed-source and licensed... which is not good IMHO. What other 
options forexchangesupport do people see? Do you think it is a 
worthwhile pursuit? Do you think it will happen and will it be a 
paid-for product on AndroidMarket, or will someone make an open-source 
client? There is a lot of reading to be done on WebDAV and how it 
integrates intoExchange... so I am going to start doing some reading. 
Feel free to share your ideas and thoughts.- Hide quoted text -

   - Show quoted text -- Hide quoted text -

  - Show quoted text -

--~--~-~--~~~---~--~~
You received this message because 

[android-developers] Fast Scroll drag handle similar to Contacts ListView

2008-12-02 Thread Will Ryan

I have a ListView which contains over a thousand entries (sorted from
A to Z) and want to know how to scroll this quickly similar to how the
Contacts list can be scrolled quickly (by dragging the handle that
appears on the right hand side of the screen).

How can this be achieved? Is it an option for the view, or do I have
to implement it? Alternatively, is it possible to see the source of
the Contacts ListView as I could probably reuse that.

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



[android-developers] com.google.wireless.gdata

2008-12-02 Thread AndroidEngineer

Howcome com.google.wireless.gdata and com.google.android.gdata have
been removed from the 1.0 r1 library. I see these packages in 0.9 and
previous versions but not in 1.0. What is the reason behind removing
the libraries? From what I've seen, they seem to be very useful
libraries.

Please give me heads up. I am trying to write an application to access
google calendar and its events.

Thanks.

Android Engineer

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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
-~--~~~~--~~--~--~---



[android-developers] How to get android fs from sdk1.0

2008-12-02 Thread Jerry Zhang
Hello,
   I am trying to port android1.0 to my omap2430 board. I have ported the
android m5-rc14 file system, and it works well.
   But when I tried to extract the file system from 1.0 as I did from
m5-rc14. the android's shell reports Read-only file system. Any suggestion
to solve it?

   Thanks very much!

Jerry

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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
-~--~~~~--~~--~--~---



[android-developers] Retrieve phone number for given contact

2008-12-02 Thread glenys

Hi,

I am trying to retrieve the phone number for a given contact. However,
the managedQuery function call always terminates my application. No
matter what I change my query to, the managedQuery seems to crash all
the time.

What could be the problem? Could it be that the contacts db file is in
a different location or something?

My code looks like this:

public void getContactNumber() {

String[] projection = new String[]
{android.provider.Contacts.Phones.NUMBER};


Cursor managedCursor =
managedQuery(android.provider.Contacts.People.CONTENT_URI,
projection,
android.provider.Contacts.Phones.NAME + =\' +
A + \', null, null);
   }
where the name of the given contact is A.

Glenys


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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
-~--~~~~--~~--~--~---



[android-developers] Bluetooth DUN profile

2008-12-02 Thread Arimus

Hi,

I know that the Bluetooth DUN profile was removed prior to the initial
release of Android, does anyone have any information as to whether the
profile (in particular for the T-Mob G1) will be reinstated at some
point in the not too far future?

Richard.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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
-~--~~~~--~~--~--~---



[android-developers] Re: correct usage of adb shell input

2008-12-02 Thread Madhusudhan K

Hi
   You can use key codes directly like
adb shell input keyevent 7# for key '0'
adb shell input keyevent 8# for key '1'
adb shell input keyevent 29# for key 'A'
adb shell input keyevent 54# for key 'B'
we can also send string as a text, like
adb shell input text ANDROID

The below text is the whole list of all keyevent names with their
respective codes numbers...

0 --  KEYCODE_UNKNOWN
1 --  KEYCODE_MENU
2 --  KEYCODE_SOFT_RIGHT
3 --  KEYCODE_HOME
4 --  KEYCODE_BACK
5 --  KEYCODE_CALL
6 --  KEYCODE_ENDCALL
7 --  KEYCODE_0
8 --  KEYCODE_1
9 --  KEYCODE_2
10 --  KEYCODE_3
11 --  KEYCODE_4
12 --  KEYCODE_5
13 --  KEYCODE_6
14 --  KEYCODE_7
15 --  KEYCODE_8
16 --  KEYCODE_9
17 --  KEYCODE_STAR
18 --  KEYCODE_POUND
19 --  KEYCODE_DPAD_UP
20 --  KEYCODE_DPAD_DOWN
21 --  KEYCODE_DPAD_LEFT
22 --  KEYCODE_DPAD_RIGHT
23 --  KEYCODE_DPAD_CENTER
24 --  KEYCODE_VOLUME_UP
25 --  KEYCODE_VOLUME_DOWN
26 --  KEYCODE_POWER
27 --  KEYCODE_CAMERA
28 --  KEYCODE_CLEAR
29 --  KEYCODE_A
30 --  KEYCODE_B
31 --  KEYCODE_C
32 --  KEYCODE_D
33 --  KEYCODE_E
34 --  KEYCODE_F
35 --  KEYCODE_G
36 --  KEYCODE_H
37 --  KEYCODE_I
38 --  KEYCODE_J
39 --  KEYCODE_K
40 --  KEYCODE_L
41 --  KEYCODE_M
42 --  KEYCODE_N
43 --  KEYCODE_O
44 --  KEYCODE_P
45 --  KEYCODE_Q
46 --  KEYCODE_R
47 --  KEYCODE_S
48 --  KEYCODE_T
49 --  KEYCODE_U
50 --  KEYCODE_V
51 --  KEYCODE_W
52 --  KEYCODE_X
53 --  KEYCODE_Y
54 --  KEYCODE_Z
55 --  KEYCODE_COMMA
56 --  KEYCODE_PERIOD
57 --  KEYCODE_ALT_LEFT
58 --  KEYCODE_ALT_RIGHT
59 --  KEYCODE_SHIFT_LEFT
60 --  KEYCODE_SHIFT_RIGHT
61 --  KEYCODE_TAB
62 --  KEYCODE_SPACE
63 --  KEYCODE_SYM
64 --  KEYCODE_EXPLORER
65 --  KEYCODE_ENVELOPE
66 --  KEYCODE_ENTER
67 --  KEYCODE_DEL
68 --  KEYCODE_GRAVE
69 --  KEYCODE_MINUS
70 --  KEYCODE_EQUALS
71 --  KEYCODE_LEFT_BRACKET
72 --  KEYCODE_RIGHT_BRACKET
73 --  KEYCODE_BACKSLASH
74 --  KEYCODE_SEMICOLON
75 --  KEYCODE_APOSTROPHE
76 --  KEYCODE_SLASH
77 --  KEYCODE_AT
78 --  KEYCODE_NUM
79 --  KEYCODE_HEADSETHOOK
80 --  KEYCODE_FOCUS
81 --  KEYCODE_PLUS
82 --  KEYCODE_MENU
83 --  KEYCODE_NOTIFICATION
84 --  KEYCODE_SEARCH
85 --  TAG_LAST_KEYCODE

-- Madhu


dreamerBoy wrote:
 Hi -

 I am wondering what the correct invocation of adb shell input is -

 It could be potentially very useful for me if I could inject key
 events into a running app.

 I've tried:

   
 adb shell input keyevent KEYCODE_0
 

 or

   
 adb shell input keyevent KEYCODE_CALL
 

 etc. with an emulator running.  I was inside the Dialer app and I was
 hoping that my numbers would show up.  They do not.  Neither the CALL
 or the ENDCALL buttons are clicked.

 I'm a little confused about the adb shell input keyevent syntax
 because it doesn't specify whether the action is UP or DOWN (or does
 it imply both a DOWN then an UP?).

 More often than not, I get something like:

 [1]   Killed  input keyevent CALL

 when I attempt to run adb shell input keyevent ..

 In frustration, I tried  adb shell input keyevent 4 but this seemed
 to bounce me out of the dialer back to the menu.

 Can anyone shed some light as to whether I'm using this command
 correctly or if not, how and in what context it is intended to be
 used?

 Thanks so much.


 

   


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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
-~--~~~~--~~--~--~---



[android-developers] flash player

2008-12-02 Thread bryan

How do I get a flash player on this phone it never let's me download
one

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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
-~--~~~~--~~--~--~---



[android-developers] UTS program specifications on embedded linux?

2008-12-02 Thread mandar_tambe

Hi, Is anybody having the Universal Test Tool(UTS) program
specifications or the code on the embedded linux?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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
-~--~~~~--~~--~--~---



[android-developers] Starting an activity with FLAG_ACTIVITY_MULTIPLE_TASK

2008-12-02 Thread RoadRunner.Android

I am writing an application in which I want the activity to a new
instance everytime it is executed, so I am applying
FLAG_ACTIVITY_MULTIPLE_TASK in conjuction with FLAG_ACTIVITY_NEW_TASK
in the Intent that triggers the activity. But I soon as I execute the
application, I get an Force Closed dialog box. Can anyone help me
out or tell a better way to achieve the required task?

Thank-you very much.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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
-~--~~~~--~~--~--~---



[android-developers] Rebuilding the SDK

2008-12-02 Thread ChoboMuffin

I have recently started some work on the Android SDK. (I know maybe I
should have posted to android-internals but could not seem to post
there for some reason). Is there any documentation or guides for
making changes to the SDK? I find everytime I make a change I have to
rebuild the entire SDK in order to test it, is this correct?

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



[android-developers] How to enable / disable Bluetooth

2008-12-02 Thread RM

Hi folks,

I'm writing an app that will, among other things, disable Bluetooth.
To do this, I've set the android.permission.BLUETOOTH_ADMIN, and
inside an onClick() listener I'm using the following:

  Settings.System.putInt(getContentResolver(),
Settings.System.BLUETOOTH_ON, 0);

However, this does nothing on the actual phone.

Further, using the corresponding getInt() function to readback the
status crashes the app:

  Settings.System.getInt(PowerProfile.this.getContentResolver(),
Settings.System.BLUETOOTH_ON, btStatus);

Can someone guide me as to what is wrong, and/or what is the proper
way to enable/disable Bluetooth?

Many thanks,
RM

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google 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
-~--~~~~--~~--~--~---



[android-developers] Re: ListActivity and progressbars?

2008-12-02 Thread Will Ryan

I also experienced a similar problem. This was resolved when I made
sure that the root activity was calling

 setProgressBarIndeterminateVisibility(true);

If you try to call this from Activities that have been loaded into
tabs for example (where the tabs are created as a separate Activity),
I found that it had no effect.

Maybe this will resolve the problem.

Will

On Nov 17, 1:06 pm, Guillaume Perrot [EMAIL PROTECTED]
wrote:
 Your code is quite strange because when you perform UI operations, it has to
 be on the main thread, so you normally have to use an Handler to post
 actions on the UI thread when you are in another thread.
 I am surprised it works.
 Plus I checked your CategoryList.java at google code, I didn't find any line
 related to the progress bar.

 2008/11/17 Randy McEoin [EMAIL PROTECTED]



  When I implemented a progress bar I had to place the processing I
  needed within a thread.  It looked something like the following:

        setProgressBarIndeterminateVisibility(true);

         myThread = new Thread(new Runnable() {
                 public void run() {
                         doProcessing();
                         setProgressBarIndeterminateVisibility(false);
                         }
                 });
         myThread.start();

  For full sourcehttp://code.google.com/p/android-passwordsafe/and
  look at CategoryList.java

  If I understand this all correctly, the reason your progress bar
  wasn't displayed was because your program was too busy doing the
  processing.  Thus the need for a thread.

  Randy



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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
-~--~~~~--~~--~--~---



[android-developers] Re: Rebuilding the SDK

2008-12-02 Thread Jean-Baptiste Queru

The list you're looking for is probably android-platform.

JBQ

On Mon, Dec 1, 2008 at 6:04 PM, ChoboMuffin [EMAIL PROTECTED] wrote:

 I have recently started some work on the Android SDK. (I know maybe I
 should have posted to android-internals but could not seem to post
 there for some reason). Is there any documentation or guides for
 making changes to the SDK? I find everytime I make a change I have to
 rebuild the entire SDK in order to test it, is this correct?

 


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



[android-developers] Re: Running java native programs on android

2008-12-02 Thread Ralf

Would you like to elaborate what you mean by native java?

If by native java you mean Java byte-code (as opposed to dalvik),
not directly, although you can use convert the .class to .dex before
packaging them into an apk.

If by native java you mean a desktop java app using another UI kit,
definitely no.

R/

On Mon, Dec 1, 2008 at 1:10 PM, bigauto [EMAIL PROTECTED] wrote:

 Is there a way I can a native java program on the android phone?

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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
-~--~~~~--~~--~--~---



[android-developers] Re: Error generating final archive: null

2008-12-02 Thread Ralf

Could you give us a bit more details?
- Which number is the ADT plugin ? (eclipse  help  about eclipse  plugins)
- What are the exact steps you do to get this error? E.g. right-click
and context menu somewhere, and are you clicking one of the links or
buttons and which view is currently open.

Thanks in advance,
R/

On Tue, Nov 18, 2008 at 7:16 PM, Alam [EMAIL PROTECTED] wrote:

 When I save the manifest file I get

 [2008-11-18 22:13:18 - DeleteMe] Error generating final archive: null

 I am using Eclipse Ganymede on Ubuntu 8.04.
 Any ideas why I am getting this error.

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



[android-developers] Re: Music file format supported by Android

2008-12-02 Thread Dave Sparks

MP3 (CBR and VBR up to 320Kbps), M4A (AAC LC, AAC, AAC+, enhanced AAC
+), OGG, 3GP (AMR-NB and AMR-WB), WAVE (8/16-bit PCM) and MIDI
(SMF0/1, XMF0/1, RTTTL/RTX, OTA, iMelody).

On Dec 2, 12:14 am, Jatin [EMAIL PROTECTED] wrote:
 Hello,
  Can u please let me know the list of the Music file format supported
 by Android and the Music Player supported by Android.

 Thanks,
 Jatin
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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
-~--~~~~--~~--~--~---



[android-developers] Re: Error generating final archive: null

2008-12-02 Thread Xavier Mathews
Can You Provide Us With A Link Or Error MSG? Plug in Maker Or Add-on Maker
And Tell You Exactly What You Did When Saving And Where You Archived It!

Thank You!

Xavier A. Mathews
Student/Browser Specialist/Developer/Web-Master
Google Group Client Based Tech Support Specialist
Hazel Crest Illinois
[EMAIL PROTECTED]@[EMAIL PROTECTED]
Fear of a name, only increases fear of the thing itself.










On Tue, Dec 2, 2008 at 12:23 PM, Ralf [EMAIL PROTECTED] wrote:


 Could you give us a bit more details?
 - Which number is the ADT plugin ? (eclipse  help  about eclipse 
 plugins)
 - What are the exact steps you do to get this error? E.g. right-click
 and context menu somewhere, and are you clicking one of the links or
 buttons and which view is currently open.

 Thanks in advance,
 R/

 On Tue, Nov 18, 2008 at 7:16 PM, Alam [EMAIL PROTECTED] wrote:
 
  When I save the manifest file I get
 
  [2008-11-18 22:13:18 - DeleteMe] Error generating final archive: null
 
  I am using Eclipse Ganymede on Ubuntu 8.04.
  Any ideas why I am getting this error.
 
  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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Fast Scroll drag handle similar to Contacts ListView

2008-12-02 Thread Romain Guy

Hi,

The FastScrollView is currently implemented in the Contacts
application itself. It will be part of a future SDK update though.

You can find the current implementation in the source code at
http://source.android.com

On Tue, Dec 2, 2008 at 4:48 AM, Will Ryan [EMAIL PROTECTED] wrote:

 I have a ListView which contains over a thousand entries (sorted from
 A to Z) and want to know how to scroll this quickly similar to how the
 Contacts list can be scrolled quickly (by dragging the handle that
 appears on the right hand side of the screen).

 How can this be achieved? Is it an option for the view, or do I have
 to implement it? Alternatively, is it possible to see the source of
 the Contacts ListView as I could probably reuse that.

 Thanks.

 




-- 
Romain Guy
www.curious-creature.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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Android on iPhone

2008-12-02 Thread Michael

On Dec 1, 10:37 pm, Swapnil Android [EMAIL PROTECTED] wrote:
 but the question is still unanswered,

 will ANDROID run on iPhone or iPod Touch

If you look in the link posted ( 
http://linuxoniphone.blogspot.com/2008/11/linux-on-iphone.html
) you will see that they are asking for help porting Android there.
So at this point, I'd assume not.  Contact the people who ported Linux
to it for more information - we don't have anything further here.

 - michael
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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
-~--~~~~--~~--~--~---



[android-developers] Re: ice-e on Android?

2008-12-02 Thread Michael

On Dec 2, 12:44 pm, Xavier Mathews [EMAIL PROTECTED] wrote:
 But Keep In Mind There Are Diffrent Java's One Of Them May Work i.e If
 Compatiable It Is Need To Match The API i.e And What Ever Format But
 Android Has It Own Interface So When It Come Down To It You Can
 Try But It May Not Work!

No, you don't seem to understand.  Android cannot run compiled class
files from any java without having them be converted to the Dalvik
format, since it runs everything in the Dalvik virtual machine.  And
this only really works for libraries.

Ultimately, you wouldn't have a working application unless you write
it specifically for the Android SDK.

- michael
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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
-~--~~~~--~~--~--~---



[android-developers] Re: Is it possible to use c/c++ shared object using android application

2008-12-02 Thread Fred Grott(shareme)

And most of the answers to these questions are found by using the
search function on google groups..

On Dec 2, 4:57 am, Ludwig [EMAIL PROTECTED] wrote:
 No, native code is not supported ATM.This question has been asked a quite a
 few times in recent days and I would not expect the answer to change any
 time soon.

 Ludwig

 2008/12/2 Chandrakar Aravind-rqj386 [EMAIL PROTECTED]

    Hi,

  I am quite new to android, I have one query is it possible to use C/C++
  shared object using android application.

  Thanks in Advance

   Arvind
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google 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
-~--~~~~--~~--~--~---



[android-developers] Re: ice-e on Android?

2008-12-02 Thread Xavier Mathews

So Even If He Writes It Still Won't Run The Java Right?

On 12/02/2008, Michael [EMAIL PROTECTED] wrote:

 On Dec 2, 12:44 pm, Xavier Mathews [EMAIL PROTECTED] wrote:
 But Keep In Mind There Are Diffrent Java's One Of Them May Work i.e If
 Compatiable It Is Need To Match The API i.e And What Ever Format But
 Android Has It Own Interface So When It Come Down To It You Can
 Try But It May Not Work!

 No, you don't seem to understand.  Android cannot run compiled class
 files from any java without having them be converted to the Dalvik
 format, since it runs everything in the Dalvik virtual machine.  And
 this only really works for libraries.

 Ultimately, you wouldn't have a working application unless you write
 it specifically for the Android SDK.

 - michael
 



-- 
Xavier A. Mathews
Student/Browser Specialist/Developer/Web-Master
Google Group Client Based Tech Support Specialist
Hazel Crest Illinois
[EMAIL PROTECTED]@[EMAIL PROTECTED]
Fear of a name, only increases fear of the thing itself.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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
-~--~~~~--~~--~--~---



[android-developers] Re: ice-e on Android?

2008-12-02 Thread Michael


Go look at what ice-e is - it's a framework for writing Java
applications to run on mobile platforms.  Android is not supported by
it right now, so the answer to the original question is no.

If he writes his app in Java *using the Android SDK*, then obviously
it will run on Android.

- michael
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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
-~--~~~~--~~--~--~---



[android-developers] Re: ListActivity and progressbars?

2008-12-02 Thread Guillaume Perrot
Yes, window features can only be set in a root activity.

2008/12/2 Will Ryan [EMAIL PROTECTED]


 I also experienced a similar problem. This was resolved when I made
 sure that the root activity was calling

  setProgressBarIndeterminateVisibility(true);

 If you try to call this from Activities that have been loaded into
 tabs for example (where the tabs are created as a separate Activity),
 I found that it had no effect.

 Maybe this will resolve the problem.

 Will

 On Nov 17, 1:06 pm, Guillaume Perrot [EMAIL PROTECTED]
 wrote:
  Your code is quite strange because when you perform UI operations, it has
 to
  be on the main thread, so you normally have to use an Handler to post
  actions on the UI thread when you are in another thread.
  I am surprised it works.
  Plus I checked your CategoryList.java at google code, I didn't find any
 line
  related to the progress bar.
 
  2008/11/17 Randy McEoin [EMAIL PROTECTED]
 
 
 
   When I implemented a progress bar I had to place the processing I
   needed within a thread.  It looked something like the following:
 
 setProgressBarIndeterminateVisibility(true);
 
  myThread = new Thread(new Runnable() {
  public void run() {
  doProcessing();
  setProgressBarIndeterminateVisibility(false);
  }
  });
  myThread.start();
 
   For full sourcehttp://code.google.com/p/android-passwordsafe/and
   look at CategoryList.java
 
   If I understand this all correctly, the reason your progress bar
   wasn't displayed was because your program was too busy doing the
   processing.  Thus the need for a thread.
 
   Randy
 
 

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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
-~--~~~~--~~--~--~---



[android-developers] Re: 2D over 3D

2008-12-02 Thread Robert Green

You can just do one square billboard positioned such that it is
directly in front of the frustum.  The texture can be transparent and
you just draw what you want to have show up.  That will be only 2
additional polys for the 2D.

On Dec 2, 9:56 am, fcalzada [EMAIL PROTECTED] wrote:
 Yes i thought about it, but it's gonna take some 3d resources... and
 my application is already quite heavy in vertices number

 On Dec 2, 3:51 pm, Robert Green [EMAIL PROTECTED] wrote:

  In desktop 3D stuff I've always just created billboards and drawn to
  the textures for them.  I'm sure this same technique would work.

  On Dec 2, 4:29 am, fcalzada [EMAIL PROTECTED] wrote:

   Hi,

   I'm having the same issue, I tried hard but without success.
   Did you find a workaround ?

   thanks

   On Nov 20, 1:57 pm, petunio [EMAIL PROTECTED] wrote:

Hi

I am porting an application based on the sdk 3.0, and I am having
countless problems...

now, I am struggling trying to put 2D graphics on top of a 3D scene...

After a lot of headache, I managed to create a opengl context, which
now works, but when I try to put 2D graphics on top of it, this is
what happens:

public void drawFrame(GL10 gl)
{
                //view is a SurfaceView, and the value is not null !
                mySurfaceHolder=view.getSurfaceHolder();

                Canvas c=mySurfaceHolder.lockCanvas();

                //this is where I wanted to place my 2D drawing, but
after the above line, this is
                //what I got in the Log:
//11-20 12:52:02.508: ERROR/SurfaceComposerClient(490): eLocked set
when entering lock_layer(), //layer=1 (lcblk=0x410420a0),
state=0020
//11-20 12:52:02.598: ERROR/SurfaceHolder(490): Exception locking
surface

                mySurfaceHolder.unlockCanvasAndPost(c);

}

Any help would be very appreciated

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



[android-developers] Re: strang error with aapt on 1.0 SDK on unbuntu 8.04

2008-12-02 Thread Ralf

Would you like to elaborate?
- Could you tell us what command you are executing, in which context
(command line ant or eclipse?)
- Could you give us the exact output generated?

R/

On Sun, Nov 30, 2008 at 10:34 PM, Clay [EMAIL PROTECTED] wrote:

 its very strange.

 basically I get a No such file or directory error message, but the
 file is clearly there when I do an ls.

 any ideas?

 Clay


 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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
-~--~~~~--~~--~--~---



[android-developers] Re: insert the data in the Sqlite Database

2008-12-02 Thread Robert Green

Or you can use the provider example that the NotePad app shows.  I'm
using it and it didn't take me longer than an hour to get in.

On Dec 2, 11:40 am, NuuNeoI [EMAIL PROTECTED] wrote:
 You may forget Double Quote

 String strsql=INSERT TABLE DataTable(Name,Mobile,City) VALUES (\+
 Iname +\,\+ Imob +\,\+ Icity +\);

 On Dec 2, 6:11 pm, Rahul [EMAIL PROTECTED] wrote:

  i want to insert data in the database of Android Application i create
  this code

          String Iname=EtName.getText().toString();
          String Imob=EtMob.getText().toString();
          String Icity=EtCity.getText().toString();

                          String strsql=INSERT TABLE 
  DataTable(Name,Mobile,City) VALUES (+
  Iname +,+ Imob +,+ Icity +);
               DB.execSQL(strsql);

  but it shows following error

  12-02 16:37:59.460: ERROR/Database(370): Failure 21 (out of memory) on
  0x0 when preparing 'INSERT TABLE DataTable(Name,Mobile,City) VALUES
  (sad,732,asd)'.
  12-02 16:38:00.481: ERROR/Exception on query:-(370):
  android.database.sqlite.SQLiteException: unknown error: INSERT TABLE
  DataTable(Name,Mobile,City) VALUES (sad,732,asd)
  i dont undestand this error
  so plz any one help me .


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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
-~--~~~~--~~--~--~---



[android-developers] Re: Console program with service without actuvity

2008-12-02 Thread Ralf

On Sun, Nov 30, 2008 at 9:57 PM, sal123 [EMAIL PROTECTED] wrote:

 Hi All,

 1. may i know the steps to invoke executable from adb shell.
 2. do u mean,  we cannot have applications in android without activity
 class or without subclass of activity

 my intention is to build a engine which keeps on running in background
 without any foreground task . it would be better if you could point me
 to such an example

What you want is a Service.
http://code.google.com/android/reference/android/app/Service.html

R/


 Thanks


 On Nov 29, 4:12 pm, freepine [EMAIL PROTECTED] wrote:
 You can invoke your app in adb shell after pushing the executables into the
 image. But as we are told again and again, android doesn't support native
 code development:)



 On Thu, Nov 27, 2008 at 6:51 PM, sal123 [EMAIL PROTECTED] wrote:

  Hi All,

  Can anyone tell me if there is anyway to run console programs in
  android , i mean can i run app with just a service without any
  activity . and if there is some way then let me know how can i invoke
  the program from emulator.

  Thanks and regards
  Suhail- 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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Media Player Error -38,0

2008-12-02 Thread Peter Jeffe

On Dec 1, 6:12 am, David Given [EMAIL PROTECTED] wrote:
 This is the generic 'I'm confused, help me' error code. -38 corresponds
 in the source code to 'unknown error'. It seems to appear for a whole

Any idea what the -17 error from MediaPlayer means?  It occurs when
I'm streaming mp3s, and then every song thereafter gets it.  Errors.h
says it's ALREADY_EXISTS (-EEXIST), and I can see where
AudioFlinger::addTrack() returns it if the track is already in
mActiveTracks, but I can't see why that would be the case.  I'm not
trying to open the same stream twice, and even if I was that shouldn't
be an error, should it?

-- Peter
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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
-~--~~~~--~~--~--~---



[android-developers] Re: how/where to create a custom icon for my application...?

2008-12-02 Thread DMT

Thanks. Just tried it. Works.


On Nov 30, 6:00 pm, lior [EMAIL PROTECTED] wrote:
 Not sure about the market.. but to replace the default icon of your
 app.
 place your new image at /app name/res/drawable
 and update the AndroidManifest.xml file to point to your new file.

 application android:icon=@drawable/your new file ...

 try it out.

 Lior

 On Nov 29, 10:19 pm, DMT [EMAIL PROTECTED] wrote:

  Anyone know how/where to create a custom icon for an Android app (the
  image that appears in the Phone display immediately to the left of the
  the app name) in the Android Market?
  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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Running java native programs on android

2008-12-02 Thread bigauto

I wrote a java program before using eclipse with a user interface
using jframe. I was wondering if I can get it to run on the android as
well?

On Dec 2, 1:09 pm, Ralf [EMAIL PROTECTED] wrote:
 Would you like to elaborate what you mean by nativejava?

 If by nativejava you meanJavabyte-code (as opposed to dalvik),
 not directly, although you can use convert the .class to .dex before
 packaging them into an apk.

 If by nativejava you mean a desktopjavaapp using another UI kit,
 definitely no.

 R/

 On Mon, Dec 1, 2008 at 1:10 PM, bigauto [EMAIL PROTECTED] wrote:

  Is there a way I can anativejavaprogram on theandroidphone?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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
-~--~~~~--~~--~--~---



[android-developers] Re: Running java native programs on android

2008-12-02 Thread Romain Guy

No, Swing is not available on Android.

On Tue, Dec 2, 2008 at 12:02 PM, bigauto [EMAIL PROTECTED] wrote:

 I wrote a java program before using eclipse with a user interface
 using jframe. I was wondering if I can get it to run on the android as
 well?

 On Dec 2, 1:09 pm, Ralf [EMAIL PROTECTED] wrote:
 Would you like to elaborate what you mean by nativejava?

 If by nativejava you meanJavabyte-code (as opposed to dalvik),
 not directly, although you can use convert the .class to .dex before
 packaging them into an apk.

 If by nativejava you mean a desktopjavaapp using another UI kit,
 definitely no.

 R/

 On Mon, Dec 1, 2008 at 1:10 PM, bigauto [EMAIL PROTECTED] wrote:

  Is there a way I can anativejavaprogram on theandroidphone?
 




-- 
Romain Guy
www.curious-creature.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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: 2D over 3D

2008-12-02 Thread Dianne Hackborn
Or follow the SurfaceView Overlay API Demo.

http://code.google.com/android/samples/ApiDemos/src/com/example/android/apis/graphics/

On Tue, Dec 2, 2008 at 11:11 AM, Robert Green [EMAIL PROTECTED] wrote:


 You can just do one square billboard positioned such that it is
 directly in front of the frustum.  The texture can be transparent and
 you just draw what you want to have show up.  That will be only 2
 additional polys for the 2D.

 On Dec 2, 9:56 am, fcalzada [EMAIL PROTECTED] wrote:
  Yes i thought about it, but it's gonna take some 3d resources... and
  my application is already quite heavy in vertices number
 
  On Dec 2, 3:51 pm, Robert Green [EMAIL PROTECTED] wrote:
 
   In desktop 3D stuff I've always just created billboards and drawn to
   the textures for them.  I'm sure this same technique would work.
 
   On Dec 2, 4:29 am, fcalzada [EMAIL PROTECTED] wrote:
 
Hi,
 
I'm having the same issue, I tried hard but without success.
Did you find a workaround ?
 
thanks
 
On Nov 20, 1:57 pm, petunio [EMAIL PROTECTED] wrote:
 
 Hi
 
 I am porting an application based on the sdk 3.0, and I am having
 countless problems...
 
 now, I am struggling trying to put 2D graphics on top of a 3D
 scene...
 
 After a lot of headache, I managed to create a opengl context,
 which
 now works, but when I try to put 2D graphics on top of it, this is
 what happens:
 
 public void drawFrame(GL10 gl)
 {
 //view is a SurfaceView, and the value is not null
 !
 mySurfaceHolder=view.getSurfaceHolder();
 
 Canvas c=mySurfaceHolder.lockCanvas();
 
 //this is where I wanted to place my 2D drawing,
 but
 after the above line, this is
 //what I got in the Log:
 //11-20 12:52:02.508: ERROR/SurfaceComposerClient(490): eLocked set
 when entering lock_layer(), //layer=1 (lcblk=0x410420a0),
 state=0020
 //11-20 12:52:02.598: ERROR/SurfaceHolder(490): Exception locking
 surface
 
 mySurfaceHolder.unlockCanvasAndPost(c);
 
 }
 
 Any help would be very appreciated
 
 Thanks!
 
 
 



-- 
Dianne Hackborn
Android framework engineer
[EMAIL PROTECTED]

Note: please don't send private questions to me, as I don't have time to
provide private support.  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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Starting an activity with FLAG_ACTIVITY_MULTIPLE_TASK

2008-12-02 Thread Dianne Hackborn
You need to at least post the stack crawl of the error.

On Tue, Dec 2, 2008 at 4:57 AM, RoadRunner.Android
[EMAIL PROTECTED]wrote:


 I am writing an application in which I want the activity to a new
 instance everytime it is executed, so I am applying
 FLAG_ACTIVITY_MULTIPLE_TASK in conjuction with FLAG_ACTIVITY_NEW_TASK
 in the Intent that triggers the activity. But I soon as I execute the
 application, I get an Force Closed dialog box. Can anyone help me
 out or tell a better way to achieve the required task?

 Thank-you very much.


 



-- 
Dianne Hackborn
Android framework engineer
[EMAIL PROTECTED]

Note: please don't send private questions to me, as I don't have time to
provide private support.  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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Wifi Ip Address

2008-12-02 Thread Andrea

Ralf: Yes, I need to know it programmatically because I have to accept
incoming connections on my phone.

On Dec 2, 7:11 pm, Ralf [EMAIL PROTECTED] wrote:
 On the device, go to the wifi settings and select the connected wifi
 network. It will show you its IP address.

 If you mean programmatically, sorry, I do not know.

 R/

 On Mon, Dec 1, 2008 at 2:49 AM, Andrea [EMAIL PROTECTED] wrote:

  How can I get the Ip address assigned by a WiFi network to which my
  device is connected?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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
-~--~~~~--~~--~--~---



[android-developers] Re: Loading a bitmap from a byte buffer

2008-12-02 Thread Dianne Hackborn
If that's the case, then this discussion shouldn't be on android-developers,
which is for developing with the SDK.  Let's move it to one of the open
source platform groups.

On Tue, Dec 2, 2008 at 1:00 AM, Koush [EMAIL PROTECTED] wrote:


 Dianne Hackborn: I am asking this in the context of how to create a
 screenshot application. Taking screenshots is not possible on the G1
 anyways, because reading from /dev/graphics/fb0 is only available to
 root and shell and not available to actual applications. Thus is only
 works on hacked phones. So you're asking me to not do something, when
 I'm well past the line of things I should not be doing. :)
 Incidentally, the inability to take a simple screenshot of what is on
 your phone is a pretty significant oversight (you're not going to
 always be hooked up to a PC with the SDK/DDMS tool at your disposal).

 John Spurlock: Decode byte array is for compressed byte arrays, such
 as PNGs and JPG.
 I am basically trying to copy directly into the pixel buffer.

 On Dec 1, 3:34 pm, John Spurlock [EMAIL PROTECTED] wrote:
  BitmapFactory.decodeByteArray ?
 
  http://code.google.com/android/reference/android/graphics/BitmapFacto...
 
  On Dec 1, 5:58 pm, Koush [EMAIL PROTECTED] wrote:
 
   I inspected Bitmap.cpp and found this function:
 
   static jboolean Bitmap_writeToParcel(JNIEnv* env, jobject,
const SkBitmap* bitmap,
jboolean isMutable, jobject
   parcel) {
   if (parcel == NULL) {
   SkDebugf(--- writeToParcel null parcel\n);
   return false;
   }
 
   android::Parcel* p = android::parcelForJavaObject(env, parcel);
 
   p-writeInt32(isMutable);
   p-writeInt32(bitmap-config());
   p-writeInt32(bitmap-width());
   p-writeInt32(bitmap-height());
   p-writeInt32(bitmap-rowBytes());
 
   if (bitmap-getConfig() == SkBitmap::kIndex8_Config) {
   SkColorTable* ctable = bitmap-getColorTable();
   if (ctable != NULL) {
   int count = ctable-count();
   p-writeInt32(count);
   memcpy(p-writeInplace(count * sizeof(SkPMColor)),
  ctable-lockColors(), count * sizeof(SkPMColor));
   ctable-unlockColors(false);
   } else {
   p-writeInt32(0);   // indicate no ctable
   }
   }
 
   size_t size = bitmap-getSize();
   bitmap-lockPixels();
   memcpy(p-writeInplace(size), bitmap-getPixels(), size);
   bitmap-unlockPixels();
   return true;
 
   }
 
   I can manually marshal a Bitmap parcel in the proper format, and then
   append the custom byte buffer, and then use createFromParcel to create
   a bitmap. That gets me indirect access to creating a bitmap directly
   from a byte buffer. It's a bit of a hack obviously, and not ideal. Is
   there a better way to do this?
 
   On Dec 1, 2:41 pm, Koush [EMAIL PROTECTED] wrote:
 
I'm trying to populate a create a bitmap from something other than an
RGBA int array.
However, the Bitmap creation overloads only take int arrays as
 inputs.
 
In particular, I have a byte buffer that is in the R5G6B5 format that
I want to load directly into a bitmap. The format is supposedly
supported internally, but I can't figure out how to create the bitmap
without doing the R5G6B5 to A8R8G8B8 conversion first.
 



-- 
Dianne Hackborn
Android framework engineer
[EMAIL PROTECTED]

Note: please don't send private questions to me, as I don't have time to
provide private support.  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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Getting information from the Internet

2008-12-02 Thread loty

Yes Xavier,
Please stop posting if you have nothing of substance to say.

On Dec 2, 12:21 pm, Xavier Mathews [EMAIL PROTECTED] wrote:
 YOU NEED TO GO FIND YOU SOME BUSINESS.

 On 12/02/2008, Xavier Mathews [EMAIL PROTECTED] wrote:



  Thats Nice.

  On 12/02/2008, Michael [EMAIL PROTECTED] wrote:

  Heh.  Clearly a troll.

  --
  Xavier A. Mathews
  Student/Browser Specialist/Developer/Web-Master
  Google Group Client Based Tech Support Specialist
  Hazel Crest Illinois
  [EMAIL PROTECTED]@[EMAIL PROTECTED]
  Fear of a name, only increases fear of the thing itself.

 --
 Xavier A. Mathews
 Student/Browser Specialist/Developer/Web-Master
 Google Group Client Based Tech Support Specialist
 Hazel Crest Illinois
 [EMAIL PROTECTED]@[EMAIL PROTECTED]
 Fear of a name, only increases fear of the thing itself.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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
-~--~~~~--~~--~--~---



[android-developers] Re: com.google.wireless.gdata

2008-12-02 Thread loty

I'm also very much interested in these libraries. Can someone from
Google enlighten us on when if ever these libraries become available
again.

On Dec 1, 11:27 pm, AndroidEngineer [EMAIL PROTECTED] wrote:
 Howcome com.google.wireless.gdata and com.google.android.gdata have
 been removed from the 1.0 r1 library. I see these packages in 0.9 and
 previous versions but not in 1.0. What is the reason behind removing
 the libraries? From what I've seen, they seem to be very useful
 libraries.

 Please give me heads up. I am trying to write an application to access
 google calendar and its events.

 Thanks.

 Android Engineer
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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
-~--~~~~--~~--~--~---



[android-developers] Re: unknown socket error -1

2008-12-02 Thread strazzere

Sal,

Just figured I'd post this here since it might become relevant for
you. If you come across the error:

12-01 18:27:52.175: WARN/System.err(764):
java.net.UnknownHostException: Host is unresolved: www.strazzere.com:80

This exception was thrown whenever .connect() or .getOutputStream()
where called.

Obviously www.strazzere.com is just an example, but you might find
that a known and resolvable host is getting the exception thrown, the
trick is to restart the emulator. It seems to lose something if you
change network connections or go in/come out of hibernation mode.

Sorry if this seems off topic, but I wasn't able to find a solution to
my problem yesterday so I figured I'd post this here!

Best of luck,

-Tim Strazzere

On Dec 2, 4:21 am, sal [EMAIL PROTECTED] wrote:
 Hi,

 Thanks for your concern,

 The problem with socketException got solved by putting INTERNET
 permission in manifest.xml file.

 But now i am encountering a new problem as follows

 i have created Serversocket as follows

 ServerSocket clientListenerSocket = new ServerSocket();

 But i dont see  port#  being in listening state when i do netstat
 -a on windows XP machine.Strange part is its not generating any
 exception. because of this client is unable to connect to this port

 I guess host OS is not allowing to allocate these ports. i would like
 to know what could be the other reasons for this particular problem.
 and what is the procedure to find free ports on Windows XP machine.

 Thanks

 On Dec 1, 7:58 pm, Huebi [EMAIL PROTECTED] wrote:

  You need to add the INTERNET permission to your app in the Manifest.
  That should solve the issue

  On 1 Dez., 15:27, sal [EMAIL PROTECTED] wrote:

   1. Can anyone point me to simple TCP client/server program on
   android ??

   2. Whenever i try to create socket with port and IPaddress i get
   IOException which points to a SocketException which gives a message
   unknown socket error -1 , it would be nice if someone could tell the
   root cause for this problem. i guess this is something to do with TCP
   settings of emulator.

   3. Do we need to have any configuration changes to Emulator or
   androidmanifest.xml file to eliminate this problem ?

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



[android-developers] my PacMan version released

2008-12-02 Thread Andrea

Dear members,

I've just published my Pacman version on AndAppstore.com and on
SlideMe.org . It is still under development, so please test and report
me bugs, comments and whatever you think maybe useful. I'm developing
with the emulator and i have never tested it on a real device because
i don't have one.

You can get the .apk here:
http://andappstore.com/AndroidPhoneApplications/apps/18740
http://slideme.org/application/testme-pacman

I hope you enjoy.
Andrea Paiano
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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
-~--~~~~--~~--~--~---



[android-developers] Re: Getting information from the Internet

2008-12-02 Thread Xavier Mathews

It Was Of Substance! So...

On 12/02/2008, loty [EMAIL PROTECTED] wrote:

 Yes Xavier,
 Please stop posting if you have nothing of substance to say.

 On Dec 2, 12:21 pm, Xavier Mathews [EMAIL PROTECTED] wrote:
 YOU NEED TO GO FIND YOU SOME BUSINESS.

 On 12/02/2008, Xavier Mathews [EMAIL PROTECTED] wrote:



  Thats Nice.

  On 12/02/2008, Michael [EMAIL PROTECTED] wrote:

  Heh.  Clearly a troll.

  --
  Xavier A. Mathews
  Student/Browser Specialist/Developer/Web-Master
  Google Group Client Based Tech Support Specialist
  Hazel Crest Illinois
  [EMAIL PROTECTED]@[EMAIL PROTECTED]
  Fear of a name, only increases fear of the thing itself.

 --
 Xavier A. Mathews
 Student/Browser Specialist/Developer/Web-Master
 Google Group Client Based Tech Support Specialist
 Hazel Crest Illinois
 [EMAIL PROTECTED]@[EMAIL PROTECTED]
 Fear of a name, only increases fear of the thing itself.
 



-- 
Xavier A. Mathews
Student/Browser Specialist/Developer/Web-Master
Google Group Client Based Tech Support Specialist
Hazel Crest Illinois
[EMAIL PROTECTED]@[EMAIL PROTECTED]
Fear of a name, only increases fear of the thing itself.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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
-~--~~~~--~~--~--~---



[android-developers] Re: HTTP compression lost when using 3G connection

2008-12-02 Thread Eric Mill

There's an issue where downloading small files (such as small 20Kish
apps) get corrupted over 3G, but not wifi, that this is certainly
related to.  If you've ever downloaded an app, and it says that it
wants to replace Android System, that's the bug, and I now blame T-
Mobile (as opposed to Google) for it.

-- Eric

On Nov 25, 1:58 pm, Jean-Baptiste Queru [EMAIL PROTECTED] wrote:
 It's actually not uncommon in the cell world to turn off compression
 on the public Internet, so that the proxy can have an easier time
 looking at the data and processing it to send it over the air (where
 it is compressed), i.e. trading Internet bandwidth for some CPU time
 on the proxy.

 JBQ

 On Tue, Nov 25, 2008 at 10:53 AM, melody [EMAIL PROTECTED] wrote:

  Thanks. I ran the test in the emulator, and the http compression was
  kept.  So this does indeed seem to be a problem being caused by a
  proxy at T-Mobile.

  Not to be overly dramatic, but isn't this a pretty serious issue?  I
  would think that under 3G, T-Mobile would very much want us all to be
  using HTTP compression so that we don't flood their network.  Even on
  my home broadband connection, when I turn off http compression in my
  browser to do testing work, most websites load much more slowly,
  especially with the massive css/js files being transmitted these
  days.

  Something else that may or may not be related:
  I noticed that the T-Mobile proxy is also converting my http request
  to a HTTP 1.0 request, whereas I am actually trying to send a HTTP
  1.1 request.

  David Turner wrote:
  The best way to test this is try to run your test from the emulator, since
  the browser
  wouldn't then use an intermediate T-Mobile proxy.

  On Tue, Nov 25, 2008 at 12:27 AM, melody [EMAIL PROTECTED] wrote:

   I've been working on improving the speed of my application and noticed
   that when I turn off wifi and use the 3G connection, http requests no
   longer use http compression.

   Specifically, when using the 3G connection, the Accept-Encoding
   header (which I have set to gzip, deflate) are stripped off before
   the request arrives at my server.  I tested this with the HttpClient
   class, and with my own custom http client through java.net.Socket.

   I then also verified this using the native android web browser.  With
   wifi turned on, my server recieves a header Accept-Encoding: gzip.
   With wifi turned off, and using the 3G connection, my server does not
   receive that header.

   I initially thought this might be an intentional behavior as part of
   3G connections, but then I tested it with a 3G iphone (on ATT), and
   there was no such problem there.  So I'm guessing it's a problem
   specific to T-Mobile.  i wonder if there is some proxy that is
   intentionally stripping out this header.

   I'd appreciate any advice about this.  For an XML-based web service
   like mine where the response data has a high compression ratio, this
   behavior causes a significant speed hit.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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
-~--~~~~--~~--~--~---



[android-developers] Re: G1 Linux

2008-12-02 Thread Eric Mill

This has been an awesome thread.

On Dec 1, 5:33 pm, Xavier Mathews [EMAIL PROTECTED] wrote:
 So that means the G1 Does!

 Xavier A. Mathews
 Student/Browser Specialist/Developer/Web-Master
 Google Group Client Based Tech Support Specialist
 Hazel Crest Illinois
 [EMAIL PROTECTED]@[EMAIL PROTECTED]
 Fear of a name, only increases fear of the thing itself.

 On Mon, Dec 1, 2008 at 4:31 PM, Jean-Baptiste Queru [EMAIL PROTECTED] wrote:

  Android is and has always been built on top of Linux.

  JBQ

  On Mon, Dec 1, 2008 at 2:30 PM, Xavier Live Tech.S
  [EMAIL PROTECTED] wrote:

   Will G1 be running Linux like Iphone anytime soon?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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
-~--~~~~--~~--~--~---



[android-developers] Re: G1 Linux

2008-12-02 Thread Xavier Mathews

Why Did You Say That?

On 12/02/2008, Eric Mill [EMAIL PROTECTED] wrote:

 This has been an awesome thread.

 On Dec 1, 5:33 pm, Xavier Mathews [EMAIL PROTECTED] wrote:
 So that means the G1 Does!

 Xavier A. Mathews
 Student/Browser Specialist/Developer/Web-Master
 Google Group Client Based Tech Support Specialist
 Hazel Crest Illinois
 [EMAIL PROTECTED]@[EMAIL PROTECTED]
 Fear of a name, only increases fear of the thing itself.

 On Mon, Dec 1, 2008 at 4:31 PM, Jean-Baptiste Queru [EMAIL PROTECTED]
 wrote:

  Android is and has always been built on top of Linux.

  JBQ

  On Mon, Dec 1, 2008 at 2:30 PM, Xavier Live Tech.S
  [EMAIL PROTECTED] wrote:

   Will G1 be running Linux like Iphone anytime soon?
 



-- 
Xavier A. Mathews
Student/Browser Specialist/Developer/Web-Master
Google Group Client Based Tech Support Specialist
Hazel Crest Illinois
[EMAIL PROTECTED]@[EMAIL PROTECTED]
Fear of a name, only increases fear of the thing itself.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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
-~--~~~~--~~--~--~---



[android-developers] Re: G1 Linux

2008-12-02 Thread Dianne Hackborn
Because He Was Enthralled By The Awesomeness Of It, Like I Am Too.  It Is
Awesome!

On Tue, Dec 2, 2008 at 2:20 PM, Xavier Mathews [EMAIL PROTECTED]wrote:


 Why Did You Say That?

 On 12/02/2008, Eric Mill [EMAIL PROTECTED] wrote:
 
  This has been an awesome thread.
 
  On Dec 1, 5:33 pm, Xavier Mathews [EMAIL PROTECTED] wrote:
  So that means the G1 Does!
 
  Xavier A. Mathews
  Student/Browser Specialist/Developer/Web-Master
  Google Group Client Based Tech Support Specialist
  Hazel Crest Illinois
  [EMAIL PROTECTED]@[EMAIL PROTECTED]
  Fear of a name, only increases fear of the thing itself.
 
  On Mon, Dec 1, 2008 at 4:31 PM, Jean-Baptiste Queru [EMAIL PROTECTED]
  wrote:
 
   Android is and has always been built on top of Linux.
 
   JBQ
 
   On Mon, Dec 1, 2008 at 2:30 PM, Xavier Live Tech.S
   [EMAIL PROTECTED] wrote:
 
Will G1 be running Linux like Iphone anytime soon?
  
 


 --
 Xavier A. Mathews
 Student/Browser Specialist/Developer/Web-Master
 Google Group Client Based Tech Support Specialist
 Hazel Crest Illinois
 [EMAIL PROTECTED]@[EMAIL PROTECTED]
 Fear of a name, only increases fear of the thing itself.

 



-- 
Dianne Hackborn
Android framework engineer
[EMAIL PROTECTED]

Note: please don't send private questions to me, as I don't have time to
provide private support.  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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: G1 Linux

2008-12-02 Thread Dorn Hetzel

Totally!

On Tue, Dec 2, 2008 at 5:22 PM, Dianne Hackborn [EMAIL PROTECTED] wrote:
 Because He Was Enthralled By The Awesomeness Of It, Like I Am Too.  It Is
 Awesome!

 On Tue, Dec 2, 2008 at 2:20 PM, Xavier Mathews [EMAIL PROTECTED]
 wrote:

 Why Did You Say That?

 On 12/02/2008, Eric Mill [EMAIL PROTECTED] wrote:
 
  This has been an awesome thread.
 
  On Dec 1, 5:33 pm, Xavier Mathews [EMAIL PROTECTED] wrote:
  So that means the G1 Does!
 
  Xavier A. Mathews
  Student/Browser Specialist/Developer/Web-Master
  Google Group Client Based Tech Support Specialist
  Hazel Crest Illinois
  [EMAIL PROTECTED]@[EMAIL PROTECTED]
  Fear of a name, only increases fear of the thing itself.
 
  On Mon, Dec 1, 2008 at 4:31 PM, Jean-Baptiste Queru [EMAIL PROTECTED]
  wrote:
 
   Android is and has always been built on top of Linux.
 
   JBQ
 
   On Mon, Dec 1, 2008 at 2:30 PM, Xavier Live Tech.S
   [EMAIL PROTECTED] wrote:
 
Will G1 be running Linux like Iphone anytime soon?
  
 


 --
 Xavier A. Mathews
 Student/Browser Specialist/Developer/Web-Master
 Google Group Client Based Tech Support Specialist
 Hazel Crest Illinois
 [EMAIL PROTECTED]@[EMAIL PROTECTED]
 Fear of a name, only increases fear of the thing itself.





 --
 Dianne Hackborn
 Android framework engineer
 [EMAIL PROTECTED]

 Note: please don't send private questions to me, as I don't have time to
 provide private support.  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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: my PacMan version released

2008-12-02 Thread Ralf

Just out of curiosity, isn't this name already licensed by a game
company that actually has a very similarly named game already
available on market?
http://www.namcogames.com/corporate/press/4968.html

R/

On Tue, Dec 2, 2008 at 12:37 PM, Andrea [EMAIL PROTECTED] wrote:

 Dear members,

 I've just published my Pacman version on AndAppstore.com and on
 SlideMe.org . It is still under development, so please test and report
 me bugs, comments and whatever you think maybe useful. I'm developing
 with the emulator and i have never tested it on a real device because
 i don't have one.

 You can get the .apk here:
 http://andappstore.com/AndroidPhoneApplications/apps/18740
 http://slideme.org/application/testme-pacman

 I hope you enjoy.
 Andrea Paiano
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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
-~--~~~~--~~--~--~---



[android-developers] Re: No audio picker activity?

2008-12-02 Thread fala70

Somebody know how get the image file uri ?

Intent intent = new Intent(android.media.action.IMAGE_CAPTURE);
startActivityForResult(intent, GET_IMAGE_FROM_CAMERA);

from onActivityResult it doesn't return uri. How can I do to get uri
from this kind of intent ?

thanks


On 1 Nov, 19:04, Guillaume Perrot [EMAIL PROTECTED] wrote:
 I hope when there will be standard intents to replace them once those two
 intents will break.

 2008/11/1 hackbod [EMAIL PROTECTED]



  Just be prepared for your application to break in the future.  These
  are undocumented because they are not ready for use.

  On Nov 1, 5:50 am, Guillaume Perrot [EMAIL PROTECTED] wrote:
   Actually, there is already intents to capture sound or photo, they're
   just undocumented bet we use it in our application:
   mCaptureImageIntent = new
   Intent(android.media.action.IMAGE_CAPTURE);
   mCaptureAudioIntent = new
   Intent(MediaStore.Audio.Media.RECORD_SOUND_ACTION);

   On 31 oct, 21:17, Alvin Yates [EMAIL PROTECTED] wrote:

Video isn't supposed to happen, and given mobile tech at the moment I
don't know of a phone that does support it.  The BW requirements are
probably too high to manage anything at a decent framerate.

Picture capturing is available if you use the Camera API. Search for
Megha's CameraApiTest.zip file for a rough idea of how it works.

Screen capture is a bit weird, and I would imagine you would have to
find a handle to the actual screen and create a service to manipulate
that.  Without function keys, you might have a time successfully doing
that though.

Audio is through the Media APIs.  It's decently documented and has an
example, unlike Camera.

On Oct 31, 10:20 am, elDoudou [EMAIL PROTECTED] wrote:

 Thank you for this valuable information. I think that I will use the
 Rings Extended app in the meantime. Does anyone knows when the
  Android
 SDK will provide built-in:

 - a video-capturing activity? A video picking activity?
 - a photo capturing activity? Photo picking is already implemented,
 right?
 - a screen-capturing activity?
 - the audio-capturing is already there, right? an audio picking
 activity?

 Cheers,
 Édouard
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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
-~--~~~~--~~--~--~---



  1   2   >