[android-developers] How to search for the posts long time ago?

2009-08-27 Thread quill

I find that I can't search for the posts which posted nearly half a
year ago in this forum, How to do that? Or it just be  prohibited?
--~--~-~--~~~---~--~~
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 get the email address using the ContentProvider

2009-08-27 Thread manoj

Hi friends,

I would like to get the contact name, contact number, and contact
email id using the contentProvider.

Can any one please guide me to achieve this.

Thanks,
Manoj.
--~--~-~--~~~---~--~~
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: Does Android have APIs for HTTP progressive download for media files?

2009-08-27 Thread Mark Murphy

> Does Android have APIs for HTTP progressive download for media files?

MediaPlayer and VideoView definitely have support HTTP URLs for video files.

-- 
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] Re: How to get the email address using the ContentProvider

2009-08-27 Thread Mark Murphy

> I would like to get the contact name, contact number, and contact
> email id using the contentProvider.

There is no single "contact number" and no single "contact email id" for a
contact. Each contact can have several of them.

Here is a sample from one of my books that shows querying the Contacts
content provider, including one that will return emails for the contacts:

http://github.com/commonsguy/cw-advandroid/tree/e50e087577f8b28e727355c55097a5da2577d6d3/Database/Contacts

(or http://bit.ly/3RQqcC if that URL is too long)

-- 
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] Re: how to build adb.exe for windows.

2009-08-27 Thread Kyo Yin
thank you for help.i have built the adb.exe

and i have a question:
In my opinion, adb will send a 0 length packet after a packet if thie packet
length is multiple of the max length of endpoint.
For example, our endpoint is 64 bytes. So after every 4096 packets, adb.exe
should send a 0 length packet.

I found the adb.exe has already try to send a 0 length packet.but
1.in linux host, our usb analyzer can catch the 0 length packet.
2.in windows host, our usb analyzer can not catch this 0 length packet.

Did the widows driver block this 0 length packet?

BTW, For linux host, i use old framework of adb in target, The composite
driver can not run in ubuntu 8.04.
For windows host, i use composite driver which has mass storage and adb in
target.



2009/8/19 Roman ( T-Mobile USA) 

>
> For being able to compile an exe file on Ubuntu you would have to
> cross compile on Ubuntu which means you have to have a Windows cross
> compiler on it. Do you?
>
> If not then install Cygwin on your windows environment and try it
> again. Make sure that you read the related topics about Android/Cygwin
> compilation to be aware of any possible provlems.
>
> --
> Roman Baumgaertner
> Sr. SW Engineer-OSDC
> ·T· · ·Mobile· stick together
> The views, opinions and statements in this email are those of the
> author solely in their individual capacity, and do not necessarily
> represent those of T-Mobile USA, Inc.
>
> On Aug 18, 9:38 pm, Kyo Yin  wrote:
> > hi roman1.How do you try to compile?
> > i just use "make HOST_OS=windows" in ubuntu.
> > 2.Are you doing this on Cygwin?
> > no.i use ubuntu.
> >
> > do you mean i should use cygwin to build adb.exe for windows?
> >
> > kyo
> > 3273
> >
> > 2009/8/19 Roman ( T-Mobile USA) 
>  >
> >
> >
> > > How do you try to compile? Are you doing this on Cygwin?
> >
> > > --
> > > Roman Baumgaertner
> > > Sr. SW Engineer-OSDC
> > > ·T· · ·Mobile· stick together
> > > The views, opinions and statements in this email are those of the
> > > author solely in their individual capacity, and do not necessarily
> > > represent those of T-Mobile USA, Inc.
> >
> > > On Aug 18, 5:41 am, Kyo  wrote:
> > > > hi,everyone.
> > > > i want to modify the usb_windows.c in /system/core/adb and
> > > > recompile a new adb.exe to test our platform.
> > > > but, when i use "make HOST_OS=windows", it failed.
> > > > i use ubuntu 8.04 and i can build with "make HOST_OS=linux".
> > > > does anyone know how to build my adb.exe?
> >
> > > > thanks
> >
> > > > kyo
> >
> >
> >
>

--~--~-~--~~~---~--~~
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 get the email address using the ContentProvider

2009-08-27 Thread manoj

Thanks Murphy

On Aug 27, 12:33 pm, "Mark Murphy"  wrote:
> > I would like to get the contact name, contact number, and contact
> > email id using the contentProvider.
>
> There is no single "contact number" and no single "contact email id" for a
> contact. Each contact can have several of them.
>
> Here is a sample from one of my books that shows querying the Contacts
> content provider, including one that will return emails for the contacts:
>
> http://github.com/commonsguy/cw-advandroid/tree/e50e087577f8b28e72735...
>
> (orhttp://bit.ly/3RQqcCif that URL is too long)
>
> --
> 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] Re: System crash problems

2009-08-27 Thread Mika

Hi Dianne, thanks for the answer. Although the problem happens several
times a day, I haven't still been able to find the reason for it nor
the code to reproduce it. I'll file a bug report if I do find a way to
constantly reproduce the bug.

-Mika


On Aug 26, 7:53 pm, Dianne Hackborn  wrote:
> A crash of the system process is by definition a bug on the platform.  If
> you have code to reproduce this, please consider filing a bug report with
> the code so an engineer can look at it.
>
>
>
>
>
> On Wed, Aug 26, 2009 at 12:58 AM, Mika  wrote:
>
> > Hi,
> > I have started to have strange problems that make the whole OS to
> > restart. I have this stack trace:
>
> > 08-21 14:43:15.128: WARN/dalvikvm(11513): threadid=15: thread exiting
> > with uncaught exception (group=0x4000fe70)
> > 08-21 14:43:15.128: ERROR/AndroidRuntime(11513): Uncaught handler:
> > thread android.server.ServerThread exiting due to uncaught exception
> > 08-21 14:43:15.128: ERROR/AndroidRuntime(11513): *** EXCEPTION IN
> > SYSTEM PROCESS.  System will crash.
> > 08-21 14:43:15.228: ERROR/AndroidRuntime(11513):
> > java.lang.IndexOutOfBoundsException: index=1 count=0
> > 08-21 14:43:15.228: ERROR/AndroidRuntime(11513):     at
> > android.view.ViewGroup.addInArray(ViewGroup.java:1890)
> > 08-21 14:43:15.228: ERROR/AndroidRuntime(11513):     at
> > android.view.ViewGroup.addViewInner(ViewGroup.java:1834)
> > 08-21 14:43:15.228: ERROR/AndroidRuntime(11513):     at
> > android.view.ViewGroup.addView(ViewGroup.java:1711)
> > 08-21 14:43:15.228: ERROR/AndroidRuntime(11513):     at
> > android.view.ViewGroup.addView(ViewGroup.java:1668)
> > 08-21 14:43:15.228: ERROR/AndroidRuntime(11513):     at
> > com.android.server.status.StatusBarService.addNotificationView
> > (StatusBarService.java:871)
> > 08-21 14:43:15.228: ERROR/AndroidRuntime(11513):     at
> > com.android.server.status.StatusBarService.performAddUpdateIcon
> > (StatusBarService.java:670)
> > 08-21 14:43:15.228: ERROR/AndroidRuntime(11513):     at
> > com.android.server.status.StatusBarService$H.handleMessage
> > (StatusBarService.java:615)
> > 08-21 14:43:15.228: ERROR/AndroidRuntime(11513):     at
> > android.os.Handler.dispatchMessage(Handler.java:99)
> > 08-21 14:43:15.228: ERROR/AndroidRuntime(11513):     at
> > android.os.Looper.loop(Looper.java:123)
> > 08-21 14:43:15.228: ERROR/AndroidRuntime(11513):     at
> > com.android.server.ServerThread.run(SystemServer.java:357)
> > 08-21 14:43:15.438: INFO/Process(11513): Sending signal. PID: 11513
> > SIG: 9
>
> > Any ideas is this a bug in the platform, or is it possible that the
> > application I'm developing (or some other app in the device) is doing
> > something that makes the whole system crash. I'm using 1.1 SDK but
> > the
> > device has 1.5. Could those compatibility issues be the reason for
> > the
> > crash??
> > -Mika
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to search for the posts long time ago?

2009-08-27 Thread quill

OK, it seems in the advaced search I can get the result with
group:android-developers; keyword: mykeyword;
So why does the search in this forum only return the results that
during recent months?
--~--~-~--~~~---~--~~
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 and where to save SecretKey for encryption and decryption

2009-08-27 Thread zeeshan

i am just protecting some images (about 500) i downloaded on sdcard.
on the first run it downloads and write each by CipherOutputStream and
for the next time it decrypt those images by CipherInputStream.
a static key works at the moment

On Aug 26, 3:07 pm, Haravikk  wrote:
> The more important question I think is why are you doing this, what
> information are you trying to protect?
> It seems like you're adding encryption for the sake of it, but in fact
> your solution won't be much more secure against someone determined to
> get at the file's contents. If the key is static, then it is easier to
> break, but if it changes then it would need to be stored, making it
> easier to access.
>
> One alternative is to generate the secret-key using a sufficiently
> hard to guess algorithm, using some information about the device, so
> that the key used is very different for every user, reducing the
> change of simple comparisons being able to break your encryption.
> However, someone clever could still probably figure out how your
> encryption works by examining the Java byte-code, as while it's tough
> to get your head around it's not impossible to understand.
>
> Perhaps in your case the effort required to break the encryption might
> be more than it's worth to get into the file, but if you let us know
> what kind of information you're hoping to store, then perhaps we can
> give you some better solutions? If it's something "dangerous", like
> payment details or something, then you need the most rock-solid
> solution possible, but if it's something minor then encryption may be
> a waste of time entirely.
>
> On Aug 26, 2:46 pm, zeeshan  wrote:
>
> > key never change once its been created.
>
> > as i know SecretKey generates by a funtion as above, how can i set it
> > as constant
> > can you plz provide example?
>
> > On Aug 26, 1:39 pm, Sujay Krishna Suresh 
> > wrote:
>
> > > On Wed, Aug 26, 2009 at 5:41 PM, zeeshan  wrote:
>
> > > > key doesn't change.
> > > > can i store keyString  in preferences to retrieve for decryption
>
> > > yes that'd be better than storin it in a file. But better to jus have a
> > > constant field in ur class that cointains ur key.
>
> > > > SecretKey key = KeyGenerator.getInstance("DES").generateKey();
> > > >            byte[] keybytes = key.getEncoded();
> > > >            String keyString = new String(keybytes);
>
> > > If u r gonna execute these set of statements then wont the key change??
>
> > > > or plz provide any example for the best practice
>
> > > > On Aug 26, 12:28 pm, Sujay Krishna Suresh 
> > > > wrote:
> > > > > If it is only used by ur application, jus use a String instance to 
> > > > > hold
> > > > the
> > > > > key. y store in a file??
> > > > > ll the key change dynamically???
>
> > > > > On Wed, Aug 26, 2009 at 4:55 PM, zeeshan  wrote:
>
> > > > > > encryption and decryption is the app's internal functionality. user
> > > > > > has nothing to do with this
> > > > > > i encrypt the file on 1st run and on 2nd run i check if file is 
> > > > > > there
> > > > > > then decrypt and show.
> > > > > > so only thing i understand is to store the key somewhere in the app 
> > > > > > so
> > > > > > i can access it for decryption.
> > > > > > just wondering if this help
> > > > > > File  keyFile = new File("data/data/package name/key");
>
> > > > > > i followed this link for encryption and decryption
>
> > > > > >http://www.java2s.com/Tutorial/Java/0490__Security/UsingCipherInputSt.
> > > > ..
>
> > > > > > On Aug 26, 12:11 pm, Sujay Krishna Suresh 
> > > > > > wrote:
> > > > > > > I think its better to ask the user for the secret key rather than
> > > > storin
> > > > > > it
> > > > > > > smwhere.
>
> > > > > > > On Wed, Aug 26, 2009 at 4:30 PM, zeeshan  
> > > > > > > wrote:
>
> > > > > > > > Hi Dear,
>
> > > > > > > > i wrote a small application which encrypt some files using a 
> > > > > > > > secret
> > > > > > > > key.
> > > > > > > > i need to decrypt files on 2nd run which requires same key again
> > > > > > > > plz advise where should i store the secret key.
>
> > > > > > > --
> > > > > > > Regards,
> > > > > > > Sujay
> > > > > > > Mike Ditka <
> > > >http://www.brainyquote.com/quotes/authors/m/mike_ditka.html>
> > > > > >  -
> > > > > > > "If God had wanted man to play soccer, he wouldn't have given us
> > > > arms."
>
> > > > > --
> > > > > Regards,
> > > > > Sujay
> > > > > Pablo Picasso<
> > > >http://www.brainyquote.com/quotes/authors/p/pablo_picasso.html>
> > > > > - "Computers are useless. They can only give you answers."
>
> > > --
> > > Regards,
> > > Sujay
> > > Jonathan 
> > > Swift
> > > - "May you live every day of your life."
--~--~-~--~~~---~--~~
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

[android-developers] Re: MediaRecorder setVideoFrameRate

2009-08-27 Thread Maarten Wijnants

Hi Balwinder,

On 26 aug, 22:49, "Balwinder Kaur (T-Mobile USA)"  wrote:
> For what its worth there is a note on the 
> MediaRecordersetVideoFrameRatesource code
>
> "    * NOTE: On some devices that have auto-frame rate, this sets the
>      * maximum frame rate, not a constant frame rate. Actual frame
> rate
>      * will vary according to lighting conditions."

Yes, I also saw this note on the documentation page of the
MediaRecorder class. However, the note states that the
setVideoFrameRate method on some devices determines the _maximum_
instead of the actual frame rate. So if my HTC Magic device would fall
under this category, the frame rate of the captured video should _at
most_ be 5 FPS and might possible be less. The captured video however
has a frame rate that clearly _exceeds_ 5 FPS. So I do not believe the
note applies to my particular situation.

> That being said, what is the frame rate that you found on your video
> clip ? [Gallery->Select your Video & Long Press->Details]

Android Gallery specifies a frame rate of 19 FPS.

> > Balwinder Kaur

Thanks for your reply! Greetz,
Maarten Wijnants
--~--~-~--~~~---~--~~
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 populate a listview with XML file to Internet

2009-08-27 Thread sweet

Hello i'm new to android dev and java and i want to create an
application which list differents items of a XML. The XML file is
constructed like that. In au marker called item i've different other
markers like title, description etc.
When the user click in one item (called by his title in the first
view) i would like the content of the other marker will display in an
other text view.
Can someone help me ?
Thanks
Sweet
--~--~-~--~~~---~--~~
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] text view focus

