[android-developers] how to distinguish Button and EditTex -------about EditorInfo in IMF

2009-02-15 Thread

how can i distinguish Button and EditText, using these EditorInfo in a
inputmethod application.

EditorInfo.inputType always is 1, whatever the component is Button, or
EditText.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] BUG of IMF

2009-02-15 Thread
Although the IMF has provided EditorInfo to get  the attributes of
components with focus.
However, the attributes is not fully.

First of all, we could not distinguish between Button and EditText
components, they have the same  InputType  value
"EditorInfo.TYPE_CLASS_TEXT"

Secondly,after the EditText was been setEditable (false), it should
not be editeable, but through the input method, you can still enter
text, because IMF still  get a  InputConnection associated with that
EditText.


--
IMF虽然提供了EditorInfo来获得当前焦点组件的属性。
但是该属性不全面,
首先不能区分普通的Button和EditText组件,他们的inputType值竟然都是1,Button可输入?
其次,对应EditText设置了setEditable(false)后,是不可编辑的,但是通过输入法,仍然可以输入文字,因为IMF中获得
InputConnection中可没有判断是不是可编辑的。
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 get horizontal and vertical events in android

2009-02-15 Thread

put the different xml files to different
directory: layout or layout-land

or
this.getResource().getConfiguration.orientation== 

On Feb 16, 3:15 pm, Gulfam  wrote:
> Hi all,
>
>     I have two splash screens for my android app one for horizontal
> and second for vertical
> and also have two xml layout file like h_splash.xml and second is
> v_splash.
>
> and i want to show these file like this in my code
>
> if(horizontal or event which for horizontal )
> {
>   setContentView(R.layout.h_splash)}
>
> else
> {
>   setContentView(R.layout.v_splash)
>
> }
>
> issue is this how i can get horizontal and vertical event in my code?
> On the base of that event i want to show my splash.
>  i have used also getOrientation()or like this method in my code but
> it give same value on both horizontal and vertical.
> any one can help ragarding this.
>
> Thanks and Regards,
> Gulfam Hassan
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Using my own SQLite database

2009-02-22 Thread

hi,gus.
let me tell you the db path.
/data/data/YOUR_PACKAGE/databases/
just copy your db file to that directory.

i successly copy note_pad.db to that dir, and successly read the data
in note_pad.db using SQLiteDatabase API.

but ,when i copy another db file which is larger (about 16Mb), i
encounter IOException.

I try many times. always IOException.
Maybe the file is too large.

is  there a limit size in YOUR_PACKAGE directory?


On 2月21日, 上午4时27分, burton miller  wrote:
> yeah - same problem here.
>
> i determined that (2 months ago) it was impossible.  here are your
> options:
>
> 1)  copy the db from your apk (as a raw resource) to the file system
> at run time, and access it there - which doubles the size of your db
> footprint.
> 2) download your db upon installation
>
> my db is 5MB, so i had to go with option 2, which results in a ~1
> minute installation when you first run the app.  this is a shitty
> solution, but right now that seems to be it.  if your db is small, use
> option 1.
>
> On Feb 18, 3:56 pm, mcssys  wrote:
>
> > I have the same need.  Any help would be greatly appreciated.
>
> > And...
>
> > 1. When an application is installed on a device, is the same directory
> > structure that is used on the Emulator duplicated on the device.  When
> > I try to view the device directory structure, I get a "opendir failed,
> > permission denied" so I cannot verify if it is the same structure.
>
> > 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: Using my own SQLite database

2009-02-22 Thread

i know the reason.
there is max size 1048576bytes

02-23 11:11:55.037: DEBUG/asset(16273): Data exceeds
UNCOMPRESS_DATA_MAX (37623808 vs 1048576)

it's too small.

