[android-developers] Why does it have the same and correct response for USB devices at all Android mobiles or PAD?

2013-04-29 Thread bluestar


Dear Sir:

 I use USB Device Info App to test usb multi-devices by some Android 
mobiles or PAD
 Below is my steps
  1. USB Hub with plugging 3 usb the-same devices
  2. plug into Galaxy Nexus
  3. Open USB Device Info App and switch to Android Page
  4. unplug one usb device in order out of USB Hub(finally unplug all 
devices)
  5. plug usb device in order into USB Hub(finally plug into 3 devices)
  6. unplug USB Hub out of Android mobiles or PAD

Below is my test devices and its response
 1. Galaxy Nexus(with Android 4.0.3) = App will show normally
 2. Galaxy Nexus(with Android 4.2.2) = It will hold USB-Hub message 
after unplug USB Hub, if repeat plug/unplug it hold many messages for 
USB-Hub 
 3. Nexus-7(with Android 4.1.1)/Galaxy S2(with Android 4.0.4) = It 
can't detect USB-Hub,  so no-device can't found. If plug usb device 
directly into 
   Nexus-7/S2, it can be detected
 

Do you have any idea for this condition?
Why does it have the same and correct response for USB devices at all 
Android mobiles or PAD???

Because they have the same and correct response, I can't use USB-HOST 
API to find correct devices

Thank you for your advices

BR,
Alan 

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




[android-developers] Why does it have the same and correct response for USB devices at all Android mobiles or PAD???

2013-04-25 Thread bluestar


Dear Sir:

 I use USB Device Info App to test usb multi-devices by some Android 
mobiles or PAD

 Below is my steps
  1. USB Hub with plugging 3 usb the-same devices
  2. plug into Galaxy Nexus
  3. Open USB Device Info App and switch to Android Page
  4. unplug one usb device in order out of USB Hub(finally unplug all 
devices)
  5. plug usb device in order into USB Hub(finally plug into 3 devices)
  6. unplug USB Hub out of Android mobiles or PAD

Below is my test devices and its response
 1. Galaxy Nexus(with Android 4.0.3) = App will show normally
 2. Galaxy Nexus(with Android 4.2.2) = It will hold USB-Hub message 
after unplug USB Hub, 
 if repeat plug/unplug it hold many messages for USB-Hub 
 3. Nexus-7(with Android 4.1.1)/Galaxy S2(with Android 4.0.4) = It 
can't detect USB-Hub, 
 so no-device can't found. If plug usb device directly into Nexus-7/S2, it 
can be detected

Do you have any idea for this condition?
Why does it have the same and correct response for USB devices at all 
Android mobiles or PAD???

Because they have the same and correct response, I can't use USB-HOST 
API to find correct devices

Thank you for your advices

BR,
Alan 

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




[android-developers] Re: How to screen capture through fb0?

2012-02-21 Thread bluestar
Dear Sir:

I use screencap to get and it works well, but change
screenshot to fail

I study source code of screencap, and it uses
ScreenshotClient class
that passing through SurfaceFlinger to work well, but
screenshot that
using /dev/graphics/fb0 can't work

How do I recognize the GPUs can work when using screenshot?

Thank you!

BR,
Alan


On 2月15日, 上午5時39分, Dianne Hackborn hack...@android.com wrote:
 This has never been guaranteed to work, because GPUs may not be able to
 give access to the frame buffer like that.  Even in the cases when it did
 work, it could be corrupted since there was no control over the state of
 the frame buffer when reading it.

 This is why there is a shell command to do this, which DDMS uses, and is
 updated appropriately for the platform.  Use the shell command.

 If you are running on 3.0+ and writing system code (which means you are
 posting to the wrong group anyway) you can use the mechanisms for that...
  but put this discussion in an appropriate group like android-porting.





 On Tue, Feb 14, 2012 at 1:40 AM, bluestar bluestar8...@gmail.com wrote:
  Dear Sir:

  I use the source code from frameworks\base\cmds\screencap
  to do screen capture

  If using ScreenshotClient method, it is ok to get correct result
  If using to open fb0, some phones will fail to get

  Nexus S with Android 4.0.3 is OK
  Samsung Galaxy S2 with Android 2.3.5 is OK
  Galaxy Nexus S with Android 4.0.2 is failure

  Do you give me some suggestion or hint for how to get right
  result
  by using to open fb0 for all phones?

  Thank you!

  BR,
  Alan

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

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

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

 - 顯示被引用文字 -

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


[android-developers] How to screen capture through fb0?

2012-02-14 Thread bluestar
Dear Sir:

 I use the source code from frameworks\base\cmds\screencap
 to do screen capture

 If using ScreenshotClient method, it is ok to get correct result
 If using to open fb0, some phones will fail to get

 Nexus S with Android 4.0.3 is OK
 Samsung Galaxy S2 with Android 2.3.5 is OK
 Galaxy Nexus S with Android 4.0.2 is failure

 Do you give me some suggestion or hint for how to get right