2009-08-27 Thread Sasi Kumar

how can we give text view focus?

Tell breifly with example


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] Map view info window

2009-08-27 Thread Sasi Kumar

Hi,

I have displayed map view with marker.
now i want,

When i'm clicking marker it should display info window.
When i'm clicking info window i need to redirect another page

any one can know about these.

please reply me.

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: creating a shared jar library

2009-08-27 Thread Mac

  I've sufficiently understood about the reason not to support third
party libraries.
Goolgle apis as regular sharing libraries can add on %ANDROID_HOME%/
add-on and then Android Applications can use that libraries.
Like this, could I add my sharing library on %ANDROID_HOME%/add-on
directory? If I can't use the way, how can I share my library?

  Actually, I'd like to add my library on framework directory and then
edit platform.xml to use my library as a sharing library,
but because I just use Android Application Framework API, to make my
library, I thought I don't need to add my library on framework

On 8월27일, 오후2시31분, Dianne Hackborn  wrote:
> If you are creating your own device, you can have your own shared libraries
> that are separate from the framework.  We don't support third party shared
> libraries mostly because we really don't want to get into dll hell and
> library versioning and such at this point.
>
> 2009/8/26 Mac 
>
>
>
>
>
>
>
> >  Thanks, Dianne Hackborn.
>
> > Could I think the reason that can't support sharing third party
> > libraries is that all applications are on each Dalvik VM?
>
> > And there's any way to share a regular library(.jar) without putting
> > the library on application framework layer?
>
> > On 8월27일, 오후12시17분, Dianne Hackborn  wrote:
> > > I meant "regular" as what we generally call a shared library in any OS.
>
> > > A third party shared library is specifically talking about the
> > (theoretical
> > > not currently possible) case of putting a shared library as an .apk up on
> > > market that could be installed by the system and used by other
> > applications.
>
> > > 2009/8/26 Mac 
>
> > > >  Hello, Dianne Hackborn.
>
> > > > I've read all of these mails and I understood most of them.
>
> > > > But, I don't know one important point of these mails.
>
> > > > I wonder what the difference of regular shared libraries and third
> > > > party shared libraries.
>
> > > > Could you tell me the difference for me?
>
> > > > On 8월5일, 오후11시18분, Dianne Hackborn  wrote:
> > > > > Yes, it is just a regular shared library.
>
> > > > > On Wed, Aug 5, 2009 at 7:03 AM, GiladH  wrote:
>
> > > > > > Dianne/anyone,
>
> > > > > > i would like to elaborate on the shared jar's memory model.
> > > > > > my understanding is that:
>
> > > > > >  a. the code (read only) segment of the shared jar resides in
> > common
> > > > > > memory => code will be loaded once regardless of the number of
> > > > > > apps
> > > > > > using the shared jar
> > > > > >  b. the data (read/write) segment of the shared jar is part of the
> > > > > > calling
> > > > > > process'es address space => all static data (blocks,
> > constructors
> > > > > > etc.)
> > > > > > will be initialized _separately_ for each app using the shared
> > > > > > jar
>
> > > > > > are my assumptions correct?
>
> > > > > > GiladH
>
> > > > > > On Jul 30, 7:31 pm, Dianne Hackborn  wrote:
> > > > > > > That only applies if you are making your own device.
>
> > > > > > > On Thu, Jul 30, 2009 at 8:20 AM, GiladH 
> > wrote:
>
> > > > > > > > tnx Dianne.
> > > > > > > > after my post i have learned about the ability to 'inject' my
> > > > shared
> > > > > > > > library into open source Andro, as described in:
>
> > > >http://android.git.kernel.org/?p=platform/development.git;a=blob;f=sa.
> > > > > > ..
>
> > > > > > > > i take it this option still stands (again - only for open
> > source
> > > > > > > > platform), right?
>
> > > > > > > > GiladH
>
> > > > > > > > On Jul 30, 5:04 pm, Dianne Hackborn 
> > wrote:
> > > > > > > > > Sorry, Android currently doesn't support third party shared
> > > > > > libraries.
>
> > > > > > > > > On Thu, Jul 30, 2009 at 4:13 AM, GiladH 
> > > > wrote:
>
> > > > > > > > > > hey,
>
> > > > > > > > > > i have several apps (each in its own apk, process etc)
> >  running
> > > > at
> > > > > > the
> > > > > > > > > > same time on user's device.
>
> > > > > > > > > > these apps are all linked to a single common jar file
> > > > (internally
> > > > > > > > > > devloped) which contains a large portion of their overall
> > code
> > > > > > size.
>
> > > > > > > > > > is there a way for me to force Andro to make this common
> > jar
> > > > load
> > > > > > only
> > > > > > > > > > once (e.g. into shared memory)?
>
> > > > > > > > > > the reason we want to do it this way, btw, are to reduction
> > of
> > > > each
> > > > > > of
> > > > > > > > > > the
> > > > > > > > > > single apps memory intake, on disk footprint and possibly
> > of
> > > > their
> > > > > > > > > > startup time.
>
> > > > > > > > > > your help will be appreciated.
>
> > > > > > > > > > tnx, GilkadH
>
> > > > > > > > > --
> > > > > > > > > Dianne Hackborn
> > > > > > > > > Android framework engineer
> > > > > > > > > hack...@android.com
>
> > > > > > > > > Note: please don't send private questions to me, as I don't
> > have
> > > > time
> > > > > > to
> > > > > > > > > provide private support, and so won't reply to such e-mails.
> >  All

[android-developers] Can’t skip account setting in GoogleLoginServiceHelper.getCredentials

2009-08-27 Thread aby

Hi,
I use GoogleLoginServiceHelper.getCredentials in my activity. There
are three buttons (Create, Sing in and Skip) in account setting page.
When I click skip button and click next, it will change to some pages
and the back to the account setting page but only have Create and Sing
in buttons. It seems I must register Google account in this page. Is
there any way to skip account setting page by skip button?

My code usage is as below, any suggestion is appreciate.

GoogleLoginServiceHelper.getCredentials(
this,
GOOGLE_LOGIN_REQUEST,
bundle,
GoogleLoginServiceConstants.PREFER_HOSTED,
null,
true);

--~--~-~--~~~---~--~~
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: Countries for selling priced applications in Android Market

2009-08-27 Thread Mike

I am also interrested in this information. Is it still the case that
only users from gb and us are able to sell apps on market?

On 24 Aug., 07:58, Michael Leung  wrote:
> Hi,
>   That is near the end of Q3 now. Does anyone know whether there will be a
> new list of Countries for selling priced applications in Android Market?
>
> --
> Regards,
> Michael Leunghttp://www.itblogs.infohttp://www.michaelleung.info
--~--~-~--~~~---~--~~
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 do My application know the outgoing SMS count

2009-08-27 Thread Damodhar

Hi How do my application Knowing the Outgoing SMS MMS counts from the
mobile please any one hlp me to find the solution i tried using the

SMSManager

what is the alternative function for the

extends IntentReceiver {

in the SDK 1.5 please let me know

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



[android-developers] Who is responsible for validation of layout xml file?

2009-08-27 Thread Susan

Who is responsible for validation of xml file when editing xml in
Android layout editor?  For example, when I set a negtive valut to
android:maxLength of TextView, it will be marked in red. ADT or aapt
is responsible for check?

Your help will be appreciated.
--~--~-~--~~~---~--~~
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: Error : Unknown URI: content://media/external/images/media

2009-08-27 Thread Dany BREARD

Thanks for your response.

So I try to make your code:

Bitmap sourceBitmap = BitmapFactory.decodeResource(getResources(),
R.drawable.test);
Uri uri = getContentResolver().insert(sourceBitmap, values);

- The first parameter of 'insert' must be a Uri:

public final Uri   insert  (Uri url, ContentValues values),
so I can't use sourceBitmap


- If want to create an empty file in the directory
Media.EXTERNAL_CONTENT_URI like:

File m_wav = new File(Media.EXTERNAL_CONTENT_URI , "voicemail1.wav");
or
File m_wav = new File(Media.INTERNAL_CONTENT_URI , "voicemail1.wav");

Eclipse say The constructor File(Uri, String) is undefined
maybe there is something to transform Media.INTERNAL_CONTENT_URI to a
real uri ??

Dany







On 26 août, 18:31, Streets Of Boston  wrote:
> I think this is the problem:
>
> Uri uri = getContentResolver().insert(Media.EXTERNAL_CONTENT_URI,
> values);
>
> The first parameter of 'insert' must either be a bitmap or the path to
> an actual image-file. Right now, you provide the value
> Media.EXTERNAL_CONTENT_URI, which is a directory, not a file.
>
> E.g., i think this would work ok:
>
> Bitmap sourceBitmap = BitmapFactory.decodeResource(getResources(),
> R.drawable.test);
> Uri uri = getContentResolver().insert(sourceBitmap, values);
>
> Or
>
> First create an empty file in the directory Media.EXTERNAL_CONTENT_URI
> and provide the full path of this file for the insert method.
>
> On Aug 26, 5:58 am, Dany BREARD  wrote:
>
> > I try to make everything to fix that but its too complicated !!!
>
> > If somebody has a solution, please help me I'm sure its very
> > simply !!!
>
> > On Aug 26, 10:01 am, Dany BREARD  wrote:
>
> > > Hi
>
> > > I change EXTERNAL_CONTENT_URI  to  INTERNAL_CONTENT_URI, and I have an
> > > other error that I can't Fix :
>
> > > 08-26 07:49:39.084: ERROR/DatabaseUtils(648): Writing exception to
> > > parcel
> > > 08-26 07:49:39.084: ERROR/DatabaseUtils(648):
> > > java.lang.UnsupportedOperationException: Writing to internal storage
> > > is not supported.
> > > 08-26 07:49:39.084: ERROR/DatabaseUtils(648):     at
> > > com.android.providers.media.MediaProvider.generateFileName
> > > (MediaProvider.java:1346)
> > > 08-26 07:49:39.084: ERROR/DatabaseUtils(648):     at
> > > com.android.providers.media.MediaProvider.ensureFile
> > > (MediaProvider.java:1074)
> > > 08-26 07:49:39.084: ERROR/DatabaseUtils(648):     at
> > > com.android.providers.media.MediaProvider.insertInternal
> > > (MediaProvider.java:1150)
> > > 08-26 07:49:39.084: ERROR/DatabaseUtils(648):     at
> > > com.android.providers.media.MediaProvider.insert(MediaProvider.java:
> > > 1118)
> > > 08-26 07:49:39.084: ERROR/DatabaseUtils(648):     at
> > > android.content.ContentProvider$Transport.insert(ContentProvider.java:
> > > 140)
> > > 08-26 07:49:39.084: ERROR/DatabaseUtils(648):     at
> > > android.content.ContentProviderNative.onTransact
> > > (ContentProviderNative.java:125)
> > > 08-26 07:49:39.084: ERROR/DatabaseUtils(648):     at
> > > android.os.Binder.execTransact(Binder.java:287)
> > > 08-26 07:49:39.084: ERROR/DatabaseUtils(648):     at
> > > dalvik.system.NativeStart.run(Native Method)
> > > 08-26 07:49:39.114: DEBUG/AndroidRuntime(779): Shutting down VM
> > > 08-26 07:49:39.124: WARN/dalvikvm(779): threadid=3: thread exiting
> > > with uncaught exception (group=0x4000fe70)
> > > 08-26 07:49:39.124: ERROR/AndroidRuntime(779): Uncaught handler:
> > > thread main exiting due to uncaught exception
> > > 08-26 07:49:39.154: ERROR/AndroidRuntime(779):
> > > java.lang.RuntimeException: Unable to start activity ComponentInfo
> > > {dany.android.databasejpeg/dany.android.databasejpeg.testjpeg}:
> > > java.lang.UnsupportedOperationException: Writing to internal storage
> > > is not supported.
> > > 08-26 07:49:39.154: ERROR/AndroidRuntime(779):     at
> > > android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
> > > 2268)
> > > 08-26 07:49:39.154: ERROR/AndroidRuntime(779):     at
> > > android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
> > > 2284)
> > > 08-26 07:49:39.154: ERROR/AndroidRuntime(779):     at
> > > android.app.ActivityThread.access$1800(ActivityThread.java:112)
> > > 08-26 07:49:39.154: ERROR/AndroidRuntime(779):     at
> > > android.app.ActivityThread$H.handleMessage(ActivityThread.java:1692)
> > > 08-26 07:49:39.154: ERROR/AndroidRuntime(779):     at
> > > android.os.Handler.dispatchMessage(Handler.java:99)
> > > 08-26 07:49:39.154: ERROR/AndroidRuntime(779):     at
> > > android.os.Looper.loop(Looper.java:123)
> > > 08-26 07:49:39.154: ERROR/AndroidRuntime(779):     at
> > > android.app.ActivityThread.main(ActivityThread.java:3948)
> > > 08-26 07:49:39.154: ERROR/AndroidRuntime(779):     at
> > > java.lang.reflect.Method.invokeNative(Native Method)
> > > 08-26 07:49:39.154: ERROR/AndroidRuntime(779):     at
> > > java.lang.reflect.Method.invoke(Method.java:521)
> > > 08-26 07:49:39.154: ERROR/AndroidRuntime(779):     at
> > > com.android.internal.os.

[android-developers] Re: text view focus

2009-08-27 Thread Mark Murphy

> how can we give text view focus?

Call requestFocus() on the TextView.

-- 
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] Re: text view focus

2009-08-27 Thread Nithin

Use setFocusable(true)..

On Aug 27, 1:49 pm, Sasi Kumar  wrote:
> how can we give text view focus?
>
> Tell breifly with example
>
> 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: Advice for speeding up my drawing

2009-08-27 Thread CG

Hi Andrei, thanks for the answer. here are my thoughts.

1.
I did not considder the string thing, and I must admit that I am a bit
sceptical about the perfomance gain of this.
On the other hand the garbage collector is more bussy than I would
have expected, i have taken care to create all classes only once, and
the collector is still quite bussy.

2.
I have no experince with this, but I guess it would make sence to this
before 1.

3.
is is something like this i would imagine gives major perfomance
gains, I hope I will find the time before ADC2 :)