On 2月23日, 上午11时00分, 冰咖啡不加糖  wrote:
> hi,gus.
> let me tell you the db path.
> /data/data/YOUR_PACKAGE/databases/
> just copy your db file to that directory.
>
> i successly copy note_pad.db to that dir, and successly read the data
> in note_pad.db using SQLiteDatabase API.
>
> but ,when i copy another db file which is larger (about 16Mb), i
> encounter IOException.
>
> I try many times. always IOException.
> Maybe the file is too large.
>
> is  there a limit size in YOUR_PACKAGE directory?
>
> On 2月21日, 上午4时27分, burton miller  wrote:
>
> > yeah - same problem here.
>
> > i determined that (2 months ago) it was impossible.  here are your
> > options:
>
> > 1)  copy the db from your apk (as a raw resource) to the file system
> > at run time, and access it there - which doubles the size of your db
> > footprint.
> > 2) download your db upon installation
>
> > my db is 5MB, so i had to go with option 2, which results in a ~1
> > minute installation when you first run the app.  this is a shitty
> > solution, but right now that seems to be it.  if your db is small, use
> > option 1.
>
> > On Feb 18, 3:56 pm, mcssys  wrote:
>
> > > I have the same need.  Any help would be greatly appreciated.
>
> > > And...
>
> > > 1. When an application is installed on a device, is the same directory
> > > structure that is used on the Emulator duplicated on the device.  When
> > > I try to view the device directory structure, I get a "opendir failed,
> > > permission denied" so I cannot verify if it is the same structure.
>
> > > 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: After the ADT 0.9 update, Eclipse can not create R.java automatically

2009-02-24 Thread

i changed the UNCOMPRESS_DATA_MAX,
but the bug still exist.

may be it works in linux,
my eclipse works in windows.

However, i found another way to avoid the bug,
Just like what Khunong said.

I change the andorid.jar/resources.arsc to the old version instead of
the new version which i compiled in cupcake.

and the bug disappers.


