[android-developers] Re: password mode
Hi Dianne, I found it...change the visible password checkbox in settings menu. Thanks again. On Wed, Jul 29, 2009 at 11:01 PM, Dianne Hackborn wrote: > The user can change it if they want. You should generally leave it up to > them, since inputting passwords on these devices can be difficult, and > harder on some devices than on others. > > On Wed, Jul 29, 2009 at 10:53 PM, Shang Hao wrote: > >> >> Hi, >> >> It is observed that while entering text in password mode, first the >> text is displayed and then after 1 second the asterisk (star) is >> displayed Is there no way to directly display the asterisk?? >> >> code: >> mInputPwd.setTransformationMethod >> (android.text.method.PasswordTransformationMethod.getInstance()); >> >> in xml: >> android:password = "true" >> >> Thanks. >> >> > > > -- > 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: password mode
HI Dianne, How can user change these settings?? Can u please elaborate a bit?? Thanks. On Wed, Jul 29, 2009 at 11:01 PM, Dianne Hackborn wrote: > The user can change it if they want. You should generally leave it up to > them, since inputting passwords on these devices can be difficult, and > harder on some devices than on others. > > On Wed, Jul 29, 2009 at 10:53 PM, Shang Hao wrote: > >> >> Hi, >> >> It is observed that while entering text in password mode, first the >> text is displayed and then after 1 second the asterisk (star) is >> displayed Is there no way to directly display the asterisk?? >> >> code: >> mInputPwd.setTransformationMethod >> (android.text.method.PasswordTransformationMethod.getInstance()); >> >> in xml: >> android:password = "true" >> >> Thanks. >> >> > > > -- > 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: System.getProperty() cannot get the prop setting in init.rc
use: SystemProperties.get("ro.MY_PROPERTY"); On Wed, Jul 29, 2009 at 8:15 PM, waterblood wrote: > > Hi All, > > I am trying to get property which I set in init.rc in Java app. > But it always return null. > Java code: > String value= System.getProperty("ro.MY_PROPERTY"); > Log.i(TAG, "ro.MY_PROPERTY get"+value); > > init.rc: > setprop ro.MY_PROPERTY 1 > > I have check "getprop ro.MY_PROPERTY" in console, it do return "1". > But not know why cannot get it in Java app. > > Thanks for your replay. > > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: CameraPreview: Out of memory
Hi, I had an application where i would navigate from step1: camera preview step2: to an activity step3: and again back to camera preview. on going from step 1 to step 2 the camera object is set to "null" and garbage collector is now supposed to take care of its deletion... but if i navigate back to step 3 in less time (2-4 sec) it happens that i get a crash "out of memory". Remedy :: put System.gc() to explicitly call garbage collector wherever u do null for heavy objects. Hope it helps. Ciao. On Wed, Jun 17, 2009 at 6:53 PM, Boshik wrote: > > Hi, > > After a few weeks on market with my app (Ghosts AR) I found few > interesting issues coming from the users who installed the program. On > some of the devices my application fails with exception: > > java.lang.RuntimeException: Out of memory >at android.hardware.Camera.native_setup(Native Method) >at android.hardware.Camera.(Camera.java:82) >at android.hardware.Camera.open(Camera.java:64) > > Strange that I'm personally never got it on my G1 (1.5 firmware). > > Any ideas? > > Thanks, > Alex > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Sensor and Compass APIDemo failing on emulator 1.5
Hi, What do u mean by a virtual box?? Regards, Zhubham. On Thu, May 28, 2009 at 7:00 PM, Brett Chabot wrote: > Yes, this is a known bug in the emulator. > > On Wed, May 27, 2009 at 4:40 AM, sarang wrote: > >> >> I have been trying to use the OS->sensor and graphics->compass in the >> APIDEMO (through emulator 1.5) by directly browsing through the menu >> or through instrumentation, I have observed that for “sensor and >> compass” test the output is blank screen, but on virtual box the >> output is proper. Also note that proper output is seen in case of 1.1 >> emulator. >> >> Is this a bug in emulator 1.5 ? >> >> >> > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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 Streaming Videos?
Hi Aahna, Being associated with streaming I can help to increase ur understanding with my work so far. The below links won't solve ur problems but yes quickly brief u about the possibilities while streaming. I am also expecting response from EXPERTS on this issue. http://groups.google.com/group/android-developers/browse_thread/thread/15c9a2c7349e99cf?pli=1 http://groups.google.com/group/android-developers/browse_thread/thread/f9643462060ebc10 LETS HOPE WE GET TO HEAR FROM EXPERTS PRETTY SOON. ciao. On Wed, May 27, 2009 at 5:25 AM, Aahna wrote: > > Hi, > I am using latest Android version android-sdk-windows-1.5_r2.zip and > ADT-0.9.1 version. > Can anyone guide me how to get live video to play on emulator? I have > gone through many forums on this, however could not get any firm > response on successful RTSP or HTTP streaming of live feed. > Any response on this would be great help to beginner like me > Best Regards > > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google 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: optimization problem
Hi Roman, Can you please give a brief idea about using Package manager's API to simplify my code?? Thanks in advance. Best Regards, Zhubham On Fri, Apr 24, 2009 at 6:25 PM, Romain Guy wrote: > > You don't have to use reflection, you can use the package manager's > APIs to create ids from strings (and the other way around.) > > On Fri, Apr 24, 2009 at 5:54 AM, MrSnowflake > wrote: > > > > If you really want to use a for loop (for maintenance point of view, > > somewhat, as TextView1...10 aren't very clear) you need to use > > reflection which is a lot of work for this and it's slow. > > For your purpose you should consider creating your layout fully in > > code. > > > > On 24 apr, 14:30, Mark Murphy wrote: > >> Zhubham wrote: > >> > Hi Experts, > >> > >> > I am trying to optimize the following code: > >> > >> > textview[0]=(TextView)findViewById > >> > (R.id.TextView1); > >> > textview[1]=(TextView)findViewById(R.id.TextView2); > >> > textview[2]=(TextView)findViewById(R.id.TextView3); > >> > textview[3]=(TextView)findViewById(R.id.TextView4); > >> > textview[4]=(TextView)findViewById(R.id.TextView5); > >> > textview[5]=(TextView)findViewById(R.id.TextView6); > >> > textview[6]=(TextView)findViewById(R.id.TextView7); > >> > textview[7]=(TextView)findViewById(R.id.TextView8); > >> > textview[8]=(TextView)findViewById(R.id.TextView9); > >> > textview[9]=(TextView)findViewById(R.id.TextView10); > >> > >> > using: > >> > >> > int j; > >> > for(int i=0;i<10;i++) > >> > { > >> >j = i+1; > >> > textViewId = "TextView"+j; > >> > textview[i] = > (TextView)findViewById(R.id.textViewId);// > >> > error textViewId not recognized > >> > } > >> > >> > but this is giving error at the last line.. Can you please help me to > >> > come out of this. > >> > >> 1. There is nothing named R.id.textViewId in your layout, in all > likelihood. > >> > >> 2. Putting things in loops does not optimize the code, from an execution > >> speed standpoint. > >> > >> 3. You cannot dynamically construct the name of a widget ID in the > >> manner you are trying. > >> > >> -- > >> Mark Murphy (a Commons Guy)http://commonsware.com| > http://twitter.com/commonsguy > >> > >> _The Busy Coder's Guide to Android Development_ Version 2.0 Available! > > > > > > > > > -- > 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: Alert dialog in Android-SDK-1.1-Release 1
Hi, The alert dialog is displaying the full sentence with setMessage(message), however, on doing this the image icon (setIcon) is getting disappear. The code is as follows: case DIALOG_YES_NO_MESSAGE: return new AlertDialog.Builder(MyActivity.this) .setIcon(R.drawable.hh) .setTitle(R.string.hello2) .setPositiveButton(R.string.alert_dialog_ok, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton) { } }).create(); SO HOW DO I GET BACK MY IMAGE ON THE ALERT DIALOG?? Thanks in advance. * On 3/27/09, tauntz wrote: > > If you are actually using your dialog title for the title and it won't > fit, then I suggest you file a bug report > (http://code.google.com/p/android/issues/ ) since for me this is a bug > (eg dialog titles can be only 2 lines.. really - that's a problem in > some languages where common words are way longer than in english). If > enough people have this issue that they can't use the dialog title for > titles anymore, then this might be changed in a future release. > > If you are using it for showing general messages, then don't use the > title for this, use setMessage(message) (in AlertDialog.Builder or > AlertDialog). > > > Tauno > > > > > On Fri, Mar 27, 2009 at 2:52 PM, Sahil Arora wrote: >> Yes, i m using dialog titles. So going ahead do i need to replace my alert >> dialog with something else?? What is the suitable replacement u >> recommend?? >> Thanks. >> >> >> On Fri, Mar 27, 2009 at 5:41 AM, tauntz wrote: >>> >>> Are you using dialog titles? >>> >>> Somebody from the Android team decided that dialog titles can't be >>> longer than 2 lines anymore. That means they can not be longer than 2 >>> words in some cases/languages. And no, nobody has explained the >>> reasoning behind this move (other than - why are you using so long >>> titles? don't use them!). It's also not documented at >>> http://d.android.com/sdk/android-1.1.html why changes like this are >>> not listed? Ask someone who knows :) >>> >>> Tauno >>> >>> On Fri, Mar 27, 2009 at 1:54 PM, Zhubham wrote: >>> > >>> > Hi all, >>> > >>> > Alert dialogs which were properly displaying the full text (around 15 >>> > words) in SDK-1.0 , are trimming down the text to around 5 words in >>> > SDK-1.1. >>> > >>> > eg. >>> > >>> > SDK1.0 = "Welcome. This is an android based application. SDK used is >>> > 1.1-Release 1." >>> > >>> > SDK1.1 = " Welcome. This is an android based app..." >>> > >>> > Can someone help me with this?? >>> > >>> > Thanks in advance. >>> > >>> > Regards, >>> > Zhubham. >>> > > >>> > >>> >>> >> >> >> > >> > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Alert dialog in Android-SDK-1.1-Release 1
Hi man, Thanks for ur quick reply.. Yes i m actually displaying a message. So i will try it out with setMessage function and revert back. Thanks again. On Fri, Mar 27, 2009 at 6:04 AM, tauntz wrote: > > If you are actually using your dialog title for the title and it won't > fit, then I suggest you file a bug report > (http://code.google.com/p/android/issues/ ) since for me this is a bug > (eg dialog titles can be only 2 lines.. really - that's a problem in > some languages where common words are way longer than in english). If > enough people have this issue that they can't use the dialog title for > titles anymore, then this might be changed in a future release. > > If you are using it for showing general messages, then don't use the > title for this, use setMessage(message) (in AlertDialog.Builder or > AlertDialog). > > > Tauno > > > > > On Fri, Mar 27, 2009 at 2:52 PM, Sahil Arora wrote: > > Yes, i m using dialog titles. So going ahead do i need to replace my > alert > > dialog with something else?? What is the suitable replacement u > recommend?? > > Thanks. > > > > > > On Fri, Mar 27, 2009 at 5:41 AM, tauntz wrote: > >> > >> Are you using dialog titles? > >> > >> Somebody from the Android team decided that dialog titles can't be > >> longer than 2 lines anymore. That means they can not be longer than 2 > >> words in some cases/languages. And no, nobody has explained the > >> reasoning behind this move (other than - why are you using so long > >> titles? don't use them!). It's also not documented at > >> http://d.android.com/sdk/android-1.1.html why changes like this are > >> not listed? Ask someone who knows :) > >> > >> Tauno > >> > >> On Fri, Mar 27, 2009 at 1:54 PM, Zhubham wrote: > >> > > >> > Hi all, > >> > > >> > Alert dialogs which were properly displaying the full text (around 15 > >> > words) in SDK-1.0 , are trimming down the text to around 5 words in > >> > SDK-1.1. > >> > > >> > eg. > >> > > >> > SDK1.0 = "Welcome. This is an android based application. SDK used is > >> > 1.1-Release 1." > >> > > >> > SDK1.1 = " Welcome. This is an android based app..." > >> > > >> > Can someone help me with this?? > >> > > >> > Thanks in advance. > >> > > >> > Regards, > >> > Zhubham. > >> > > > >> > > >> > >> > > > > > > > > > > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Alert dialog in Android-SDK-1.1-Release 1
Yes, i m using dialog titles. So going ahead do i need to replace my alert dialog with something else?? What is the suitable replacement u recommend?? Thanks. On Fri, Mar 27, 2009 at 5:41 AM, tauntz wrote: > > Are you using dialog titles? > > Somebody from the Android team decided that dialog titles can't be > longer than 2 lines anymore. That means they can not be longer than 2 > words in some cases/languages. And no, nobody has explained the > reasoning behind this move (other than - why are you using so long > titles? don't use them!). It's also not documented at > http://d.android.com/sdk/android-1.1.html why changes like this are > not listed? Ask someone who knows :) > > Tauno > > On Fri, Mar 27, 2009 at 1:54 PM, Zhubham wrote: > > > > Hi all, > > > > Alert dialogs which were properly displaying the full text (around 15 > > words) in SDK-1.0 , are trimming down the text to around 5 words in > > SDK-1.1. > > > > eg. > > > > SDK1.0 = "Welcome. This is an android based application. SDK used is > > 1.1-Release 1." > > > > SDK1.1 = " Welcome. This is an android based app..." > > > > Can someone help me with this?? > > > > Thanks in advance. > > > > Regards, > > Zhubham. > > > > > > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: All SYMBIAN based end devices accept Java language Applications :: Need Clarification
Please refer; http://www.macrobug.com/blog/2007/12/08/android-versus-symbian-os/ section :: End-user openness Thanks. On Wed, Mar 25, 2009 at 10:23 AM, Avraham Serour wrote: > where did you find this declaration? > > > On Wed, Mar 25, 2009 at 6:30 PM, Zhubham wrote: > >> >> “All SYMBIAN based end devices accept Java language Applications” >> >> (i) Does this mean that the applications made for Android would run in >> S60 , without any modifications?? >> (ii)If not then what exactly we mean when we say the above >> statement?? Is there any web link to which I can refer to?? >> (iii) What are the coding guidelines that we need to follow so that an >> Android application can be ported on S60 with minimum changes?? >> >> Thank you all in advance. >> >> Best Regards, >> Zhubham >> >> > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---