On 26 Aug., 11:44, Andrei Bucur  wrote:
> If you haven't tried already:
> 1. Replace the strings that get modified with char[]. Strings are immutable
> objects so changing one means memory allocation and leaking.
> 2. Also check the Allocation Tracker for memory leaking.
> 3. For the constant strings I would use Picture or some bitmap buffer
> mechanism to store the drawn text and then just place it on the Canvas
> without overhead.
>
> On Wed, Aug 26, 2009 at 12:24 PM, CG  wrote:
>
> > Hi, I am creating an app that show some histograms off your traveling
> > speed in different time periods (histogram for the last minutte,
> > histogram for the last 2 minuttes etc.)
>
> > I would like to have an animation, and have discovered that drawing
> > everything takes arround 300-400ms. wich is to long for making my
> > animation smooth, the animation itself is quite simple (2 lines and 2
> > dots).
>
> > What i draw every frame right now is
> > 20 antialised strings, size 14,  in average ~5chars
> > 8 of these strings will change every second.
> > 1 of the string will change with the animation (this will become 5
> > strings if there is time)
>
> > the main part of the screen, the one showing the histogram data,
> > consist of a lots of squares wich needs to be updated every second.
> > (450 squares)
>
> > the presentation is split into 5 frames in the same view (has to be
> > same view as arrows in one frame might point into another frame)
>
> > invalidating only a part off the screen makes almost no difference (it
> > does becomas a bit faster, but i still execute all my drawing stuff).
> > I have tried to add a flag wheter or not the main part is dirty, but
> > if i don't draw it, it is cleared. I might be missing something
> > here...
>
> > One possibility could be to render all the mostly static stuff to a
> > bitmap, and then simply draw the bitmap.
> > that would mean 10 strings only had to rendered on orientation change.
>
> > I think it would make sence since the slowest rutine is the one
> > drawing all the text. (the following is a typical timing for the
> > drawing rutines, accmulated).
>
> > V/HMMULTIBAR(  352): 0 - Drawing time: 0 ms
> > V/HMMULTIBAR(  352): 1 - Drawing time: 53 ms
> > V/HMMULTIBAR(  352): 2 - Drawing time: 62 ms
> > V/HMMULTIBAR(  352): 3 - Drawing time: 85 ms
> > V/HMMULTIBAR(  352): 4 - Drawing time: 280 ms
> > V/HMMULTIBAR(  352): 5 - Drawing time: 303 ms
>
> > I would really appreciate comments about wheter or not offscreen
> > rendering is the way to go, or if there is a simpler way.
--~--~-~--~~~---~--~~
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: ADC2 Challenge

2009-08-27 Thread Vassilios Kirellous
Thanks Dan,

What happened was I sent a thread, and it didnt go to the board.. so I sent
another.
Yes, I'm working with Houba on this.

If we submitted our app before ADC2 rules came out - would we be exempt
then? Its not as if we knew about it?

We are really sorry for this fuss, but it is a big disappointment.

Thanks

2009/8/26 Dan Sherman 

> Please see one of the other 8 threads that you started for an answer.
>
>
>
>
> On Wed, Aug 26, 2009 at 3:42 PM, Vaz  wrote:
>
>>
>> Hi,
>>
>> I am aware that this challenge is only open to Apps or developers who
>> have not published their apps on the Android Market before 1st
>> August.
>>
>> But my question is this:
>>
>> a) What is stopping a developer from just changing the name of his/her
>> app or renaming the app package? Surely others will try this?
>> b) Are there any developers here that created apps in anticipation for
>> the ADC2 to only find that by publishing on the Android Market, you
>> will lose out on the eligibility clause?
>>
>> Cheers,
>>
>> Vaz
>>
>>
>>
>
> >
>

--~--~-~--~~~---~--~~
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: CTS fails for java.io.OutputStreamWriterTest

2009-08-27 Thread anderson

how to use cts ?

On 8月25日, 下午6時34分, Victor  wrote:
> Anybody here?
--~--~-~--~~~---~--~~
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: ADC2 Challenge

2009-08-27 Thread Ehab Bassilli
Yes, my apologies also. The first thread didnt go through, so we created a
second, and then third, and then all of a sudden all of them were published
at the same time. :(

I guess its a bit like waiting for a bus to come in the UK - you wait and
wait, and then 10 come at the same time.


So what Vaz and I want to say is this:

We published our app on near the beginning of May 2009 in anticipation of
the ADC2.

Then the ADC2 results came out around 29th May.

We did not know that the condition they would impose on developers would be
that our apps cannot be eligible if we published them already.

We could not have predicted that, nor were we aware of that.

Therefore, would Google make this allowance to allow Developers who
published to the Android Market BEFORE May 2009 (in anticipation of the
ADC2) the chance to enter into the Competition??

Is that possible?

Thanks



2009/8/27 Vassilios Kirellous 

> Thanks Dan,
>
> What happened was I sent a thread, and it didnt go to the board.. so I sent
> another.
> Yes, I'm working with Houba on this.
>
> If we submitted our app before ADC2 rules came out - would we be exempt
> then? Its not as if we knew about it?
>
> We are really sorry for this fuss, but it is a big disappointment.
>
> Thanks
>
> 2009/8/26 Dan Sherman 
>
>> Please see one of the other 8 threads that you started for an answer.
>>
>>
>>
>>
>> On Wed, Aug 26, 2009 at 3:42 PM, Vaz  wrote:
>>
>>>
>>> Hi,
>>>
>>> I am aware that this challenge is only open to Apps or developers who
>>> have not published their apps on the Android Market before 1st
>>> August.
>>>
>>> But my question is this:
>>>
>>> a) What is stopping a developer from just changing the name of his/her
>>> app or renaming the app package? Surely others will try this?
>>> b) Are there any developers here that created apps in anticipation for
>>> the ADC2 to only find that by publishing on the Android Market, you
>>> will lose out on the eligibility clause?
>>>
>>> Cheers,
>>>
>>> Vaz
>>>
>>>
>>>
>>
>>
>>
>> >>
>>


-- 
Ehab Bassilli

ehab.bassi...@gmail.com
Tel (mobile) +447534 287329
skype: ehab.bassilli

--~--~-~--~~~---~--~~
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] Overlay ConcurrentModificationException (continued)

2009-08-27 Thread Lex

This post is in addition to:
http://groups.google.com/group/android-developers/browse_thread/thread/1459f065d3af1a5e

I have exactly the same problem and Doug pinpointed what's probably
the issue in my case exactly:

So here's the deal: I have a Vector containing traffic messages
(received from a server via UDP in an own thread). Each time a message
is received, I create a new overlay object and populate it with the
traffic messages:

public void receiveMessage(BinaryMessage binaryMsg) {


 TrafficMessage message = createMessage(binaryMsg);
 // adds message to vector
 addTrafficMessage(message,
CoCarMapView.trafficMessages);
 CoCarMapView.showTrafficMessages();

}

public static void showTrafficMessages() {
List overlays = mapView.getOverlays();
if (overlays.size() > 1) {
overlays.remove(1);
}
Drawable warningIcon = context.getResources().getDrawable
(R.drawable.sign_warning_small);
CoCarItemizedOverlay trafficEventsOverlay = new 
CoCarItemizedOverlay
(warningIcon);

// the overlay is populated here
trafficEventsOverlay.updateOverlay(trafficMessages);

mapView.getOverlays().add(trafficEventsOverlay);
mapView.postInvalidate();
}

public void updateOverlay(Vector messages) {
for(int i=0; i < messages.size(); i++) {

TrafficMessage message = messages.elementAt(i);
Drawable messageIcon = getMessageIcon(message);
GeoPoint point = getGeoPoint(message);
OverlayItem messageItem = createItem(messageIcon, 
point);
this.addItem(messageItem);

}
}


I don't understand yet exactly where the error is caused, that is
where to start improving stuff...

Thanks for your advice,

Lex

--~--~-~--~~~---~--~~
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] Low Memory: No more background processes.

2009-08-27 Thread Ramesh

Hi

   I create application using many images. I changed view based on
input action. i have 5 view. each view has many image and listview and
also i calling from remote image for Listview. I got one waring
message "Low Memory: No more background processes." after some time
application hanging and exiting with show any error message. At the
time i can find Low Memory: No more background processes. form logcat.
Can you tell how fix this issue.


Its very urgent

Thanks
Ramesh
--~--~-~--~~~---~--~~
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] which algorithm is fast for Cipher encryption and decryption?

2009-08-27 Thread zeeshan

Hi Dear,

i encrypt some of the images but it takes so long for encryption and
decryption.
encryption of images in sdcard are just to void straight copy and a
very simple encryption would be ok for instance.

please check my code below and advise how can i make it fast:
static{

byte[] iv = new byte[]{
 (byte)0x8E, 0x12, 0x39, (byte)0x9C,
 0x07, 0x72, 0x6F, 0x5A};

 AlgorithmParameterSpec paramSpec = new IvParameterSpec(iv);
 try {
SecretKey key = 
KeyGenerator.getInstance("DES").generateKey
();
ecipher = Cipher.getInstance("DES/CBC/PKCS5Padding");
dcipher = Cipher.getInstance("DES/CBC/PKCS5Padding");

 // CBC requires an initialization vector
 ecipher.init(Cipher.ENCRYPT_MODE, key, paramSpec);
 dcipher.init(Cipher.DECRYPT_MODE, key, paramSpec);
 } catch (java.security.InvalidAlgorithmParameterException e)
{
 } catch (javax.crypto.NoSuchPaddingException e) {
 } catch (java.security.NoSuchAlgorithmException e) {
 } catch (java.security.InvalidKeyException e) {
 }


}

///

i tried RC4 which throws NullException
--~--~-~--~~~---~--~~
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: Activate GPS service

2009-08-27 Thread Murphy

On Aug 26, 12:03 pm, "Mark Murphy"  wrote:
> > So my question: Is it possible to write code that is activating GPS on
> > the phone?
>
> No. You can send the users to the activity where they can enable GPS, but
> you cannot enable GPS yourself.

I'm using a custom Cupcake/Donut build (Cyanogen) and it uses a Power
Control Widget (from Donut) that enable/disable GPS in one click.
Is it a Donut feature?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] How to create button with icon and text

2009-08-27 Thread fhucho

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



[android-developers] Re: which algorithm is fast for Cipher encryption and decryption?

2009-08-27 Thread Sew

>                     ecipher = Cipher.getInstance("DES/CBC/PKCS5Padding");
>                     dcipher = Cipher.getInstance("DES/CBC/PKCS5Padding");

switching to AES would be a good start (both for the security and
performance aspects).

Sy.
--~--~-~--~~~---~--~~
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: Error : Unknown URI: content://media/external/images/media

2009-08-27 Thread Dany BREARD

If I try to create a file into Media.EXTERNAL_CONTENT_URI or
Media.INTERNAL_CONTENT_URI, and I test if this file exist, it response
"False":

with this code:

File m_wav = new File(Media.EXTERNAL_CONTENT_URI.getPath() ,
"voicemail1.wav");
Log.v(TAG, "Existe : " +   m_wav.exists());

I think because it's a path of database and not just a path !

Dany

On 27 août, 11:40, Dany BREARD  wrote:
> Thanks for your response.
>
> So I try to make your code:
>
> Bitmap sourceBitmap = BitmapFactory.decodeResource(getResources(),
> R.drawable.test);
> Uri uri = getContentResolver().insert(sourceBitmap, values);
>
> - The first parameter of 'insert' must be a Uri:
>
> public final Uri   insert  (Uri url, ContentValues values),
> so I can't use sourceBitmap
>
> - If want to create an empty file in the directory
> Media.EXTERNAL_CONTENT_URI like:
>
> File m_wav = new File(Media.EXTERNAL_CONTENT_URI , "voicemail1.wav");
> or
> File m_wav = new File(Media.INTERNAL_CONTENT_URI , "voicemail1.wav");
>
> Eclipse say The constructor File(Uri, String) is undefined
> maybe there is something to transform Media.INTERNAL_CONTENT_URI to a
> real uri ??
>
> Dany
>
> On 26 août, 18:31, Streets Of Boston  wrote:
>
> > I think this is the problem:
>
> > Uri uri = getContentResolver().insert(Media.EXTERNAL_CONTENT_URI,
> > values);
>
> > The first parameter of 'insert' must either be a bitmap or the path to
> > an actual image-file. Right now, you provide the value
> > Media.EXTERNAL_CONTENT_URI, which is a directory, not a file.
>
> > E.g., i think this would work ok:
>
> > Bitmap sourceBitmap = BitmapFactory.decodeResource(getResources(),
> > R.drawable.test);
> > Uri uri = getContentResolver().insert(sourceBitmap, values);
>
> > Or
>
> > First create an empty file in the directory Media.EXTERNAL_CONTENT_URI
> > and provide the full path of this file for the insert method.
>
> > On Aug 26, 5:58 am, Dany BREARD  wrote:
>
> > > I try to make everything to fix that but its too complicated !!!
>
> > > If somebody has a solution, please help me I'm sure its very
> > > simply !!!
>
> > > On Aug 26, 10:01 am, Dany BREARD  wrote:
>
> > > > Hi
>
> > > > I change EXTERNAL_CONTENT_URI  to  INTERNAL_CONTENT_URI, and I have an
> > > > other error that I can't Fix :
>
> > > > 08-26 07:49:39.084: ERROR/DatabaseUtils(648): Writing exception to
> > > > parcel
> > > > 08-26 07:49:39.084: ERROR/DatabaseUtils(648):
> > > > java.lang.UnsupportedOperationException: Writing to internal storage
> > > > is not supported.
> > > > 08-26 07:49:39.084: ERROR/DatabaseUtils(648):     at
> > > > com.android.providers.media.MediaProvider.generateFileName
> > > > (MediaProvider.java:1346)
> > > > 08-26 07:49:39.084: ERROR/DatabaseUtils(648):     at
> > > > com.android.providers.media.MediaProvider.ensureFile
> > > > (MediaProvider.java:1074)
> > > > 08-26 07:49:39.084: ERROR/DatabaseUtils(648):     at
> > > > com.android.providers.media.MediaProvider.insertInternal
> > > > (MediaProvider.java:1150)
> > > > 08-26 07:49:39.084: ERROR/DatabaseUtils(648):     at
> > > > com.android.providers.media.MediaProvider.insert(MediaProvider.java:
> > > > 1118)
> > > > 08-26 07:49:39.084: ERROR/DatabaseUtils(648):     at
> > > > android.content.ContentProvider$Transport.insert(ContentProvider.java:
> > > > 140)
> > > > 08-26 07:49:39.084: ERROR/DatabaseUtils(648):     at
> > > > android.content.ContentProviderNative.onTransact
> > > > (ContentProviderNative.java:125)
> > > > 08-26 07:49:39.084: ERROR/DatabaseUtils(648):     at
> > > > android.os.Binder.execTransact(Binder.java:287)
> > > > 08-26 07:49:39.084: ERROR/DatabaseUtils(648):     at
> > > > dalvik.system.NativeStart.run(Native Method)
> > > > 08-26 07:49:39.114: DEBUG/AndroidRuntime(779): Shutting down VM
> > > > 08-26 07:49:39.124: WARN/dalvikvm(779): threadid=3: thread exiting
> > > > with uncaught exception (group=0x4000fe70)
> > > > 08-26 07:49:39.124: ERROR/AndroidRuntime(779): Uncaught handler:
> > > > thread main exiting due to uncaught exception
> > > > 08-26 07:49:39.154: ERROR/AndroidRuntime(779):
> > > > java.lang.RuntimeException: Unable to start activity ComponentInfo
> > > > {dany.android.databasejpeg/dany.android.databasejpeg.testjpeg}:
> > > > java.lang.UnsupportedOperationException: Writing to internal storage
> > > > is not supported.
> > > > 08-26 07:49:39.154: ERROR/AndroidRuntime(779):     at
> > > > android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
> > > > 2268)
> > > > 08-26 07:49:39.154: ERROR/AndroidRuntime(779):     at
> > > > android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
> > > > 2284)
> > > > 08-26 07:49:39.154: ERROR/AndroidRuntime(779):     at
> > > > android.app.ActivityThread.access$1800(ActivityThread.java:112)
> > > > 08-26 07:49:39.154: ERROR/AndroidRuntime(779):     at
> > > > android.app.ActivityThread$H.handleMessage(ActivityThread.java:1692)
> > > > 08-26 07:49:39.154: ERROR/AndroidRuntime(779):     at
> > > > android.os.Handler.dispatchMessage

