[android-developers] Re: Singleton in different service which share same process

2009-03-25 Thread Jove

got the some clues, if I add com.example.base into  BOOTCLASSPATH , it
resolved.
but every process will map my jar, does we have better solution?


On Mar 26, 11:45 am, Jove  wrote:
> Maps of my process, it's strange. com.example.base.jar is mapped
> twice. :(
>
> 41036000-41037000 r--s  1f:00 291        /system/framework/
> com.example.base.jar
> 41037000-41038000 r--s  1f:01 780        /data/dalvik-cache/
> sys...@framew...@com.example.base@classes.dex
> 41038000-4104 r--s  1f:01 536        /data/dalvik-cache/
> sys...@a...@examplekeypad@classes.dex
> 4104-41041000 rw-s  00:08 837        /MemoryHeapBase
> (deleted)
> 41041000-41042000 r--s  1f:00 291        /system/framework/
> com.example.base.jar
> 41042000-41043000 r--s  1f:01 780        /data/dalvik-cache/
> sys...@framew...@com.example.base@classes.dex
>
> On Mar 26, 10:27 am, Jove  wrote:
>
> > Hi,
> >    I didn't get what you mean. Could you explain more?
> >    I build system.img and sdk myself, so I can add my
> > com.example.base.jar into system.img.
> > Thanks,
> > Jove
>
> > On Mar 26, 3:14 am, Dianne Hackborn  wrote:
>
> > > You can't currently make your own library in the SDK, so the questions
> > > should be on android-platform.
>
> > > On Wed, Mar 25, 2009 at 11:14 AM, Mark Murphy 
> > > wrote:
>
> > > > Jove wrote:
> > > > > Hi guys,
> > > > >     I meet an issue.
> > > > >     I have two services, both of them lies in separate apk,  which run
> > > > > in same process. The two service share same jar file by 
> > > > > method.  The jar file implement a  class, say "test", is a singleton.
> > > > > But I found that two instance of test is created under this case,
> > > > > could anybody give me some tips? I want to ensure it's singleton.
>
> > > > If you can explain a bit about how you are using  for your
> > > > own JAR files, I might be able to figure out why you are getting two
> > > > instances. I have not seen much use of  outside of the
> > > > Google Maps situation. How are you using it in your application?
>
> > > > --
> > > > Mark Murphy (a Commons Guy)
> > > >http://commonsware.com
> > > > Android App Developer Training:http://commonsware.com/training.html
>
> > > --
> > > 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.  All such questions should be posted on public
> > > forums, where I and others can see and answer them.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Is it possible to start an application programmatically?

2009-03-25 Thread Joseph Teo
ah ok... cool...

Many thanks Dianne! :)

On Thu, Mar 26, 2009 at 2:02 PM, Dianne Hackborn wrote:

> Just use startActivity(), possibly with the NEW_TASK flag.  You can look at
> the home screen sample code in the SDK for an example.
>
>
> On Wed, Mar 25, 2009 at 10:45 PM, Joseph Teo wrote:
>
>> Hi there...
>>
>> I know u can start a program using the adb shell... BUT I am trying to
>> write a program which is able to start another application (e.g. Browser or
>> Dialer or Maps etc) programmatically (from the program)...
>>
>> is it possible to do so in the program? If so, can someone kindly post
>> some code snippets here of how to do this?
>>
>> Many many thanks in advance!!
>>
>> Cheers,
>>
>> Joseph
>>
>>
>>
>
>
> --
> 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.  All such questions should be posted on public
> forums, where I and others can see and answer them.
>
>
> >
>

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



[android-developers] Re: Is it possible to start an application programmatically?

2009-03-25 Thread Dianne Hackborn
Just use startActivity(), possibly with the NEW_TASK flag.  You can look at
the home screen sample code in the SDK for an example.

On Wed, Mar 25, 2009 at 10:45 PM, Joseph Teo wrote:

> Hi there...
>
> I know u can start a program using the adb shell... BUT I am trying to
> write a program which is able to start another application (e.g. Browser or
> Dialer or Maps etc) programmatically (from the program)...
>
> is it possible to do so in the program? If so, can someone kindly post some
> code snippets here of how to do this?
>
> Many many thanks in advance!!
>
> Cheers,
>
> Joseph
>
> >
>


-- 
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.  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] Is it possible to start an application programmatically?

2009-03-25 Thread Joseph Teo
Hi there...

I know u can start a program using the adb shell... BUT I am trying to write
a program which is able to start another application (e.g. Browser or Dialer
or Maps etc) programmatically (from the program)...

is it possible to do so in the program? If so, can someone kindly post some
code snippets here of how to do this?

Many many thanks in advance!!

Cheers,

Joseph

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 prevent the special application of android to access the network?

2009-03-25 Thread trust_chen chen
how to prevent the special application of android to access the network?
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 do the services communicate with each other?

2009-03-25 Thread Gordon

Seems RIL can only support one client that is telephony manager. You
can either use telephony manager's interface in Java space or running
a native proxy going directly under RIL.

On Mar 25, 4:30 pm, Nio  wrote:
> HI there,
> I am trying to send AT commands via Ril from LocationManager as there
> is only one AT port I can use. But it seems like that there is no ways
> to call the function refer to Ril. Can I just new a commandsinterface
> and to call ril's functions via it?
>
> Any ideas will be great appreciated.
>
> Thanks&BestRegards,
> Nio
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] contacting commenters?

2009-03-25 Thread Bob

Hi,
Is there any way to contact someone who has asked a question in a
comment about your app on the android marketplace?

Thanks,
Bob
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] Multi Touch support in Android

2009-03-25 Thread Pratap

Hi

I want to implement multi-touch gesture detection in my application.
Does android provides support multi-touch?
If yes, then how can we simulate multi-touch on emulator.
If no, then is there any hack, which we can use to get multi finger
touch
in our application.

Kindly provide suggestions

Thanks

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



[android-developers] Re: Anything on Android that can do smooth scrolling?

2009-03-25 Thread suhas gavas
hi,
have u checked ipingpong 3D on android market .its pais app
  check the touch screen event which has got  smooth scroll



On Thu, Mar 26, 2009 at 2:32 AM, Romain Guy  wrote:

>
> The trick is simple: avoid any allocation that might trigger a GC.
>
> On Wed, Mar 25, 2009 at 1:18 PM, admin.androidsl...@googlemail.com
>  wrote:
> >
> > Getting a bit disillusioned after spending most of the day trying to
> > make a smooth scrolling app. I've tried everything, views, surface
> > views, delaying threads, just scrolling tiny pictures, etc., but
> > whatever I try, there is always an unsightly flicker even though I can
> > easily achieve 20 - 30 fps.
> >
> > So I thought I'd check out whats out there in the market to see if
> > anyone else can crack this. And I couldn't find anything at all! Most
> > games don't handle scrolling at all, just moving whats on the screen.
> > Even commercial games like deBlob don't seem to scroll smoothly.
> >
> > And yet I did find one single app which does handle smooth scrolling.
> > The native picture viewer does very smooth scrolling on the thumbnail
> > view. Does anyone know how the picture viewer does smooth thumbnail
> > scrolling? Going through the source code, I think it uses an extended
> > View - GridViewSpecial.
> >
> > Could anyone offer any other examples of smooth scrolling?
> >
> > Surely smooth scrolling is going to be vital if apps want to out-
> > perform iPhone apps!!
> >
> > >
> >
>
>
>
> --
> Romain Guy
> Android framework engineer
> romain...@android.com
>
> 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
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Any more info about android.os.RemoteException ??

2009-03-25 Thread Dianne Hackborn
It is thrown when you make a call on a Binder object/interface whose hosting
process no longer exists.

On Wed, Mar 25, 2009 at 8:47 PM, Ashrotronics <030440...@163.com> wrote:

>
> Hello everyone:
>   I'm looking for more info on this exception and much confused on
> why and when will this exception happen, Any comments will be much
> appriciated !
>
> Thanks and Regards!
>
> Ashrotronics
>
> >
>


-- 
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.  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] need some collection help

2009-03-25 Thread Josh

I want to store objects into an array or collection(whichever is best
suited to this in dalvik). the objects are basically just VO's all of
the same class that i want to keep track of. I have looked everywhere
and can't seem to figure this out.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] SMS encoding?? how can i receive Chinese SMS???

2009-03-25 Thread SinFrancis

I wanna receive Chinese SMS ,
i use eclipse send Chinese SMS to emulator, but the message all like
this "?",
if the English SMS, not prob.

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



[android-developers] Any more info about android.os.RemoteException ??

2009-03-25 Thread Ashrotronics

Hello everyone:
   I'm looking for more info on this exception and much confused on
why and when will this exception happen, Any comments will be much
appriciated !

Thanks and Regards!

Ashrotronics

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Singleton in different service which share same process

2009-03-25 Thread Jove

Maps of my process, it's strange. com.example.base.jar is mapped
twice. :(

41036000-41037000 r--s  1f:00 291/system/framework/
com.example.base.jar
41037000-41038000 r--s  1f:01 780/data/dalvik-cache/
sys...@framework@com.example.base@classes.dex
41038000-4104 r--s  1f:01 536/data/dalvik-cache/
sys...@app@examplekeypad@classes.dex
4104-41041000 rw-s  00:08 837/MemoryHeapBase
(deleted)
41041000-41042000 r--s  1f:00 291/system/framework/
com.example.base.jar
41042000-41043000 r--s  1f:01 780/data/dalvik-cache/
sys...@framework@com.example.base@classes.dex


On Mar 26, 10:27 am, Jove  wrote:
> Hi,
>    I didn't get what you mean. Could you explain more?
>    I build system.img and sdk myself, so I can add my
> com.example.base.jar into system.img.
> Thanks,
> Jove
>
> On Mar 26, 3:14 am, Dianne Hackborn  wrote:
>
> > You can't currently make your own library in the SDK, so the questions
> > should be on android-platform.
>
> > On Wed, Mar 25, 2009 at 11:14 AM, Mark Murphy 
> > wrote:
>
> > > Jove wrote:
> > > > Hi guys,
> > > >     I meet an issue.
> > > >     I have two services, both of them lies in separate apk,  which run
> > > > in same process. The two service share same jar file by 
> > > > method.  The jar file implement a  class, say "test", is a singleton.
> > > > But I found that two instance of test is created under this case,
> > > > could anybody give me some tips? I want to ensure it's singleton.
>
> > > If you can explain a bit about how you are using  for your
> > > own JAR files, I might be able to figure out why you are getting two
> > > instances. I have not seen much use of  outside of the
> > > Google Maps situation. How are you using it in your application?
>
> > > --
> > > Mark Murphy (a Commons Guy)
> > >http://commonsware.com
> > > Android App Developer Training:http://commonsware.com/training.html
>
> > --
> > 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.  All such questions should be posted on public
> > forums, where I and others can see and answer them.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Singleton in different service which share same process

2009-03-25 Thread Jove

Hi,
   I didn't get what you mean. Could you explain more?
   I build system.img and sdk myself, so I can add my
com.example.base.jar into system.img.
Thanks,
Jove

On Mar 26, 3:14 am, Dianne Hackborn  wrote:
> You can't currently make your own library in the SDK, so the questions
> should be on android-platform.
>
> On Wed, Mar 25, 2009 at 11:14 AM, Mark Murphy wrote:
>
>
>
>
>
> > Jove wrote:
> > > Hi guys,
> > >     I meet an issue.
> > >     I have two services, both of them lies in separate apk,  which run
> > > in same process. The two service share same jar file by 
> > > method.  The jar file implement a  class, say "test", is a singleton.
> > > But I found that two instance of test is created under this case,
> > > could anybody give me some tips? I want to ensure it's singleton.
>
> > If you can explain a bit about how you are using  for your
> > own JAR files, I might be able to figure out why you are getting two
> > instances. I have not seen much use of  outside of the
> > Google Maps situation. How are you using it in your application?
>
> > --
> > Mark Murphy (a Commons Guy)
> >http://commonsware.com
> > Android App Developer Training:http://commonsware.com/training.html
>
> --
> 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.  All such questions should be posted on public
> forums, where I and others can see and answer them.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Singleton in different service which share same process

2009-03-25 Thread Jove

 I create my JAR myself same with "android.test.runner" or
 "com.android.im.plugin"
 Briefly speaking, I add line "include $(BUILD_JAVA_LIBRARY" in
Android.mk under directory
 "com.example.base" to create  com.example.base.jar, Then I modify
 framework/base/data/etc/platform.xml to include my jar in system.img.
 My example application can use the  method to call the
 method in "com.example.base".

 Any clues?
 Thanks,
 Jove.

On Mar 26, 10:22 am, Jove  wrote:
> I create my JAR myself same with "android.test.runner" or
> "com.android.im.plugin"
> Briefly speaking, I add line "include $(BUILD_JAVA_LIBRARY" in my
> "com.example.base" to create  com.example.base.jar, Then I modify
> framework/base/data/etc/platform.xml to include my jar in system.img.
> My example application can use the  method to call the
> method in "com.example.base".
>
> Any clues?
> Thanks,
> Jove.
>
> On Mar 26, 2:14 am, Mark Murphy  wrote:
>
> > Jove wrote:
> > > Hi guys,
> > >     I meet an issue.
> > >     I have two services, both of them lies in separate apk,  which run
> > > in same process. The two service share same jar file by 
> > > method.  The jar file implement a  class, say "test", is a singleton.
> > > But I found that two instance of test is created under this case,
> > > could anybody give me some tips? I want to ensure it's singleton.
>
> > If you can explain a bit about how you are using  for your
> > own JAR files, I might be able to figure out why you are getting two
> > instances. I have not seen much use of  outside of the
> > Google Maps situation. How are you using it in your application?
>
> > --
> > Mark Murphy (a Commons Guy)http://commonsware.com
> > Android App Developer Training:http://commonsware.com/training.html
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Singleton in different service which share same process

2009-03-25 Thread Jove

I create my JAR myself same with "android.test.runner" or
"com.android.im.plugin"
Briefly speaking, I add line "include $(BUILD_JAVA_LIBRARY" in my
"com.example.base" to create  com.example.base, Then I modify
framework/base/data/etc/platform.xml to include my jar in system.img.
My example application can use the  method to call the
method in "com.example.base".

Any clues?
Thanks,
Jove.


On Mar 26, 2:14 am, Mark Murphy  wrote:
> Jove wrote:
> > Hi guys,
> >     I meet an issue.
> >     I have two services, both of them lies in separate apk,  which run
> > in same process. The two service share same jar file by 
> > method.  The jar file implement a  class, say "test", is a singleton.
> > But I found that two instance of test is created under this case,
> > could anybody give me some tips? I want to ensure it's singleton.
>
> If you can explain a bit about how you are using  for your
> own JAR files, I might be able to figure out why you are getting two
> instances. I have not seen much use of  outside of the
> Google Maps situation. How are you using it in your application?
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com
> Android App Developer Training:http://commonsware.com/training.html
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: opencore

2009-03-25 Thread Dave Sparks

The current G1 software uses the OpenCORE software codecs except for H.
264 where the hardware codec is used.

On Mar 25, 3:38 am, wangxianjian8311  wrote:
> hi all!
> i want to know whether the g1 use the pv omxcore in opencore . if i do 
> not have any hardware codec.
> if i just use the pv omxcore. can the system be commercial and steady?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: handle Camera preview data without a SurfaceView

2009-03-25 Thread Dave Sparks

This is not currently possible.

On Mar 25, 11:11 am, denzel  wrote:
> Hello,
>
> I want to receive the data from the preview of the Camera, but without
> having to set a SurfaceView with a SurfaceHolder in the view of my
> application.
>
> I want to do something like this:
>
> Camera cam = Camera.open();
> cam.setPreviewCallback(new MyPreviewCallback());
> cam.startPreview();
>
> This will not work because I need to call setPreviewDisplay
> (SurfaceHoler) before I start the preview. I can get a SurfaceHolder
> from a SurfaceView, but I don't want a SurfaceView, because I don't
> need one. I just want to handle the preview data by myself. Any idees
> on how to deal with this?
>
> Thanks in advance!
>
> Denzel
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Emulator crashing

2009-03-25 Thread Mark Murphy

青铜 wrote:
> I also have this question.
> Every time I run HelloMapView (the example code in dev.android), I
> only can see the title of the app, and the content is just black.

Did you get your own Maps API key, as outlined in step #4?

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 2.0 Available!

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



[android-developers] Re: Emulator crashing

2009-03-25 Thread 青铜

I also have this question.
Every time I run HelloMapView (the example code in dev.android), I
only can see the title of the app, and the content is just black.
After I close the emulator, I can see these words:
DeviceMonitor]Error reading jdwp list: EOF
[2009-03-26 09:22:48 - DeviceMonitor]Connection Failure when starting
to monitor device 'emulator-5554' : device (emulator-5554) request
rejected: device not found

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: TERRIBLE BUG: aapt crashes on Windows