result
 by using to open fb0 for all phones?

 Thank you!

BR,
Alan

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


[android-developers] Can static library is created by android 2.0 work at android 2.1?

2010-03-08 Thread bluestar
I create one static library(alogrithm.a) by using android 2.0

Now I want to use this library to work at android 2.1

Can I rebuild source code to create at android 2.1? Or directly use
this library binary file by
creating android 2.0?

Thanks!!!

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


[android-developers] Re: How to create executable file with linking static library?

2010-02-07 Thread bluestar
Dear Dole:

   Do you tell me your suggestion or solution?
   Thanks!!!


BR,
Alan

On 2月4日, 下午8時17分, Sachin Dole sachin.d...@gmail.com wrote:
 On Feb 4, 2010 4:09 AM, bluestar bluestar8...@gmail.com wrote:

 Dear Sir:

     I have a static library: libhello.a and I want to create a
 executable file that link with this
     static library: libhello.a

     I put this static library under
     /out/target/product/generic/obj/STATIC_LIBRARIES/
 libhello_intermediates/
     and make my executable file, but failed

     It shows error message:
     make: *** No rule to make target `NOTICE-TARGET-STATIC_LIBRARIES-
 libhello'.  Stop.

     How to fix this issue? (Below is Android.mk of executable file)
     Thanks!!!

 //-//
 LOCAL_PATH:= $(call my-dir)

 include $(CLEAR_VARS)
 LOCAL_MODULE_PATH := $(TARGET_OUT)/bin
 LOCAL_SRC_FILES:= MyMain.c
 LOCAL_SHARED_LIBRARIES := libcutils libc
 LOCAL_STATIC_LIBRARIES := libhello
 LOCAL_MODULE := myhello
 include $(BUILD_EXECUTABLE)
 //-//

 BR,
 Alan

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

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


[android-developers] How to create executable file with linking static library?

2010-02-04 Thread bluestar
Dear Sir:

 I have a static library: libhello.a and I want to create a
executable file that link with this
 static library: libhello.a

 I put this static library under
 /out/target/product/generic/obj/STATIC_LIBRARIES/
libhello_intermediates/
 and make my executable file, but failed

 It shows error message:
 make: *** No rule to make target `NOTICE-TARGET-STATIC_LIBRARIES-
libhello'.  Stop.

 How to fix this issue? (Below is Android.mk of executable file)
 Thanks!!!

//-//
LOCAL_PATH:= $(call my-dir)

include $(CLEAR_VARS)
LOCAL_MODULE_PATH := $(TARGET_OUT)/bin
LOCAL_SRC_FILES:= MyMain.c
LOCAL_SHARED_LIBRARIES := libcutils libc
LOCAL_STATIC_LIBRARIES := libhello
LOCAL_MODULE := myhello
include $(BUILD_EXECUTABLE)
//-//


BR,
Alan

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


[android-developers] How to build library with my code?

2010-01-27 Thread bluestar
Hi, Sir:

I can build a daemon with my algorithm code and main function.
I put all files in one folder under /development and make
This executable file works successfully

Now I want to separate my algorithm code and main function code.
I hope to build a binary library with my algorithm code and
main function will link this binary library to use.

Where to put my algorithm code to create binary library and
how to link this binary library in main function code?

Thanks for your great help!


Best Regards,
Alan

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


[android-developers] Master branch of Android Source code ?

2010-01-07 Thread bluestar
How to know master branch of Android source code?

I want to download Anroid 2.0-Eclair source code, but I don't know the
version of master branch.

So how to know master branch of Android source code?

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

[android-developers] How to submit device driver into Android kernel source code?

2009-12-14 Thread bluestar
Does anyone submit source code into Android code?
Is there limitation to someone that sumbit?
How to do this procedure?

Hope to tell more in detail about submitting source.
(I would like to submit device driver into Android kernel source code)

Thanks for your BIG BIG BIG help!!!

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


[android-developers] Re: How to submit device driver into Android kernel source code?

2009-12-14 Thread bluestar
Thanks Mark, I will go to [android-platform] Google Group to ask now.
Thanks

On 12月14日, 下午5時33分, Mark Murphy mmur...@commonsware.com wrote:
 bluestar wrote:
  Does anyone submit source code into Android code?
  Is there limitation to someone that sumbit?
  How to do this procedure?

  Hope to tell more in detail about submitting source.
  (I would like to submit device driver into Android kernel source code)

  Thanks for your BIG BIG BIG help!!!

 Some information is athttp://source.android.com, and you will be better
 served asking detailed questions about the process over on the
 [android-platform] Google Group.

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

 Warescription: Three Android Books, Plus Updates, $35/Year

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


[android-developers] Is source code of Android 2.0 ready to download?

2009-10-28 Thread bluestar

I know Android SDK 2.0 was already ready.