[android-developers] Help in ViewGroup

2009-08-27 Thread kalyan simhan
hi all..
i have a view group and have added set of views on to it. To the same view
group
i try to add a linear layout which consists of two linear layouts with in
it...
when i do so my added view does not contain any of the child views.. its
blank..
why is it..??
kindly help
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: How to create button with icon and text

2009-08-27 Thread Mark Murphy

> How can I create a Button with icon and text?

Use android:drawableLeft or android:drawableRight or
android:drawableBottom or android:drawableTop.

-- 
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] Query: Packing resources into an APK

2009-08-27 Thread Latha Shivanna

Hii All,

In one of my applications, I am pushing few image files say "xyz.png"
into the device using "adb push " command. And I use these files in my
application by giving their exact filepaths (say if I have pushed them
into /data, I wud say /data/xyz.png).

So to short it down, i wud say," I have a .apk and to run this apk I
would push few files manually using adb commands and I use these files
in my application by giving their full path."

But my requirement is that I should not be pushing the files manually
into the device. Instead I need these images to be a part of my .apk
itself. And I should get their fullpath which are the input parameter
to my method in the application.

Is there any way to do this? Could anybody please help me in this. Any
of your help is highly appreciated!!

Please do suggest.

Thanks
Latha

--~--~-~--~~~---~--~~
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: webview don't scroll up

2009-08-27 Thread Sikus

Nobody?
I'm using WebChromeClient and onJsConfirm. I need do some work when
method onJsConfirm end. Is there 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: Advice for speeding up my drawing

2009-08-27 Thread CG

I have now changed most of the strings to startup initialized char
arrays (missing 4)
and I am completely baffled by the perfomance gain.

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



[android-developers] Re: How to create button with icon and text

2009-08-27 Thread Klaus Kartou
I have a additional question then.
If I want to specify a background color for the text only, how do I do
that?When
I set android:background="#FF" I get a red color around both the text
and the topDrawable.

Regards,
Klaus

On Thu, Aug 27, 2009 at 2:17 PM, Mark Murphy wrote:

>
> > How can I create a Button with icon and text?
>
> Use android:drawableLeft or android:drawableRight or
> android:drawableBottom or android:drawableTop.
>
> --
> 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] Monitoring cpu charge/usage : is it possible?

2009-08-27 Thread DaminouU

Hello,

Is it possible to find some information about CPU?

Actually I would like to find the CPU usage. (50% for example)

Just to know if the program is very light or if it is a heavy app'

Thanks,

D.
--~--~-~--~~~---~--~~
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 do we take a Screenshot using ADB Comand Line

2009-08-27 Thread Prakash Vel

Read through Couple of articles , Most of them point to the DDMS
through that we could take the Screenshot.

However i am trying to capture the Emulator  screen from the Command
Line.
Not Sure how to tweak the framebuffer /Surface flinger to do the job.

or is there any app that we could run in the background and get the
job done.

help will be much appreciated.

Thanks and Regards
Prakash Vel


--~--~-~--~~~---~--~~
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: Advice for speeding up my drawing

2009-08-27 Thread Andrei Bucur
Memory allocation can be very perverse especially if you don't know what
happens behind the curtain. From what I noticed a simple String allocation
implies most of the time an internal char array allocation (pretty obvious)
and many more that I can't now recall.

The rule is simple: If you can avoid it, do it. Any "new" in the drawing
method is BAD.

On Thu, Aug 27, 2009 at 3:37 PM, CG  wrote:

>
> I have now changed most of the strings to startup initialized char
> arrays (missing 4)
> and I am completely baffled by the perfomance gain.
>
> I went from a comlpete render loop time on ~350-500 to 170-350
> >
>

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



[android-developers] Re: How to create button with icon and text

2009-08-27 Thread fhucho

Thanks
On Aug 27, 2:17 pm, "Mark Murphy"  wrote:
> > How can I create a Button with icon and text?
>
> Use android:drawableLeft or android:drawableRight or
> android:drawableBottom or android:drawableTop.
>
> --
> 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] Re: How to create button with icon and text

2009-08-27 Thread fhucho

I don't know if I understand it correctly, but you can try setting the
background manually in the topDrawable image (ie don't make the
background of topDrawable transparent).

On Aug 27, 2:38 pm, Klaus Kartou  wrote:
> I have a additional question then.
> If I want to specify a background color for the text only, how do I do
> that?When
> I set android:background="#FF" I get a red color around both the text
> and the topDrawable.
>
> Regards,
> Klaus
>
> On Thu, Aug 27, 2009 at 2:17 PM, Mark Murphy wrote:
>
>
>
>
>
> > > How can I create a Button with icon and text?
>
> > Use android:drawableLeft or android:drawableRight or
> > android:drawableBottom or android:drawableTop.
>
> > --
> > 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] Re: MyTouch Lag Problems

2009-08-27 Thread cnordvik

I noticed my phone was lagging all the time and googled for "Android
slow" and this tip made my phone twice as fast:
http://code.google.com/p/android/issues/detail?id=3453

I turned off the location functionality and haven't seen any lag
since :-)

-Christer

--~--~-~--~~~---~--~~
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: Advice for speeding up my drawing

2009-08-27 Thread CG

apparantly so,

I replaced 4 more string allocations in the drawing routine, the
strings are very dynamic, so i have to update the values each time.

public final char[] legendText = new char[] {'0', '0', '0', '%'};
public int legendOffset = 2;
public int legendLength = 0;
public void UpdateLegendText(int value) // a value in pct between 0
and 100
{
legendOffset = 3;
while (value != 0 && legendOffset != 0)
{
--legendOffset;
legendText[legendOffset] = (char)('0' + value % 10);
value /= 10;
}
legendLength = legendText.length-legendOffset;
}

I went from the 170-350 to 135-280... 4 string allocations.
--~--~-~--~~~---~--~~
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] Emulator "overclocking"?

2009-08-27 Thread Casper Bang

While I really like the emulator and how realistically it mostly
behaves, at prototyping/RAD times I wish I could over-clock it and
have to wait less for it. Not so much an issue on a full size desktop,
but I do find it odd how slow it is on a Core II Duo 1.2GHz
considering the performance I get when firing up a full fledged
Windows in VirtualBox. Has the QEMU emulator been "slowed down" such
as to better mimic the typical real hardware? And if so, is there a
way to tweak this?

/Casper
--~--~-~--~~~---~--~~
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: Query: Packing resources into an APK

2009-08-27 Thread Mark Murphy

> In one of my applications, I am pushing few image files say "xyz.png"
> into the device using "adb push " command. And I use these files in my
> application by giving their exact filepaths (say if I have pushed them
> into /data, I wud say /data/xyz.png).

You cannot write to /data on production devices.

> But my requirement is that I should not be pushing the files manually
> into the device. Instead I need these images to be a part of my .apk
> itself. And I should get their fullpath which are the input parameter
> to my method in the application.

Files in APKs (e.g., assets, raw resources) are not stored as files in the
device filesystem -- generally, they remain in the APK.

You can get InputStreams on those via the Resources object (obtained via
getResources() in your activity). This may mean that you will need to
modify your method to accept an InputStream as input, rather than a File.

If these are files you intend to modify, you will need to use the
InputStream to copy the file from the APK to some location on the device
(e.g., openFileOutput()).

-- 
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] Re: How to create button with icon and text

2009-08-27 Thread Mark Murphy

> I have a additional question then.
> If I want to specify a background color for the text only, how do I do
> that?

You can't.

> When
> I set android:background="#FF" I get a red color around both the text
> and the topDrawable.

At most, as another poster suggested, you can have a different color be in
the background of the topDrawable. Or, put the text and image together as
a bitmap (on-device or offline) and use ImageButton to display the
combination.

However, I suspect you do not want to be setting the background of the
button via android:background="#FF" in the first place. That should
also remove all of your focus and touch highlighting, as they are part of
the background.

-- 
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] Re: ADC2 Challenge - Is this allowed?

2009-08-27 Thread Teo

I think it's also a bit unfair to think like that. It was pretty
obvious they won't allow existing apps into the contest as apps made
without a deadline would benefit from an unfair advantage (in
development time and popularity). Also, i guess the point of this
contest is to promote innovation and the development of the platform,
otherwise how would Google benefit from this? For the record, i too
have a very cool app that was launched before this contest and that
would have had a bigger chance of winning than my actual contest
entry. This is the same reason why the contest deadline shouldn't be
extended, since those who finish in time would be disadvantaged and
not to mention pissed off.

Just my honest opinion :)

P.S. I'm pretty sure posting a lot about this won't change the rules
so... :)

On Aug 27, 1:32 am, Houba  wrote:
> Merci Romain,
>
> Romain, we published our app before the exactly rules were out (i.e.
> in early May). It seems a tad bit unfair that we are left out because
> of that. Don't you think?
>
> Cheers,
> E
>
> On Aug 26, 11:29 pm, Romain Guy  wrote:
>
>
>
> > > Therefore, it seems to me that what Google are looking for is for
> > > developers who HAVE developed already prior to Aug 1st, need to rename
> > > their apps.
>
> > No, it's for developers who have published their app *after* August 1st.
>
> > > It is EXTREMELY Cruel for a Google official NOT to answer this.
> > > Especially at this time.
>
> > I am from Google.
>
> > > Please can someone official from Google just give me a SIMPLE "Yes -
> > > change the name of your app" or "No - you've lost your chance. Thanks
> > > for using Android".
>
> > Like I said already, no you cannot participate if your app was
> > published on Market before August 1st.
>
> > > Thanks
>
> > > On Aug 26, 10:39 pm, Dan Sherman  wrote:
> > >> a) I'd imagine, they'll go through ADC getting rated, but if they should
> > >> win, I'd imagine Google would check if theres a duplicate on the market 
> > >> that
> > >> was released prior to Aug1, and remove it at that point.  Not to 
> > >> mention, if
> > >> they announced the winners, and someone else noticed, I'm sure it would 
> > >> be
> > >> pointed out pretty quickly.  Its not a "well maybe it was" type thing, it
> > >> would be pretty obvious...
>
> > >> On Wed, Aug 26, 2009 at 4:41 PM, Houba  
> > >> wrote:
>
> > >> > Hi,
>
> > >> > I am aware that this challenge is only open to Apps or developers who
> > >> > have not published their apps on the Android Market before 1st
> > >> > August.
>
> > >> > But my question is this:
>
> > >> > a) What is stopping a developer from just changing the name of his/her
> > >> > app or renaming the app package? Surely others will try this?
>
> > >> > b) Are there any developers here that created apps in anticipation for
> > >> > the ADC2 to only find that by publishing on the Android Market, you
> > >> > will lose out on the eligibility clause?
>
> > >> > Thanks,
>
> > --
> > 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: ADC2 Challenge - Is this allowed?

2009-08-27 Thread Timothy F

I believe from the very beginning it was stated publicly that it was
for apps that had not previously been published.  I was fearing that
they would not allow the entered apps to be published until after
ADC2, so the fact that they are allowing them to be published even
before ADC2 begins is good to hear.  Of course obviously Google don't
want to keep all these great apps out of the market any longer than
they need to.

Whatever date they announced the official rules, there will always be
people who published their app a day, a week, a month, or a year
prior, and who want their shot at the prize.  It may be unfortunate
timing for you, but I think there is nothing "unfair" about it.

On Aug 26, 6:32 pm, Houba  wrote:
> Merci Romain,
>
> Romain, we published our app before the exactly rules were out (i.e.
> in early May). It seems a tad bit unfair that we are left out because
> of that. Don't you think?
>
> Cheers,
> E
>
> On Aug 26, 11:29 pm, Romain Guy  wrote:
>
>
>
> > > Therefore, it seems to me that what Google are looking for is for
> > > developers who HAVE developed already prior to Aug 1st, need to rename
> > > their apps.
>
> > No, it's for developers who have published their app *after* August 1st.
>
> > > It is EXTREMELY Cruel for a Google official NOT to answer this.
> > > Especially at this time.
>
> > I am from Google.
>
> > > Please can someone official from Google just give me a SIMPLE "Yes -
> > > change the name of your app" or "No - you've lost your chance. Thanks
> > > for using Android".
>
> > Like I said already, no you cannot participate if your app was
> > published on Market before August 1st.
>
> > > Thanks
>
> > > On Aug 26, 10:39 pm, Dan Sherman  wrote:
> > >> a) I'd imagine, they'll go through ADC getting rated, but if they should
> > >> win, I'd imagine Google would check if theres a duplicate on the market 
> > >> that
> > >> was released prior to Aug1, and remove it at that point.  Not to 
> > >> mention, if
> > >> they announced the winners, and someone else noticed, I'm sure it would 
> > >> be
> > >> pointed out pretty quickly.  Its not a "well maybe it was" type thing, it
> > >> would be pretty obvious...
>
> > >> On Wed, Aug 26, 2009 at 4:41 PM, Houba  
> > >> wrote:
>
> > >> > Hi,
>
> > >> > I am aware that this challenge is only open to Apps or developers who
> > >> > have not published their apps on the Android Market before 1st
> > >> > August.
>
> > >> > But my question is this:
>
> > >> > a) What is stopping a developer from just changing the name of his/her
> > >> > app or renaming the app package? Surely others will try this?
>
> > >> > b) Are there any developers here that created apps in anticipation for
> > >> > the ADC2 to only find that by publishing on the Android Market, you
> > >> > will lose out on the eligibility clause?
>
> > >> > Thanks,
>
> > --
> > 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- Hide quoted text 
> > -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Speech Recognition