2009-03-25 Thread Stoyan Damov

On Thu, Mar 26, 2009 at 2:50 AM, Dianne Hackborn  wrote:
> On Wed, Mar 25, 2009 at 5:44 PM, Stoyan Damov 
>
> Can you please just provide a complete example that doesn't work?  We have
> lots of manifest files with spaces in them.  This isn't enough to help
> reproduce the problem.

I have attached the 2 manifest files to the issue.

>> >> However, make the difference -- this is not a bug report in the lines
>> >> of "aapt.exe crashed". I gave enough (for me at least) information how
>> >> to get from the crash address to the actual culprit code in aapt.
>> > a crash address is not enough information.
>> In some cases perhaps, in many cases, especially if the code is
>> written with many small functions, as opposed to a few big ones, it's
>> quite enough.
>
> It really doesn't make sense to be treating this as a SUPER SERIOUS MUST BE
> FIXED bug, and push off requests for help.  Doesn't it make sense that it
> would be easier to debug if someone can look at the input files aapt is
> getting to know what it is trying to do?  If it isn't important enough for
> you to spend some of your time helping diagnose the problem, why should
> anyone else believe that it is actually that important?

This is a "super super serious must be fixed asfp" bug because perhaps
tomorrow a CR/LF won't help!
Of course it makes sense that a sample input to the parser would help,
and I did provided one.

I still insist that a crash address is extremely helpful and in many
cases all you need to know to find a bug, but now that you said you
primarily develop on mac, I'm not sure whether gcc's map files are as
useful as VC's ones (although I suspect they are).

> Anyway, I have other work I need to do today, so I'll be looking forward to
> the bug being updated with a repro case.  (Or would love to have a patch for
> aapt submitted that fixes it!)