On 2月19日, 下午3时48分, tom  wrote:
> vi /frameworks/base/include/utils/Asset.h
> change the following
>  UNCOMPRESS_DATA_MAX = 1 * 1024 * 1024
> to
>  UNCOMPRESS_DATA_MAX = 2 * 1024 * 1024
>
> and rebuild sdk
> that's ok
>
> > Hi,
>
> >   I checked out cupcake branch yesterday and made the full build and sdk
> > successfully, and I also built the ADT 0.9 with the command
> > cupcake/development/tools/eclipse/scripts/build_server.sh on another Linux
> > box. Then I updated the ADT 0.9 and set new SDK on Eclipse.
> >Then I created a simple Android project Test with Android Project Wizard,
> > the Eclipse created project files except the R.java and then reported
> > following errors.
> > Seems the resources are  not correctly parsed.
>
> > Errors:
>
> > [2009-01-21 15:07:32 - Test] W/ResourceType(  267): Unable to get buffer of
> > resource asset file
> > [2009-01-21 15:07:32 - Test]
> > /Volumes/DATA/workspace/myspace/Test/res/layout/main.xml:2: ERROR No
> > resource identifier found for attribute 'orientation' in package 'android'
> > [2009-01-21 15:07:32 - Test]
> > /Volumes/DATA/workspace/myspace/Test/res/layout/main.xml:2: ERROR No
> > resource identifier found for attribute 'layout_width' in package 'android'
> > [2009-01-21 15:07:32 - Test]
> > /Volumes/DATA/workspace/myspace/Test/res/layout/main.xml:2: ERROR No
> > resource identifier found for attribute 'layout_height' in package 'android'
> > [2009-01-21 15:07:32 - Test]
> > /Volumes/DATA/workspace/myspace/Test/res/layout/main.xml:7: ERROR No
> > resource identifier found for attribute 'layout_width' in package 'android'
> > [2009-01-21 15:07:32 - Test]
> > /Volumes/DATA/workspace/myspace/Test/res/layout/main.xml:7: ERROR No
> > resource identifier found for attribute 'layout_height' in package 'android'
> > [2009-01-21 15:07:32 - Test]
> > /Volumes/DATA/workspace/myspace/Test/res/layout/main.xml:7: ERROR No
> > resource identifier found for attribute 'text' in package 'android'
> > [2009-01-21 15:07:32 - Test]
> > /Volumes/DATA/workspace/myspace/Test/AndroidManifest.xml:2: ERROR No
> > resource identifier found for attribute 'versionCode' in package 'android'
> > [2009-01-21 15:07:32 - Test]
> > /Volumes/DATA/workspace/myspace/Test/AndroidManifest.xml:2: ERROR No
> > resource identifier found for attribute 'versionName' in package 'android'
> > [2009-01-21 15:07:32 - Test]
> > /Volumes/DATA/workspace/myspace/Test/AndroidManifest.xml:6: ERROR No
> > resource identifier found for attribute 'icon' in package 'android'
> > [2009-01-21 15:07:32 - Test]
> > /Volumes/DATA/workspace/myspace/Test/AndroidManifest.xml:6: ERROR No
> > resource identifier found for attribute 'label' in package 'android'
> > [2009-01-21 15:07:32 - Test]
> > /Volumes/DATA/workspace/myspace/Test/AndroidManifest.xml:7: ERROR No
> > resource identifier found for attribute 'name' in package 'android'
> > [2009-01-21 15:07:32 - Test]
> > /Volumes/DATA/workspace/myspace/Test/AndroidManifest.xml:7: ERROR No
> > resource identifier found for attribute 'label' in package 'android'
> > [2009-01-21 15:07:32 - Test]
> > /Volumes/DATA/workspace/myspace/Test/AndroidManifest.xml:10: ERROR No
> > resource identifier found for attribute 'name' in package 'android'
> > [2009-01-21 15:07:32 - Test]
> > /Volumes/DATA/workspace/myspace/Test/AndroidManifest.xml:11: ERROR No
> > resource identifier found for attribute 'name' in package 'android'
> > [2009-01-21 15:07:32 - Test]
> > /Volumes/DATA/workspace/myspace/Test/AndroidManifest.xml:15: ERROR No
> > resource identifier found for attribute 'minSdkVersion' in package 'android'
> > [2009-01-21 15:07:32 - Test] W/ResourceType(  268): Unable to get buffer of
> > resource asset file
> > [2009-01-21 15:07:32 - Test]
> > /Volumes/DATA/workspace/myspace/Test/res/layout/main.xml:2: ERROR No
> > resource identifier found for attribute 'orientation' in package 'android'
> > [2009-01-21 15:07:32 - Test]
> > /Volumes/DATA/workspace/myspace/Test/res/layout/main.xml:2: ERROR No
> > resource identifier found for attribute 'layout_width' in package 'android'
> > [2009-01-21 15:07:32 - Test]
> > /Volumes/DATA/workspace/myspace/Test/res/layout/main.xml:2: ERROR No
> > resource identifier found for attribute 'layout_height' in package 'android'
> > [2009-01-21 15:07:32 - Test]
> > /Volumes/DATA/workspace/myspace/Test/res/layout/main.xml:7: ERROR No
> > resource identifier found for attribute 'layout_width' in package 'android'
> > [2009-01-21 15:07:32 - Test]
> > /Volumes/DATA/workspace/myspace/Test/res/layout/main.xml:7: ERROR No
> > resource identifier found for attribute 'layout_height' in package 'android'
> > [2009-01-21 15:07:32

[android-developers] Re: After the ADT 0.9 update, Eclipse can not create R.java automatically

2009-02-24 Thread

but not all project could word well

for example, SoftKeyboard (in cupcake source code ) res/xml/qwerty.xml
has some "error".

On 2月24日, 下午4时50分, 冰咖啡不加糖  wrote:
> i changed the UNCOMPRESS_DATA_MAX,
> but the bug still exist.
>
> may be it works in linux,
> my eclipse works in windows.
>
> However, i found another way to avoid the bug,
> Just like what Khunong said.
>
> I change the andorid.jar/resources.arsc to the old version instead of
> the new version which i compiled in cupcake.
>
> and the bug disappers.
>
> On 2月19日, 下午3时48分, tom  wrote:
>
> > vi /frameworks/base/include/utils/Asset.h
> > change the following
> >  UNCOMPRESS_DATA_MAX = 1 * 1024 * 1024
> > to
> >  UNCOMPRESS_DATA_MAX = 2 * 1024 * 1024
>
> > and rebuild sdk
> > that's ok
>
> > > Hi,
>
> > >   I checked out cupcake branch yesterday and made the full build and sdk
> > > successfully, and I also built the ADT 0.9 with the command
> > > cupcake/development/tools/eclipse/scripts/build_server.sh on another Linux
> > > box. Then I updated the ADT 0.9 and set new SDK on Eclipse.
> > >Then I created a simple Android project Test with Android Project 
> > > Wizard,
> > > the Eclipse created project files except the R.java and then reported
> > > following errors.
> > > Seems the resources are  not correctly parsed.
>
> > > Errors:
>
> > > [2009-01-21 15:07:32 - Test] W/ResourceType(  267): Unable to get buffer 
> > > of
> > > resource asset file
> > > [2009-01-21 15:07:32 - Test]
> > > /Volumes/DATA/workspace/myspace/Test/res/layout/main.xml:2: ERROR No
> > > resource identifier found for attribute 'orientation' in package 'android'
> > > [2009-01-21 15:07:32 - Test]
> > > /Volumes/DATA/workspace/myspace/Test/res/layout/main.xml:2: ERROR No
> > > resource identifier found for attribute 'layout_width' in package 
> > > 'android'
> > > [2009-01-21 15:07:32 - Test]
> > > /Volumes/DATA/workspace/myspace/Test/res/layout/main.xml:2: ERROR No
> > > resource identifier found for attribute 'layout_height' in package 
> > > 'android'
> > > [2009-01-21 15:07:32 - Test]
> > > /Volumes/DATA/workspace/myspace/Test/res/layout/main.xml:7: ERROR No
> > > resource identifier found for attribute 'layout_width' in package 
> > > 'android'
> > > [2009-01-21 15:07:32 - Test]
> > > /Volumes/DATA/workspace/myspace/Test/res/layout/main.xml:7: ERROR No
> > > resource identifier found for attribute 'layout_height' in package 
> > > 'android'
> > > [2009-01-21 15:07:32 - Test]
> > > /Volumes/DATA/workspace/myspace/Test/res/layout/main.xml:7: ERROR No
> > > resource identifier found for attribute 'text' in package 'android'
> > > [2009-01-21 15:07:32 - Test]
> > > /Volumes/DATA/workspace/myspace/Test/AndroidManifest.xml:2: ERROR No
> > > resource identifier found for attribute 'versionCode' in package 'android'
> > > [2009-01-21 15:07:32 - Test]
> > > /Volumes/DATA/workspace/myspace/Test/AndroidManifest.xml:2: ERROR No
> > > resource identifier found for attribute 'versionName' in package 'android'
> > > [2009-01-21 15:07:32 - Test]
> > > /Volumes/DATA/workspace/myspace/Test/AndroidManifest.xml:6: ERROR No
> > > resource identifier found for attribute 'icon' in package 'android'
> > > [2009-01-21 15:07:32 - Test]
> > > /Volumes/DATA/workspace/myspace/Test/AndroidManifest.xml:6: ERROR No
> > > resource identifier found for attribute 'label' in package 'android'
> > > [2009-01-21 15:07:32 - Test]
> > > /Volumes/DATA/workspace/myspace/Test/AndroidManifest.xml:7: ERROR No
> > > resource identifier found for attribute 'name' in package 'android'
> > > [2009-01-21 15:07:32 - Test]
> > > /Volumes/DATA/workspace/myspace/Test/AndroidManifest.xml:7: ERROR No
> > > resource identifier found for attribute 'label' in package 'android'
> > > [2009-01-21 15:07:32 - Test]
> > > /Volumes/DATA/workspace/myspace/Test/AndroidManifest.xml:10: ERROR No
> > > resource identifier found for attribute 'name' in package 'android'
> > > [2009-01-21 15:07:32 - Test]
> > > /Volumes/DATA/workspace/myspace/Test/AndroidManifest.xml:11: ERROR No
> > > resource identifier found for attrib

[android-developers] Re: After the ADT 0.9 update, Eclipse can not create R.java automatically

2009-02-24 Thread

fix it.

just do it, replace the andorid.jar/resources.arsc you compiled with
the old version which could work.


On 2月24日, 下午5时01分, 冰咖啡不加糖  wrote:
> but not all project could word well
>
> for example, SoftKeyboard (in cupcake source code ) res/xml/qwerty.xml
> has some "error".
>
> On 2月24日, 下午4时50分, 冰咖啡不加糖  wrote:
>
> > i changed the UNCOMPRESS_DATA_MAX,
> > but the bug still exist.
>
> > may be it works in linux,
> > my eclipse works in windows.
>
> > However, i found another way to avoid the bug,
> > Just like what Khunong said.
>
> > I change the andorid.jar/resources.arsc to the old version instead of
> > the new version which i compiled in cupcake.
>
> > and the bug disappers.
>
> > On 2月19日, 下午3时48分, tom  wrote:
>
> > > vi /frameworks/base/include/utils/Asset.h
> > > change the following
> > >  UNCOMPRESS_DATA_MAX = 1 * 1024 * 1024
> > > to
> > >  UNCOMPRESS_DATA_MAX = 2 * 1024 * 1024
>
> > > and rebuild sdk
> > > that's ok
>
> > > > Hi,
>
> > > >   I checked out cupcake branch yesterday and made the full build and sdk
> > > > successfully, and I also built the ADT 0.9 with the command
> > > > cupcake/development/tools/eclipse/scripts/build_server.sh on another 
> > > > Linux
> > > > box. Then I updated the ADT 0.9 and set new SDK on Eclipse.
> > > >Then I created a simple Android project Test with Android Project 
> > > > Wizard,
> > > > the Eclipse created project files except the R.java and then reported
> > > > following errors.
> > > > Seems the resources are  not correctly parsed.
>
> > > > Errors:
>
> > > > [2009-01-21 15:07:32 - Test] W/ResourceType(  267): Unable to get 
> > > > buffer of
> > > > resource asset file
> > > > [2009-01-21 15:07:32 - Test]
> > > > /Volumes/DATA/workspace/myspace/Test/res/layout/main.xml:2: ERROR No
> > > > resource identifier found for attribute 'orientation' in package 
> > > > 'android'
> > > > [2009-01-21 15:07:32 - Test]
> > > > /Volumes/DATA/workspace/myspace/Test/res/layout/main.xml:2: ERROR No
> > > > resource identifier found for attribute 'layout_width' in package 
> > > > 'android'
> > > > [2009-01-21 15:07:32 - Test]
> > > > /Volumes/DATA/workspace/myspace/Test/res/layout/main.xml:2: ERROR No
> > > > resource identifier found for attribute 'layout_height' in package 
> > > > 'android'
> > > > [2009-01-21 15:07:32 - Test]
> > > > /Volumes/DATA/workspace/myspace/Test/res/layout/main.xml:7: ERROR No
> > > > resource identifier found for attribute 'layout_width' in package 
> > > > 'android'
> > > > [2009-01-21 15:07:32 - Test]
> > > > /Volumes/DATA/workspace/myspace/Test/res/layout/main.xml:7: ERROR No
> > > > resource identifier found for attribute 'layout_height' in package 
> > > > 'android'
> > > > [2009-01-21 15:07:32 - Test]
> > > > /Volumes/DATA/workspace/myspace/Test/res/layout/main.xml:7: ERROR No
> > > > resource identifier found for attribute 'text' in package 'android'
> > > > [2009-01-21 15:07:32 - Test]
> > > > /Volumes/DATA/workspace/myspace/Test/AndroidManifest.xml:2: ERROR No
> > > > resource identifier found for attribute 'versionCode' in package 
> > > > 'android'
> > > > [2009-01-21 15:07:32 - Test]
> > > > /Volumes/DATA/workspace/myspace/Test/AndroidManifest.xml:2: ERROR No
> > > > resource identifier found for attribute 'versionName' in package 
> > > > 'android'
> > > > [2009-01-21 15:07:32 - Test]
> > > > /Volumes/DATA/workspace/myspace/Test/AndroidManifest.xml:6: ERROR No
> > > > resource identifier found for attribute 'icon' in package 'android'
> > > > [2009-01-21 15:07:32 - Test]
> > > > /Volumes/DATA/workspace/myspace/Test/AndroidManifest.xml:6: ERROR No
> > > > resource identifier found for attribute 'label' in package 'android'
> > > > [2009-01-21 15:07:32 - Test]
> > > > /Volumes/DATA/workspace/myspace/Test/AndroidManifest.xml:7: ERROR No
> > > > resource identifier found for attribute 'name' in package 'android'
> > > > [2009-01-21 15:

[android-developers] Class Cast Exception after classLoader.loadClass() and newInstance!

2009-03-26 Thread

I load a class from another installed package.

Class c = classLoader.loadClass(..);
Object o = c.newInstance();
and create a instance using newInstance().

if i use getMethod() and  invoke(),
 i can  invoke that class' method.

but if use MyInterface instance =  (MyInterface)  o;
it failed:  java.lang.ClassCastException: com.mygame.Race

com.mygame.Race is the class i want to load, and Race implements
MyInterface.

at the meantime, Race is chiled of Activity.
however, Activity a = (Activity)o; works fine.

told me why?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Cupcake Emulator do not mount SD card image

2009-03-26 Thread

me too.

On Mar 27, 10:41 am, Eric Chan  wrote:
> I met the same question
> Best Regards
>
> Eric Chan
>
> On Wed, Mar 25, 2009 at 3:57 PM, Victor  wrote:
>
> > I just download a cupcake branch of source code and build it.
> > I configured Eclipse for a new SDK, and appear the things is works
> > great, EXCEPT emulator.
> > 1. I configured a new AVD as parameter i pointed my old sdcard.img
> > then loaded and do not see my sdcard
> > 2. then I back and configure another AVD with a parameter to create a
> > new sdcard.img, when the emulator loaded I still not seen sdcard in
> > emulator.
> > 3. then I try to something like: emulator -avd myavd -sdcard
> > mysdcard.img and there is still no sd card.
>
> > How can I restore my sd card in emulator.
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Camera.takePicture()

2008-12-18 Thread

I call Camera.takePicture(null,rawCallback,null);
in onPictureTaken(data,camera) of rawCallback, data is null.
I cann't get the raw data.
but if I call Camera,takePicture(null,null,rawCallback), the data is
not null, it contains picture pixels data.

do u know why?

On 10月22日, 下午10时19分, Hong  wrote:
> you need to call the Camera.takePicture(shutter, raw, jpeg)
> each arg implements the corresponding callback (shutter 
> callback,picturecallback,picturecallback).
>
> so if you need to get the rawdata, implement a class withpicturecallback, and 
> the onPictureTaken(byte[] raw...)
> will be available for you.
>
> but sounds like you try to get the video frame?  let me know if you succeed...
>
> thanks
>
> On Tue, Oct 21, 2008 at 5:57 PM, steve1  wrote:
>
> > I'm probably missing something obvious, so I apologize if
> > this is a dumb question.
>
> > Once I've registered callbacks using Camera.takePicture(),
> > what does my application need to do to have those callbacks
> > called?
>
> > As near as I've been able to tell, the callback is executed
> > during a camera preview, or by the user actually taking a
> > picture using the native camera application.
>
> > But I don't want to start a preview or launch the native camera
> > application.  All I want is the raw imagedatafrom the camera
> > hardware.
>
> > Is there a way to do this?
>
> > Thank you!

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] bug? InputMethodManager.isWatchingCursor()

2009-01-09 Thread

why the method  InputMethodManager.isWatchingCursor()  always returns
false.
so, i can not get the cursor position of TextView.
it's a bug?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: ADT0.9 plugin can't work

2009-02-04 Thread

could you give me your new ADT0.09 ?
my email : xinyu...@gmail.com
thanks.

On 2月4日, 上午9时25分, tony  wrote:
> I have built a ADT0.9 plugin with the android release of 20090102,but
> seems it still have error in recognizing resource files.
> Does anyone have succeeded in using the 0.9 plugin?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: About the NeighboringCellInfo information

2009-07-30 Thread

why the cll id  from TelephonyManager.getNeighboringCellInfo,
is different TelephonyManager.getCellLocation.
It's more larger.

eg.

8321  //cid from TelephonyManager.getCellLocation. getCid()

415506483   //fromo TelephonyManager.getNeighboringCellInfo.getCid()



On Jul 11, 5:44 pm, mikewuth  wrote:
> Hello everyone,
>      I'd like to ask some questions about the "NeighboringCellInfo"
> get from the
> "android.telephony.TelephonyManager.getNeighboringCellInfo."
>
> 1. Is the current connected BS information included in theNeighboringCellInfo?
>
> 2. I'm now trying to get the current Cell ID and current RSSI of the
> connected BS.
>    I can get the current CellID from the
> TelephonyManager.getCellLocation.
>    However, I still can't get the RSSI of that BS.
>    Is there any way to get the current BS's RSSI?
>
> 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
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---