2009-08-27 Thread Nanard

A question to all VR specialist in this list :-)   (and Google
guys if they read tis)


VR works/will work someday  but

If I have a phone bought in the US for instance, my phone will
reconize American accent.
If I develop a VR application for the world.

Will my US phone have the necessary lib/param.  build in by default to
reconize other languages/accents ?

I don't need my US localized phone to reconize only US accent, but
other as well
And other localized phones (French, Spanish, German, etc) be able to
reconize other languages also.

Do you know what kind of app I have in mind ?  :-)
--~--~-~--~~~---~--~~
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] Views not getting Clear

2009-08-27 Thread Archana

Hi,

I am using 5 views in one LinearLayout my app.While going to each view
i am removing previous view by calling
linearlayout.removeAllView().
But I think this is not removing my previous view becoz when i checked
memory usage.My app memory is keep on growing.and Becoz of this i am
getting low memory :no more background process error and after
sometime app is getting hang and then it is exiting.Please help me to
solve this problem.How can we clear memory or how can we remove
view.Its very urgent.I am using system.gc() and also i cleared object
also but no use...

I tried to use different activity for each View but at that time low
memory is coming immediately.

--~--~-~--~~~---~--~~
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: OpenGL - Threading Texture Loading

2009-08-27 Thread Nightwolf

If the problem is with glGenTextures then why not to generate texture
ids pool beforehand?

On Aug 27, 8:59 am, Dan Sherman  wrote:
> I'm converting an app I've written from Canvas to OpenGL, and not having too
> hard of a time yet.
>
> However, I've run into one snag that I can't seem to get around.  My old app
> was threading image loads, because there are a ton of them, however, it
> looks like the OpenGL implementation protects itself to a single thread.  I
> have a basic loadBitmap() function as follows:
>     protected static void loadBitmap(GLSprite sprite, int resourceId) {
>         int textureName = -1;
>         if (mContext != null && mGl != null) {
>             mGl.glGenTextures(1, mTextureNameWorkspace, 0);
>
>             textureName = mTextureNameWorkspace[0];
>             mGl.glBindTexture(GL10.GL_TEXTURE_2D, textureName);
>
>             mGl.glTexParameterf(GL10.GL_TEXTURE_2D,
> GL10.GL_TEXTURE_MIN_FILTER, GL10.GL_NEAREST);
>             mGl.glTexParameterf(GL10.GL_TEXTURE_2D,
> GL10.GL_TEXTURE_MAG_FILTER, GL10.GL_LINEAR);
>
>             mGl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_WRAP_S,
> GL10.GL_CLAMP_TO_EDGE);
>             mGl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_WRAP_T,
> GL10.GL_CLAMP_TO_EDGE);
>
>             mGl.glTexEnvf(GL10.GL_TEXTURE_ENV, GL10.GL_TEXTURE_ENV_MODE,
> GL10.GL_REPLACE);
>
>             Bitmap bitmap = BitmapFactory.decodeResource(r, resourceId);
>
>             GLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, bitmap, 0);
>
>             mCropWorkspace[0] = 0;
>             mCropWorkspace[1] = bitmap.getHeight();
>             mCropWorkspace[2] = bitmap.getWidth();
>             mCropWorkspace[3] = -bitmap.getHeight();
>
>             sprite.setTextureName(textureName);
>             sprite.setSize(bitmap.getWidth(), bitmap.getHeight());
>
>             bitmap.recycle();
>
>             ((GL11) mGl).glTexParameteriv(GL10.GL_TEXTURE_2D,
> GL11Ext.GL_TEXTURE_CROP_RECT_OES, mCropWorkspace, 0);
>
>             int error = mGl.glGetError();
>             if (error != GL10.GL_NO_ERROR) {
>                 // Logging
>             }
>         }
>
> This is based heavily off of the SpriteMethodTest in apps-for-android.  If I
> make a call to this function from the thread that mGl was created from,
> everything goes fine.  However, if I thread the calls to this function, the
> calls to glGenTextures() fail with a varying error code (changes with each
> run).  I haven't been able to find any information regarding how to deal
> with this...
>
> Any help?
> Thanks
> - 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: ADC 2 Submission Site -- Now live

2009-08-27 Thread Bo



On Aug 27, 10:08 am, Wesley  wrote:
> hi All,
>
> I have problem of submit my app...
> 1st times I try to upload it to ADC...
> so I start browse my apk...
> then the site will auto upload I think...
> but before I click save button, suddenly my browser got problem or I mistype
> some shortcut key or what... my browser quit...
>
> then I open my browser back try to upload again, it said I already uploaded,
> and ask me to upgrade the copy I upload at others application, but I can't
> find any "others application" to continue my unsaved entries...
> so what should I do???

Unsubmit and start over?

Best,

Bo


>
> Wesley.
>
> On Thu, Aug 27, 2009 at 6:02 AM, Houba  wrote:
>
> > Hello,
>
> > Please could you explain what Eric Chou means here when he says:
>
> > From Eric Chou's blog:
> > "As a final note, if you've uploaded a version of your app to Android
> > Market, you'll need to use a different Android package name for the
> > version you submit to the Challenge."
>
> > What is that all about? Its on the front page of the ADC2 site.
>
> > Thanks,
>
> > On Aug 26, 10:53 pm, Romain Guy  wrote:
> > > It's written clearly in the terms of the contest:
>
> > > "In addition, an Entry (or substantially similar application by the
> > > same Participant) must not have previously been publicly available
> > > through the Android Market prior to August 1, 2009."
>
> > > So the answer is no, it is not allowed.
>
> > > On Wed, Aug 26, 2009 at 2:16 PM, Houba
> > wrote:
>
> > > > Hi Please can someone explain this:
>
> > > > Is this allowed: to rename an App for the ADC2 challenge? Is this what
> > > > is required to submit an app to the ADC2 that was already submitted to
> > > > the Android Market BEFORE 1st August?
>
> > > > Can someone official just say YES or NO??
>
> > > > Thanks
>
> > > > On Aug 24, 6:36 pm, "Mark Murphy"  wrote:
> > > >> > The submission site for ADC 2 is now live! For full details, see our
> > > >> > blog post:
>
> >http://android-developers.blogspot.com/2009/08/android-developer-chal...
>
> > > >> Great!
>
> > > >> I am concerned about the following quote from that blog post:
>
> > > >> "As a final note, if you've uploaded a version of yourappto Android
> > > >> Market, you'll need to use a different Android package name for the
> > > >> version you submit to the Challenge."
>
> > > >> Will theADC2appbe used, by anyone, outside of theADC2judging process?
> > > >> In other words, will developers have upgrade issues due to having the
> > sameapppublished under two package names? For example, ifADC2basically
> > > >> means authors have to commit to supporting theADC2package name
> > > >> indefinitely, or run the risk of cutting off a chunk of their user
> > base,
> > > >> that is not something to be taken lightly.
>
> > > >> Can we get a bit of clarification on this point?
>
> > > >> Thanks!
>
> > > >> --
> > > >> Mark Murphy (a Commons Guy)http://commonsware.com
> > > >> AndroidAppDeveloper Books:http://commonsware.com/books.html
>
> > > --
> > > 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: Monitoring cpu charge/usage : is it possible?

2009-08-27 Thread Balwinder Kaur (T-Mobile USA)

adb shell top

Balwinder Kaur
Open Source Development Center
·T· · ·Mobile· stick together

The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.


On Aug 27, 5:45 am, DaminouU  wrote:
> Hello,
>
> Is it possible to find some information about CPU?
>
> Actually I would like to find the CPU usage. (50% for example)
>
> Just to know if the program is very light or if it is a heavy app'
>
> Thanks,
>
> D.
--~--~-~--~~~---~--~~
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: Views not getting Clear

2009-08-27 Thread Sujay Krishna Suresh
archana,
i guess u r using image views or atleast images for the backgrounds.
If thats the case, u'll hv to call the bitmap.recycle() method to clear
memory occupied by the bitmap.

On Thu, Aug 27, 2009 at 7:37 PM, Archana  wrote:

>
> Hi,
>
> I am using 5 views in one LinearLayout my app.While going to each view
> i am removing previous view by calling
> linearlayout.removeAllView().
> But I think this is not removing my previous view becoz when i checked
> memory usage.My app memory is keep on growing.and Becoz of this i am
> getting low memory :no more background process error and after
> sometime app is getting hang and then it is exiting.Please help me to
> solve this problem.How can we clear memory or how can we remove
> view.Its very urgent.I am using system.gc() and also i cleared object
> also but no use...
>
> I tried to use different activity for each View but at that time low
> memory is coming immediately.
>
> >
>


-- 
Regards,
Sujay
Joan Crawford
- "I, Joan Crawford, I believe in the dollar. Everything I earn, I
spend."

--~--~-~--~~~---~--~~
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: Who is responsible for validation of layout xml file?

2009-08-27 Thread Balwinder Kaur (T-Mobile USA)

ADT.

Balwinder Kaur
Open Source Development Center
·T· · ·Mobile· stick together

The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.


On Aug 27, 2:18 am, Susan  wrote:
> Who is responsible for validation of xml file when editing xml in
> Android layout editor?  For example, when I set a negtive valut to
> android:maxLength of TextView, it will be marked in red. ADT or aapt
> is responsible for check?
>
> Your help will be appreciated.
--~--~-~--~~~---~--~~
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] buttons on mapview overlay

2009-08-27 Thread Tony Wong

In Google Maps, when you complete a search and go to map mode
browsing, you see two types of overlay objects. One of the overlays
contain a title, description, and left and right buttons. The buttons
have different states (normal, disabled, pressed down) so the overlay
must be more complex than the default provided one. Can anyone point
me to the right direction on how to implement this type of
functionality? The only point of entry I can see from searching for
examples is draw() in ItemizedOverlay, but is that an area where I can
add buttons? Perhaps they are using something separate from the
MapView classes altogether, can anyone enlighten me?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: ADC2 Challenge - Is this allowed?

2009-08-27 Thread Ehab Bassilli
Vaz and I sent out a bit too many threads on this because what happened was
we sent out 1 and it didnt appear on the forum.. so we sent out a few more
thinking there was a problem with the submission. Anyway, all of them
arrived at the same time - so our apologies for that!

Secondly, thanks for your responses - I'm glad the rules make sense to you.
It helps to know that (i would have done things bit differently if I were
Google) -

Anyway, no worries. Good luck with your apps/submissions in ADC2.
:)


On Aug 27, 2009 2:44 PM, "Timothy F"  wrote:


I believe from the very beginning it was stated publicly that it was
for apps that had not previously been published.  I was fearing that
they would not allow the entered apps to be published until after
ADC2, so the fact that they are allowing them to be published even
before ADC2 begins is good to hear.  Of course obviously Google don't
want to keep all these great apps out of the market any longer than
they need to.

Whatever date they announced the official rules, there will always be
people who published their app a day, a week, a month, or a year
prior, and who want their shot at the prize.  It may be unfortunate
timing for you, but I think there is nothing "unfair" about it.

On Aug 26, 6:32 pm, Houba  wrote: > Merci
Romain, > > Romain, we publ...
> > public forums, where I and others can see and answer them- Hide quoted
text -
>
> - Show quoted text -

--~--~-~--~~~---~--~~ You received this
message because you are subs...

--~--~-~--~~~---~--~~
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 help regarding Scroll Wheel Zoom

2009-08-27 Thread android.vinny

Hi

How can i implement the Scroll Wheel Zoom in my application ...
if any body knows how to implement this please help regarding
this .

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: OpenGL - Threading Texture Loading

2009-08-27 Thread Streets Of Boston

You could do the loading of the bitmap in a seperate background thread
and generating the textures in your 'mGl' thread when this separate
background thread has finished.

I don't think you can use AsyncTask to do this, since the onPostExecute
() needs to be executed on the main GUI thread (which is not your
'mGl' thread, i assume). Instead you could use ExecutorService in
java.util.concurrent for that.


On Aug 27, 9:50 am, Nightwolf  wrote:
> If the problem is with glGenTextures then why not to generate texture
> ids pool beforehand?
>
> On Aug 27, 8:59 am, Dan Sherman  wrote:
>
>
>
> > I'm converting an app I've written from Canvas to OpenGL, and not having too
> > hard of a time yet.
>
> > However, I've run into one snag that I can't seem to get around.  My old app
> > was threading image loads, because there are a ton of them, however, it
> > looks like the OpenGL implementation protects itself to a single thread.  I
> > have a basic loadBitmap() function as follows:
> >     protected static void loadBitmap(GLSprite sprite, int resourceId) {
> >         int textureName = -1;
> >         if (mContext != null && mGl != null) {
> >             mGl.glGenTextures(1, mTextureNameWorkspace, 0);
>
> >             textureName = mTextureNameWorkspace[0];
> >             mGl.glBindTexture(GL10.GL_TEXTURE_2D, textureName);
>
> >             mGl.glTexParameterf(GL10.GL_TEXTURE_2D,
> > GL10.GL_TEXTURE_MIN_FILTER, GL10.GL_NEAREST);
> >             mGl.glTexParameterf(GL10.GL_TEXTURE_2D,
> > GL10.GL_TEXTURE_MAG_FILTER, GL10.GL_LINEAR);
>
> >             mGl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_WRAP_S,
> > GL10.GL_CLAMP_TO_EDGE);
> >             mGl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_WRAP_T,
> > GL10.GL_CLAMP_TO_EDGE);
>
> >             mGl.glTexEnvf(GL10.GL_TEXTURE_ENV, GL10.GL_TEXTURE_ENV_MODE,
> > GL10.GL_REPLACE);
>
> >             Bitmap bitmap = BitmapFactory.decodeResource(r, resourceId);
>
> >             GLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, bitmap, 0);
>
> >             mCropWorkspace[0] = 0;
> >             mCropWorkspace[1] = bitmap.getHeight();
> >             mCropWorkspace[2] = bitmap.getWidth();
> >             mCropWorkspace[3] = -bitmap.getHeight();
>
> >             sprite.setTextureName(textureName);
> >             sprite.setSize(bitmap.getWidth(), bitmap.getHeight());
>
> >             bitmap.recycle();
>
> >             ((GL11) mGl).glTexParameteriv(GL10.GL_TEXTURE_2D,
> > GL11Ext.GL_TEXTURE_CROP_RECT_OES, mCropWorkspace, 0);
>
> >             int error = mGl.glGetError();
> >             if (error != GL10.GL_NO_ERROR) {
> >                 // Logging
> >             }
> >         }
>
> > This is based heavily off of the SpriteMethodTest in apps-for-android.  If I
> > make a call to this function from the thread that mGl was created from,
> > everything goes fine.  However, if I thread the calls to this function, the
> > calls to glGenTextures() fail with a varying error code (changes with each
> > run).  I haven't been able to find any information regarding how to deal
> > with this...
>
> > Any help?
> > Thanks
> > - Dan- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Having Android Documentation in Groups Pages area