Does it mean the source code of Android 2.0 is ready to download?
Could I repo the entire platform(include kernel) from Google?
(repo init -u git://android.git.kernel.org/platform/manifest.git)

Thanks for your answer!!!


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



[android-developers] How to access storage by using API?

2009-09-24 Thread bluestar

If I want to read/write external storage, like usb drive,
does Android provide this feature to do?

Or how do using Google API to read/write SDcard on Mobile?
Where to get sample code for this goal?

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



[android-developers] Fail to make for java version

2009-08-17 Thread bluestar

Hi, All:

 I tried to make the source code of android-donut, but it shows
below message


You are attempting to build with the incorrect version
of java.

Your version is: java version 1.6.0_12.
The correct version is: 1.5.

Please follow the machine setup instructions at
http://source.android.com/download

build/core/main.mk:105: *** stop.  Stop.

Must I downgrade to v1.5 of java version?
Or remove the code for checking java version?

Thanks for your help.

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



[android-developers] How to autorun program when Android start running?

2009-07-22 Thread bluestar

I have one program and I used adb to connect FR to execute it.
I hope this program would auto-execute when entering Android OS of FR
How to add it to initial schedule? Modify init.rc or some files?

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



[android-developers] Re: How to autorun program when Android start running?

2009-07-22 Thread bluestar

Dear Sir:

The reference is for android application.
My program was linux program and I used adb to connect FR to
execute it.
The commands are like below

  1. after connecting to FR
  2. #cd /data/app
  #./myprogram

I hope these program would auto-run after entering Android OS.
Could you have one sample code to provide?

Thanks for your big help.

On 7月22日, 下午10時00分, Micah mi...@ourmailbox.net wrote:
 http://developer.android.com/reference/android/content/Intent.html#AC...

 On Jul 22, 5:09 am, bluestar bluestar8...@gmail.com wrote:



  I have one program and I used adb to connect FR to execute it.
  I hope this program would auto-execute when entering Android OS of FR
  How to add it to initial schedule? Modify init.rc or some files?

  Thanks for your big help.- 隱藏被引用文字 -

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



[android-developers] Installation error: failure -12

2009-07-13 Thread bluestar

Hi all,

I used Eclipse-SDK1.5 to create one app from apk(myClient.apk),
and install on OpenMoko(Android version 1.0)
but i received this error:
pkg: /data/local/tmp/myClient.apk
Failure [-12]

My apk can install successfully on Android-Emulator under WinXP.

Anyone could help me, explaining how to install an apps?

Thanks for your big help.

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



[android-developers] add new sensor?

2009-07-09 Thread bluestar

I know the Android SDK provieds many Sensor class to use
to get data or do something.

I already verified my driver of sensor to get data
successfully under linux kernel-2.6.29

I use I2C protocol to communication with my device,
so I put sensor code under drivers/i2c/chips

NOW I want to add my sensor into Android and I hope
to link Android Sensor class with my device to reduce
develop my application.


How to do for this goal?
Could I need to modify application framework or Libraries
or another driver type for new device?
I big 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
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Compile error?

2009-06-15 Thread bluestar

Dear Sir:

Today I download source code for Android on the Neo
Freerunner.

I built the image and got the some below error

external/mtd-utils/mtd-utils/compr_lzo.c:29:23: error: lzo/lzo1x.h: No
such file or directory
external/mtd-utils/mtd-utils/compr_lzo.c: In function
‘jffs2_lzo_cmpr’:
external/mtd-utils/mtd-utils/compr_lzo.c:54: warning: implicit
declaration of function
‘lzo1x_999_compress’
external/mtd-utils/mtd-utils/compr_lzo.c:56: error: ‘LZO_E_OK’
undeclared (first use in this
function)
external/mtd-utils/mtd-utils/compr_lzo.c:56: error: (Each undeclared
identifier is reported
only once
external/mtd-utils/mtd-utils/compr_lzo.c:56: error: for each function
it appears in.)
external/mtd-utils/mtd-utils/compr_lzo.c:49: warning: unused parameter
‘model’
external/mtd-utils/mtd-utils/compr_lzo.c: In function
‘jffs2_lzo_decompress’:
external/mtd-utils/mtd-utils/compr_lzo.c:74: warning: implicit
declaration of function
‘lzo1x_decompress_safe’
external/mtd-utils/mtd-utils/compr_lzo.c:76: error: ‘LZO_E_OK’
undeclared (first use in this
function)
external/mtd-utils/mtd-utils/compr_lzo.c: In function
‘jffs2_lzo_init’:
external/mtd-utils/mtd-utils/compr_lzo.c:95: error:
‘LZO1X_999_MEM_COMPRESS’ undeclared
(first use in this function)
make: *** [out/host/linux-x86/obj/EXECUTABLES/mkfs.jffs2_intermediates/
mtd-utils/compr_lzo.o]  Error 1


Could you help me to build image successfully?
Thanks for your help.

ps: I use Fedora 9 to build this kernel

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