So did I :(

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



[android-developers] Re: Cupcake coming in April? Where is the SDK?

2009-03-25 Thread Anonymous Anonymous
Sorry i coundt find mmcblk0 but i can see mtdblock0 mtdblock1 and
mtdblock2
*and btw this will not help much :( as i need it inside application to
browse data
Thanks everyone


On Thu, Mar 26, 2009 at 6:26 AM, Victor  wrote:

>
> you may try:
>
> 1. adb shell
> 2. mount -t vfat /dev/block/mmcblk0 /sdcard
> but Gallery and Camera do not recognize the SD card even it's mounted,
> but you may brows sd card by adb shell and Eclipse
>
>
>
> On Mar 26, 9:48 am, Anonymous Anonymous 
> wrote:
> > Hi JBQ,
> > Thanks for the reply.. i do see mountd.conf in my older version and no
> > mountd.conf or vold.conf in my current working version.. i do have a
> valid
> > sdcard image.. by any chance can i mount it?
> >
> > On Thu, Mar 26, 2009 at 6:16 AM, Jean-Baptiste Queru  >wrote:
> >
> >
> >
> > > Code drops before the one that was done about 2 weeks ago had another
> > > mechanism for the management of the SD card (mountd vs vold), so that
> > > vold.conf wouldn't be necessary there.
> >
> > > JBQ
> >
> > > On Wed, Mar 25, 2009 at 5:27 PM, Anonymous Anonymous
> > >  wrote:
> > > > For me too the sdcard problem ...The file is missing(vold.conf) :( ,
> but
> > > i
> > > > checked another old sourcebase..where sdcard work.. there also that
> file
> > > > missing !!
> >
> > > > Any clues?
> > > > Thanks
> >
> > > > On Wed, Mar 25, 2009 at 10:55 PM, David Turner 
> > > wrote:
> >
> > > >> I fear it's a packaging problem. Is there a file named vold.conf in
> > > >> /system/etc ?
> > > >> I.e. what is the output of "adb shell /system/etc/vold.conf"
> > > >> If the file is missing, the SDCard cannot be mounted even if it is
> > > >> recognized by the kernel.
> >
> > > >> On Wed, Mar 25, 2009 at 12:40 PM, Victor 
> wrote:
> >
> > > >>> I'm also expirienced some problem with a today build of cupcake
> >
> > > >>> 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.
> >
> > > --
> > > Jean-Baptiste M. "JBQ" Queru
> > > Android Engineer, Google.
> >
> > > Questions sent directly to me that have no reason for being private
> > > will likely get ignored or forwarded to a public forum with no further
> > > warning.
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: TERRIBLE BUG: aapt crashes on Windows

2009-03-25 Thread Stoyan Damov

On Thu, Mar 26, 2009 at 2:42 AM, David Turner  wrote:
>
>> I can reproduce the crash ALL I want. I just remove a single empty
>> line in AndroidManifest.xml and the crash occurs. Add the line and the
>> crash is gone.
>
> can you attach these two files to the bug report?

Attached

> Please follow the instructions here: http://source.android.com/download
> The aapt sources are located in platform/frameworks/base/tools/aapt
>

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: Cupcake coming in April? Where is the SDK?

2009-03-25 Thread Victor

you may try:

1. adb shell
2. mount -t vfat /dev/block/mmcblk0 /sdcard
but Gallery and Camera do not recognize the SD card even it's mounted,
but you may brows sd card by adb shell and Eclipse



On Mar 26, 9:48 am, Anonymous Anonymous 
wrote:
> Hi JBQ,
> Thanks for the reply.. i do see mountd.conf in my older version and no
> mountd.conf or vold.conf in my current working version.. i do have a valid
> sdcard image.. by any chance can i mount it?
>
> On Thu, Mar 26, 2009 at 6:16 AM, Jean-Baptiste Queru wrote:
>
>
>
> > Code drops before the one that was done about 2 weeks ago had another
> > mechanism for the management of the SD card (mountd vs vold), so that
> > vold.conf wouldn't be necessary there.
>
> > JBQ
>
> > On Wed, Mar 25, 2009 at 5:27 PM, Anonymous Anonymous
> >  wrote:
> > > For me too the sdcard problem ...The file is missing(vold.conf) :( , but
> > i
> > > checked another old sourcebase..where sdcard work.. there also that file
> > > missing !!
>
> > > Any clues?
> > > Thanks
>
> > > On Wed, Mar 25, 2009 at 10:55 PM, David Turner 
> > wrote:
>
> > >> I fear it's a packaging problem. Is there a file named vold.conf in
> > >> /system/etc ?
> > >> I.e. what is the output of "adb shell /system/etc/vold.conf"
> > >> If the file is missing, the SDCard cannot be mounted even if it is
> > >> recognized by the kernel.
>
> > >> On Wed, Mar 25, 2009 at 12:40 PM, Victor  wrote:
>
> > >>> I'm also expirienced some problem with a today build of cupcake
>
> > >>> 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.
>
> > --
> > Jean-Baptiste M. "JBQ" Queru
> > Android Engineer, Google.
>
> > Questions sent directly to me that have no reason for being private
> > will likely get ignored or forwarded to a public forum with no further
> > warning.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: TERRIBLE BUG: aapt crashes on Windows

2009-03-25 Thread Stoyan Damov

On Thu, Mar 26, 2009 at 2:43 AM, Dianne Hackborn  wrote:
> On Wed, Mar 25, 2009 at 4:59 PM, Stoyan Damov 
> wrote:
>>
>> The information I provided (consistent crash address and assembly
>> around it) should be sufficient to any skilled Windows C++ developer
>> to find the bug in 10 minutes, provided that the appt tool was built
>> with Microsoft Visual Studio, or another toolchain, which has the
>> equivalent of VS's .map files.
>
> I am the primary developer of the tool, and the computer I do my development
> on is a Mac.  I don't have a Windows machine, and have no idea how to build
> that tool for windows.

OK, I understand. Who builds the tool for the Windows SDK then? What
tools are used to build it?
So, is the tool open source, where's the source, and if you could ask
who builds the tool for Windows, what tools are used to build it and
how is it built?

>
> If you give me a test case then I can run it on my machine and debug it.
> Very likely the place it crashes is not going to tell a whole lot about the
> problem (I have enough experience debugging aapt to have been through this),
> so being able to reproduce the problem will help me spend a lot less time on
> fixing it -- I can turn on debugging logs to identify what is going on, etc.

A single empty line between 2 activities in the AndroidManifest.xml
make the difference.

>
> That said, you are acting like you expect someone to drop what they are
> doing today to spend all of their time on this bug.  I'm sorry, but it isn't
> going to happen -- a bug fix for this would be in the next SDK, which means
> probably cupcake, so you won't have an SDK with a fix for it until then.

Whoa, so if I couldn't workaround the problem I should seize
development? Now that's great!

> Also we are still focused on development on the device-side parts of Cupcake
> (since those need to be ready first for schedules, to be burned on devices
> as they are manufactured), so fixes on tools in general will be held up
> until we are ready to work on that part.

And here we go again with the cupcake thing (a bit off-topic).
Schedules were non-existent yesterday, today you're chasing deadlines?
Other than that I understand fixing tools is with lesser priority, but
at least we need the source code and build instructions so we can fix
them and continue our work!

>
> Finally, if this is really such a critical issue that you can't do anything
> else until it is addressed, you -do- have the power to build aapt yourself
> and debug it.  You aren't reliant on Google to do things for you.  That's
> the give and take we have here: Google is giving away a bunch of stuff to
> the OHA for Android so lots of people can use it for free, but because we
> are not being paid for any of this work it is hard to have people who can
> drop everything for a problem that a particular developer is having.

OK, this answers my previous questions. aapt is open source, and it's
somewhere. Now I only need to figure out how to build it.

> I -do- want to have this fixed.  I won't be able to do it today or probably
> even tomorrow.  It is also much easier to fix with a test case; without a
> test case, I can anticipate spending a lot more time on it (just figuring
> out how to get a windows build) so it will naturally be lower on my list of
> priorties than other things that I can spend less time on for a bigger
> benefit.

Understood.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: TERRIBLE BUG: aapt crashes on Windows

2009-03-25 Thread David Turner
On Thu, Mar 26, 2009 at 1:44 AM, Stoyan Damov wrote:

> I don't have a problem sharing my manifest file, but here's the
> current difference between a manifests with which the app builds, and
> one it doesn't - a SINGLE empty line.
> For example, if my manifest contains these lines:
>
> 
>
> 
>
> it will build.
>
> 
>

Unfortunately, this is probably not enough to understand the problem.
It would really be better if you could attach your manifests files to the
bug.

Thanks in advance,

- Digit


>
> > there is not enough detail in your work-around post to infer *anything*
> > about the origin of the crash. For example, can you share two versions of
> > your manifest files (one that doesn't crash, and the other that does,
> > preferrably with as few changes as possible between them)?
> > Do you understand that I'm trying to help fix the problem for you and
> other
> > people that might encounter it in the future?
>
> I'm not sure. A crash address, contrary to your opinion about it is
> quite a bit of information. It is almost a direct pointer to the
> crashing function.
>
> > Ranting with CAPITAL LETTERS without trying to provide a minimum amount
> of
> > information is   a disservice to other developers and the people trying
> to
> > help you.
>
> Sorry for the CAPS LOCK rants, but you can imagine how annoyed I was.
>
> >
> >>
> >> However, make the difference -- this is not a bug report in the lines
> >> of "aapt.exe crashed". I gave enough (for me at least) information how
> >> to get from the crash address to the actual culprit code in aapt.
> >
> > a crash address is not enough information.
>
> In some cases perhaps, in many cases, especially if the code is
> written with many small functions, as opposed to a few big ones, it's
> quite enough.
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: TERRIBLE BUG: aapt crashes on Windows

2009-03-25 Thread Dianne Hackborn
On Wed, Mar 25, 2009 at 5:44 PM, Stoyan Damov wrote:

> I don't have a problem sharing my manifest file, but here's the
> current difference between a manifests with which the app builds, and
> one it doesn't - a SINGLE empty line.
> For example, if my manifest contains these lines:
>
> 
>
> 


Can you please just provide a complete example that doesn't work?  We have
lots of manifest files with spaces in them.  This isn't enough to help
reproduce the problem.


> >> However, make the difference -- this is not a bug report in the lines
> >> of "aapt.exe crashed". I gave enough (for me at least) information how
> >> to get from the crash address to the actual culprit code in aapt.
> > a crash address is not enough information.
> In some cases perhaps, in many cases, especially if the code is
> written with many small functions, as opposed to a few big ones, it's
> quite enough.


It really doesn't make sense to be treating this as a SUPER SERIOUS MUST BE
FIXED bug, and push off requests for help.  Doesn't it make sense that it
would be easier to debug if someone can look at the input files aapt is
getting to know what it is trying to do?  If it isn't important enough for
you to spend some of your time helping diagnose the problem, why should
anyone else believe that it is actually that important?

Anyway, I have other work I need to do today, so I'll be looking forward to
the bug being updated with a repro case.  (Or would love to have a patch for
aapt submitted that fixes it!)

-- 
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.  All such questions should be posted on public
forums, where I and others can see and answer them.

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



[android-developers] Re: Cupcake coming in April? Where is the SDK?

2009-03-25 Thread Anonymous Anonymous
Hi JBQ,
Thanks for the reply.. i do see mountd.conf in my older version and no
mountd.conf or vold.conf in my current working version.. i do have a valid
sdcard image.. by any chance can i mount it?


On Thu, Mar 26, 2009 at 6:16 AM, Jean-Baptiste Queru wrote:

>
> Code drops before the one that was done about 2 weeks ago had another
> mechanism for the management of the SD card (mountd vs vold), so that
> vold.conf wouldn't be necessary there.
>
> JBQ
>
> On Wed, Mar 25, 2009 at 5:27 PM, Anonymous Anonymous
>  wrote:
> > For me too the sdcard problem ...The file is missing(vold.conf) :( , but
> i
> > checked another old sourcebase..where sdcard work.. there also that file
> > missing !!
> >
> > Any clues?
> > Thanks
> >
> > On Wed, Mar 25, 2009 at 10:55 PM, David Turner 
> wrote:
> >>
> >> I fear it's a packaging problem. Is there a file named vold.conf in
> >> /system/etc ?
> >> I.e. what is the output of "adb shell /system/etc/vold.conf"
> >> If the file is missing, the SDCard cannot be mounted even if it is
> >> recognized by the kernel.
> >>
> >> On Wed, Mar 25, 2009 at 12:40 PM, Victor  wrote:
> >>>
> >>> I'm also expirienced some problem with a today build of cupcake
> >>>
> >>> 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.
> >>>
> >>>
> >>
> >>
> >>
> >
> >
> > >
> >
>
>
>
> --
> Jean-Baptiste M. "JBQ" Queru
> Android Engineer, Google.
>
> Questions sent directly to me that have no reason for being private
> will likely get ignored or forwarded to a public forum with no further
> warning.
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 coming in April? Where is the SDK?

2009-03-25 Thread David Turner
the vold.conf thing is a new feature of Cupcake so it's normal that this is
not available in previous builds.
"vold" is the name of the new mount daemon (the old one was named "mountd" I
believe) that adds support for encrypted partition and other stuff, though
most of this is currently disabled.

The file not being there means there is a bug in the build, and vold will
not mount the SDCard without it. I'll see what we can do about it.

On Thu, Mar 26, 2009 at 1:27 AM, Anonymous Anonymous <
firewallbr...@googlemail.com> wrote:

> For me too the sdcard problem ...The file is missing(vold.conf) :( , but i
> checked another old sourcebase..where sdcard work.. there also that file
> missing !!
>
> Any clues?
> Thanks
>
>
> On Wed, Mar 25, 2009 at 10:55 PM, David Turner  wrote:
>
>> I fear it's a packaging problem. Is there a file named vold.conf in
>> /system/etc ?I.e. what is the output of "adb shell /system/etc/vold.conf"
>>
>> If the file is missing, the SDCard cannot be mounted even if it is
>> recognized by the kernel.
>>
>>
>> On Wed, Mar 25, 2009 at 12:40 PM, Victor  wrote:
>>
>>>
>>> I'm also expirienced some problem with a today build of cupcake
>>>
>>> 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: TERRIBLE BUG: aapt crashes on Windows

2009-03-25 Thread Stoyan Damov

On Thu, Mar 26, 2009 at 2:39 AM, Mark Murphy  wrote:
>
> Stoyan Damov wrote:
>> It would be nice, if you stopped playing Google's advocate for one day :)
>
> You mean like this:
>
> http://www.networkworld.com/community/node/40044
> http://www.networkworld.com/community/node/39099
> http://www.networkworld.com/community/node/38830
>
> and many others?

Heh, touche :)

>
> Trust me, "I calls 'em as I sees 'em".
>
> I just don't tend to bash Google/OHA on these lists too much, because
> that will be more likely to be seen as personal attacks on the core
> Android team, and they aren't the source of my ire.

Agreed. What if they are? ;)

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 coming in April? Where is the SDK?

2009-03-25 Thread Jean-Baptiste Queru

Code drops before the one that was done about 2 weeks ago had another
mechanism for the management of the SD card (mountd vs vold), so that
vold.conf wouldn't be necessary there.

JBQ

On Wed, Mar 25, 2009 at 5:27 PM, Anonymous Anonymous
 wrote:
> For me too the sdcard problem ...The file is missing(vold.conf) :( , but i
> checked another old sourcebase..where sdcard work.. there also that file
> missing !!
>
> Any clues?
> Thanks
>
> On Wed, Mar 25, 2009 at 10:55 PM, David Turner  wrote:
>>
>> I fear it's a packaging problem. Is there a file named vold.conf in
>> /system/etc ?
>> I.e. what is the output of "adb shell /system/etc/vold.conf"
>> If the file is missing, the SDCard cannot be mounted even if it is
>> recognized by the kernel.
>>
>> On Wed, Mar 25, 2009 at 12:40 PM, Victor  wrote:
>>>
>>> I'm also expirienced some problem with a today build of cupcake
>>>
>>> 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.
>>>
>>>
>>
>>
>>
>
>
> >
>



-- 
Jean-Baptiste M. "JBQ" Queru
Android Engineer, Google.

Questions sent directly to me that have no reason for being private
will likely get ignored or forwarded to a public forum with no further
warning.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: TERRIBLE BUG: aapt crashes on Windows

2009-03-25 Thread Stoyan Damov

On Thu, Mar 26, 2009 at 2:36 AM, David Turner  wrote:
> On Thu, Mar 26, 2009 at 1:17 AM, Stoyan Damov 



> As I said previously, we need the input passed to aapt, or at a minimum some
> information about the things that contributed to the crash (e.g. your
> manifest file,
> for example).

I don't have a problem sharing my manifest file, but here's the
current difference between a manifests with which the app builds, and
one it doesn't - a SINGLE empty line.
For example, if my manifest contains these lines:





it will build.



> there is not enough detail in your work-around post to infer *anything*
> about the origin of the crash. For example, can you share two versions of
> your manifest files (one that doesn't crash, and the other that does,
> preferrably with as few changes as possible between them)?
> Do you understand that I'm trying to help fix the problem for you and other
> people that might encounter it in the future?

I'm not sure. A crash address, contrary to your opinion about it is
quite a bit of information. It is almost a direct pointer to the
crashing function.

> Ranting with CAPITAL LETTERS without trying to provide a minimum amount of
> information is   a disservice to other developers and the people trying to
> help you.

Sorry for the CAPS LOCK rants, but you can imagine how annoyed I was.

>
>>
>> However, make the difference -- this is not a bug report in the lines
>> of "aapt.exe crashed". I gave enough (for me at least) information how
>> to get from the crash address to the actual culprit code in aapt.
>
> a crash address is not enough information.

In some cases perhaps, in many cases, especially if the code is
written with many small functions, as opposed to a few big ones, it's
quite enough.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: TERRIBLE BUG: aapt crashes on Windows

2009-03-25 Thread Dianne Hackborn
On Wed, Mar 25, 2009 at 4:59 PM, Stoyan Damov wrote:

> The information I provided (consistent crash address and assembly
> around it) should be sufficient to any skilled Windows C++ developer
> to find the bug in 10 minutes, provided that the appt tool was built
> with Microsoft Visual Studio, or another toolchain, which has the
> equivalent of VS's .map files.


I am the primary developer of the tool, and the computer I do my development
on is a Mac.  I don't have a Windows machine, and have no idea how to build
that tool for windows.

If you give me a test case then I can run it on my machine and debug it.
Very likely the place it crashes is not going to tell a whole lot about the
problem (I have enough experience debugging aapt to have been through this),
so being able to reproduce the problem will help me spend a lot less time on
fixing it -- I can turn on debugging logs to identify what is going on, etc.

That said, you are acting like you expect someone to drop what they are
doing today to spend all of their time on this bug.  I'm sorry, but it isn't
going to happen -- a bug fix for this would be in the next SDK, which means
probably cupcake, so you won't have an SDK with a fix for it until then.
Also we are still focused on development on the device-side parts of Cupcake
(since those need to be ready first for schedules, to be burned on devices
as they are manufactured), so fixes on tools in general will be held up
until we are ready to work on that part.

Finally, if this is really such a critical issue that you can't do anything
else until it is addressed, you -do- have the power to build aapt yourself
and debug it.  You aren't reliant on Google to do things for you.  That's
the give and take we have here: Google is giving away a bunch of stuff to
the OHA for Android so lots of people can use it for free, but because we
are not being paid for any of this work it is hard to have people who can
drop everything for a problem that a particular developer is having.

I -do- want to have this fixed.  I won't be able to do it today or probably
even tomorrow.  It is also much easier to fix with a test case; without a
test case, I can anticipate spending a lot more time on it (just figuring
out how to get a windows build) so it will naturally be lower on my list of
priorties than other things that I can spend less time on for a bigger
benefit.

-- 
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.  All such questions should be posted on public
forums, where I and others can see and answer them.

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



[android-developers] Re: TERRIBLE BUG: aapt crashes on Windows

2009-03-25 Thread David Turner
On Thu, Mar 26, 2009 at 1:34 AM, Stoyan Damov wrote:

>
> Now that I can continue working, and being the single developer
> experienced this particular crash, and realizing I was being very
> harsh to Android engineers tonight, I *want* to help others.
>
> I can reproduce the crash ALL I want. I just remove a single empty
> line in AndroidManifest.xml and the crash occurs. Add the line and the
> crash is gone.
>

can you attach these two files to the bug report?


>
> Is appt open source, where can I get the source code, and how do I
> build it on Windows, so I can debug and fix the bug?
>

Please follow the instructions here: http://source.android.com/download
The aapt sources are located in platform/frameworks/base/tools/aapt


>
> Cheers
>
> On Thu, Mar 26, 2009 at 2:17 AM, Stoyan Damov 
> wrote:
> > On Thu, Mar 26, 2009 at 2:09 AM, David Turner  wrote:
> >>
> >>
> >> On Thu, Mar 26, 2009 at 12:12 AM, Stoyan Damov 
> >> wrote:
> >>>
> >>> David,
> >>>
> >>> I can't provide a way to reproduce the problem. This is not a problem,
> >>> it is a crash. It's not like I'm tapping this menu here, and that
> >>> button there and something crashes.
> >>
> >> A crash is a problem. We need the input that aapt receives to be able to
> >> reproduce and analyze the crash, otherwise even having the symbols is
> not
> >> going to help tremendously.
> >
> > David, give me a break. The tool should have been instrumented in the
> > 1st place to catch these crashes (SetUnhandledExceptionFilter and
> > MiniDumpWriteDump ring a bell?).
> >
> >> I understand that you can't send your whole project to the bug tracker,
> but
> >> can you repeat the crash with a simpler program that you could share ?
> >> If this is not possible, what kind of things did you add to reproduce
> the
> >> crash. Can you remove half of what you added and still reproduce the
> crash ?
> >> Can you find the exact culprit in your additions ? Does adding even more
> >> code, or changing a few things in it gets rid of the crash ?
> >> As said previously, if we can't reproduce this, chances of debugging it
> are
> >> pretty dim.
> >
> > If you've seen the workaround post you've noticed that I did try to
> > change something.
> > Actually first I rolled back to what I had in SVN. It worked. I then
> > tried to figure out how to start adding the new stuff (I've written
> > more than those lines today, and haven't committed) incrementally. And
> > then I decided to first check what would happen if I simply remove the
> > new activity I've added today from the manifest file, -- the rest you
> > can see in the post.
> >
> > However, make the difference -- this is not a bug report in the lines
> > of "aapt.exe crashed". I gave enough (for me at least) information how
> > to get from the crash address to the actual culprit code in aapt.
> >
> > Cheers
> >
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: TERRIBLE BUG: aapt crashes on Windows

2009-03-25 Thread Mark Murphy

Stoyan Damov wrote:
> It would be nice, if you stopped playing Google's advocate for one day :)

You mean like this:

http://www.networkworld.com/community/node/40044

and this:

http://www.networkworld.com/community/node/39099

and this:

http://www.networkworld.com/community/node/38830

and many others?

Trust me, "I calls 'em as I sees 'em".

I just don't tend to bash Google/OHA on these lists too much, because
that will be more likely to be seen as personal attacks on the core
Android team, and they aren't the source of my ire.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
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] Re: TERRIBLE BUG: aapt crashes on Windows

2009-03-25 Thread David Turner
On Thu, Mar 26, 2009 at 1:17 AM, Stoyan Damov wrote:

>
> >
> > A crash is a problem. We need the input that aapt receives to be able to
> > reproduce and analyze the crash, otherwise even having the symbols is not
> > going to help tremendously.
>
> David, give me a break. The tool should have been instrumented in the
> 1st place to catch these crashes (SetUnhandledExceptionFilter and
> MiniDumpWriteDump ring a bell?).
>

I know what these are and they wouldn't help in any way in this specific
case.

As I said previously, we need the input passed to aapt, or at a minimum some
information about the things that contributed to the crash (e.g. your
manifest file,
for example).


> If you've seen the workaround post you've noticed that I did try to
> change something.
> Actually first I rolled back to what I had in SVN. It worked. I then
> tried to figure out how to start adding the new stuff (I've written
> more than those lines today, and haven't committed) incrementally. And
> then I decided to first check what would happen if I simply remove the
> new activity I've added today from the manifest file, -- the rest you
> can see in the post.
>

there is not enough detail in your work-around post to infer *anything*
about the origin of the crash. For example, can you share two versions of
your manifest files (one that doesn't crash, and the other that does,
preferrably with as few changes as possible between them)?

Do you understand that I'm trying to help fix the problem for you and other
people that might encounter it in the future?

Ranting with CAPITAL LETTERS without trying to provide a minimum amount of
information is   a disservice to other developers and the people trying to
help you.


>
> However, make the difference -- this is not a bug report in the lines
> of "aapt.exe crashed". I gave enough (for me at least) information how
> to get from the crash address to the actual culprit code in aapt.
>

a crash address is not enough information.


>
> Cheers
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: TERRIBLE BUG: aapt crashes on Windows

2009-03-25 Thread Stoyan Damov

Now that I can continue working, and being the single developer
experienced this particular crash, and realizing I was being very
harsh to Android engineers tonight, I *want* to help others.

I can reproduce the crash ALL I want. I just remove a single empty
line in AndroidManifest.xml and the crash occurs. Add the line and the
crash is gone.

Is appt open source, where can I get the source code, and how do I
build it on Windows, so I can debug and fix the bug?

Cheers

On Thu, Mar 26, 2009 at 2:17 AM, Stoyan Damov  wrote:
> On Thu, Mar 26, 2009 at 2:09 AM, David Turner  wrote:
>>
>>
>> On Thu, Mar 26, 2009 at 12:12 AM, Stoyan Damov 
>> wrote:
>>>
>>> David,
>>>
>>> I can't provide a way to reproduce the problem. This is not a problem,
>>> it is a crash. It's not like I'm tapping this menu here, and that
>>> button there and something crashes.
>>
>> A crash is a problem. We need the input that aapt receives to be able to
>> reproduce and analyze the crash, otherwise even having the symbols is not
>> going to help tremendously.
>
> David, give me a break. The tool should have been instrumented in the
> 1st place to catch these crashes (SetUnhandledExceptionFilter and
> MiniDumpWriteDump ring a bell?).
>
>> I understand that you can't send your whole project to the bug tracker, but
>> can you repeat the crash with a simpler program that you could share ?
>> If this is not possible, what kind of things did you add to reproduce the
>> crash. Can you remove half of what you added and still reproduce the crash ?
>> Can you find the exact culprit in your additions ? Does adding even more
>> code, or changing a few things in it gets rid of the crash ?
>> As said previously, if we can't reproduce this, chances of debugging it are
>> pretty dim.
>
> If you've seen the workaround post you've noticed that I did try to
> change something.
> Actually first I rolled back to what I had in SVN. It worked. I then
> tried to figure out how to start adding the new stuff (I've written
> more than those lines today, and haven't committed) incrementally. And
> then I decided to first check what would happen if I simply remove the
> new activity I've added today from the manifest file, -- the rest you
> can see in the post.
>
> However, make the difference -- this is not a bug report in the lines
> of "aapt.exe crashed". I gave enough (for me at least) information how
> to get from the crash address to the actual culprit code in aapt.
>
> Cheers
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 coming in April? Where is the SDK?

2009-03-25 Thread Anonymous Anonymous
For me too the sdcard problem ...The file is missing(vold.conf) :( , but i
checked another old sourcebase..where sdcard work.. there also that file
missing !!

Any clues?
Thanks

On Wed, Mar 25, 2009 at 10:55 PM, David Turner  wrote:

> I fear it's a packaging problem. Is there a file named vold.conf in
> /system/etc ?I.e. what is the output of "adb shell /system/etc/vold.conf"
>
> If the file is missing, the SDCard cannot be mounted even if it is
> recognized by the kernel.
>
>
> On Wed, Mar 25, 2009 at 12:40 PM, Victor  wrote:
>
>>
>> I'm also expirienced some problem with a today build of cupcake
>>
>> 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: TERRIBLE BUG: aapt crashes on Windows

2009-03-25 Thread Stoyan Damov

Mark,

It would be nice, if you stopped playing Google's advocate for one day :)

If my game crashes, I'm the ONLY one to suffer the consequences.
If a tool, such as appt crashes, it could seize the development of
unlimited number of development companies (and affect even more
users).

Plus, I do handle all kinds of errors (both checked and unchecked
exceptins), if these are expected to happen. I don't handle
exceptions, such as OutOfMemoryException, or one denying me read
permissions to files my app has previously created.

Cheers

On Thu, Mar 26, 2009 at 2:21 AM, Mark Murphy  wrote:
>
> Stoyan Damov wrote:
>> David, give me a break. The tool should have been instrumented in the
>> 1st place to catch these crashes (SetUnhandledExceptionFilter and
>> MiniDumpWriteDump ring a bell?).
>
> To quote yourself:
>
> "Am I supposed to wrap ALL my code in exception handlers? What good if
> I do that?"
>
> (from http://tinyurl.com/ct3fcf)
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com
> 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] Re: TERRIBLE BUG: aapt crashes on Windows

2009-03-25 Thread Mark Murphy

Stoyan Damov wrote:
> David, give me a break. The tool should have been instrumented in the
> 1st place to catch these crashes (SetUnhandledExceptionFilter and
> MiniDumpWriteDump ring a bell?).

To quote yourself:

"Am I supposed to wrap ALL my code in exception handlers? What good if
I do that?"

(from http://tinyurl.com/ct3fcf)

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
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] Re: TERRIBLE BUG: aapt crashes on Windows

2009-03-25 Thread Stoyan Damov

On Thu, Mar 26, 2009 at 2:09 AM, David Turner  wrote:
>
>
> On Thu, Mar 26, 2009 at 12:12 AM, Stoyan Damov 
> wrote:
>>
>> David,
>>
>> I can't provide a way to reproduce the problem. This is not a problem,
>> it is a crash. It's not like I'm tapping this menu here, and that
>> button there and something crashes.
>
> A crash is a problem. We need the input that aapt receives to be able to
> reproduce and analyze the crash, otherwise even having the symbols is not
> going to help tremendously.

David, give me a break. The tool should have been instrumented in the
1st place to catch these crashes (SetUnhandledExceptionFilter and
MiniDumpWriteDump ring a bell?).

> I understand that you can't send your whole project to the bug tracker, but
> can you repeat the crash with a simpler program that you could share ?
> If this is not possible, what kind of things did you add to reproduce the
> crash. Can you remove half of what you added and still reproduce the crash ?
> Can you find the exact culprit in your additions ? Does adding even more
> code, or changing a few things in it gets rid of the crash ?
> As said previously, if we can't reproduce this, chances of debugging it are
> pretty dim.

If you've seen the workaround post you've noticed that I did try to
change something.
Actually first I rolled back to what I had in SVN. It worked. I then
tried to figure out how to start adding the new stuff (I've written
more than those lines today, and haven't committed) incrementally. And
then I decided to first check what would happen if I simply remove the
new activity I've added today from the manifest file, -- the rest you
can see in the post.

However, make the difference -- this is not a bug report in the lines
of "aapt.exe crashed". I gave enough (for me at least) information how
to get from the crash address to the actual culprit code in aapt.

Cheers

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



WORKED AROUND (was Re: [android-developers] Re: TERRIBLE BUG: aapt crashes on Windows)

2009-03-25 Thread Stoyan Damov

HOW HORRIBLE bug is this?!?!?!

I started experimenting what would happen if I comment out an
activity, and so I did - I commented out a RANDOM activity in
AndroidManifest.xml and WHAT THE ..., the build SUCCEEDED.

And I just sensed that this bug is SO RIDICULOUS that I should
probably remove the comment, but simply add a few blank lines to the
manifest file. And VOILA - my build succeeds.

WHAT THE !...@#$!!!


On Thu, Mar 26, 2009 at 1:59 AM, Stoyan Damov  wrote:
> On Thu, Mar 26, 2009 at 1:37 AM, Mark Murphy  wrote:
>>
>> Stoyan Damov wrote:
>>> I can't provide a way to reproduce the problem.
>>
>> 1. Create a fresh project.
>>
>> 2. Copy your entire res/ tree out of your current project into the fresh
>> project.
>>
>> 3. Try building.
>
> Will try. If this helps, I will be very much in debt to you.
>
>>
>> If the build crashes, then zip up the new project and attach it to the
>> issue.
>
> You're kidding right? I should attach the source code of my paid application?
>
>> Or, try winnowing out some resources (e.g., ones you might not
>> want to upload) and see if the problem persists -- if the problem goes
>> away, it may be tied to the resources you removed.
>
> I'm saying this for the last time tonight. I haven't added ANY
> resources. I've created a class, and used it in another one. That's it
> - wrote some code.
>
>>
>> If that doesn't crash, then the problem depends on other stuff (e.g.,
>> your original project's manifest, other build settings you may have
>> enabled) and may truly be difficult to reproduce without uploading your
>> original app, which I suspect you may be less than inclined to do.
>
> No, I haven't enabled anything and I stated that. Perhaps I should be
> more clear - everything is vanilla installation - SDK 1.1 with Eclipse
> 3.4.1 with no tweaks whatsoever.
> The last time I built the code successfully was an hour ago for crying
> out loud. Then I wrote some code and aapt crashes. Is it clear now?
>
>>
>> But if you really want this "TERRIBLE BUG" fixed, you really should
>> consider at least trying to give the developers steps to reproduce the
>> crash.
>>
>
> I very much doubt it WILL get fixed. I can see clearly that no one
> wants to fix it.
>
>> -
>
> 
>
> The information I provided (consistent crash address and assembly
> around it) should be sufficient to any skilled Windows C++ developer
> to find the bug in 10 minutes, provided that the appt tool was built
> with Microsoft Visual Studio, or another toolchain, which has the
> equivalent of VS's .map files.
>
> That is why, knowing that Android engineers are indeed skilled, I'm
> left with the impression, that they do not want to fix the bug, most
> probably because of the fact that I'm again the single guy reporting
> the 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: TERRIBLE BUG: aapt crashes on Windows

2009-03-25 Thread David Turner
On Thu, Mar 26, 2009 at 12:12 AM, Stoyan Damov wrote:

>
> David,
>
> I can't provide a way to reproduce the problem. This is not a problem,
> it is a crash. It's not like I'm tapping this menu here, and that
> button there and something crashes.


A crash is a problem. We need the input that aapt receives to be able to
reproduce and analyze the crash, otherwise even having the symbols is not
going to help tremendously.

I understand that you can't send your whole project to the bug tracker, but
can you repeat the crash with a simpler program that you could share ?

If this is not possible, what kind of things did you add to reproduce the
crash. Can you remove half of what you added and still reproduce the crash ?
Can you find the exact culprit in your additions ? Does adding even more
code, or changing a few things in it gets rid of the crash ?

As said previously, if we can't reproduce this, chances of debugging it are
pretty dim.


>
> I can't possibly know how and what the aapt tool does. Like I said, I
> added probably 50 lines of code tops, tried to build and the tool
> crashed.
> I did try to rollback the code (as I think it was), but it didn't
> help. I deleted the bin folder again to no avail.
>
> David, I just saw your next post. What syntax are you interested in?
> I'm just building from Eclipse with the default SDK 1.1 installation,
> I'm not passing any extra parameters to aapt.
>
> I don't understand what's the big deal for the tool's developer to
> just open the .map file of the release build (provided that he created
> such file), find the function near the crash address and see what's
> the problem.
> I understand that if the appt tool implements a parser or something
> which has been partly code-gen'ed by another tool, which has generated
> functions with thousands of lines of code it will be a lot more
> difficult, but if that's not the case, finding the bug should be a
> matter of minutes.
>
> In the mean time I'll rollback my code from version control and will
> try re-adding and rebuilding until I see what causes the tool to
> crash.
>
> On Thu, Mar 26, 2009 at 1:02 AM, David Turner  wrote:
> > It would be better if you could provide a way to reproduce the problem.
> > try b.android.com to report the problem
> >
> > On Wed, Mar 25, 2009 at 11:38 PM, Stoyan Damov 
> > wrote:
> >>
> >> This is a showstopper, and I'm experiencing for the 2nd time.
> >>
> >> Shouldn't be hard to find, if the apt tool developers have created a
> >> .map file for the release build.
> >> It seems like the dev has dereferenced a null pointer (see below).
> >>
> >> I didn't do anything fancy. Just added a dozen lines of code and tried
> >> to build. I don't remember the URL for bug reports, so here it is. If
> >> Mark's not lazy, he could file the bug ;)
> >>
> >> Environment: WinXP SP2, Eclipse 3.4.1, SDK 1.1
> >>
> >> Stack trace -- useless to me, but that's what you get for not shipping
> >> symbols (lack of Windows symbols is my bad but I reinstalled my
> >> machine fairly recently and didn't need them).
> >>
> >> >   aapt.exe!004363b2()
> >>[Frames below may be incorrect and/or missing, no symbols loaded
> >> for
> >> aapt.exe]
> >>ntdll.dll!7c9106eb()
> >>aapt.exe!0040df1c()
> >>aapt.exe!0043a05c()
> >>aapt.exe!0040dd14()
> >>ntdll.dll!7c9106eb()
> >>aapt.exe!0043a05c()
> >> ...
> >>
> >> Assembly around the crash:
> >>
> >> 0043638F  jae 004363B8
> >> 00436391  cmp word ptr [edx],7Ch
> >> 00436395  jmp 004363B6
> >> 00436397  add dword ptr [ebp-8Ch],2
> >> 0043639E  mov edx,dword ptr [ebp-88h]
> >> 004363A4  cmp dword ptr [ebp-8Ch],edx
> >> 004363AA  jae 004363B8
> >> 004363AC  mov ecx,dword ptr [ebp-8Ch]  // *ecx is 0 (see below)
> >> 004363B2  cmp word ptr [ecx],7Ch <--- breaks here,
> >> crash is on mov above
> >> 004363B6  jne 00436397
> >> 004363B8  xor edx,edx
> >> 004363BA  mov edi,eax
> >>
> >> Registers:
> >>
> >> EAX = 00FC79DC EBX = 0053 ECX = 012FA000 EDX = 012FA008 ESI =
> >> 012F9F50 EDI = 00FC7A5C EIP = 004363B2 ESP = 0022F5F0 EBP = 0022F6A8
> >> EFL = 0293
> >>
> >> 012FA000 = 
> >>
> >> Memory around ECX:
> >>
> >> 0x012F9F50  6d 00 63 00 63 00 7c 00 6d 00 6e 00 63 00 7c 00 6c 00 6f
> >> 00 63 00 61 00 6c 00 65 00 7c 00 74 00 6f 00 75 00 63 00 68 00 73 00
> >> 63 00  m.c.c.|.m.n.c.|.l.o.c.a.l.e.|.t.o.u.c.h.s.c.
> >> 0x012F9F7C  72 00 65 00 65 00 6e 00 7c 00 6b 00 65 00 79 00 62 00 6f
> >> 00 61 00 72 00 64 00 7c 00 6b 00 65 00 79 00 62 00 6f 00 61 00 72 00
> >> 64 00  r.e.e.n.|.k.e.y.b.o.a.r.d.|.k.e.y.b.o.a.r.d.
> >> 0x012F9FA8  48 00 69 00 64 00 64 00 65 00 6e 00 7c 00 6e 00 61 00 76
> >> 00 69 00 67 00 61 00 74 00 69 00 6f 00 6e 00 7c 00 6f 00 72 00 69 00
> >> 65 00  H.i.d.d.e.n.|.n.a.v.i.g.a.t.i.o.n.|.o.r.i.e.
> >> 0x012F9FD4  6e 00 74 00 61 00 74 00 69 00 6f 00 6e 00 7c 00 66 00 6f
> >> 00 6e 00 74 00 53 00 63

[android-developers] Re: TERRIBLE BUG: aapt crashes on Windows

2009-03-25 Thread Stoyan Damov

On Thu, Mar 26, 2009 at 1:37 AM, Mark Murphy  wrote:
>
> Stoyan Damov wrote:
>> I can't provide a way to reproduce the problem.
>
> 1. Create a fresh project.
>
> 2. Copy your entire res/ tree out of your current project into the fresh
> project.
>
> 3. Try building.

Will try. If this helps, I will be very much in debt to you.

>
> If the build crashes, then zip up the new project and attach it to the
> issue.

You're kidding right? I should attach the source code of my paid application?

> Or, try winnowing out some resources (e.g., ones you might not
> want to upload) and see if the problem persists -- if the problem goes
> away, it may be tied to the resources you removed.

I'm saying this for the last time tonight. I haven't added ANY
resources. I've created a class, and used it in another one. That's it
- wrote some code.

>
> If that doesn't crash, then the problem depends on other stuff (e.g.,
> your original project's manifest, other build settings you may have
> enabled) and may truly be difficult to reproduce without uploading your
> original app, which I suspect you may be less than inclined to do.

No, I haven't enabled anything and I stated that. Perhaps I should be
more clear - everything is vanilla installation - SDK 1.1 with Eclipse
3.4.1 with no tweaks whatsoever.
The last time I built the code successfully was an hour ago for crying
out loud. Then I wrote some code and aapt crashes. Is it clear now?

>
> But if you really want this "TERRIBLE BUG" fixed, you really should
> consider at least trying to give the developers steps to reproduce the
> crash.
>

I very much doubt it WILL get fixed. I can see clearly that no one
wants to fix it.

> -



The information I provided (consistent crash address and assembly
around it) should be sufficient to any skilled Windows C++ developer
to find the bug in 10 minutes, provided that the appt tool was built
with Microsoft Visual Studio, or another toolchain, which has the
equivalent of VS's .map files.

That is why, knowing that Android engineers are indeed skilled, I'm
left with the impression, that they do not want to fix the bug, most
probably because of the fact that I'm again the single guy reporting
the 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: java.nio.channels.IllegalSelectorException

2009-03-25 Thread friedger

Any updates on this one?
Is it allowed to open a socket channel? Any hints appreciated!

Regards,
Friedger

If you want to see my stack trace:

03-25 23:16:26.279: ERROR/AndroidRuntime(869): Caused by:
java.nio.channels.IllegalSelectorException
03-25 23:16:26.279: ERROR/AndroidRuntime(869): at
java.nio.channels.spi.AbstractSelectableChannel.register
(AbstractSelectableChannel.java:133)
03-25 23:16:26.279: ERROR/AndroidRuntime(869): at
java.nio.channels.SelectableChannel.register(SelectableChannel.java:
117)
03-25 23:16:26.279: ERROR/AndroidRuntime(869): at
org.xbill.DNS.Client.(Client.java:23)
03-25 23:16:26.279: ERROR/AndroidRuntime(869): at
org.xbill.DNS.UDPClient.(UDPClient.java:14)
03-25 23:16:26.279: ERROR/AndroidRuntime(869): at
org.xbill.DNS.UDPClient.sendrecv(UDPClient.java:64)
03-25 23:16:26.279: ERROR/AndroidRuntime(869): at
org.xbill.DNS.SimpleResolver.send(SimpleResolver.java:256)
03-25 23:16:26.279: ERROR/AndroidRuntime(869): at
org.xbill.DNS.ExtendedResolver$Resolution.start(ExtendedResolver.java:
93)
03-25 23:16:26.279: ERROR/AndroidRuntime(869): at
org.xbill.DNS.ExtendedResolver.send(ExtendedResolver.java:359)
03-25 23:16:26.279: ERROR/AndroidRuntime(869): at
org.xbill.DNS.Lookup.lookup(Lookup.java:450)
03-25 23:16:26.279: ERROR/AndroidRuntime(869): at
org.xbill.DNS.Lookup.resolve(Lookup.java:502)
03-25 23:16:26.279: ERROR/AndroidRuntime(869): at
org.xbill.DNS.Lookup.run(Lookup.java:516)

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: TERRIBLE BUG: aapt crashes on Windows

2009-03-25 Thread Dan Bornstein

On Mar 25, 4:37 pm, Mark Murphy  wrote:
> Stoyan Damov wrote:
> > I can't provide a way to reproduce the problem.
> [... helpful advice elided ...]
>
> Providing steps to reproduce failures, whether in tools or class
> libraries or whatever, has been a standard of professional application
> development for a couple of decades now. I distinctly remember getting
> yelled at by engineers for failing to provide steps to reproduce bugs
> back as a summer intern in 1990, and I don't get the sense they were
> cutting-edge on that topic.
>
> It's also a quite common request in open source projects. For example,
> here is where Mozilla asks for steps to reproduce the problem:
> [...]

And here's where we ask that for Android:



-dan

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: TERRIBLE BUG: aapt crashes on Windows

2009-03-25 Thread Mark Murphy

Stoyan Damov wrote:
> I can't provide a way to reproduce the problem.

1. Create a fresh project.

2. Copy your entire res/ tree out of your current project into the fresh
project.

3. Try building.

If the build crashes, then zip up the new project and attach it to the
issue. Or, try winnowing out some resources (e.g., ones you might not
want to upload) and see if the problem persists -- if the problem goes
away, it may be tied to the resources you removed.

If that doesn't crash, then the problem depends on other stuff (e.g.,
your original project's manifest, other build settings you may have
enabled) and may truly be difficult to reproduce without uploading your
original app, which I suspect you may be less than inclined to do.

But if you really want this "TERRIBLE BUG" fixed, you really should
consider at least trying to give the developers steps to reproduce the
crash.

-

Providing steps to reproduce failures, whether in tools or class
libraries or whatever, has been a standard of professional application
development for a couple of decades now. I distinctly remember getting
yelled at by engineers for failing to provide steps to reproduce bugs
back as a summer intern in 1990, and I don't get the sense they were
cutting-edge on that topic.

It's also a quite common request in open source projects. For example,
here is where Mozilla asks for steps to reproduce the problem:

https://developer.mozilla.org/en/Bug_writing_guidelines

And Ubuntu:

https://wiki.ubuntu.com/Bugs/HowToTriage#Improving%20a%20bug%20report

And OpenOffice.org:

http://qa.openoffice.org/ooQAReloaded/Docs/QA-Reloaded-BasicRules.html

And Moodle:

http://docs.moodle.org/en/How_to_add_steps_to_reproduce_to_a_bug_report

Heck, even not-really-open-source Microsoft is into the game:

https://connect.microsoft.com/content/content.aspx?ContentID=3480&SiteID=168#BM8

As one person put it, "If your bug is not reproducible it will never get
fixed." (from
http://www.softwaretestinghelp.com/how-to-write-good-bug-report/)

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

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



[android-developers] Re: TERRIBLE BUG: aapt crashes on Windows

2009-03-25 Thread Stoyan Damov

Actually it might be exactly deferencing a null pointer!

It's possible that I'm mistaken that if the debugger breaks on a line,
the error occurred on the line above.
In this case, the crash would be here:

004363AC  mov ecx,dword ptr [ebp-8Ch]
004363B2  cmp word ptr [ecx],7Ch < HERE, where it breaks

and word ptr [ecx] points exactly 0 (*012FA000 points 0)

So, now that the crash reason is clear, get the dev working on that!!! :)

Cheers

On Thu, Mar 26, 2009 at 1:18 AM, Stoyan Damov  wrote:
> On Thu, Mar 26, 2009 at 1:13 AM, Marco Nelissen  wrote:
>>
>> On Wed, Mar 25, 2009 at 3:38 PM, Stoyan Damov  wrote:
>>>
>>> This is a showstopper, and I'm experiencing for the 2nd time.
>>>
>>> Shouldn't be hard to find, if the apt tool developers have created a
>>> .map file for the release build.
>>> It seems like the dev has dereferenced a null pointer (see below).
>>
>> 012FA000 is not null :)
>
> Yes, my bad, I thought the code was dereferencing *ecx, which it isn't :(
> Anyway, the crash is consistently happening in the same place.
> Also, my comment on finding the function where the crash occurred by
> opening the release build's .map file still holds.
>
>>
>> Are you using any ninepatches with a large number of stretch regions,
>> by any chance? If so, that bug has already been reported and is fixed
>> in cupcake.
>
> Nothing like that. I've just added a very simple class, and used it in 
> another.
>
>>
>> >>
>>
>

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

2009-03-25 Thread gsmd

I'm developing an app that runs both on Android and JSE/Swing so
there's a platform-independent part (~90% of code) that operates in
terms of interfaces for UI (sqlite, xmlpullparser, etc.) with
implementations being provided by a homebrew 'DependencyContainer'. At
the very beginning of app startup implementations get "injected" and
later fetched at runtime. No probs on desktop, on Android everything
works until the first context change (e.g. press 'back' and then
launch the app againg so that onCreate() gets called).
So, what I do in onCreate() is null all the Context-dependent items
and recreate them providing the new context. Unfortunately, this
doesn't work.
Say, I simplify it down to having a single ListView with some items
and OnClickListener that i store into DependencyContainer first, then
fetch it and set it in setContentView().
Here's how it works:
1. Launch app - got ListView with items, OnClickListener works as
expected
2. Hit back.
3. Launch again, the ListView is empty, clicking on it will crash the
app which is caused by a nullpointer in onClick()
4. After the crash, launch again - works as expected
The odd thing is that in debug mode a breakpoint set on onClick()
somehow isn't even reached!

Is there some sort of View caching or smth? Any suggestions?

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

2009-03-25 Thread John Spurlock

You can use Authenticator with HttpUrlConnection:
http://java.sun.com/j2se/1.5.0/docs/api/java/net/Authenticator.html

Hope that helps,
- John

On Mar 24, 9:12 am, "nEx.Software"  wrote:
> I am beating my head against a wall trying to figure out why I cannot
> get Authenticated on my server whilst using HttpUrlConnection. I need
> to post a file in a post method and it seems I cannot do so with the
> DefaultHttpClient and a regular HttpPost (unless I am completely
> missing something?). I can get DefaultHttpClient to authenticate just
> fine using setCredentials() but the same doesn't exist for
> HttpUrlConnection so I try to set through setRequestProperty:
> conn.setRequestProperty("Authorization", "Basic " +
> Base64EncodedUserNamePassword); to no avail. Can anyone offer some
> insight? Thanks in advance.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Current Preference Screen? (easyy)

2009-03-25 Thread Noam

Do I need to clarify?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: TERRIBLE BUG: aapt crashes on Windows

2009-03-25 Thread Stoyan Damov

On Thu, Mar 26, 2009 at 1:13 AM, Marco Nelissen  wrote:
>
> On Wed, Mar 25, 2009 at 3:38 PM, Stoyan Damov  wrote:
>>
>> This is a showstopper, and I'm experiencing for the 2nd time.
>>
>> Shouldn't be hard to find, if the apt tool developers have created a
>> .map file for the release build.
>> It seems like the dev has dereferenced a null pointer (see below).
>
> 012FA000 is not null :)

Yes, my bad, I thought the code was dereferencing *ecx, which it isn't :(
Anyway, the crash is consistently happening in the same place.
Also, my comment on finding the function where the crash occurred by
opening the release build's .map file still holds.

>
> Are you using any ninepatches with a large number of stretch regions,
> by any chance? If so, that bug has already been reported and is fixed
> in cupcake.

Nothing like that. I've just added a very simple class, and used it in another.

>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: TERRIBLE BUG: aapt crashes on Windows

2009-03-25 Thread Marco Nelissen

On Wed, Mar 25, 2009 at 3:38 PM, Stoyan Damov  wrote:
>
> This is a showstopper, and I'm experiencing for the 2nd time.
>
> Shouldn't be hard to find, if the apt tool developers have created a
> .map file for the release build.
> It seems like the dev has dereferenced a null pointer (see below).

012FA000 is not null :)

Are you using any ninepatches with a large number of stretch regions,
by any chance? If so, that bug has already been reported and is fixed
in cupcake.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: TERRIBLE BUG: aapt crashes on Windows

2009-03-25 Thread Stoyan Damov

David,

I can't provide a way to reproduce the problem. This is not a problem,
it is a crash. It's not like I'm tapping this menu here, and that
button there and something crashes.
I can't possibly know how and what the aapt tool does. Like I said, I
added probably 50 lines of code tops, tried to build and the tool
crashed.
I did try to rollback the code (as I think it was), but it didn't
help. I deleted the bin folder again to no avail.

David, I just saw your next post. What syntax are you interested in?
I'm just building from Eclipse with the default SDK 1.1 installation,
I'm not passing any extra parameters to aapt.

I don't understand what's the big deal for the tool's developer to
just open the .map file of the release build (provided that he created
such file), find the function near the crash address and see what's
the problem.
I understand that if the appt tool implements a parser or something
which has been partly code-gen'ed by another tool, which has generated
functions with thousands of lines of code it will be a lot more
difficult, but if that's not the case, finding the bug should be a
matter of minutes.

In the mean time I'll rollback my code from version control and will
try re-adding and rebuilding until I see what causes the tool to
crash.

On Thu, Mar 26, 2009 at 1:02 AM, David Turner  wrote:
> It would be better if you could provide a way to reproduce the problem.
> try b.android.com to report the problem
>
> On Wed, Mar 25, 2009 at 11:38 PM, Stoyan Damov 
> wrote:
>>
>> This is a showstopper, and I'm experiencing for the 2nd time.
>>
>> Shouldn't be hard to find, if the apt tool developers have created a
>> .map file for the release build.
>> It seems like the dev has dereferenced a null pointer (see below).
>>
>> I didn't do anything fancy. Just added a dozen lines of code and tried
>> to build. I don't remember the URL for bug reports, so here it is. If
>> Mark's not lazy, he could file the bug ;)
>>
>> Environment: WinXP SP2, Eclipse 3.4.1, SDK 1.1
>>
>> Stack trace -- useless to me, but that's what you get for not shipping
>> symbols (lack of Windows symbols is my bad but I reinstalled my
>> machine fairly recently and didn't need them).
>>
>> >       aapt.exe!004363b2()
>>        [Frames below may be incorrect and/or missing, no symbols loaded
>> for
>> aapt.exe]
>>        ntdll.dll!7c9106eb()
>>        aapt.exe!0040df1c()
>>        aapt.exe!0043a05c()
>>        aapt.exe!0040dd14()
>>        ntdll.dll!7c9106eb()
>>        aapt.exe!0043a05c()
>> ...
>>
>> Assembly around the crash:
>>
>> 0043638F  jae         004363B8
>> 00436391  cmp         word ptr [edx],7Ch
>> 00436395  jmp         004363B6
>> 00436397  add         dword ptr [ebp-8Ch],2
>> 0043639E  mov         edx,dword ptr [ebp-88h]
>> 004363A4  cmp         dword ptr [ebp-8Ch],edx
>> 004363AA  jae         004363B8
>> 004363AC  mov         ecx,dword ptr [ebp-8Ch]  // *ecx is 0 (see below)
>> 004363B2  cmp         word ptr [ecx],7Ch <--- breaks here,
>> crash is on mov above
>> 004363B6  jne         00436397
>> 004363B8  xor         edx,edx
>> 004363BA  mov         edi,eax
>>
>> Registers:
>>
>> EAX = 00FC79DC EBX = 0053 ECX = 012FA000 EDX = 012FA008 ESI =
>> 012F9F50 EDI = 00FC7A5C EIP = 004363B2 ESP = 0022F5F0 EBP = 0022F6A8
>> EFL = 0293
>>
>> 012FA000 = 
>>
>> Memory around ECX:
>>
>> 0x012F9F50  6d 00 63 00 63 00 7c 00 6d 00 6e 00 63 00 7c 00 6c 00 6f
>> 00 63 00 61 00 6c 00 65 00 7c 00 74 00 6f 00 75 00 63 00 68 00 73 00
>> 63 00  m.c.c.|.m.n.c.|.l.o.c.a.l.e.|.t.o.u.c.h.s.c.
>> 0x012F9F7C  72 00 65 00 65 00 6e 00 7c 00 6b 00 65 00 79 00 62 00 6f
>> 00 61 00 72 00 64 00 7c 00 6b 00 65 00 79 00 62 00 6f 00 61 00 72 00
>> 64 00  r.e.e.n.|.k.e.y.b.o.a.r.d.|.k.e.y.b.o.a.r.d.
>> 0x012F9FA8  48 00 69 00 64 00 64 00 65 00 6e 00 7c 00 6e 00 61 00 76
>> 00 69 00 67 00 61 00 74 00 69 00 6f 00 6e 00 7c 00 6f 00 72 00 69 00
>> 65 00  H.i.d.d.e.n.|.n.a.v.i.g.a.t.i.o.n.|.o.r.i.e.
>> 0x012F9FD4  6e 00 74 00 61 00 74 00 69 00 6f 00 6e 00 7c 00 66 00 6f
>> 00 6e 00 74 00 53 00 63 00 61 00 6c 00 65 00 00 00 30 00 00 00 00 00
>> 00 00  n.t.a.t.i.o.n.|.f.o.n.t.S.c.a.l.e...0...
>> 0x012FA000  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>> 00 00  
>> 0x012FA02C  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>> 00 00  
>> 0x012FA058  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>> 00 00  
>>
>> *PLEASE*, fix this ASAP :(
>>
>>
>
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-develope

[android-developers] Re: Creating a Custom Shapped Button using Canvas? Is it possible?

2009-03-25 Thread Dianne Hackborn
Drawable doesn't define the touch area, so you would need to customize the
view for that.

On Wed, Mar 25, 2009 at 3:51 PM, Moto  wrote:

>
> But would the touch area be only around my "weird shaped" area? or
> just the typical rectangular area?
> >
>


-- 
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.  All such questions should be posted on public
forums, where I and others can see and answer them.

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



[android-developers] Re: TERRIBLE BUG: aapt crashes on Windows

2009-03-25 Thread David Turner
thanks, still it would be nice if you could provide a simple example that
exhibits the crash.

On Thu, Mar 26, 2009 at 12:02 AM, Stoyan Damov wrote:

>
> Found the URL for bug submissions, submitted here --
> http://code.google.com/p/android/issues/detail?id=2301
>
> On Thu, Mar 26, 2009 at 12:38 AM, Stoyan Damov 
> wrote:
> > This is a showstopper, and I'm experiencing for the 2nd time.
> >
> > Shouldn't be hard to find, if the apt tool developers have created a
> > .map file for the release build.
> > It seems like the dev has dereferenced a null pointer (see below).
> >
> > I didn't do anything fancy. Just added a dozen lines of code and tried
> > to build. I don't remember the URL for bug reports, so here it is. If
> > Mark's not lazy, he could file the bug ;)
> >
> > Environment: WinXP SP2, Eclipse 3.4.1, SDK 1.1
> >
> > Stack trace -- useless to me, but that's what you get for not shipping
> > symbols (lack of Windows symbols is my bad but I reinstalled my
> > machine fairly recently and didn't need them).
> >
> >>   aapt.exe!004363b2()
> >[Frames below may be incorrect and/or missing, no symbols loaded
> for
> > aapt.exe]
> >ntdll.dll!7c9106eb()
> >aapt.exe!0040df1c()
> >aapt.exe!0043a05c()
> >aapt.exe!0040dd14()
> >ntdll.dll!7c9106eb()
> >aapt.exe!0043a05c()
> > ...
> >
> > Assembly around the crash:
> >
> > 0043638F  jae 004363B8
> > 00436391  cmp word ptr [edx],7Ch
> > 00436395  jmp 004363B6
> > 00436397  add dword ptr [ebp-8Ch],2
> > 0043639E  mov edx,dword ptr [ebp-88h]
> > 004363A4  cmp dword ptr [ebp-8Ch],edx
> > 004363AA  jae 004363B8
> > 004363AC  mov ecx,dword ptr [ebp-8Ch]  // *ecx is 0 (see below)
> > 004363B2  cmp word ptr [ecx],7Ch <--- breaks here,
> > crash is on mov above
> > 004363B6  jne 00436397
> > 004363B8  xor edx,edx
> > 004363BA  mov edi,eax
> >
> > Registers:
> >
> > EAX = 00FC79DC EBX = 0053 ECX = 012FA000 EDX = 012FA008 ESI =
> > 012F9F50 EDI = 00FC7A5C EIP = 004363B2 ESP = 0022F5F0 EBP = 0022F6A8
> > EFL = 0293
> >
> > 012FA000 = 
> >
> > Memory around ECX:
> >
> > 0x012F9F50  6d 00 63 00 63 00 7c 00 6d 00 6e 00 63 00 7c 00 6c 00 6f
> > 00 63 00 61 00 6c 00 65 00 7c 00 74 00 6f 00 75 00 63 00 68 00 73 00
> > 63 00  m.c.c.|.m.n.c.|.l.o.c.a.l.e.|.t.o.u.c.h.s.c.
> > 0x012F9F7C  72 00 65 00 65 00 6e 00 7c 00 6b 00 65 00 79 00 62 00 6f
> > 00 61 00 72 00 64 00 7c 00 6b 00 65 00 79 00 62 00 6f 00 61 00 72 00
> > 64 00  r.e.e.n.|.k.e.y.b.o.a.r.d.|.k.e.y.b.o.a.r.d.
> > 0x012F9FA8  48 00 69 00 64 00 64 00 65 00 6e 00 7c 00 6e 00 61 00 76
> > 00 69 00 67 00 61 00 74 00 69 00 6f 00 6e 00 7c 00 6f 00 72 00 69 00
> > 65 00  H.i.d.d.e.n.|.n.a.v.i.g.a.t.i.o.n.|.o.r.i.e.
> > 0x012F9FD4  6e 00 74 00 61 00 74 00 69 00 6f 00 6e 00 7c 00 66 00 6f
> > 00 6e 00 74 00 53 00 63 00 61 00 6c 00 65 00 00 00 30 00 00 00 00 00
> > 00 00  n.t.a.t.i.o.n.|.f.o.n.t.S.c.a.l.e...0...
> > 0x012FA000  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> > 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> > 00 00  
> > 0x012FA02C  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> > 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> > 00 00  
> > 0x012FA058  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> > 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> > 00 00  
> >
> > *PLEASE*, fix this ASAP :(
> >
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: TERRIBLE BUG: aapt crashes on Windows

2009-03-25 Thread Stoyan Damov

Found the URL for bug submissions, submitted here --
http://code.google.com/p/android/issues/detail?id=2301

On Thu, Mar 26, 2009 at 12:38 AM, Stoyan Damov  wrote:
> This is a showstopper, and I'm experiencing for the 2nd time.
>
> Shouldn't be hard to find, if the apt tool developers have created a
> .map file for the release build.
> It seems like the dev has dereferenced a null pointer (see below).
>
> I didn't do anything fancy. Just added a dozen lines of code and tried
> to build. I don't remember the URL for bug reports, so here it is. If
> Mark's not lazy, he could file the bug ;)
>
> Environment: WinXP SP2, Eclipse 3.4.1, SDK 1.1
>
> Stack trace -- useless to me, but that's what you get for not shipping
> symbols (lack of Windows symbols is my bad but I reinstalled my
> machine fairly recently and didn't need them).
>
>>       aapt.exe!004363b2()
>        [Frames below may be incorrect and/or missing, no symbols loaded for
> aapt.exe]
>        ntdll.dll!7c9106eb()
>        aapt.exe!0040df1c()
>        aapt.exe!0043a05c()
>        aapt.exe!0040dd14()
>        ntdll.dll!7c9106eb()
>        aapt.exe!0043a05c()
> ...
>
> Assembly around the crash:
>
> 0043638F  jae         004363B8
> 00436391  cmp         word ptr [edx],7Ch
> 00436395  jmp         004363B6
> 00436397  add         dword ptr [ebp-8Ch],2
> 0043639E  mov         edx,dword ptr [ebp-88h]
> 004363A4  cmp         dword ptr [ebp-8Ch],edx
> 004363AA  jae         004363B8
> 004363AC  mov         ecx,dword ptr [ebp-8Ch]  // *ecx is 0 (see below)
> 004363B2  cmp         word ptr [ecx],7Ch <--- breaks here,
> crash is on mov above
> 004363B6  jne         00436397
> 004363B8  xor         edx,edx
> 004363BA  mov         edi,eax
>
> Registers:
>
> EAX = 00FC79DC EBX = 0053 ECX = 012FA000 EDX = 012FA008 ESI =
> 012F9F50 EDI = 00FC7A5C EIP = 004363B2 ESP = 0022F5F0 EBP = 0022F6A8
> EFL = 0293
>
> 012FA000 = 
>
> Memory around ECX:
>
> 0x012F9F50  6d 00 63 00 63 00 7c 00 6d 00 6e 00 63 00 7c 00 6c 00 6f
> 00 63 00 61 00 6c 00 65 00 7c 00 74 00 6f 00 75 00 63 00 68 00 73 00
> 63 00  m.c.c.|.m.n.c.|.l.o.c.a.l.e.|.t.o.u.c.h.s.c.
> 0x012F9F7C  72 00 65 00 65 00 6e 00 7c 00 6b 00 65 00 79 00 62 00 6f
> 00 61 00 72 00 64 00 7c 00 6b 00 65 00 79 00 62 00 6f 00 61 00 72 00
> 64 00  r.e.e.n.|.k.e.y.b.o.a.r.d.|.k.e.y.b.o.a.r.d.
> 0x012F9FA8  48 00 69 00 64 00 64 00 65 00 6e 00 7c 00 6e 00 61 00 76
> 00 69 00 67 00 61 00 74 00 69 00 6f 00 6e 00 7c 00 6f 00 72 00 69 00
> 65 00  H.i.d.d.e.n.|.n.a.v.i.g.a.t.i.o.n.|.o.r.i.e.
> 0x012F9FD4  6e 00 74 00 61 00 74 00 69 00 6f 00 6e 00 7c 00 66 00 6f
> 00 6e 00 74 00 53 00 63 00 61 00 6c 00 65 00 00 00 30 00 00 00 00 00
> 00 00  n.t.a.t.i.o.n.|.f.o.n.t.S.c.a.l.e...0...
> 0x012FA000  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00  
> 0x012FA02C  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00  
> 0x012FA058  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00  
>
> *PLEASE*, fix this ASAP :(
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: TERRIBLE BUG: aapt crashes on Windows

2009-03-25 Thread David Turner
It would be better if you could provide a way to reproduce the problem.
try b.android.com to report the problem

On Wed, Mar 25, 2009 at 11:38 PM, Stoyan Damov wrote:

>
> This is a showstopper, and I'm experiencing for the 2nd time.
>
> Shouldn't be hard to find, if the apt tool developers have created a
> .map file for the release build.
> It seems like the dev has dereferenced a null pointer (see below).
>
> I didn't do anything fancy. Just added a dozen lines of code and tried
> to build. I don't remember the URL for bug reports, so here it is. If
> Mark's not lazy, he could file the bug ;)
>
> Environment: WinXP SP2, Eclipse 3.4.1, SDK 1.1
>
> Stack trace -- useless to me, but that's what you get for not shipping
> symbols (lack of Windows symbols is my bad but I reinstalled my
> machine fairly recently and didn't need them).
>
> >   aapt.exe!004363b2()
>[Frames below may be incorrect and/or missing, no symbols loaded for
> aapt.exe]
>ntdll.dll!7c9106eb()
>aapt.exe!0040df1c()
>aapt.exe!0043a05c()
>aapt.exe!0040dd14()
>ntdll.dll!7c9106eb()
>aapt.exe!0043a05c()
> ...
>
> Assembly around the crash:
>
> 0043638F  jae 004363B8
> 00436391  cmp word ptr [edx],7Ch
> 00436395  jmp 004363B6
> 00436397  add dword ptr [ebp-8Ch],2
> 0043639E  mov edx,dword ptr [ebp-88h]
> 004363A4  cmp dword ptr [ebp-8Ch],edx
> 004363AA  jae 004363B8
> 004363AC  mov ecx,dword ptr [ebp-8Ch]  // *ecx is 0 (see below)
> 004363B2  cmp word ptr [ecx],7Ch <--- breaks here,
> crash is on mov above
> 004363B6  jne 00436397
> 004363B8  xor edx,edx
> 004363BA  mov edi,eax
>
> Registers:
>
> EAX = 00FC79DC EBX = 0053 ECX = 012FA000 EDX = 012FA008 ESI =
> 012F9F50 EDI = 00FC7A5C EIP = 004363B2 ESP = 0022F5F0 EBP = 0022F6A8
> EFL = 0293
>
> 012FA000 = 
>
> Memory around ECX:
>
> 0x012F9F50  6d 00 63 00 63 00 7c 00 6d 00 6e 00 63 00 7c 00 6c 00 6f
> 00 63 00 61 00 6c 00 65 00 7c 00 74 00 6f 00 75 00 63 00 68 00 73 00
> 63 00  m.c.c.|.m.n.c.|.l.o.c.a.l.e.|.t.o.u.c.h.s.c.
> 0x012F9F7C  72 00 65 00 65 00 6e 00 7c 00 6b 00 65 00 79 00 62 00 6f
> 00 61 00 72 00 64 00 7c 00 6b 00 65 00 79 00 62 00 6f 00 61 00 72 00
> 64 00  r.e.e.n.|.k.e.y.b.o.a.r.d.|.k.e.y.b.o.a.r.d.
> 0x012F9FA8  48 00 69 00 64 00 64 00 65 00 6e 00 7c 00 6e 00 61 00 76
> 00 69 00 67 00 61 00 74 00 69 00 6f 00 6e 00 7c 00 6f 00 72 00 69 00
> 65 00  H.i.d.d.e.n.|.n.a.v.i.g.a.t.i.o.n.|.o.r.i.e.
> 0x012F9FD4  6e 00 74 00 61 00 74 00 69 00 6f 00 6e 00 7c 00 66 00 6f
> 00 6e 00 74 00 53 00 63 00 61 00 6c 00 65 00 00 00 30 00 00 00 00 00
> 00 00  n.t.a.t.i.o.n.|.f.o.n.t.S.c.a.l.e...0...
> 0x012FA000  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00  
> 0x012FA02C  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00  
> 0x012FA058  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00  
>
> *PLEASE*, fix this ASAP :(
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: The specified child already has a parent. You must call removeView() on the child's parent first.

2009-03-25 Thread gsmd

Thanks for your replies & sorry for taking so long.
The reason for this issue was a bit weird app architecture on my side
which is a result of code reuse (80% of code is shared with a swing
app, got a sort of homegrown dependency injection). Namely, a widget
was created using the previous context, the context got changed and
the widget had to be recreated under the new context.

> And yes it would help if you told us a bit about what is your layout
> or what you are trying to achieve.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Creating a Custom Shapped Button using Canvas? Is it possible?

2009-03-25 Thread Moto

But would the touch area be only around my "weird shaped" area? or
just the typical rectangular area?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] Current Preference Screen? (easyy)

2009-03-25 Thread Noam

Hello everyone,
I have two PreferenceScreens - A and B.
Let's say that the default for the variable i = 0;
PrefScreen B is a child screen of A.

When I first get to A, i = 0;
When I move to B, i = 1;
When I move BACK to A, i = 2;
when I move back to B, i = 1 again;

Whenever i = 2, I want to run a certain method.

Is there a way to get this to work?

Thanks,
Noam.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] Providing text-to-speech (TTS) capability in my Android application?

2009-03-25 Thread Mike Pastor


Hello Fellow Developers,

I am looking for the best way to provide an audible speech component
for my Android application (Eliza Mobile Therapist game).

Is the Android TTS (text-to-speech) API viable at this time?  I want
to call a function from my Java code with the spoken text and hear it
(hopefully in different voices/dialects) on the phone.  Is this
technology currently possible?  Any experiences would be
appreciated...

Thanks and Cheers,
Mike Pastor




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] TERRIBLE BUG: aapt crashes on Windows

2009-03-25 Thread Stoyan Damov

This is a showstopper, and I'm experiencing for the 2nd time.

Shouldn't be hard to find, if the apt tool developers have created a
.map file for the release build.
It seems like the dev has dereferenced a null pointer (see below).

I didn't do anything fancy. Just added a dozen lines of code and tried
to build. I don't remember the URL for bug reports, so here it is. If
Mark's not lazy, he could file the bug ;)

Environment: WinXP SP2, Eclipse 3.4.1, SDK 1.1

Stack trace -- useless to me, but that's what you get for not shipping
symbols (lack of Windows symbols is my bad but I reinstalled my
machine fairly recently and didn't need them).

>   aapt.exe!004363b2() 
[Frames below may be incorrect and/or missing, no symbols loaded for
aapt.exe]
ntdll.dll!7c9106eb()
aapt.exe!0040df1c() 
aapt.exe!0043a05c() 
aapt.exe!0040dd14() 
ntdll.dll!7c9106eb()
aapt.exe!0043a05c() 
...

Assembly around the crash:

0043638F  jae 004363B8
00436391  cmp word ptr [edx],7Ch
00436395  jmp 004363B6
00436397  add dword ptr [ebp-8Ch],2
0043639E  mov edx,dword ptr [ebp-88h]
004363A4  cmp dword ptr [ebp-8Ch],edx
004363AA  jae 004363B8
004363AC  mov ecx,dword ptr [ebp-8Ch]  // *ecx is 0 (see below)
004363B2  cmp word ptr [ecx],7Ch <--- breaks here,
crash is on mov above
004363B6  jne 00436397
004363B8  xor edx,edx
004363BA  mov edi,eax

Registers:

EAX = 00FC79DC EBX = 0053 ECX = 012FA000 EDX = 012FA008 ESI =
012F9F50 EDI = 00FC7A5C EIP = 004363B2 ESP = 0022F5F0 EBP = 0022F6A8
EFL = 0293

012FA000 = 

Memory around ECX:

0x012F9F50  6d 00 63 00 63 00 7c 00 6d 00 6e 00 63 00 7c 00 6c 00 6f
00 63 00 61 00 6c 00 65 00 7c 00 74 00 6f 00 75 00 63 00 68 00 73 00
63 00  m.c.c.|.m.n.c.|.l.o.c.a.l.e.|.t.o.u.c.h.s.c.
0x012F9F7C  72 00 65 00 65 00 6e 00 7c 00 6b 00 65 00 79 00 62 00 6f
00 61 00 72 00 64 00 7c 00 6b 00 65 00 79 00 62 00 6f 00 61 00 72 00
64 00  r.e.e.n.|.k.e.y.b.o.a.r.d.|.k.e.y.b.o.a.r.d.
0x012F9FA8  48 00 69 00 64 00 64 00 65 00 6e 00 7c 00 6e 00 61 00 76
00 69 00 67 00 61 00 74 00 69 00 6f 00 6e 00 7c 00 6f 00 72 00 69 00
65 00  H.i.d.d.e.n.|.n.a.v.i.g.a.t.i.o.n.|.o.r.i.e.
0x012F9FD4  6e 00 74 00 61 00 74 00 69 00 6f 00 6e 00 7c 00 66 00 6f
00 6e 00 74 00 53 00 63 00 61 00 6c 00 65 00 00 00 30 00 00 00 00 00
00 00  n.t.a.t.i.o.n.|.f.o.n.t.S.c.a.l.e...0...
0x012FA000  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00  
0x012FA02C  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00  
0x012FA058  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00  

*PLEASE*, fix this ASAP :(

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

2009-03-25 Thread Dianne Hackborn
On Wed, Mar 25, 2009 at 1:35 PM, Ward Willats  wrote:

> Is there a framework way to "clip to region" touch events in a view?
> Or do I have to get in and muck with the dispatchTouchEvent()? (It
> gets tricky because of the overlap, the system might have given the
> event to the wrong child.)


Either that, or you can implement a custom Button subclass that implements
onTouchEvent() to ignore events that are not within some region you define.


> Also, an aside, do touch events just get shot directly by the system
> into dispatchTouchEvent()?  I don't see much of the sort of logic to
> pass events and focus changes down the view tree that you sometimes
> find in other systems.


The logic for dispatching events is in ViewGroup.  It is basically a tree
traversal, each ViewGroup deciding how to dispatch events to its immediate
children.

-- 
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.  All such questions should be posted on public
forums, where I and others can see and answer them.

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



[android-developers] Re: Creating a Custom Shapped Button using Canvas? Is it possible?

2009-03-25 Thread Dianne Hackborn
You can just make a Drawable that draws (and changes based on its state)
however it wants.

On Wed, Mar 25, 2009 at 2:16 PM, Moto  wrote:

>
> I guess the title says it all  Could I technically make a custom
> button using this Class?
>
> Thanks!
> Moto!
> >
>


-- 
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.  All such questions should be posted on public
forums, where I and others can see and answer them.

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



[android-developers] Re: Issues with Ontouch

2009-03-25 Thread William

I figured it out.  YOU MUST RETURN return true; everytime onTouchEvent
for it to continue to return you events

On Mar 25, 4:12 pm, William  wrote:
> I just created another project that uses View instead of SurfaceView
> that View recieves all of the events.  Why does surfaceview not
> reviece all the events?
>
> On Mar 25, 4:00 pm, William  wrote:
>
> > I am trying to figure out how the touch functionality of the emulator
> > works.  I override onTouchEvent and am getting info for onDown but
> > nothing for onrelease.  How do I listen for onrelease.  Also when I
> > drag the mouse, only one event is sent instead of multiple. how do i
> > listen to all of the events?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] Creating a Custom Shapped Button using Canvas? Is it possible?

2009-03-25 Thread Moto

I guess the title says it all  Could I technically make a custom
button using this Class?

Thanks!
Moto!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Anything on Android that can do smooth scrolling?

2009-03-25 Thread Romain Guy

The trick is simple: avoid any allocation that might trigger a GC.

On Wed, Mar 25, 2009 at 1:18 PM, admin.androidsl...@googlemail.com
 wrote:
>
> Getting a bit disillusioned after spending most of the day trying to
> make a smooth scrolling app. I've tried everything, views, surface
> views, delaying threads, just scrolling tiny pictures, etc., but
> whatever I try, there is always an unsightly flicker even though I can
> easily achieve 20 - 30 fps.
>
> So I thought I'd check out whats out there in the market to see if
> anyone else can crack this. And I couldn't find anything at all! Most
> games don't handle scrolling at all, just moving whats on the screen.
> Even commercial games like deBlob don't seem to scroll smoothly.
>
> And yet I did find one single app which does handle smooth scrolling.
> The native picture viewer does very smooth scrolling on the thumbnail
> view. Does anyone know how the picture viewer does smooth thumbnail
> scrolling? Going through the source code, I think it uses an extended
> View - GridViewSpecial.
>
> Could anyone offer any other examples of smooth scrolling?
>
> Surely smooth scrolling is going to be vital if apps want to out-
> perform iPhone apps!!
>
> >
>



-- 
Romain Guy
Android framework engineer
romain...@android.com

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



[android-developers] Large Scrollable Image Help

2009-03-25 Thread G

Hi all, I'm having trouble displaying an oversized scrolling image. I
accomplished this originally by creating the custom class below to
replace the standard ImageView. My original large image was a png that
was a little over 1000x1000 in resolution and about 722kb in size. For
that image, the class below worked flawlessley. But now I need to do
the same thing with a MUCH larger image and I'm wondering if this is
not the best way to go about it. My new image is about 5000x5000 and
I've produced varying versions from png's that were up to 6MB to jpg's
that were 1.5MB. All of these images cause my app to crash instantly
without any changes to the code (besides referencing the larger
image). The important thing I need to do is be able to scroll and
zoom, and I'm starting to think the only way I'm going to get this
working is to slice my image up and create some sort of scrolling
GridView inside an AbsoluteLayout, that only loads the slices that are
displayed on screen. This is a bit more work than I was hoping to put
into this app, but can anyone give me any advice on which direction I
should be heading?

Below is my ScrollingImageView class for reference. It works
flawlessly if the image is not too big, so feel free to use it however
you'd like.

Thanks in advance,
G


import android.content.Context;
import android.view.GestureDetector;
import android.view.MotionEvent;
import android.view.GestureDetector.OnGestureListener;
import android.widget.AbsoluteLayout;
import android.widget.ImageView;
import android.widget.LinearLayout;

public class ScrollingImageView extends AbsoluteLayout implements
OnGestureListener {

private GestureDetector mGestureDetector;
private ImageView mImageView;

public ScrollingImageView(Context context, int imageResId, int
imageWidth, int imageHeight) {
super(context);

mImageView = new ImageView(context);
mImageView.setImageResource(imageResId);
this.addView(mImageView, new 
LinearLayout.LayoutParams(imageWidth,
imageHeight));

mGestureDetector = new GestureDetector(this);
mGestureDetector.setIsLongpressEnabled(false);


}

@Override
public boolean onDown(MotionEvent e) {
return false;
}

@Override
public boolean onFling(MotionEvent e1, MotionEvent e2, float
velocityX,
float velocityY) {
// TODO Auto-generated method stub
return false;
}

@Override
public void onLongPress(MotionEvent e) {
}

@Override
public boolean onScroll(MotionEvent e1, MotionEvent e2, float
distanceX,
float distanceY) {
 int scrollWidth = mImageView.getWidth() - this.getWidth();
 if ((this.getScrollX() >= 0) && (this.getScrollX() <=
scrollWidth) && (scrollWidth > 0)) {
 int moveX = (int)distanceX;
 if (((moveX + this.getScrollX()) >= 0) && ((Math.abs(moveX)
+ Math.abs(this.getScrollX())) <= scrollWidth)) {
 this.scrollBy(moveX, 0);
  }
 else {
 if (distanceX >= 0) {
 this.scrollBy(scrollWidth - Math.max(Math.abs
(moveX), Math.abs(this.getScrollX())), 0);
 }
 else {
 this.scrollBy(-Math.min(Math.abs(moveX), Math.abs
(this.getScrollX())), 0);
 }
 }
 }

 int scrollHeight = mImageView.getHeight() - this.getHeight();
 if ((this.getScrollY() >= 0) && (this.getScrollY() <=
scrollHeight) && (scrollHeight > 0)) {
 int moveY = (int)distanceY;
 if (((moveY + this.getScrollY()) >= 0) && ((Math.abs(moveY)
+ Math.abs(this.getScrollY())) <= scrollHeight)) {
 this.scrollBy(0, moveY);
  }
 else {
 if (distanceY >= 0) {
 this.scrollBy(0, scrollHeight - Math.max(Math.abs
(moveY), Math.abs(this.getScrollY(;
 }
 else {
 this.scrollBy(0, -Math.min(Math.abs(moveY), Math.abs
(this.getScrollY(;
 }
 }
 }
 return true;
}

@Override
public void onShowPress(MotionEvent e) {
// TODO Auto-generated method stub

}

@Override
public boolean onSingleTapUp(MotionEvent e) {
// TODO Auto-generated method stub
return false;
}

@Override
public boolean dispatchTouchEvent(MotionEvent ev) {
 mGestureDetector.onTouchEvent(ev);
 return true;
}

public void zoomIn() {
int h = mImageView.getHeight();
int w = mImageView.getWidth();

[android-developers] Re: .apk install fails: package conflict

2009-03-25 Thread AlCapwn

If they are downloading via 3G, GRPS (anything non-wifi), then it
might be the cause. I know thats what caused the problem for my
application and for others also. See
http://groups.google.com/group/android-beginners/browse_thread/thread/4f82b29159a341fe

On Mar 24, 10:46 pm, bee  wrote:
> I'm testing an app I'm developing and asked a friend to install on
> their device. I wanted to make it as easy as possible for them to help
> me out so I put the .apk up on my website for them to download to the
> phone (rather than making them download the SDK and use adb to
> install). The install of the downloaded .apk fails, complaining of a
> package conflict.
>
> I have since gotten my hands on the phone briefly and I verified that:
> * they have selected "allow unsigned apps" in settings
> * there is no package with the same (or similar) name in data/data
> * installing via adb works with not a peep
> * when I download the .apk to my phone the app installs fine
>
> Any ideas what's up? It would be really nice to make it as easy as
> possible to distribute to people who might be willing to do me the
> favor of testing.
>
> Thanks for any help,
> Bee
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: written file not found

2009-03-25 Thread Mark Murphy

Mak wrote:
> Hi.
> I've written an file with the following comands:
> 
> String ausgabe;
> 
> try{
>java.io.BufferedWriter fos = (new java.io.BufferedWriter(  new
> java.io.OutputStreamWriter(
>   openFileOutput("testfile.txt", MODE_APPEND ;
> 
> if (ausgabe.length() != 0){
>  fos.write(ausgabe);
> }
> 
> catch (FileNotFoundException f){
>System.out.println("Not found");
> }
> 
> Everything works and on the emulator i've got no problem.
> The written file "testfile.txt" can be found in /data/data/mypackage/
> files.
> But on my G1 the folder "/data" is empty, no folder /data/packages can
> be found with
> "Astro File Manager" or LindaFileManager.

Probably, that is because they cannot browse /data due to security
restrictions.

> Anyone any idea where to find the files of my applications?

They are in the same spot on the device as they are in the emulator. You
just cannot browse to them. However, you can use adb pull to download them.

> Why do i have only the folders /data, /sdcard and /system on the
> emulator but
> on the device there are much more?

You have all of same folders on the device; you just cannot browse them.

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

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



[android-developers] written file not found

2009-03-25 Thread Mak

Hi.
I've written an file with the following comands:

String ausgabe;

try{
   java.io.BufferedWriter fos = (new java.io.BufferedWriter(new
java.io.OutputStreamWriter(
openFileOutput("testfile.txt", MODE_APPEND ;

if (ausgabe.length() != 0){
 fos.write(ausgabe);
}

catch (FileNotFoundException f){
   System.out.println("Not found");
}

Everything works and on the emulator i've got no problem.
The written file "testfile.txt" can be found in /data/data/mypackage/
files.
But on my G1 the folder "/data" is empty, no folder /data/packages can
be found with
"Astro File Manager" or LindaFileManager.

Anyone any idea where to find the files of my applications?
Why do i have only the folders /data, /sdcard and /system on the
emulator but
on the device there are much more?

Thanks for an answer.

Mak
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] Overlapping non-rectangular buttons

2009-03-25 Thread Ward Willats

I have a custom view group control with children views that act as 
buttons. What should be their "active" area is non-rectangular. Also, 
their bounding rectangles overlap a little.

Is there a framework way to "clip to region" touch events in a view? 
Or do I have to get in and muck with the dispatchTouchEvent()? (It 
gets tricky because of the overlap, the system might have given the 
event to the wrong child.)

Also, an aside, do touch events just get shot directly by the system 
into dispatchTouchEvent()?  I don't see much of the sort of logic to 
pass events and focus changes down the view tree that you sometimes 
find in other systems.

Thanks

-- Ward

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] Anything on Android that can do smooth scrolling?

2009-03-25 Thread admin.androidsl...@googlemail.com

Getting a bit disillusioned after spending most of the day trying to
make a smooth scrolling app. I've tried everything, views, surface
views, delaying threads, just scrolling tiny pictures, etc., but
whatever I try, there is always an unsightly flicker even though I can
easily achieve 20 - 30 fps.

So I thought I'd check out whats out there in the market to see if
anyone else can crack this. And I couldn't find anything at all! Most
games don't handle scrolling at all, just moving whats on the screen.
Even commercial games like deBlob don't seem to scroll smoothly.

And yet I did find one single app which does handle smooth scrolling.
The native picture viewer does very smooth scrolling on the thumbnail
view. Does anyone know how the picture viewer does smooth thumbnail
scrolling? Going through the source code, I think it uses an extended
View - GridViewSpecial.

Could anyone offer any other examples of smooth scrolling?

Surely smooth scrolling is going to be vital if apps want to out-
perform iPhone apps!!

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

2009-03-25 Thread William

I just created another project that uses View instead of SurfaceView
that View recieves all of the events.  Why does surfaceview not
reviece all the events?

On Mar 25, 4:00 pm, William  wrote:
> I am trying to figure out how the touch functionality of the emulator
> works.  I override onTouchEvent and am getting info for onDown but
> nothing for onrelease.  How do I listen for onrelease.  Also when I
> drag the mouse, only one event is sent instead of multiple. how do i
> listen to all of the events?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] Issues with Ontouch

2009-03-25 Thread William

I am trying to figure out how the touch functionality of the emulator
works.  I override onTouchEvent and am getting info for onDown but
nothing for onrelease.  How do I listen for onrelease.  Also when I
drag the mouse, only one event is sent instead of multiple. how do i
listen to all of the events?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Receiving SMS Messages in 1.0?

2009-03-25 Thread thesquib

Sorry this was meant to be a reply to this thread:
http://groups.google.com/group/android-developers/browse_frm/thread/c51383cc8761ffd5?tvc=1&q=sms+port

There was no reply button.

On Mar 26, 8:57 am, thesquib  wrote:
> I can confirm that joe.scheidegger information about data sms does
> work on device. However, the port specified on the receiver does not
> seem to matter.
>
> Joe wrote:
>
> 
>     
>          android:name="android.intent.action.DATA_SMS_RECEIVED" />
>         
>         
>         
>     
> 
>
> and then you must add the following permission:
>  permission>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Receiving SMS Messages in 1.0?

2009-03-25 Thread thesquib

I can confirm that joe.scheidegger information about data sms does
work on device. However, the port specified on the receiver does not
seem to matter.

Joe wrote:









and then you must add the following permission:

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Process is not ending ?

2009-03-25 Thread Dianne Hackborn
That is showing you the correct information.

Please be sure to read this:

http://developer.android.com/guide/topics/fundamentals.html

In particular, for your question:

http://developer.android.com/guide/topics/fundamentals.html#proclife

On Wed, Mar 25, 2009 at 7:55 AM, AndRaj  wrote:

>
> Hi All,
>
> Can anyone tell me where can I see the active process and current
> process. I think we can see in the DDMS --> Devices.
>
> But when see the process list, when I launch a application it showing
> that applications process in the list. after finishing that
> application also it showing it process in the process list.
>
> So how can see only the current active prcocess
> (Foregroud,Background..etc). I want to see only the current process
> which running on the device/emulator.
>
> One more thing. when I hold on the Home button for long time, It is
> showing a list. What that list means. whether that list is For the
> forgrund running apps or active apps or that is a History.
>
>
>
> Please any one answer my simple questions.
>
>
> Best,
>
> AndRaj
> >
>


-- 
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.  All such questions should be posted on public
forums, where I and others can see and answer them.

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



[android-developers] Re: how can i check landscap orientation ?

2009-03-25 Thread Dianne Hackborn
On Wed, Mar 25, 2009 at 9:25 AM, Kather Jailani  wrote:

> Pls add andoid:configChanges="orientation|keyboard"
> And override onConfigurationChanged and check the orientation against
> Configuration.ORIENTATION_LANDSCAPE or potrait
>
Please don't do that unless you really have a good reason to do so.  (Such
as playing a video.)

-- 
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.  All such questions should be posted on public
forums, where I and others can see and answer them.

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



[android-developers] Re: How to make single row Menu with 4 MenuItem?

2009-03-25 Thread Romain Guy

You can't. This is controlled by the system.

On Wed, Mar 25, 2009 at 11:53 AM, ezmobile  wrote:
>
> Hi,
>
> I am trying to use menu button for my application menu. When I add
> upto 3 MenuItem it show them in a single row, but if i add one more it
> shows two rows and that's not what I want. Please help me in
> understanding what am I missing.
>
> Thanks
> Sersoun
>
> >
>



-- 
Romain Guy
Android framework engineer
romain...@android.com

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



[android-developers] Re: .apk install fails: package conflict

2009-03-25 Thread Dianne Hackborn
What is the exact UI you are seeing and error message?  What is in the log?
What is your package name?

Generally if the system can't install an .apk because that package already
exists, well that package already exists somewhere. :}

On Tue, Mar 24, 2009 at 3:46 PM, bee  wrote:

>
> I'm testing an app I'm developing and asked a friend to install on
> their device. I wanted to make it as easy as possible for them to help
> me out so I put the .apk up on my website for them to download to the
> phone (rather than making them download the SDK and use adb to
> install). The install of the downloaded .apk fails, complaining of a
> package conflict.
>
> I have since gotten my hands on the phone briefly and I verified that:
> * they have selected "allow unsigned apps" in settings
> * there is no package with the same (or similar) name in data/data
> * installing via adb works with not a peep
> * when I download the .apk to my phone the app installs fine
>
> Any ideas what's up? It would be really nice to make it as easy as
> possible to distribute to people who might be willing to do me the
> favor of testing.
>
> Thanks for any help,
> Bee
>
> >
>


-- 
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.  All such questions should be posted on public
forums, where I and others can see and answer them.

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



[android-developers] Re: Task activity stack always reset when launched from Home

2009-03-25 Thread Dianne Hackborn
That means you are using some CLEAR_TOP or finish flag in an intent or in
the manifest.  Or possibly it has been > 30 minutes since the app was last
launched, in which case the system will restart it automatically.

On Wed, Mar 25, 2009 at 11:12 AM, jseghers  wrote:

>
> Thank you for your reply!
>
> I am seeing am_task_to_front followed by am_finish_activity.
> I found the event-log-tags file and apparently the reason is "clear".
> What is not clear to me though is why the activity manager thinks it
> should clear the the task.
>
> The relevant lines of the log are:
> I/am_on_resume_called(   94): com.android.launcher.Launcher
> I/dvm_gc_info(   94):
> [7017575181485176104,-9053780441931634733,-4010030953047537782,8554533]
> I/force_gc(  209): bg
> I/dvm_gc_info(  209):
> [7163384747111232651,-9098816781953771608,-4017912252395432053,7919391]
> I/am_pause_activity(   52):
> [1128800640,com.android.launcher/.Launcher]
> I/am_task_to_front(   52): 3
> I/am_finish_activity(   52):
> [1129575992,3,com.cequint.cityid/.About,clear]
> I/am_destroy_activity(   52): [1129575992,3,com.cequint.cityid/.About]
> I/am_new_intent(   52):
> [112951,3,com.cequint.cityid/.UserLaunch,android.intent.action.MAIN,,,
> 274726912]
> I/am_on_paused_called(   94): com.android.launcher.Launcher
> I/am_resume_activity(   52):
> [1129749080,3,com.cequint.cityid/.UserLaunch]
> I/am_on_resume_called(  209): com.cequint.cityid.UserLaunch
> I/dvm_gc_madvise_info(   94): [290816,245760]
> I/dvm_gc_madvise_info(  209): [352256,241664]
> I/force_gc(   94): bg
>
> - John
> On Mar 25, 10:16 am, Dianne Hackborn  wrote:
> > You can do "adb logcat -b events" to see the event log which will include
> a
> > line the activity manager prints when finishing an activity, with the
> reason
> > why it is doing it.
> >
> >
> >
> >
> >
> > On Tue, Mar 24, 2009 at 7:24 PM, jseghers  wrote:
> >
> > > I am just starting on an Android app and I am puzzled about why my
> > > Task activity stack is being reset any time the application is
> > > launched from the Home screen.
> >
> > > I used the ADT tools to create the application in Eclipse.
> > > The main activity is ".UserLaunch" and it starts the activity ".About"
> > > when the user presses a button.
> > > If the user then presses HOME and then relaunches the app, .UserLaunch
> > > is displayed and is the only thing on the stack.
> >
> > > .UserLaunch has the launchMode singleTask. .About is standard.
> > > According to the documentation at
> > >http://developer.android.com/guide/topics/fundamentals.html#lmodes:
> >
> > >"However, a "singleTask" activity may or may not have other
> > > activities above it in the stack. If it does, it is not in position to
> > > handle the intent, and the intent is dropped. (Even though the intent
> > > is dropped, its arrival would have caused the task to come to the
> > > foreground, where it would remain.) "
> >
> > > The Task stack should be brought to the foreground and .About should
> > > still be displayed.
> >
> > > I added Logging to all of the lifecycle events (edited to remove
> > > timestamps and shorten DEBUG/ and INFO/ to D/ and I/) and you can see
> > > that when HOME is pressed, .About cycles through onPause and onStop
> > > (as expected).  Then when the app is again launched, .About is
> > > destroyed and .UserLaunch is restarted
> >
> > > D/UserLaunch:(670): onCreate()
> > > D/UserLaunch:(670): onStart()
> > > D/UserLaunch:(670): onResume()
> > > I/ActivityManager(52): Displayed activity
> > > com.cequint.cityid/.UserLaunch: 4910 ms
> > > I/ActivityManager(52): Starting activity: Intent { comp=
> > > {com.cequint.cityid/com.cequint.cityid.About} }
> > > D/UserLaunch:(670): onPause()
> > > D/About(670): onCreate()
> > > D/About(670): onStart()
> > > D/About(670): onResume()
> > > I/ActivityManager(52): Displayed activity com.cequint.cityid/.About:
> > > 1031 ms
> > > D/UserLaunch:(670): onStop()
> > > I/ActivityManager(52): Starting activity: Intent
> > > { action=android.intent.action.MAIN categories=
> > > {android.intent.category.HOME} flags=0x1020 comp=
> > > {com.android.launcher/com.android.launcher.Launcher} }
> > > D/About(670): onPause()
> > > D/About(670): onStop()
> > > D/dalvikvm(670): GC freed 413 objects / 34128 bytes in 72ms
> > > I/ActivityManager(52): Starting activity: Intent
> > > { action=android.intent.action.MAIN categories=
> > > {android.intent.category.LAUNCHER} flags=0x1020 comp=
> > > {com.cequint.cityid/com.cequint.cityid.UserLaunch} }
> > > D/About(670): onDestroy()
> > > D/UserLaunch:(670): onRestart()
> > > D/UserLaunch:(670): onStart()
> > > D/UserLaunch:(670): onResume()
> >
> > > Here is the relevant section of the Manifest:
> >
> > > 
> > >   > > android:launchMode="singleTask" >
> > >  
> > >   
> > >   
> > >  
> > >  
> > >  
> > >  
> > > 
> >
> > > Anyone have any ideas why this is always resetting the Activity Stack?
> >
> > --
> > Dianne Hackborn
> > Android framework engineer
> > hack...@android.com

[android-developers] Re: Singleton in different service which share same process

2009-03-25 Thread Dianne Hackborn
You can't currently make your own library in the SDK, so the questions
should be on android-platform.

On Wed, Mar 25, 2009 at 11:14 AM, Mark Murphy wrote:

>
> Jove wrote:
> > Hi guys,
> > I meet an issue.
> > I have two services, both of them lies in separate apk,  which run
> > in same process. The two service share same jar file by 
> > method.  The jar file implement a  class, say "test", is a singleton.
> > But I found that two instance of test is created under this case,
> > could anybody give me some tips? I want to ensure it's singleton.
>
> If you can explain a bit about how you are using  for your
> own JAR files, I might be able to figure out why you are getting two
> instances. I have not seen much use of  outside of the
> Google Maps situation. How are you using it in your application?
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com
> Android App Developer Training: http://commonsware.com/training.html
>
> >
>


-- 
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.  All such questions should be posted on public
forums, where I and others can see and answer them.

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



[android-developers] Re: How to change orientation of AlertDialog?

2009-03-25 Thread Dianne Hackborn
You can't.  Its orientation will be whatever the orientation is of what is
behind it.

On Wed, Mar 25, 2009 at 12:01 PM, ezmobile  wrote:

>
> Hi all,
>
> I am building a AlertDialog in java code, so by default it is portrait
> but I want to show it in landscape orientation. How to do it in Java
> code?
>
> Help is appreciated
> Sersoun
> >
>


-- 
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.  All such questions should be posted on public
forums, where I and others can see and answer them.

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



[android-developers] Re: No RTSP streaming via Wireles LAN on G1????

2009-03-25 Thread bestpriv...@googlemail.com

I have the same problem in my Android appkication. It seeems like
cannot buffer the video while being in WLAN mode. This is what LogCat
tells me.
Note that I do not get an onPrepared callback. Instead, onCompletion
is called after an error has been given.
Again, the same code works fine via a cellular network.

03-25 19:56:41.837: DEBUG/MediaPlayerDemo(1020): onBufferingUpdate
percent:0
03-25 19:56:42.040: DEBUG/MediaPlayerDemo(1020): onBufferingUpdate
percent:1
03-25 19:56:42.237: DEBUG/MediaPlayerDemo(1020): onBufferingUpdate
percent:1
03-25 19:56:42.447: DEBUG/MediaPlayerDemo(1020): onBufferingUpdate
percent:1
03-25 19:56:42.649: DEBUG/MediaPlayerDemo(1020): onBufferingUpdate
percent:1
03-25 19:56:42.854: DEBUG/MediaPlayerDemo(1020): onBufferingUpdate
percent:1
03-25 19:56:43.059: DEBUG/MediaPlayerDemo(1020): onBufferingUpdate
percent:1
03-25 19:56:43.257: DEBUG/MediaPlayerDemo(1020): onBufferingUpdate
percent:1
03-25 19:56:43.464: DEBUG/MediaPlayerDemo(1020): onBufferingUpdate
percent:1
03-25 19:56:43.664: DEBUG/MediaPlayerDemo(1020): onBufferingUpdate
percent:1
03-25 19:56:43.867: DEBUG/MediaPlayerDemo(1020): onBufferingUpdate
percent:1
03-25 19:56:44.067: DEBUG/MediaPlayerDemo(1020): onBufferingUpdate
percent:1
03-25 19:56:44.269: DEBUG/MediaPlayerDemo(1020): onBufferingUpdate
percent:1
03-25 19:56:44.470: DEBUG/MediaPlayerDemo(1020): onBufferingUpdate
percent:1
03-25 19:56:44.671: DEBUG/MediaPlayerDemo(1020): onBufferingUpdate
percent:1
03-25 19:56:44.874: DEBUG/MediaPlayerDemo(1020): onBufferingUpdate
percent:1
03-25 19:56:45.070: DEBUG/MediaPlayerDemo(1020): onBufferingUpdate
percent:1
03-25 19:56:45.277: DEBUG/MediaPlayerDemo(1020): onBufferingUpdate
percent:1
03-25 19:56:45.478: DEBUG/MediaPlayerDemo(1020): onBufferingUpdate
percent:1
03-25 19:56:45.680: DEBUG/MediaPlayerDemo(1020): onBufferingUpdate
percent:1
03-25 19:56:45.884: DEBUG/MediaPlayerDemo(1020): onBufferingUpdate
percent:1
03-25 19:56:46.084: DEBUG/MediaPlayerDemo(1020): onBufferingUpdate
percent:1
03-25 19:56:46.289: DEBUG/MediaPlayerDemo(1020): onBufferingUpdate
percent:1
03-25 19:56:46.489: DEBUG/MediaPlayerDemo(1020): onBufferingUpdate
percent:1
03-25 19:56:46.688: DEBUG/MediaPlayerDemo(1020): onBufferingUpdate
percent:1
03-25 19:56:46.900: DEBUG/MediaPlayerDemo(1020): onBufferingUpdate
percent:1
03-25 19:56:47.101: DEBUG/MediaPlayerDemo(1020): onBufferingUpdate
percent:1
03-25 19:56:47.305: DEBUG/MediaPlayerDemo(1020): onBufferingUpdate
percent:1
03-25 19:56:47.508: DEBUG/MediaPlayerDemo(1020): onBufferingUpdate
percent:1
03-25 19:56:47.710: DEBUG/MediaPlayerDemo(1020): onBufferingUpdate
percent:1
03-25 19:56:47.915: DEBUG/MediaPlayerDemo(1020): onBufferingUpdate
percent:1
03-25 19:56:48.119: DEBUG/MediaPlayerDemo(1020): onBufferingUpdate
percent:1
03-25 19:56:48.307: DEBUG/dalvikvm(290): GC freed 607 objects / 38544
bytes in 82ms
03-25 19:56:48.317: DEBUG/MediaPlayerDemo(1020): onBufferingUpdate
percent:1
03-25 19:56:48.517: DEBUG/MediaPlayerDemo(1020): onBufferingUpdate
percent:1
03-25 19:56:48.723: DEBUG/MediaPlayerDemo(1020): onBufferingUpdate
percent:1
03-25 19:56:48.917: DEBUG/MediaPlayerDemo(1020): onBufferingUpdate
percent:1
03-25 19:56:49.127: DEBUG/MediaPlayerDemo(1020): onBufferingUpdate
percent:1
03-25 19:56:49.328: DEBUG/MediaPlayerDemo(1020): onBufferingUpdate
percent:1
03-25 19:56:49.531: DEBUG/MediaPlayerDemo(1020): onBufferingUpdate
percent:1
03-25 19:56:49.733: DEBUG/MediaPlayerDemo(1020): onBufferingUpdate
percent:1
03-25 19:56:49.937: DEBUG/MediaPlayerDemo(1020): onBufferingUpdate
percent:1
03-25 19:56:50.137: DEBUG/MediaPlayerDemo(1020): onBufferingUpdate
percent:1
03-25 19:56:50.338: DEBUG/MediaPlayerDemo(1020): onBufferingUpdate
percent:1
03-25 19:56:50.543: DEBUG/MediaPlayerDemo(1020): onBufferingUpdate
percent:1
03-25 19:56:50.748: DEBUG/MediaPlayerDemo(1020): onBufferingUpdate
percent:1
03-25 19:56:50.953: DEBUG/MediaPlayerDemo(1020): onBufferingUpdate
percent:1
03-25 19:56:51.157: DEBUG/MediaPlayerDemo(1020): onBufferingUpdate
percent:1
03-25 19:56:51.363: DEBUG/MediaPlayerDemo(1020): onBufferingUpdate
percent:1
03-25 19:56:51.560: DEBUG/MediaPlayerDemo(1020): onBufferingUpdate
percent:1
03-25 19:56:51.770: DEBUG/MediaPlayerDemo(1020): onBufferingUpdate
percent:1
03-25 19:56:51.974: DEBUG/MediaPlayerDemo(1020): onBufferingUpdate
percent:1
03-25 19:56:52.177: DEBUG/MediaPlayerDemo(1020): onBufferingUpdate
percent:1
03-25 19:56:52.378: DEBUG/MediaPlayerDemo(1020): onBufferingUpdate
percent:1
03-25 19:56:52.584: DEBUG/MediaPlayerDemo(1020): onBufferingUpdate
percent:1
03-25 19:56:52.789: DEBUG/MediaPlayerDemo(1020): onBufferingUpdate
percent:1
03-25 19:56:52.989: DEBUG/MediaPlayerDemo(1020): onBufferingUpdate
percent:1
03-25 19:56:53.195: DEBUG/MediaPlayerDemo(1020): onBufferingUpdate
percent:1
03-25 19:56:53.337: DEBUG/dalvikvm(100): GC freed 1824 objects / 92168
bytes in 108ms
03-25 19:56:53.399: DEBUG/MediaPlayerDemo(1020): onBufferingUpdate
percent:1
03-25 19:56:53.597: DEBUG/MediaPlayerDemo(1020): 

[android-developers] Re: Switch to SurfaceView

2009-03-25 Thread ellipsoidmob...@googlemail.com

I had the exact same problem. I never found a way to replace the
content without getting the black screen, so in the end I moved the
SurfaceView to a separate activity which I launch when start button is
pressed - so now I have a menu activity (based on linearlayout) and a
game activity (surfaceview). I think in hindsight two activities is
the better structure anyway.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: is video recording available in V1.1?

2009-03-25 Thread Mark Murphy

zeeshan wrote:
> i am looking for video recording example, it suppose to be in api-
> sample but not available
> i am wondering if 1.1 release still missing this feature?

Video recording is not available in the current version of Android.

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

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



[android-developers] How to change orientation of AlertDialog?

2009-03-25 Thread ezmobile

Hi all,

I am building a AlertDialog in java code, so by default it is portrait
but I want to show it in landscape orientation. How to do it in Java
code?

Help is appreciated
Sersoun
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 make single row Menu with 4 MenuItem?

2009-03-25 Thread ezmobile

Hi,

I am trying to use menu button for my application menu. When I add
upto 3 MenuItem it show them in a single row, but if i add one more it
shows two rows and that's not what I want. Please help me in
understanding what am I missing.

Thanks
Sersoun

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 video recording available in V1.1?

2009-03-25 Thread zeeshan

Hi Experts,

i am looking for video recording example, it suppose to be in api-
sample but not available
i am wondering if 1.1 release still missing this feature?

if it does support then in which format and where is the example

also i am trying to figure out mp3 encoding long ago but still no
solution
i have recorded an audio ()which is in AMR by default, how can i
convert it in mp3 (any external package i can use?)



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] crash application on change mode

2009-03-25 Thread zeeshan

Hi Experts,

i am trying to set an image which is working fine but when i change
mode to/from portrait, it crashes at the following line

imageicon.setImageURI(image_uri);




here is my imageicon in xml



any solution?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: All SYMBIAN based end devices accept Java language Applications :: Need Clarification

2009-03-25 Thread Marco Nelissen

On Wed, Mar 25, 2009 at 9:30 AM, Zhubham  wrote:
>
> “All SYMBIAN based end devices accept Java language Applications”
>
> (i)     Does this mean that the applications made for Android would run in
> S60 , without any modifications??

No.

> (ii)    If not then what exactly we mean when we say the above
> statement?? Is there any web link to which I can refer to??

You would have to ask the author of that comparison what s/he meant.

> (iii)   What are the coding guidelines that we need to follow so that an
> Android application can be ported on S60 with minimum changes??

I know nothing about S60, but I imagine that keeping your UI code
separate from the rest of the code would be a good first step towards
portability to other platforms.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Eclipse Layout editor and Java 6

2009-03-25 Thread Alexey

bump .. still have this problem and only on Mac - linux is fine -
anybody ? Google ? You guys using Macs as dev machines  aren't you ?

On Feb 27, 11:36 am, Alexey  wrote:
> System config is MacOSX with default JDK 1.5.0_16. Eclipse 3.4
> The problem is - I have a project in workspace that has been developed
> under JDK 1.6 . I don't really want to switch back to 1.5 ( i' would
> have to clean up a LOT of @Override ) but if i work with this project,
> after couple of rebuilds - eclipse layout editor not able to display
> preview.
> Work around i found so far - open android project that is in
> compliance with Java 1.5. Close everything else and rebuild workspace.
> But it's kind of annoying to do it every time. ( 
> orhttp://www.anddev.org/viewtopic.php?p=11577#11642)
> I just wonder if anybody found better solution.
>
> Alex.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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] handle Camera preview data without a SurfaceView

2009-03-25 Thread denzel

Hello,

I want to receive the data from the preview of the Camera, but without
having to set a SurfaceView with a SurfaceHolder in the view of my
application.

I want to do something like this:

Camera cam = Camera.open();
cam.setPreviewCallback(new MyPreviewCallback());
cam.startPreview();

This will not work because I need to call setPreviewDisplay
(SurfaceHoler) before I start the preview. I can get a SurfaceHolder
from a SurfaceView, but I don't want a SurfaceView, because I don't
need one. I just want to handle the preview data by myself. Any idees
on how to deal with this?

Thanks in advance!

Denzel
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: Questions related to android, please answer

2009-03-25 Thread Avraham Serour
name to name forum topics properly

On Wed, Mar 25, 2009 at 8:06 PM, Howie  wrote:

>
> Learn to Google.
>
> http://developer.android.com
>
> On Mar 24, 11:04 pm, "tharunandr...@gmail.com"
>  wrote:
> > 1. What is the name of the alliance that supports Android?
> > 2. Which is the kernel that Android relies on for core system
> > services?
> > 3. Is Android a multi-process system?
> > 4. What is an Android installable called ?
> > 5. What are the basic building blocks of an Android Application?
> > 6. Which is the class which acts as a basic building block for user
> > interface components?
> > 7. What is an Intent
> > 8. Which is the file which has all the essential features like
> > Activity,services of the application listed that is going to be used
> > by the app?
> > 9. Does Android support Location Based Services?
> > 10. List the tools that come with in the Android SDK that help you to
> > develop/debug applications.
> > 11. How do you handle UI events in Android ?
> >
>

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



[android-developers] Re: SimpleCursorAdapter and blobs

2009-03-25 Thread prout

hi,
On 24 mar, 17:40, prout  wrote:
> the favicon field returned by the browser bookmark provider is a
> sqlite blob.
...
> I tried using a SimpleCursorAdapter.ViewBinder but I get an exception.
...
> according to my logs, the exception occurs before my viewbinder is
> called.

I gave a look to the SimpleCursorAdapter source code and I think my
problem is in the bindView method.
http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob_plain;f=core/java/android/widget/SimpleCursorAdapter.java;hb=HEAD
maybe the getString() call should be done only if there is no
ViewBinder. no?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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: All SYMBIAN based end devices accept Java language Applications :: Need Clarification

2009-03-25 Thread Sahil Arora
Please refer;
http://www.macrobug.com/blog/2007/12/08/android-versus-symbian-os/

section :: End-user openness

Thanks.

On Wed, Mar 25, 2009 at 10:23 AM, Avraham Serour  wrote:

> where did you find this declaration?
>
>
> On Wed, Mar 25, 2009 at 6:30 PM, Zhubham  wrote:
>
>>
>> “All SYMBIAN based end devices accept Java language Applications”
>>
>> (i) Does this mean that the applications made for Android would run in
>> S60 , without any modifications??
>> (ii)If not then what exactly we mean when we say the above
>> statement?? Is there any web link to which I can refer to??
>> (iii)   What are the coding guidelines that we need to follow so that an
>> Android application can be ported on S60 with minimum changes??
>>
>> Thank you all in advance.
>>
>> Best Regards,
>> Zhubham
>>
>>
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 coming in April? Where is the SDK?

2009-03-25 Thread David Turner
I fear it's a packaging problem. Is there a file named vold.conf in
/system/etc ?I.e. what is the output of "adb shell /system/etc/vold.conf"

If the file is missing, the SDCard cannot be mounted even if it is
recognized by the kernel.

On Wed, Mar 25, 2009 at 12:40 PM, Victor  wrote:

>
> I'm also expirienced some problem with a today build of cupcake
>
> 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
-~--~~~~--~~--~--~---



  1   2   >