2009-08-27 Thread Balwinder Kaur (T-Mobile USA)

I think that is quite a nice idea :)

As we come across ways that we feel can make the documentation become
more succinct and report those, it helps Android Developers' lives
become easier. The strength of an open source platform comes piping
the knowledge of its users back into the platform.

Balwinder Kaur
Open Source Development Center
·T· · ·Mobile· stick together

The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.


On Aug 26, 6:37 pm, Michael Leung  wrote:
> But that needs someone to update it. I think that is fine to read from the
> main android site.
>
> However, that is a good and positive idea.
>
>
>
> On Thu, Aug 27, 2009 at 9:32 AM, tansaku  wrote:
>
> > Hi All,
>
> > I was thinking, wouldn't it be great if all the android reference
> > documentation was in the pages section of this Google Group, i.e.
> > stick everything in here:
>
> >http://developer.android.com/reference/packages.html
>
> > in here:
>
> >http://groups.google.com/group/android-developers/web
>
> > then everyone could comment on specific bits in the reference docs,
> > and even get involved in trying to improve them?
>
> > CHEERS>S AM
>
> --
> Regards,
> Michael Leunghttp://www.itblogs.infohttp://www.michaelleung.info
--~--~-~--~~~---~--~~
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] Animation on widgets

2009-08-27 Thread Daniel

In my app I have a EditText widget. Since I need that EditText at
different positions within the activity I perform some animations to
move it around. I don't want to set the position without an animation.
The animation also has the fillAfter attribute set to true so the
EditText widget stays at the new position after the animation is done.
Up to this point everything works perfectly. But now if I scroll
through my app the selection of the EditText is always drawn at the
original position of the EditText. Is there any possibility to move
around the EditText with an animation and have it behave correctly
also when it is selected (has the orange border)?

Thanks,
Daniel
--~--~-~--~~~---~--~~
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: Monitoring cpu charge/usage : is it possible?

2009-08-27 Thread DaminouU

Ok but I want to get these values in my application, and maybe use
them.

So is it possible to recover these values from a running Android
application?

On Aug 27, 3:58 pm, "Balwinder Kaur (T-Mobile USA)"  wrote:
> adb shell top
>
> Balwinder Kaur
> Open Source Development Center
> ·T· · ·Mobile· stick together
>
> The views, opinions and statements in this email are those of the
> author solely in their individual capacity, and do not necessarily
> represent those of T-Mobile USA, Inc.
>
> On Aug 27, 5:45 am, DaminouU  wrote:
>
> > Hello,
>
> > Is it possible to find some information about CPU?
>
> > Actually I would like to find the CPU usage. (50% for example)
>
> > Just to know if the program is very light or if it is a heavy app'
>
> > Thanks,
>
> > D.
>
>
--~--~-~--~~~---~--~~
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: EMMA Code coverage and JUnit

2009-08-27 Thread Gabor

Hi Santosh,

When you are starting the emulator it is ok to stop the booting
process, because there is no emma.jar file installed on the system.
The emulator tries to find the missing file every ~5 secs. So if you
are executing the adb remount  and adb sync it will continue booting
up. (it synchronizes the image and the build system directories. Emma
jar and the requiered project(s) will be copied to it. )

One more thing:
If you would like to boot the emulator immediately, you have to add
the emma.jar into the system.img file. To do that, add the following
lines at the and of the "build/target/product/core.mk" file:

PRODUCT_COPY_FILES += \
out/target/common/obj/JAVA_LIBRARIES/emma_intermediates/
javalib.jar:system/framework/emma.jar\

Note: add these lines to the file before the make ... command(s)

Gabor

On Aug 26, 3:39 am, santosh kumar  wrote:
> Hi All,
>
> I have few questions about this.. plz clarify me..
>
> i want to generate code coverage for apidemos only...
>
> first i changed init.rc then i followed every thing which is mentioned
> in gobor mail..
>
> one thing i am not understanding... when i start the emulator,
> emulator is getting stucked with the boot up logo,
>
> i have seen some other artical... we need to run runtest.py?
>
> is it correct?
>
> why emulator is getting stucked?
>
> Thanks
> Santosh
>
> On Aug 26, 2:28 am, hari uppalapati  wrote:
>
> > hi
> > i was not facing any issues with emulator.Only thing was my coverage.ec file
> > was empty as my sdcard is not recognised.with the following steps the issues
> > was resolved.If possible post the logcat o/p and also the steps followed.
> > 1) edit system/core/rootdir/Android.mk so that the copy_from variable on
> > line 6 contains etc/vold.conf.
> > copy_from := \
> >     etc/dbus.conf \
> >     etc/vold.conf \
> >     etc/init.goldfish.sh \
> >     etc/hosts
>
> > 2)copy vold.conf from (git://
> > android.git.kernel.org/platform/vendor/htc/dream-open.git) to
> > system/core/rootdir/etc/
> >      cp vendor/htc/dream-open/vold.conf system/core/rootdir/etc.
> > regards
> > Haritha
>
> > On Tue, Aug 25, 2009 at 2:40 AM, santosh kumar 
> > wrote:
>
> > > Hi All,
>
> > > what changes you have been done to vold.conf?
>
> > > and i followed the steps of gobor..
>
> > > but for me also, emulator is getting stucked..
>
> > > can you plz help me..
>
> > > On Aug 25, 2:23 am, Haritha  wrote:
> > > > thanks everyone for posting info on emma coverage.I was also able to
> > > > generate coverage reports for custom tests with necessary changes to
> > > > vold.conf.
> > > > regards
> > > > Haritha
>
> > > > On Aug 20, 6:08 am, Gabor  wrote:
>
> > > > > Hi All,
>
> > > > > Finally, the emma code coverage measurement is working for me (for a
> > > > > custom project). So here are the steps what you need to make it work
> > > > > (I have tested it, with Java 1.5 on Ubuntu 8.04):
>
> > > > > mkdir android-src
> > > > > cd android-src
> > > > > repo init -u git://android.git.kernel.org/platform/manifest.git -b
> > > > > cupcake
> > > > > repo sync
>
> > > > > # Add emma.jar to the system/core/rootdir/init.rc
> > > > > sed 's/\/system\/framework\/core.jar:\/system\/framework\/ext.jar:/\/
> > > > > system\/framework\/core.jar:\/system\/framework\/ext.jar:\/system\/
> > > > > framework\/emma.jar:/' system/core/rootdir/init.rc > system/core/
> > > > > rootdir/init.rc.tmp
> > > > > mv system/core/rootdir/init.rc.tmp system/core/rootdir/init.rc
>
> > > > > # Rebuild the boot image
> > > > > make bootimage
>
> > > > > # To build the full system image
> > > > > make -j4
>
> > > > > # Set the PATH:
> > > > > export PATH=${PATH}:/<_path_>/android-src/out/host/linux-x86/bin/
>
> > > > > # Build the emma jar itself
> > > > > make emma
>
> > > > > # Setting the environment and additional bash commands. (like
> > > > > m,mm,mmm, choosecombo etc) Notice the space after the dot!
> > > > > . build/envsetup.sh
>
> > > > > # Set EMMA_INSTRUMENTATION to true
> > > > > export EMMA_INSTRUMENT=true
>
> > > > > # Copy your project to development/samples/<_projectname_> or
> > > > > somewhere..:)
> > > > > # Based on the ApiDemo create an Android.mk file for the project
> > > > > directory and the project test directory
> > > > > # The LOCAL_INSTRUMENTATION_FOR value in test dir Android.mk has to be
> > > > > equal with the LOCAL_PACKAGE_NAME defined in the Android.mk in the
> > > > > main project dir.
> > > > > # Compile the Application would like to instrument
> > > > > mmm development/samples/<_projectname_>
>
> > > > > # Set the ANDROID_PRODUCT_OUT directory for the emulator to know the
> > > > > image location
> > > > > export ANDROID_PRODUCT_OUT=/<_path_>/android-src/out/target/product/
> > > > > generic
>
> > > > > # Start an emulator with a simulated sdcard:
> > > > > emulator -sdcard 
>
> > > > > # Remount the drive - it is needed to have a writable drive. without
> > > > > that sync wont work
> > > > > adb remount
>
> > > > > # Synchronize the local content w

[android-developers] Re: buttons on mapview overlay

2009-08-27 Thread Zod

Hi!

The easiest way to put buttons on your map is to use a RelativeLayout.
Put the MapView into it and after that you can put there other layout
objects too.
In the RelativeLayout the view you put after the map view can be over
it, so you can draw anything over the map this way, and you don't need
to worry about the draw() part.

Here is a simple layout xml I used to put a left and right arrow and a
textView over the map.





http://schemas.android.com/apk/res/
android"
android:id="@+id/MapLayout"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">














After this you can hide and show the MapLayout view as you wish, and
bind event handlers to it as usual (and also design it in eclipse as
you normally would).

Bye,
Zsolt

On Aug 27, 4:28 pm, Tony Wong  wrote:
> In Google Maps, when you complete a search and go to map mode
> browsing, you see two types of overlay objects. One of the overlays
> contain a title, description, and left and right buttons. The buttons
> have different states (normal, disabled, pressed down) so the overlay
> must be more complex than the default provided one. Can anyone point
> me to the right direction on how to implement this type of
> functionality? The only point of entry I can see from searching for
> examples is draw() in ItemizedOverlay, but is that an area where I can
> add buttons? Perhaps they are using something separate from the
> MapView classes altogether, can anyone enlighten me?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Changing view weight dynamically

2009-08-27 Thread Huw

I'm writing an app with two custom views. Both of which are doing
their job, but require more than half of the available area.

I'd like the user to be able to tap the inactive view, and it would
expand to 75% of the screen, while the other shrinks. I haven't seen
any way to influence a views weight anywhere but the layout xml, is it
possible to change it dynamically?

Cheers,
Huw

--~--~-~--~~~---~--~~
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] problem in android! NEED HELP!

2009-08-27 Thread Aida

Hi there, I have a problem in android! please help me!

you can see error description in this page:
http://androidforums.com/android-developers/7660-cant-run-emulator-netbeans.html

Thanks all!


--~--~-~--~~~---~--~~
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] A problem in Android! HELP!

2009-08-27 Thread Aida

Hi there, I have a problem in android! please help me!

Here is the problem description:
http://androidforums.com/android-developers/7660-cant-run-emulator-netbeans.html

Thanks all!

--~--~-~--~~~---~--~~
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] Toggling clicked item icon in gridView

2009-08-27 Thread RickardF

Hi all,
I have a gridView where I want to be able to toggle the item icons
when clicking them. So, when I click an item it gets "selected" which
is indicated by, say, bitmap B and when I click it again it should be
"unselected" and the item changes back to bitmap A.

The problem is that I cannot get the grid to redraw after I have
clicked one of the items so the clicked item never changes icon. I
have tried to call requestLayout() but for some reason it only results
in a two successive calls to the adaptor's getView(), both with
position zero regardless of which item I clicked. What am I missing
here?

Here are some code snippets:

>>>
...
final GridView myGrid = (GridView) findViewById(...);
...
myGrid.setOnItemClickListener(new AdapterView.OnItemClickListener()
{
@Override
public void onItemClick(AdapterView parent,
View view,
int position,
long id)
{
// Toggle icon.
toggleIconState(position);

   myGrid.requestLayout();
}
});

>>> From my adaptor class (The getIcon() returns one of two bitmaps depending 
>>> on a state var. (selected/unselected))

 @Override
public View getView(int position, View convertView, ViewGroup
parent)
{
ImageView imageView;

if (convertView == null)
{
// Create the image view if we aren't recycling an old
view.
imageView = new ImageView(context);
imageView.setScaleType(ImageView.ScaleType.FIT_XY);
}
else
{
imageView = (ImageView) (convertView);
}

// Use this position's asset group icon as the image view
contents.
imageView.setImageBitmap(getIcon(position));
return imageView;
}


Any ideas are most welcome.

Thanks,
Rickard

--~--~-~--~~~---~--~~
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] Toggling item icon in GridView on click

2009-08-27 Thread RickardF

Hi all,
I have a gridView where I want to eb able to "toggle" the item icons.
I.e when I click one of the items I want the cino to switch appearance
from, say bitmap A, to bitmap B. When I click it again it should
switch back to bitmap A.
I've got the logic in place but I cannot get the gridView to redraw
after I have handled the item click. I have tried with requestLayout()
but the only thing tht happens after clicking is that my adapter's
getView() gets called twice with position==0 regardless of which item
I clicked. The icon doesn't change.
What am I missing?
At startup the icons are nicely drawn so the getView() returns correct
imageViews.

Here are some code snippets:
>>
...
final GridView myGrid = (GridView) getViewById(...);

 assetGrid.setOnItemClickListener(new AdapterView.OnItemClickListener
()
{
@Override
public void onItemClick(AdapterView parent,
View view,
int position,
long id)
{
// Toggle icon
toggleItemIcon(position);

   myGrid.requestLayout();
}
});

>> The getView() of my adapter. getItemIcon() returns a bitmap depending on 
>> what state the item is in.

 @Override
public View getView(int position, View convertView, ViewGroup
parent)
{
ImageView imageView;

if (convertView == null)
{
// Create the image view if we aren't recycling an old
view.
imageView = new ImageView(context);
imageView.setScaleType(ImageView.ScaleType.FIT_XY);
}
else
{
imageView = (ImageView) (convertView);
}

imageView.setImageBitmap(getItemIcon(position));
return imageView;
}

Any ideas are much appreciated.

Thanks,
Rickard

--~--~-~--~~~---~--~~
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: Create horizontal progress bar at runtime

2009-08-27 Thread inetic

thank you!

On Jul 22, 7:04 pm, Hayden  wrote:
> OK I finally figured it out.  For anyone else that wants to implement
> ahorizontalprogressbarwith only code,createit like this:
>
> " ProgressBar pb = new ProgressBar(context, null,
> android.R.attr.progressBarStyleHorizontal); "
>
> On Jul 22, 12:23 am, Hayden  wrote:
>
> > I have been searching forever and have not found a way tocreatea
> >horizontalprogressbaratruntime(I don't want to use XML).  How can
> > I set this XML attribute, as seen in this 
> > posthttp://groups.google.com/group/android-beginners/browse_thread/thread...,
> > programmatically?

--~--~-~--~~~---~--~~
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] key code constant for question mark?

2009-08-27 Thread greg

I don't see an android.view.KeyEvent.KEYCODE constant defined for
question mark (key code 76).  Is there a key code constant defined for
the question mark?

Best regards,
Greg
--~--~-~--~~~---~--~~
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: key code constant for question mark?

2009-08-27 Thread Dianne Hackborn
Nope.  Even on a PC keyboard "?" is not a physical key, but a shift mode on
another ("/").

On Thu, Aug 27, 2009 at 9:23 AM, greg  wrote:

>
> I don't see an android.view.KeyEvent.KEYCODE constant defined for
> question mark (key code 76).  Is there a key code constant defined for
> the question mark?
>
> Best regards,
> Greg
> >
>


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

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

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



[android-developers] How to listen to " Back" key

2009-08-27 Thread cindy

In current activity, when user click the back key, I don't what it
back to the last activity.
Can I add a listener to listen to back key in current activity? When
user click "back" key, it actually back to the activity I want it to
go.

Thanks!

Cindy
--~--~-~--~~~---~--~~
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: Having Android Documentation in Groups Pages area

2009-08-27 Thread Dianne Hackborn
The official location of the documentation is in the source tree, in the
source documentation files and various java docs related to all of the
classes.  We have been regularly accepting contributions to that code to fix
and improve the documentation there.

Someone could certainly copy the docs to wherever else they want, but they
are going to have a fair amount of work cut out for them to keep those in
sync with the official docs.

On Thu, Aug 27, 2009 at 7:44 AM, Balwinder Kaur (T-Mobile USA) <
balwinder.k...@t-mobile.com> wrote:

>
> I think that is quite a nice idea :)
>
> As we come across ways that we feel can make the documentation become
> more succinct and report those, it helps Android Developers' lives
> become easier. The strength of an open source platform comes piping
> the knowledge of its users back into the platform.
>
> Balwinder Kaur
> Open Source Development Center
> ·T· · ·Mobile· stick together
>
> The views, opinions and statements in this email are those of the
> author solely in their individual capacity, and do not necessarily
> represent those of T-Mobile USA, Inc.
>
>
> On Aug 26, 6:37 pm, Michael Leung  wrote:
> > But that needs someone to update it. I think that is fine to read from
> the
> > main android site.
> >
> > However, that is a good and positive idea.
> >
> >
> >
> > On Thu, Aug 27, 2009 at 9:32 AM, tansaku  wrote:
> >
> > > Hi All,
> >
> > > I was thinking, wouldn't it be great if all the android reference
> > > documentation was in the pages section of this Google Group, i.e.
> > > stick everything in here:
> >
> > >http://developer.android.com/reference/packages.html
> >
> > > in here:
> >
> > >http://groups.google.com/group/android-developers/web
> >
> > > then everyone could comment on specific bits in the reference docs,
> > > and even get involved in trying to improve them?
> >
> > > CHEERS>S AM
> >
> > --
> > Regards,
> > Michael Leunghttp://www.itblogs.infohttp://www.michaelleung.info
> >
>


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

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

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



[android-developers] Re: Too many PNGs in res/drawable?

2009-08-27 Thread markh23

Thanks for the responses.

So from I got, it's the sheer number of images that makes this
scenario difficult for Android to handle?  And the size of each of the
images won't make (much of) a difference?  Say for instance, I have an
icon with 1000 states, and each image is only 100bytes.  Will this
still get me in trouble?

Thanks again.

--Mark

On Aug 27, 1:24 am, Dianne Hackborn  wrote:
> Btw, if at some point in the future I find myself trying to figure out why a
> particular device is sluggish with a big system process, and see this
> situation, I will without hesitation put in a limit on the number of images
> associated with a notification to something reasonable. :}
>
> On Wed, Aug 26, 2009 at 10:19 PM, Dianne Hackborn wrote:
>
>
>
>
>
> > The current absolute limit is 32,767 resources per type.
>
> > However...  uh, you should really re-think this.  All of the drawable
> > containers (level list, state list, etc) load ALL of their images up-front.
> > Ghod god please please don't load 5,000 images into the system process.
> > Please.
>
> > On Wed, Aug 26, 2009 at 9:15 PM, markh23  wrote:
>
> >> Hello,
>
> >> I have a notification icon in the status bar with thousands (5000+) of
> >> states, and each state has a different corresponding icon.  Right now
> >> I'm using a  xml file to switch between all these
> >> different images.
>
> >> It seems to be working right now (it takes a little longer to install/
> >> uninstall from the emulator however), but does someone see any
> >> problems with this that I'm not catching?  Is it possible to have too
> >> many items in the res/drawable folder?  Will there be a huge
> >> performance hit by having an icon with so many states?
>
> >> Thanks.
>
> >> --Mark
>
> > --
> > Dianne Hackborn
> > Android framework engineer
> > hack...@android.com
>
> > Note: please don't send private questions to me, as I don't have time to
> > provide private support, and so won't reply to such e-mails.  All such
> > questions should be posted on public forums, where I and others can see and
> > answer them.
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Overlay ConcurrentModificationException (continued)

2009-08-27 Thread Zod

Hi!

It's not clear where your code is located and called. If it's in the
thread which receives the messages, than you're modifying UI elements
from another thread which is really bad.

If your code is in the activity object, and you call it directly from
the network thread, than you also execute code in a thread which is
not the UI thread (very bad again), and therefore if the Overlay is
currently drawn and at that moment you receive a new message you will
try to modify a List while it is accessed by another thread (the UI).

There is already a facility in the android api which can help you put
your data into the UI thread in a safe way.

See: http://developer.android.com/reference/android/os/Handler.html

Heres a simple example using Handler.post()

In you activity where your UI components are. Create a Handler object,
(eg: mHandler = new Handler())

Pass this mHandler object to your network thread. When your network
thread receives a message use this handler to send a Runnable object
to be executed in the UI thread. Eg:

receiveMessage(String msg) {
// send a runnable to execution in the thread which created the
handler
mHandler.post(new Runnable() { // implement the Runnable interface
public void run() {
activity.updateUI();  // <- what to call in the
handler thread.
}
});
}

If your thread is implemented as an inner class of your activity, you
can call the necessary method directly in the Runnable.run method.

I hope this helps.

   Zsolt.

On Aug 27, 12:41 pm, Lex  wrote:
> This post is in addition 
> to:http://groups.google.com/group/android-developers/browse_thread/threa...
>
> I have exactly the same problem and Doug pinpointed what's probably
> the issue in my case exactly:
>
> So here's the deal: I have a Vector containing traffic messages
> (received from a server via UDP in an own thread). Each time a message
> is received, I create a new overlay object and populate it with the
> traffic messages:
>
> public void receiveMessage(BinaryMessage binaryMsg) {
>
>                 
>              TrafficMessage message = createMessage(binaryMsg);
>              // adds message to vector
>              addTrafficMessage(message,
> CoCarMapView.trafficMessages);
>              CoCarMapView.showTrafficMessages();
>                                 
>
> }
>
> public static void showTrafficMessages() {
>                 List overlays = mapView.getOverlays();
>                 if (overlays.size() > 1) {
>                         overlays.remove(1);
>                 }
>                 Drawable warningIcon = context.getResources().getDrawable
> (R.drawable.sign_warning_small);
>                 CoCarItemizedOverlay trafficEventsOverlay = new 
> CoCarItemizedOverlay
> (warningIcon);
>
>                 // the overlay is populated here
>                 trafficEventsOverlay.updateOverlay(trafficMessages);
>
>                 mapView.getOverlays().add(trafficEventsOverlay);
>                 mapView.postInvalidate();
>
> }
>
> public void updateOverlay(Vector messages) {
>                 for(int i=0; i < messages.size(); i++) {
>
>                         TrafficMessage message = messages.elementAt(i);
>                         Drawable messageIcon = getMessageIcon(message);
>                         GeoPoint point = getGeoPoint(message);
>                         OverlayItem messageItem = createItem(messageIcon, 
> point);
>                         this.addItem(messageItem);
>
>                 }
>
> }
>
> I don't understand yet exactly where the error is caused, that is
> where to start improving stuff...
>
> Thanks for your advice,
>
> Lex
--~--~-~--~~~---~--~~
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: Too many PNGs in res/drawable?

2009-08-27 Thread Dianne Hackborn
I will guarantee you that each image is not 100 bytes.  Actually, I'll bet
that is more along the lines of the amount of memory needed just for the
Java and C++ data structures for the drawable and bitmap objects.  The size
of a status bar icon is 25x25; I will assume that this image is 32bpp since
without an alpha channel it very unlikely it will look good in the status
bar, so that gives us 2500 bytes per image.  Multiplied by 5,000 images,
that is 12MB of RAM.  For reference, that is larger than the entire memory
used by the system process after initial boot.  (Even if we were to take
your number of 100 bytes, that is still 1/2 meg of image data, which is a
noticeable increase in the system process size.)

And it's not just the crazy amount of RAM we are talking about.  When you
put your notification in the status bar, it would have to load
*5,000* images to display it.  That is going to take a hell of a
long time.  Actually, it's pretty likely this would cause the status bar to
ANR.  Repeatedly.

And once it's loaded, none of the drawable containers were designed to deal
with such an extreme number of images -- they were design with the order of
10s of images in mind.  Any change to the drawable will result in a linear
search through all of the images to find the best match.

This is just a totally unreasonable thing to do.  Sorry. :}

1000 states is also really unreasonable.

And there is really just no reason in the world to do this kind of thing.
You can freely update the notification whenever you want, with whatever new
icon you want.  You do want to be careful about not updating too often there
(try to target no more than once a minute, definitely keep it no less than
10s of seconds), but that is true regardless just for simple battery life.
And actually wouldn't you need to repost the notification when you want to
change the icon regardless of whether you have all of those images in a
single drawable?  If so, having the notification show one explicit icon is
going to be so incredibly more efficient than sending over a ton of icons
each time only one of which will be shown, that there really isn't anything
to think about here.

On Thu, Aug 27, 2009 at 8:24 AM, markh23  wrote:

> Thanks for the responses.
>
> So from I got, it's the sheer number of images that makes this
> scenario difficult for Android to handle?  And the size of each of the
> images won't make (much of) a difference?  Say for instance, I have an
> icon with 1000 states, and each image is only 100bytes.  Will this
> still get me in trouble?
>
> Thanks again.
>
> --Mark
>
> On Aug 27, 1:24 am, Dianne Hackborn  wrote:
> > Btw, if at some point in the future I find myself trying to figure out
> why a
> > particular device is sluggish with a big system process, and see this
> > situation, I will without hesitation put in a limit on the number of
> images
> > associated with a notification to something reasonable. :}
> >
> > On Wed, Aug 26, 2009 at 10:19 PM, Dianne Hackborn  >wrote:
> >
> >
> >
> >
> >
> > > The current absolute limit is 32,767 resources per type.
> >
> > > However...  uh, you should really re-think this.  All of the drawable
> > > containers (level list, state list, etc) load ALL of their images
> up-front.
> > > Ghod god please please don't load 5,000 images into the system process.
> > > Please.
> >
> > > On Wed, Aug 26, 2009 at 9:15 PM, markh23 
> wrote:
> >
> > >> Hello,
> >
> > >> I have a notification icon in the status bar with thousands (5000+) of
> > >> states, and each state has a different corresponding icon.  Right now
> > >> I'm using a  xml file to switch between all these
> > >> different images.
> >
> > >> It seems to be working right now (it takes a little longer to install/
> > >> uninstall from the emulator however), but does someone see any
> > >> problems with this that I'm not catching?  Is it possible to have too
> > >> many items in the res/drawable folder?  Will there be a huge
> > >> performance hit by having an icon with so many states?
> >
> > >> Thanks.
> >
> > >> --Mark
> >
> > > --
> > > Dianne Hackborn
> > > Android framework engineer
> > > hack...@android.com
> >
> > > Note: please don't send private questions to me, as I don't have time
> to
> > > provide private support, and so won't reply to such e-mails.  All such
> > > questions should be posted on public forums, where I and others can see
> and
> > > answer them.
> >
> > --
> > Dianne Hackborn
> > Android framework engineer
> > hack...@android.com
> >
> > Note: please don't send private questions to me, as I don't have time to
> > provide private support, and so won't reply to such e-mails.  All such
> > questions should be posted on public forums, where I and others can see
> and
> > answer them.
>



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

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions s

[android-developers] Re: need help regarding Scroll Wheel Zoom

2009-08-27 Thread Dianne Hackborn
Android doesn't support a scroll wheel -- you should be focusing on UI for
handsets, which don't have a scroll wheel.  (They may have a jog dial, which
would be expressed as the existing trackball and DPAD events.)

On Thu, Aug 27, 2009 at 7:37 AM, android.vinny  wrote:

>
> Hi
>
> How can i implement the Scroll Wheel Zoom in my application ...
> if any body knows how to implement this please help regarding
> this .
>
> TIA
> >
>


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

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

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



[android-developers] How to get SMS message ID

2009-08-27 Thread Eric Belen
I have this code from an SMS receiver.  How do I get the:
1.  Message ID (_id)
2. Thread ID(thread_Id)
 
 public void onReceive(Context context, Intent intent)
 {
   Bundle bundle = intent.getExtras();
   if(bundle != null)
   {
Object[] pdus =(Object[])bundle.get("pdus");
SmsMessage[] messages = new SmsMessage[pdus.length];

for(int i=0; i < pdus.length; i++ )
 messages[i] = SmsMessage.createFromPdu((byte[]) pdus[i]);

for(SmsMessage message : messages)
{
 int msgId = >>> how do you do this here???
 String msg   =  message.getMessageBody();
 String from  =  message.getOriginatingAddress();
 }
...   
   }
 
thanks in advance.
 
Eric

--~--~-~--~~~---~--~~
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] Maintaining text formatting after setText()

2009-08-27 Thread mgpc

Hi,

I have a TextView with some formatting applied in XML - in particular,
the text is underlined. When the text in the TextView is changed in
the code via:

myTextView.setText("newtext");

the formatting is lost. Is there any simple way to keep the
formatting, without manually re-adding the formatting via code?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: how do I get in touch

2009-08-27 Thread Yusuf Saib (T-Mobile USA)

Option 1: http://www.dreamdawn.com/sh/contact.php
Option 2: If you have a problem, if no one else can help, and if you
can find them, maybe you can hire... The A-Team.


Yusuf Saib
Android
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.




On Aug 26, 4:50 pm, "jesuschrist1...@gmail.com"
 wrote:
> with Chris Pruett to help me learn more about game developmentcan
> you have him contact me asap!!!thanks!!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] how do I get in touch

2009-08-27 Thread jesuschrist1...@gmail.com

with Chris Pruett to help me learn more about game developmentcan
you have him contact me asap!!!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] Problem in Geocoder API

2009-08-27 Thread falcon_whiz

Hi All,
  I am having a real hard time with the geocoder API of android sdk
1.5rc2. In my app I am trying to get the addresses corresponding to a
location name by using the getFromLocationName method of the Geocoder
class. But the problem is whenever I call this method it returns a
null value. I have also pushed a geodb file containing some fake
addresses at 'data/misc/location' directory in the phone.

The format of the data in the geodb file is as follows :

address 1
latitude "38.898763"
longitude "-77.036655"
line 0 "1600 Pennsylvania Ave NW"
line 1 "Washington, DC 20006"
locality "Washington"
region "DC"
postalCode "20006"
countryCode "US"
countryName "United States"


and following is the code snippet :
Geocoder geocoder = new Geocoder(this, Locale.getDefault());
List addresses=geocoder.getFromLocationName("1600
Pennsylvania", 10);

Please help.

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



[android-developers] Re: ADC 2 Submission Site -- Now live

2009-08-27 Thread Dan Morrill
We are not planning to extend the submission deadline.
- Dan

On Tue, Aug 25, 2009 at 2:22 PM, patrick  wrote:

>
> Hi,
>
> i'm asking wher can we ask google to extend the deadline?
>
> thks
>
> On 25 août, 17:05, Dan Sherman  wrote:
> > There's no reason that they would change the deadline.  The deadline has
> > been set at the 31st since late May (as stated before).  With that
> deadline
> > posted, your app should be ready to hit the submit button on the 31st or
> > sooner.  Nothing changed, they're giving you a full week to hit the
> "Submit"
> > button.
> >
> > - Dan
> >
> > On Tue, Aug 25, 2009 at 12:06 PM, Maps.Huge.Info (Maps API Guru) <
> >
> > cor...@gmail.com> wrote:
> >
> > > I see no need to extend the deadline, it's been public since May 27th,
> > > if you're not ready by now, you'll probably never be ready. People
> > > have to learn that a deadline means something, extending it would only
> > > punish those who are ready and reward those who can't meet project
> > > goals on time.
> >
> > > -John Coryat
> >
> >
> >
>

--~--~-~--~~~---~--~~
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: Ressource Management / Priorization of applications?

2009-08-27 Thread salza

So is there any method I can use, to set the priority for a process?
Linux normally has this ability (e.g. nice - Set process priority of
new processes)

In the Android API I found a method to kill processes: killProcess(int
pid)

So is there any possibility for me as a developer to use a method like
the killProcess-method zu manage the priority of a process?

On Aug 26, 6:48 pm, Dianne Hackborn  wrote:
> Linux doesn't really associate priorities with processes...  or more
> accurately, in Linux a process is a unit of execution, so each thread is
> also actually a process (running in the same address space), with their own
> independent priorities.
>
> On Wed, Aug 26, 2009 at 4:29 AM, mstu...@googlemail.com <
>
>
>
> mstu...@googlemail.com> wrote:
>
> > Thanks!
>
> > Ok, I can set priority for threads... but threads running in
> > processes... is it therefore possible to set priority for processes as
> > well...?
>
> > On 26 Aug., 00:04, 3crowntech <3crownt...@gmail.com> wrote:
> > > Hi Matthias,
>
> > > You can set thread priority by android.os.Process.setThreadPriority
> > > method. This is how android controls resource allocation.
> > > Thanks.
>
> > > On Aug 26, 5:45 am, "mstu...@googlemail.com" 
> > > wrote:
>
> > > > hi all,
>
> > > > the Android web site indicates that "all applications are created
> > > > equal". What is the strategy to ensure that critical applications/
> > > > services have priority?
>
> > > > Are there any facilities Android does provide to ensure certain
> > > > applications and/or threads to receive a minimum of CPU bandwith (and
> > > > other apps/threads are prevented from consuming all the CPU bandwith)?
>
> > > > Matthias- Zitierten Text ausblenden -
>
> > > - Zitierten Text anzeigen -
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Using AnimationDrawable with SurfaceView

2009-08-27 Thread jeka

Hello. I'm working on a game that requires drawing to SurfaceView's
Canvas. I'm using SurfaceHolder to obtain Canvas to draw to, and
perform drawing in a separate thread. Everything I draw displays
correctly except for this one animation.

Here is the animation definition (it is in res/drawable/
my_animation.xml:

http://schemas.android.com/apk/res/
android"
android:oneshot="false">


 

and here is how I draw it to the Canvas:

AnimationDrawable ad = (AnimationDrawable) getResources
().getDrawable(R.drawable.my_animation);
ad.draw(canvas);
ad.start();

but only the first frame ever appears on the screen.

What am I missing?

Thank you

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



[android-developers] Re: Animation on widgets

2009-08-27 Thread KDiddy

Just a guess but if your using an XML layout, doesn't that make the
position of widgets static?

On Aug 27, 10:43 am, Daniel  wrote:
> In my app I have a EditText widget. Since I need that EditText at
> different positions within the activity I perform some animations to
> move it around. I don't want to set the position without an animation.
> The animation also has the fillAfter attribute set to true so the
> EditText widget stays at the new position after the animation is done.
> Up to this point everything works perfectly. But now if I scroll
> through my app the selection of the EditText is always drawn at the
> original position of the EditText. Is there any possibility to move
> around the EditText with an animation and have it behave correctly
> also when it is selected (has the orange border)?
>
> Thanks,
> Daniel
--~--~-~--~~~---~--~~
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] Urgent Help Needed: How to get AnimationDrawable to animate when drawing to SurfaceView?

2009-08-27 Thread jeka

Here is my AnimationDrawable:

res/anim/my_anim.xml

http://schemas.android.com/apk/res/
android" android:oneshot="false">


 

Here is how I use it from the drawing thread, which is implemented as
an inner class of my SurfaceView subclass:

AnimationDrawable ad = (AnimationDrawable) getResources().getDrawable
(R.anim.my_anim);
ad.setCallback(MyView.this);
ad.draw(canvas);
ad.start();

this only draws the first frame of the animation and nothing else.

Thank you.

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



[android-developers] Re: How to do we take a Screenshot using ADB Comand Line

2009-08-27 Thread Chris Stratton

On Aug 27, 1:21 pm, "Yusuf Saib (T-Mobile USA)"  wrote:
> DDMS sends a string that essentially says "give me a screenshot" to
> the device, which sends back image data, all through a socket. You
> could in theory take the DDMS code and repurpose it to your needs. You
> might start by taking a look at system/core/adb/framebuffer_service.c
> and who calls it. Bear in mind that you can't screencapture on the
> device unless you're running as root. DDMS gets around this by sending
> the string to a root process.

Brings up an interesting question: can the phone DDMS itself via
connecting to the appropriate socket for the DDMS service, or does
that only work when you come in from the outside via USB with USB
debugging enabled?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Can't Set SeekBar Minimum Width Programmatically

2009-08-27 Thread Frank Maker

I am trying to change the size of my SeekBar from the minimum to a
larger size so I can use the widget to select a value from a range of
values. I am able to change the size using the minimum width attribute
in XML:

 

but can not get the size to change programmatically:

 SeekBar valueSlider = new SeekBar(this);
 valueSlider.setMinimumWidth(150);

When I use the debugger for the programmatic approach it looks like
the mMinimumWidth variable from SeekBar (Red Square icon)  always
changes to 150, but the same variable from the View class (Blue
Triangle icon) does not change. However, they both change when I use
XML.

I would also appreciate any suggestions if there is a better way to
change the size. I would ideally like to have the width the maximum
width possible, but I'm not sure I can do that dynamically for
different screen sizes.

Thanks!

Frank Maker
fma...@handycodeworks.com

--~--~-~--~~~---~--~~
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] Emulator space limits

2009-08-27 Thread KDiddy

Hi,

I'm working on an app that includes some mp3 files that total about 50
megs.  The emulator says it has insufficient storage so I'm not able
to run the app in the emulator with those files in it.  I reduced the
quality and got it to work but the quality sucks now.

My question is, when I go to compile the app into my APK, if I swap in
the larger files(obviously with the exact same names) will the app
work on an actual phone?

Does the phone have limits with respect to file size?  I would be
surprised considering Tom tom just released an app for the iphone
which is 1.2 gigs.  And Apple is far more strict about things than
Google.

Any help would be greatly appreciated.

K

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



[android-developers] Bluetooth Support in Eclair

2009-08-27 Thread Shabeerali K P

Hi,

What is the Bluez version supported in Eclair?
What are the BT profile supported in Eclair

Regards,
Shabeer

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



[android-developers] Camera preview in activity view

2009-08-27 Thread tinyang

Hello.

I just got my camera preview working for my app, but it is not
appearing where I want it to appear, and I'm not sure how to get it
there.  Instead of using the entire screen for the preview, I would
like to put it inside a surfaceview in an activity xml gui.  What do I
need to change?  Here is my code:

public class TakePic extends Activity {

SurfaceView camSurface;

Preview camPreview;


@Override

protected void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

requestWindowFeature(Window.FEATURE_NO_TITLE);//hide window title


camPreview = new Preview(this); //create preview

setContentView(R.layout.takepic);


setContentView(camPreview); //set preview as activity content

camSurface = (SurfaceView) findViewById(R.id.camsurface);

}

--~--~-~--~~~---~--~~
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] mapping gestures to buttons - possible?

2009-08-27 Thread terryowen

I have a love-hate relationship with my G1, with the inability to
remap keys at the top of the list.  I've looked high and low for
information, going so far as to try to decipher pages like this:

http://www.kandroid.org/android_pdk/keymaps_keyboard_input.html

and even reading the android platform code on github.  I don't see
things like page_up and page_down defined in the android keymappings.
And I suspect that the original scancodes are being assigned to touch
gestures.

TAB 0x9 0x9 0x9 0x9 0x9 0x9
0   '0' ')' ')' ')' '0' '0'
1   '1' '!' '!' '!' '1' '1'
2   '2' '@' '@' '@' '2' '2'
3   '3' '#' '#' '#' '3' '3'
4   '4' '$' '$' '$' '4' '4'
5   '5' '%' '%' '%' '5' '5'
6   '6' '^' '^' '^' '6' '6'
7   '7' '&' '&' '&' '7' '7'
8   '8' '*' '*' '*' '8' '8'
9   '9' '(' '(' '(' '9' '9'


Since the number keys don't have a third component could an
enterprising developer map to the unused caps for missing keys?  Not
that it would be all that useful at this point but it would give
someone a hook to build on.

Or if that isn't possible, how about a virtual floating task bar kind
of thing (maybe mostly transparent overlay?) that maps gestures like
the swipe up/swipe down and more traditional arrows and enter type
keys for the trackball?

This isn't entirely a nit-picky kind of request.  I have a medical
condition that in the winter makes my fingertips extremely painful and
the trackball hurts.  I'm guessing that there weren't many arthritis
sufferers on the Android development team, either.  You would think
that the touch screen should make things easier, not harder.

Even my old, old Omnigo and HP100LX had utilities to remap keys, so it
seems odd that there isn't some kind of app that could be developed.
I think if I had enough time (which I don't) I might be able to
eventually puzzle out a crude version of the task bar thing but I'd
much rather pay a couple of dollars in the market.

Thanks,

Terry







--~--~-~--~~~---~--~~
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] Problem Using Jar File

2009-08-27 Thread Hassan Imtiaz

Hi All,
i am facing a problem in using jar file.I have created a jar
file and i am trying to use it in another project.I also copy the xml
files from res/layout folder of that project whose jar file is created
to the res/layout folder of the project in which i am using jar file.I
have also listed all the activites of jar in manifest file of that
project. But when i call an activity that is inside jar file it loads
the wrong xml file.I mean if inside an activity i have setContentview
(R.layout.test1) but it loads another file instead of test1.


Any Help??



Regards,
Hassan Imtiaz

--~--~-~--~~~---~--~~
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] Context menu for whole screen or view in android

2009-08-27 Thread Andcoder

Hi i am creating a contextmenu for my view that is whole screen just
like when we longpress on calendar monthview or weekview  i tried in
below three methods


===
setContentView(demoview);

demoview.setOnCreateContextMenuListener(new
View.OnCreateContextMenuListener() {
public void onCreateContextMenu(ContextMenu menu, View v,
ContextMenu.ContextMenuInfo menuInfo) {
menu.setHeaderTitle("Menu");
menu.add(0, 1, 0, "Add");
menu.add(0, 2, 0, "Delete");
menu.add(0, 3, 0, "Edit");
}
});
===
and i also tried with this

setContentView(demoview);
 registerForContextMenu(view)


===
and also

setContentView(demoview);
 registerForContextMenu(view)

in longpress
demoview.performLongClick();

===
though contextmenu pops up on longpress other events are getting
overrided such as singletap, onfling etc, is there any way to
implement contextmenu so that it gets popped up when clicked on any
part of the screen without loosing other events such as onfling and
showpress etc?

Thanks,

http://www.ceveni.com/

--~--~-~--~~~---~--~~
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] Downloading files from the browser

2009-08-27 Thread gladys anne

Hi all, I wonder if android supports downloading all types of files
directly from the browser? If not, then (1) what type of files does it
support?
Also, (2) where do my downloaded files go? I just tried saving a
picture, and it went to Pictures, what about the others?

--~--~-~--~~~---~--~~
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: Android 1.5 SDK now available

2009-08-27 Thread midtoad

Xavier mentioned a bug that was supposed to be fixed for the final
release of the 1.5 SDK, but seems to still be in the 1.5_r3 release.
The New XML File Wizard does not work for me in the Mac OS X version
of the SDK. This is a huge problem for me as keytool relies on this in
order to sign an app.   There are workarounds for simply creating a
regular xml file, but the File Export tool requires this functionality
in order to create a new keystore for use in signing the app.

thanks
Stewart

--~--~-~--~~~---~--~~
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   3   >