[android-developers] Re: password mode
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 sahilz...@gmail.com 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] files.length
helo, in Java Se its tell me that files.length is 16 but when i run it in the android plathform tell me that there is 0 FTPClient f = new FTPClient(); f.connect(server, 21); f.login(username, password); FTPFile[] files = f.listFiles(); Log.v(TAG,+files.length(); --~--~-~--~~~---~--~~ 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 hack...@android.comwrote: 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 sahilz...@gmail.com 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: What is the difference between findFocus() and focusSearch()
helo, in Java Se its tell me that files.length is 16 but when i run it in the android plathform tell me that there is 0 FTPClient f = new FTPClient(); f.connect(server, 21); f.login(username, password); FTPFile[] files = f.listFiles(); Log.v(TAG,+files.length(); --~--~-~--~~~---~--~~ 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: Strange Proxy setting and INTERNET problem Emulator
helo, in Java Se its tell me that files.length is 16 but when i run it in the android plathform tell me that there is 0 FTPClient f = new FTPClient(); f.connect(server, 21); f.login(username, password); FTPFile[] files = f.listFiles(); Log.v(TAG,+files.length(); --~--~-~--~~~---~--~~ 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
Show visible passwords in the Security location settings. On Wed, Jul 29, 2009 at 11:12 PM, Sahil Arora sahilz...@gmail.com wrote: 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 hack...@android.comwrote: 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 sahilz...@gmail.com 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. -- 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, I found it...change the visible password checkbox in settings menu. Thanks again. On Wed, Jul 29, 2009 at 11:01 PM, Dianne Hackborn hack...@android.comwrote: 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 sahilz...@gmail.com 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: Calling all Sydney/Australia Android Developers
Have you looked at the android developer map at http://bit.ly/nJxkc ? The map is primarily there to help you find you local developers, and there are a few devs marked on it who may be interested. (and everyone is welcome to edit the map and add more :) ). Al. On Jul 29, 2:32 am, Nick nick.may...@gmail.com wrote: Register with the Sydney Android Developers User Group. THE place to meet, network, discuss, share. Just join the Sydney Android Developers User Group in Google Groups and we will set up meetings etc.. --~--~-~--~~~---~--~~ 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: Handling a layout ...
Sorry about the late response. Here's what I meant by the potential casting problem; In order to add the ImageView variable, which was created to handle the Drawable resource, you need to cast the parent layout, which is of type ImageView, to ViewGroup type if you're planning to use the addView() method. I've tried this already and got into trouble with the casting ... I guess it's because ViewGroup is an abstract class. Emre Date: Sat, 25 Jul 2009 11:52:53 -0400 From: mmur...@commonsware.com To: android-developers@googlegroups.com Subject: [android-developers] Re: Handling a layout ... Emre A. Yavuz wrote: You can, but then the child is already added to the parent; you do not need to add it yourself. I agree with you, but if you're not going to store this info in the layout, the only option left seem to be refering it using its R.drawable.childview. R.drawable.childview is a references to a Drawable resource (res/drawable) and is not a reference to a View in a layout. How can you convert this, an integer, to a View then ? Should I create an ImageView variable and use its setImageresource() method ? Yes. Then you need to add that to some parent layout via addView() as previously described. but will there be a casting problem in that case ? I do not understand this question. The DDMS perspective in Eclipse doesn't tell me anything at all. I get a message from the emulator saying that the application has stopped working. The DDMS perspective contains a panel(?) called LogCat, which will give you a stack trace when an exception occurs. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 1.0 In Print! _ Stay in the loop and chat with friends, right from your inbox! http://go.microsoft.com/?linkid=9671354 --~--~-~--~~~---~--~~ 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: maps api and 1.5
Refer this http://www.anddev.org/viewtopic.php?p=24902#24902 On Jul 21, 10:12 pm, Spiral jmri...@gmail.com wrote: Same here. On Jul 6, 8:45 pm, Georgy georgearna...@gmail.com wrote: Hello Brian, I am having your same issue. Were you able to solve it? thanks On May 25, 8:48 am, brian.schimmel brian.schim...@googlemail.com wrote: Hi everybody, I'm getting the same problems. Of course I have read this thread and tried everything that was suggested (and some more), but it does not work. Here are the facts: * Using SDK 1.5_r1 * Project target in Eclipse is Google APIs 1.5 * AndroidManifest.xml contains uses-sdk android:minSdkVersion=3 / inside the manifest element * AndroidManifest.xml contains uses-library android:name=com.google.android.maps / inside the application element * maps.jar is NOT added manually to the buildpath, but is shown under Project - Google APIs - maps.jar * The maps key is setup properly (that is, worked before switching to 1.5) * code works when compiled againt the 1.1 API, but I need to compile for 1.5 because I want to provide a Widget. On the emulator (Firmware 1.5, google_sdk_eng 1.5 CUPCAKE 147336 test- keys, the one that comes with DSK 1.5_r1) I get this: 05-25 12:33:40.554: INFO/ActivityManager(568): Starting activity:Intent{ comp={com.webxells.ourapp/.OurMapview} } 05-25 12:33:40.564: DEBUG/AndroidRuntime(819): Shutting down VM 05-25 12:33:40.564: WARN/dalvikvm(819): threadid=3: thread exiting with uncaught exception (group=0x4000fe70) 05-25 12:33:40.564: ERROR/AndroidRuntime(819): Uncaught handler: thread main exiting due to uncaught exception 05-25 12:33:40.584: ERROR/AndroidRuntime(819): android.content.ActivityNotFoundException:Unableto find explicit activity class {com.webxells.ourapp/.OurMapview}; have you declared this activity in your AndroidManifest.xml? 05-25 12:33:40.584: ERROR/AndroidRuntime(819): at android.app.Instrumentation.checkStartActivityResult (Instrumentation.java:1480) 05-25 12:33:40.584: ERROR/AndroidRuntime(819): at android.app.Instrumentation.execStartActivity(Instrumentation.java: 1454) 05-25 12:33:40.584: ERROR/AndroidRuntime(819): at android.app.Activity.startActivityForResult(Activity.java:2656) 05-25 12:33:40.584: ERROR/AndroidRuntime(819): at android.app.Activity.startActivity(Activity.java:2700) 05-25 12:33:40.584: ERROR/AndroidRuntime(819): at com.webxells.ourapp.CommonUi.onOptionsItemSelected(CommonUi.java:64) 05-25 12:33:40.584: ERROR/AndroidRuntime(819): at com.webxells.ourapp.OurAppStart.onOptionsItemSelected(OurAppStart.java: 22) 05-25 12:33:40.584: ERROR/AndroidRuntime(819): at android.app.Activity.onMenuItemSelected(Activity.java:2085) ... some more... Of course, the activity is declared in the AndroidManifest.xml, and this declaration worked when compiling against the 1.1 API. And on a real device (HTC Dev Phone 1, Firmware 1.5, dream_devphone- userdebug 1.5 CRB21 147201 test-keys) I get another error, instead of the one above: 05-25 12:17:34.764: WARN/dalvikvm(691):Unabletoresolvesuperclass of Lcom/webxells/ourapp/OurMapview; (100) 05-25 12:17:34.764: WARN/dalvikvm(691): Link of class 'Lcom/webxells/ ourapp/OurMapview;' failed 05-25 12:17:34.764: ERROR/dalvikvm(691): Could not find class 'com.webxells.ourapp.OurMapview', referenced from method com.webxells.ourapp.CommonUi.onOptionsItemSelected 05-25 12:17:34.764: WARN/dalvikvm(691): VFY:unabletoresolveconst- class 114 (Lcom/webxells/ourapp/OurMapview;) in Lcom/webxells/ourapp/ CommonUi; 05-25 12:17:34.764: WARN/dalvikvm(691): VFY: rejecting opcode 0x1c at 0x0045 05-25 12:17:34.764: WARN/dalvikvm(691): VFY: rejected Lcom/webxells/ ourapp/CommonUi;.onOptionsItemSelected (Landroid/view/ MenuItem;Landroid/app/Activity;)Z 05-25 12:17:34.764: WARN/dalvikvm(691): Verifier rejected class Lcom/ webxells/ourapp/CommonUi; 05-25 12:17:34.764: DEBUG/AndroidRuntime(691): Shutting down VM 05-25 12:17:34.764: WARN/dalvikvm(691): threadid=3: thread exiting with uncaught exception (group=0x4000fe70) 05-25 12:17:34.764: ERROR/AndroidRuntime(691): Uncaught handler: thread main exiting due to uncaught exception 05-25 12:17:34.784: ERROR/AndroidRuntime(691): java.lang.VerifyError: com.webxells.ourapp.CommonUi 05-25 12:17:34.784: ERROR/AndroidRuntime(691): at com.webxells.ourapp.ourappMain.onOptionsItemSelected(ourappMain.java: 36) 05-25 12:17:34.784: ERROR/AndroidRuntime(691): at android.app.Activity.onMenuItemSelected(Activity.java:2085) ... some more ... of course, the unknownsuperclassof OurMapview is com.google.android.maps.MapActivity. Don't get confused by the name OurMapview, it's an activity, not a view. While trying different targets and small changes in the manifest, I
[android-developers] Re: Garbage Collector - best practice
float is a primitive type, not an object. It sits in a register, not on the heap. Float is an object that can be used to box a float. Hopefully you're not using Float for values used in calculations. I'm using float not Float. I'll try out the allocation tracker, thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] how to add a progressbar or other widget to some row of the listview??
hi,all I had this questions a few days ago.but no one give the answer,perhaps that is because my mail didn't include the [android-developers]. have someone try to add some widget to listview here? I want to add a progress bar to the bottom of some row of list view.But now, I only know the way to add the seek bar to every row of the listview by add a progessbar to the layout of the listview. [ ListAdapter scbooks = new SimpleCursorAdapter(this,R.layout.bookrow_layout,bookcur, from, to); ] here is my bookrow_layout.xml RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=fill_parent !-- -- TextView android:id=@+id/booklist1 android:layout_width=wrap_content android:layout_height=30dip android:maxWidth=200dip android:textSize=20dip android:layout_marginTop=10dip / ProgressBar android:id=@+id/progress_horizontal style=?android:attr/progressBarStyleHorizontal android:layout_width=fill_parent android:layout_height=5dip android:max=100 android:progress=30 android:background=#00FF00 android:textColor=#00FF00/ /RelativeLayout Are some way to add the progressbar to some row of the listview? Or are there some way to get the ID of the row in listview? anyone can help 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: About the NeighboringCellInfo information
why the cll id from TelephonyManager.getNeighboringCellInfo, is different TelephonyManager.getCellLocation. It's more larger. eg. 8321 //cid from TelephonyManager.getCellLocation. getCid() 415506483 //fromo TelephonyManager.getNeighboringCellInfo.getCid() On Jul 11, 5:44 pm, mikewuth mikew...@gmail.com wrote: Hello everyone, I'd like to ask some questions about the NeighboringCellInfo get from the android.telephony.TelephonyManager.getNeighboringCellInfo. 1. Is the current connected BS information included in theNeighboringCellInfo? 2. I'm now trying to get the current Cell ID and current RSSI of the connected BS. I can get the current CellID from the TelephonyManager.getCellLocation. However, I still can't get the RSSI of that BS. Is there any way to get the current BS's RSSI? Thanks a lot^^ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How can you prevent somebody from calling in Android ?
I want to write a software to allow the parents to set a limit to their children phone calls. I need to lock some phone capabilities with a password after the limits are reached. I'd like to know how I can block phone calls from being made, and receive. And if it's possible to set a white list for emergency calls (e.g : the teen can't call friend after midnight but can call 911). --~--~-~--~~~---~--~~ 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] animated gif over all other elements on the desktop screen.
HI Is it possible, i want to set an animated gif over all other elements on the desktop screen. If it possible how can i do this this .. thanks a lot 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] Folder issues
Hello! I have the following piece of code: File recordDir = currentContext.getDir(recordPath, Context.MODE_PRIVATE); ... String[] fileList = recordDir.list(); I surrounded the getDir call with try/catch blocks and seems to succede. However, fileList is null. Also, recordDir.exists() returns true but recordDir.isDirectory() returns false. Is this normal? Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How to configure the web browser cache size?
Dear all, Does anyone help me to configure the web browser cache size? In HTC's new product HERO, they limit the cache size from 100KB to 6MB, and user can configure it manually. It can prevent browser sucking up memory space too much. I have searched many web pages and studied the CacheManager class, but they didn't mention how to configure the cache size of android browser. Can anybody give me some tips? Thanks very much!! --~--~-~--~~~---~--~~ 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: Button into a Tab error of xml
Hi murphy Thank you so much, I add my new acctivity class Tab1 in the AndroidManifest.xml file. And now my code can launch in android; I blocked since monday about that. you are my hero lol. I think is a novice error. But if I you don't find this error you can't go ahead. Thanks murphy see you later Dany BREARD a French novice android develloper Date: Wed, 29 Jul 2009 11:28:56 -0400 From: mmur...@commonsware.com To: android-developers@googlegroups.com Subject: [android-developers] Re: Button into a Tab error of xml Dany BREARD wrote: the error is 07-29 15:19:16.878: ERROR/AndroidRuntime(1633): java.lang.RuntimeException: Unable to start activity ComponentInfo{m.dany.anrdoid.inertfacegraphiquevvm/m.dany.anrdoid.inertfacegraphiquevvm.InerfaceGraphiqueVVM}: android.content.ActivityNotFoundException: Unable to find explicit activity class {m.dany.anrdoid.inertfacegraphiquevvm/m.dany.anrdoid.inertfacegraphiquevvm.Tab1}; have you declared this activity in your AndroidManifest.xml? That seems fairly self-explanatory. Have you declared this activity in your AndroidManifest.xml? -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android 1.5 Programming Books: http://commonsware.com/books.html _ Inédit ! Des Emoticônes Déjantées! Installez les dans votre Messenger ! http://www.ilovemessenger.fr/Emoticones/EmoticonesDejantees.aspx --~--~-~--~~~---~--~~ 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] Disactive animation on activity start
Hi all, Is it possible to disactive the animation between activities provided to user with cupcake 1.5? User can set a preference with 1.5 to set animation on activity launch. I would like disactive these animations inside my app containing different activities. Is it possible? 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: Folder issues
UPDATE: IT works on the emulator, but not on the device. The OS is up to date. I can't figure out why it's not functioning properly.on the physical device (T-Mobile G1). On Jul 30, 10:41 am, loctarar andrei.bu...@gmail.com wrote: Hello! I have the following piece of code: File recordDir = currentContext.getDir(recordPath, Context.MODE_PRIVATE); ... String[] fileList = recordDir.list(); I surrounded the getDir call with try/catch blocks and seems to succede. However, fileList is null. Also, recordDir.exists() returns true but recordDir.isDirectory() returns false. Is this normal? Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Folder issues
UPDATE2: I manually uninstalled the package on the phone and then launched again the debugger in eclipse. Now it works :|. If someone has a possible explanation for this please feel free to share. My guess is that sometime in the development process I used the path to create a file (not a folder) and the getDir function doesn't detect this. On Thu, Jul 30, 2009 at 11:07 AM, loctarar andrei.bu...@gmail.com wrote: UPDATE: IT works on the emulator, but not on the device. The OS is up to date. I can't figure out why it's not functioning properly.on the physical device (T-Mobile G1). On Jul 30, 10:41 am, loctarar andrei.bu...@gmail.com wrote: Hello! I have the following piece of code: File recordDir = currentContext.getDir(recordPath, Context.MODE_PRIVATE); ... String[] fileList = recordDir.list(); I surrounded the getDir call with try/catch blocks and seems to succede. However, fileList is null. Also, recordDir.exists() returns true but recordDir.isDirectory() returns false. Is this normal? Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Speech Recognition
A couple of questions; 1. How does it work with numbers. Is it possible to limit the text returned? If I wanted VR to listen for numbers can I get it to return 115 instead of one hundered and fifteen? 2. Is it possible to define/limit the dictionary of words which it tries to match against? For example; if I new they could only respond in 2 ways, hello and goodbye. Can you define that as the only words to match, so I will only get those and not halo or good buy ? On Jul 29, 10:24 pm, Dianne Hackborn hack...@android.com wrote: The platform only defines the API for voice recognition; because the current implementation we have is tied to Google services, this is not part of the base platform, so not available on all phones. This is one of the reasons the API is a loosly-bound Intent protocol. On Wed, Jul 29, 2009 at 11:03 AM, moa mich...@jixel.com wrote: I think this is the situation. VR is part of cupcake 1.5, however, this has not been fully implemented on many current devices. UK vodafone for example. If your google search widget does bot have the microphone on it then I think your version of cupcake on the device does not have the relevent libraries needed to support VR. If you install some of the custom roms from xda you will see they have the mic icon on search. I think (although I have not got around to trying myself) that it will work fine on these. so, no mic icon on seach == no VR support. please correct me if i'm wrong, but that's my take. ps. what is the story with TTS (text to speech) is that in there too at all? On Jul 14, 6:25 pm, Steven shamilt...@gmail.com wrote: I figured out what was wrong. But like the commenter below I get the recognizer is not present displayed when I run my code in the emulator. I read that googlevoicesearch must be installed for thevoicerecognitionintent to work. Is this correct? -Steven On Jul 9, 6:08 pm, Mark Murphy mmur...@commonsware.com wrote: Steven wrote: So when I use the code from voiceRecognition.java to see if it will work. I get and error with R.layout.voice_recognition as well as R.id What are the error messages? Also, remember that you cannot necessarily just grab bits of Java code -- these errors are referring to items in a layout that may be missing. and when I try import com.example.android.apis.R it wants me to create the class. That should be automatically built once we get the other problems above fixed. -- Mark Murphy (a Commons Guy)http://commonsware.com| http://twitter.com/commonsguy Need help for your Android OSS project?http://wiki.andmob.org/hado -- 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: maps api and 1.5
Well, in the end I couldn't get Google Maps to run on 1.5 no matter how hard I tried. Now I'm happily using OpenStreetMap, which was up and running in 15 minutes, but needed one or two days of tweeking until it met my needs. See http://www.anddev.org/openstreetmap_mapview_for_android-t2967.html Anyway, that's nothing compared to the many days I spend trying to get Google Maps working along with a Widget. The thread http://groups.google.com/group/android-developers/browse_thread/thread/7ce1902505bba25a/f915dcb6d1ee6f19?lnk=gstq=maps+widget#f915dcb6d1ee6f19 states that this is currently impossible anyway. Anyway, some of you might acutally need to use Google Maps, and I hope that there will be some clarification for everyone who still experiences difficulties and a bugfix in the next SDK version. On 30 Jul., 08:50, jagtap.jj jagtap...@gmail.com wrote: Refer this http://www.anddev.org/viewtopic.php?p=24902#24902 On Jul 21, 10:12 pm, Spiral jmri...@gmail.com wrote: Same here. On Jul 6, 8:45 pm, Georgy georgearna...@gmail.com wrote: Hello Brian, I am having your same issue. Were you able to solve it? thanks On May 25, 8:48 am, brian.schimmel brian.schim...@googlemail.com wrote: Hi everybody, I'm getting the same problems. Of course I have read this thread and tried everything that was suggested (and some more), but it does not work. Here are the facts: * Using SDK 1.5_r1 * Project target in Eclipse is Google APIs 1.5 * AndroidManifest.xml contains uses-sdk android:minSdkVersion=3 / inside the manifest element * AndroidManifest.xml contains uses-library android:name=com.google.android.maps / inside the application element * maps.jar is NOT added manually to the buildpath, but is shown under Project - Google APIs - maps.jar * The maps key is setup properly (that is, worked before switching to 1.5) * code works when compiled againt the 1.1 API, but I need to compile for 1.5 because I want to provide a Widget. On the emulator (Firmware 1.5, google_sdk_eng 1.5 CUPCAKE 147336 test- keys, the one that comes with DSK 1.5_r1) I get this: 05-25 12:33:40.554: INFO/ActivityManager(568): Starting activity:Intent{ comp={com.webxells.ourapp/.OurMapview} } 05-25 12:33:40.564: DEBUG/AndroidRuntime(819): Shutting down VM 05-25 12:33:40.564: WARN/dalvikvm(819): threadid=3: thread exiting with uncaught exception (group=0x4000fe70) 05-25 12:33:40.564: ERROR/AndroidRuntime(819): Uncaught handler: thread main exiting due to uncaught exception 05-25 12:33:40.584: ERROR/AndroidRuntime(819): android.content.ActivityNotFoundException:Unableto find explicit activity class {com.webxells.ourapp/.OurMapview}; have you declared this activity in your AndroidManifest.xml? 05-25 12:33:40.584: ERROR/AndroidRuntime(819): at android.app.Instrumentation.checkStartActivityResult (Instrumentation.java:1480) 05-25 12:33:40.584: ERROR/AndroidRuntime(819): at android.app.Instrumentation.execStartActivity(Instrumentation.java: 1454) 05-25 12:33:40.584: ERROR/AndroidRuntime(819): at android.app.Activity.startActivityForResult(Activity.java:2656) 05-25 12:33:40.584: ERROR/AndroidRuntime(819): at android.app.Activity.startActivity(Activity.java:2700) 05-25 12:33:40.584: ERROR/AndroidRuntime(819): at com.webxells.ourapp.CommonUi.onOptionsItemSelected(CommonUi.java:64) 05-25 12:33:40.584: ERROR/AndroidRuntime(819): at com.webxells.ourapp.OurAppStart.onOptionsItemSelected(OurAppStart.java: 22) 05-25 12:33:40.584: ERROR/AndroidRuntime(819): at android.app.Activity.onMenuItemSelected(Activity.java:2085) ... some more... Of course, the activity is declared in the AndroidManifest.xml, and this declaration worked when compiling against the 1.1 API. And on a real device (HTC Dev Phone 1, Firmware 1.5, dream_devphone- userdebug 1.5 CRB21 147201 test-keys) I get another error, instead of the one above: 05-25 12:17:34.764: WARN/dalvikvm(691):Unabletoresolvesuperclass of Lcom/webxells/ourapp/OurMapview; (100) 05-25 12:17:34.764: WARN/dalvikvm(691): Link of class 'Lcom/webxells/ ourapp/OurMapview;' failed 05-25 12:17:34.764: ERROR/dalvikvm(691): Could not find class 'com.webxells.ourapp.OurMapview', referenced from method com.webxells.ourapp.CommonUi.onOptionsItemSelected 05-25 12:17:34.764: WARN/dalvikvm(691): VFY:unabletoresolveconst- class 114 (Lcom/webxells/ourapp/OurMapview;) in Lcom/webxells/ourapp/ CommonUi; 05-25 12:17:34.764: WARN/dalvikvm(691): VFY: rejecting opcode 0x1c at 0x0045 05-25 12:17:34.764: WARN/dalvikvm(691): VFY: rejected Lcom/webxells/ ourapp/CommonUi;.onOptionsItemSelected (Landroid/view/ MenuItem;Landroid/app/Activity;)Z 05-25 12:17:34.764: WARN/dalvikvm(691): Verifier rejected class Lcom/
[android-developers] Why does setTextFilterEnabled(true) not work?
Hi all, I want to design a ListView with auto filter fuction, that is, when the user press a key all the items who matches this key will be filtered and form a new list. I selected the method setTextFilterEnabled(true) to implement my function, but it didn't work in fact. Could anyone tell me where my mistacke exists? Thank you in advance! Here is my code: package com.example.android.apis.view; import android.app.ListActivity; import android.os.Bundle; import android.widget.ArrayAdapter; /** * A list view example where the * data for the list comes from an array of strings. */ public class List1 extends ListActivity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Use an existing ListAdapter that will map an array // of strings to TextViews setListAdapter(new ArrayAdapterString(this, android.R.layout.simple_list_item_1, mStrings)); getListView().setTextFilterEnabled(true); } private String[] mStrings = { Action, Adventure, Animation, Children, Comedy, Documentary, Drama, Foreign, History, Independent, Romance, Sci-Fi, Television, Thriller } --~--~-~--~~~---~--~~ 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: Intent broadcasting not working
Hi Only Toast widget will work for broadcast reciever is it possible to show the images or any other thing we can't place.. On Thu, Jul 30, 2009 at 11:29 AM, Sudeep Jha sudeep.neti...@gmail.comwrote: Still no broadcasting.Can anybody give me an example code on broadcasting an intent from an activity to call another application? On Wed, Jul 29, 2009 at 7:26 PM, Mark Murphy mmur...@commonsware.comwrote: Sudeep Jha wrote: In an application main activity I have the following code: public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Button button=(Button)findViewById(R.id.Button); button.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { *Intent intent = new Intent(com.example.broadcast); Intent.putExtra(example,Broadcasting ); sendBroadcast(intent);* } }); Here is the broadcastreceiver code: public class CustomBroadCast extends BroadcastReceiver { /** * @see android.content.BroadcastReceiver#onReceive(Context,Intent) */ @Override * public void onReceive(Context context, Intent intent) { Log.i(INFORMATION,Broadcasting message); String dummyText = intent.getStringExtra(**example); Toast.makeText(context, dummyText , Toast.LENGTH_SHORT).show();* } } In manifest file of CustomBroadCast class apllication: * receiver android:name=.CustomBroadCast intent-filter action android:name=com.example.broadcast / /intent-filter /receiver* This is not working.What I am missing here?please help. I don't see anything obviously wrong, so here are some things to look at: 1. Make sure you have your receiver in the proper place in the manifest. It should be a child of application and a peer of any activity or related component elements. 2. I am not certain if a Toast will work from a BroadcastReceiver. If you are concerned that your Log statement might not be being logged, try bumping it to warning (Log.w) or error (Log.e). 3. Check LogCat for warnings. For example, if Android cannot find your BroadcastReceiver for some reason, you will get a warning in LogCat, not an error. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Training: http://commonsware.com/training.html -- Warm Regards, Sudeep -- Regards --- Desu Vinod Kumar vinny.s...@gmail.com 09176147148 --~--~-~--~~~---~--~~ 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] Why does TextFilter not work?
Hi all, I want to design a ListView with auto filter fuction, that is, when the user press a key all the items who matches this key will be filtered and form a new list. I selected the method setTextFilterEnabled(true) to implement my function, but it didn't work in fact. Could anyone tell me where my mistacke exists? Thank you in advance! Here is my code: package com.example.android.apis.view; import android.app.ListActivity; import android.database.Cursor; import android.os.Bundle; import android.provider.Contacts.Phones; import android.widget.ListAdapter; import android.widget.SimpleCursorAdapter; /** * A list view example where the * data comes from a cursor, and a * SimpleCursorListAdapter is used to map each item to a two-line * display. */ public class List3 extends ListActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Get a cursor with all phones Cursor c = getContentResolver().query(Phones.CONTENT_URI, null, null, null, null); startManagingCursor(c); // Map Cursor columns to views defined in simple_list_item_2.xml ListAdapter adapter = new SimpleCursorAdapter(this, android.R.layout.simple_list_item_2, c, new String[] { Phones.NAME, Phones.NUMBER }, new int[] { android.R.id.text1, android.R.id.text2 }); setListAdapter(adapter); //My code begins getListView().setTextFilterEnabled(true); //My code ends } } --~--~-~--~~~---~--~~ 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: Australian Android Developers - Drop me a line
I googled for Sydney Android Developers User Group and it came up with nothing but this post. Do you have a link? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] creating a shared jar library
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 --~--~-~--~~~---~--~~ 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: Disactive animation on activity start
arnouf wrote: Is it possible to disactive the animation between activities provided to user with cupcake 1.5? Not that I am aware of. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need Android talent? Ask on HADO! http://wiki.andmob.org/hado --~--~-~--~~~---~--~~ 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: Australian Android Developers - Drop me a line
Hey there Nicholas. Just head over to http://groups.google.com/group/sydney-android-developers-user-group Its pretty quiet at the moment, but early days.. On Jul 30, 8:59 pm, Nicholas Albion nalb...@gmail.com wrote: I googled for Sydney Android Developers User Group and it came up with nothing but this post. Do you have a link? --~--~-~--~~~---~--~~ 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 add a progressbar or other widget to some row of the listview??
frog wrote: I had this questions a few days ago.but no one give the answer,perhaps that is because my mail didn't include the [android-developers]. have someone try to add some widget to listview here? I want to add a progress bar to the bottom of some row of list view.But now, I only know the way to add the seek bar to every row of the listview by add a progessbar to the layout of the listview. [ ListAdapter scbooks = new SimpleCursorAdapter(this,R.layout.bookrow_layout,bookcur, from, to); ] Try ListView#addFooterView(). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need Android talent? Ask on HADO! http://wiki.andmob.org/hado --~--~-~--~~~---~--~~ 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 did they made those solve the math to dismiss the Alarm Clock type apps?
I saw few of them on the market. Actually I didn't download any of them yet.(I'm not in the country that can access paid app) But I'm just curious so allow me to ask those have access to these alarm clock apps. 1. User can just turn off the phone. How did the developer prevent user from turning-off the device? 2. If the user CAN turn off the device, how did the developer schedule the 'math' activity to start next time the device is turned on? --~--~-~--~~~---~--~~ 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: Handling a layout ...
Emre A. Yavuz wrote: Sorry about the late response. Here's what I meant by the potential casting problem; In order to add the ImageView variable, which was created to handle the Drawable resource, you need to cast the parent layout, which is of type ImageView, to ViewGroup type if you're planning to use the addView() method. You cannot add an ImageView to an ImageView. ImageView is not a container and, therefore, is not a ViewGroup. You can only add Views (e.g., ImageView) to a ViewGroup (e.g., LinearLayout). However, I cannot imagine a GUI design that would require an ImageView hold another ImageView. For example, if your goal is to replace an image in an ImageView, you can just call setImageResource() on the ImageView you already have, rather than try adding a new one. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need Android talent? Ask on HADO! http://wiki.andmob.org/hado --~--~-~--~~~---~--~~ 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 did they made those solve the math to dismiss the Alarm Clock type apps?
alucard20004 wrote: 1. User can just turn off the phone. How did the developer prevent user from turning-off the device? They probably do not stop the user from turning off the device (i.e., holding down the end-call button and choosing Power Off). I would be rather disturbed if an application could do that. They might stop the user from putting the phone to sleep (i.e., pressing the end-call button) by holding a suitable WakeLock. 2. If the user CAN turn off the device, how did the developer schedule the 'math' activity to start next time the device is turned on? Possibly by arranging to have a BroadcastReceiver respond to the ACTION_BOOT_COMPLETED broadcast Intent. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need Android talent? Ask on HADO! http://wiki.andmob.org/hado --~--~-~--~~~---~--~~ 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] ListView: invisible dividers still take up space. Is it a bug or a feature?
I'm using a ListView with a custom ListAdapter and a custom Drawable as divider. My list contains active elements and passive ones as well. By default, the ListView draws a divider only between two active items. This is exactly what I want it to do, expect that ListView leaves dividerHeight pixles free space above and under eacht inactive item. Because my ListView has no background-graphic (which is on purpose and can't be changed) I see slices of the underlying Views through my list. If you have any dificulties imagining what this means, have a look at http://brianschimmel.de/divider.jpg I'm rather sure this is a Bug, but maybe it's the intended behaviour. I wanted to hear your opinion (as well as a workaround, if there is any) before filing a bug at b.android.com I can even imagine a reason for the behaviour as it is: If you wanted to make list items active/ inactive at runtime, the current implementation does not change the positioning of the items, while the behaviour I proposes would do. But I'm not sure if activatin/inactivating items is a real need. I'm thinking about not using the build in divider feature at all and inserting a special divider item between each two active items manually. I think this will fix it, too, but I'd rather like another 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: Australian Android Developers - Drop me a line
I wonder if there are enough Australian (or Sydney) Android developers aroundto warrant such a group. 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] Re: Australian Android Developers - Drop me a line
I figure there's only one way to find out Eric! On Jul 30, 9:39 pm, Eric Wong (hdmp4.com) ericwon...@gmail.com wrote: I wonder if there are enough Australian (or Sydney) Android developers aroundto warrant such a group. 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] Re: Australian Android Developers - Drop me a line
But, if you are just trans-tasman, feel free to join in! On Jul 30, 9:53 pm, Nick nick.may...@gmail.com wrote: I figure there's only one way to find out Eric! On Jul 30, 9:39 pm, Eric Wong (hdmp4.com) ericwon...@gmail.com wrote: I wonder if there are enough Australian (or Sydney) Android developers aroundto warrant such a group. 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] Re: how to add a progressbar or other widget to some row of the listview??
thanks Mark but ,I did try this method,I add the FootView to the listview,but it looks strang.Only two button(or other something ,and It's blinking all the way)apeared at the bottom of the list.I want to add bottom of some row just like this:-- --progressbar here- progressbar here - the widget is in the middle of the rows of listview,how can I archive this.Anyone else can help me please? Thanks in advance. 2009/7/30 Mark Murphy mmur...@commonsware.com frog wrote: I had this questions a few days ago.but no one give the answer,perhaps that is because my mail didn't include the [android-developers]. have someone try to add some widget to listview here? I want to add a progress bar to the bottom of some row of list view.But now, I only know the way to add the seek bar to every row of the listview by add a progessbar to the layout of the listview. [ ListAdapter scbooks = new SimpleCursorAdapter(this,R.layout.bookrow_layout,bookcur, from, to); ] Try ListView#addFooterView(). -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need Android talent? Ask on HADO! http://wiki.andmob.org/hado --~--~-~--~~~---~--~~ 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: Disactive animation on activity start
Thanks a lot Mark for this real bad news. I thought to another way to unactive the user preference when app is launching but I'm not sure that's possible and it's a wrong way to implement a good thing. Thx again Arnaud On 30 juil, 13:15, Mark Murphy mmur...@commonsware.com wrote: arnouf wrote: Is it possible to disactive the animation between activities provided to user with cupcake 1.5? Not that I am aware of. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy Need Android talent? Ask on HADO!http://wiki.andmob.org/hado --~--~-~--~~~---~--~~ 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 catch event from the virtual keyboard ?
No idea ? On Jul 28, 5:30 pm, Azhdar azh...@gmail.com wrote: Hi Everything is in the title : How tocatcheventfrom thevirtualkeyboard? In fact, I want to know if the screen is touch for instance. Thank you 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] how to disable the keygaurd and screen locking in android
Hi, i am porting android to our custom board. When android first time boots up, it is proper, i able to go into apps window and able to work. But, if i boot the android for next time, the andorid boots up and goes to main screen, where the screen gets locked displaying Press Menu to unlock. If i press Menu key to unlock, its reporting error, D/KeyguardViewMediator( 841): wakeWhenReadyLocked(82) V/EventHub( 841): revents for 2 = 0x0001 V/EventHub( 841): /dev/input/event0 got: t0=73, t1=573486, type=0, code=0, v=0 D/KeyguardViewMediator( 841): handleWakeWhenReady(82) D/KeyguardViewMediator( 841): pokeWakelock(5000) I am unable to unlock, so there is anyway where we can avoid locking of screen. Thanks and Regards, HarishKumar.V --~--~-~--~~~---~--~~ 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 handle complex objects from webservice.
Hi All, can anybody tell me how to handle a complex type object from webservice. Presently I am able to handle simple String messages. But if I am extracting some array of objects or String, then how to handle this. Waiting for quick reply. -Ram --~--~-~--~~~---~--~~ 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] AndroidIntentPlayground sourcecode
Does anybody have the source code for AndroidIntentPlayground example in Diego Torres Milano's blog http://dtmilano.blogspot.com/? -- Warm Regards, Sudeep --~--~-~--~~~---~--~~ 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 dismiss Spinner's Dialog automatically
Hi group, I am sure that everybody can easily recur the problem I am facing. There is a Spinner in the view, which includes a few entries. When I cllick the Spinner, it pops up a dialog so user can choose an entry. All these are very normal and you can find such things in SDK's API demo. The problem is: when the dialog is still on focus, if you change the phone's orientation, an exception will be thrown. Something like this: 07-30 20:46:03.727: ERROR/WindowManager(416): Activity com.client.CommandList has leaked window com.android.internal.policy.impl.phonewindow$decorv...@43116318 that was originally added here 07-30 20:46:03.727: ERROR/WindowManager(416): android.view.WindowLeaked: Activity com.client.CommandList has leaked window com.android.internal.policy.impl.phonewindow$decorv...@43116318 that was originally added here 07-30 20:46:03.727: ERROR/WindowManager(416): at android.view.ViewRoot.init(ViewRoot.java:214) 07-30 20:46:03.727: ERROR/WindowManager(416): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:148) 07-30 20:46:03.727: ERROR/WindowManager(416): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:91) 07-30 20:46:03.727: ERROR/WindowManager(416): at android.view.Window$LocalWindowManager.addView(Window.java:392) 07-30 20:46:03.727: ERROR/WindowManager(416): at android.app.Dialog.show(Dialog.java:231) 07-30 20:46:03.727: ERROR/WindowManager(416): at android.app.AlertDialog$Builder.show(AlertDialog.java:802) 07-30 20:46:03.727: ERROR/WindowManager(416): at android.widget.Spinner.performClick(Spinner.java:247) 07-30 20:46:03.727: ERROR/WindowManager(416): at android.view.View.onTouchEvent(View.java:3828) 07-30 20:46:03.727: ERROR/WindowManager(416): at android.view.View.dispatchTouchEvent(View.java:3368) 07-30 20:46:03.727: ERROR/WindowManager(416): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:831) 07-30 20:46:03.727: ERROR/WindowManager(416): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863) 07-30 20:46:03.727: ERROR/WindowManager(416): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863) 07-30 20:46:03.727: ERROR/WindowManager(416): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863) 07-30 20:46:03.727: ERROR/WindowManager(416): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863) 07-30 20:46:03.727: ERROR/WindowManager(416): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863) 07-30 20:46:03.727: ERROR/WindowManager(416): at com.android.internal.policy.impl.PhoneWindow $DecorView.superDispatchTouchEvent(PhoneWindow.java:1707) 07-30 20:46:03.727: ERROR/WindowManager(416): at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent (PhoneWindow.java:1197) 07-30 20:46:03.727: ERROR/WindowManager(416): at android.app.Activity.dispatchTouchEvent(Activity.java:1993) 07-30 20:46:03.727: ERROR/WindowManager(416): at com.android.internal.policy.impl.PhoneWindow $DecorView.dispatchTouchEvent(PhoneWindow.java:1691) 07-30 20:46:03.727: ERROR/WindowManager(416): at android.view.ViewRoot.handleMessage(ViewRoot.java:1525) 07-30 20:46:03.727: ERROR/WindowManager(416): at android.os.Handler.dispatchMessage(Handler.java:99) 07-30 20:46:03.727: ERROR/WindowManager(416): at android.os.Looper.loop(Looper.java:123) 07-30 20:46:03.727: ERROR/WindowManager(416): at android.app.ActivityThread.main(ActivityThread.java:3948) 07-30 20:46:03.727: ERROR/WindowManager(416): at java.lang.reflect.Method.invokeNative(Native Method) 07-30 20:46:03.727: ERROR/WindowManager(416): at java.lang.reflect.Method.invoke(Method.java:521) 07-30 20:46:03.727: ERROR/WindowManager(416): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:782) 07-30 20:46:03.727: ERROR/WindowManager(416): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540) 07-30 20:46:03.727: ERROR/WindowManager(416): at dalvik.system.NativeStart.main(Native Method) Can anybody help me out? Urgent. Thanks a million. Gery --~--~-~--~~~---~--~~ 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] Service class
How to create a service that will post messages to an activity periodically using timer? -- Warm Regards, Sudeep --~--~-~--~~~---~--~~ 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: Two SurfaceViews in a FrameLayout
I have looked through the docs again and find no explanation what the best way is where I can really have two seperate views overlay and update both at righ rates. Maybe someone can comment on the use-case that I have described below. Thanks! Chris On Jul 28, 11:18 am, Chris chrismc...@hotmail.com wrote: Thanks for the indepth reply! Maybe you as Android Framework Developer can give a recommendation on how I best implement the following: I have camera preview and want to overlay my own item over this that change very quickly (about every 200ms). The camera preview uses a SurfaceView as in the samples. As first approach I used a normal View as the overlay part and called postInvalidate from another thread very often to redraw the View. This caused heavy CPU load (90%) of my application. Now, I managed to use two SurfaceViews and making one transparent. This also works and the CPU load is about 30% now. However: is this the best way to implement such functionality? Thanks! Chris On Jul 27, 8:07 pm, Dianne Hackborn hack...@android.com wrote: Sorry, you can't do this -- because surface views are very special and not really views (the surface is a separate window Z-ordered with your own), their Z-ordering does not match your views. A surface view is a big, heavy object; you are not intended to treat SurfaceView like a regular view in this way. As far as transparency, the surface is transparent if you make its pixel format transparent. It's your surface, you can do with it what you want. The default is to be the same pixel format as the screen, since that is the most efficient and it is very rare for someone to want a transparent surface view. The way you really are intended to do this is to own the surface, and draw all your compositing in there. So you would just have one surface view that you are updating in the places where either the background or overlay is changing. To be honest, I think you are going to get better performance if you do it this way anyway, especially if you use OpenGL. For simple overlays, one thing that is reasonable to do is to stick the SurfaceView in a frame layout, Z-ordering it below other -regular- views that contain the overlay. There is an example in ApiDemos of this. On Mon, Jul 27, 2009 at 7:34 AM, Chris chrismc...@hotmail.com wrote: Hi, I have two SurfaceViews in one FrameLayout. So they are stacked upon another. What I want to achieve is to use the lower SurfaceView as kind of background that is changing heavily, and the upper SurfaceView as annotation overlay. So the upper SurfaceView has a (small) number of quickly changing elements that I will draw. Somehow, I can always only see one of the SurfaceViews, depending on which one is top. I thought that SurfaceViews are always transparent, but it seems I am missing something here. Any thoughts on why I can't overlay two SurfaceViews? Thanks, Chris -- 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: View Files on a remove server/PC
Are you trying to view remote files on a PC from another PC? In that case WinSCP is a good way. If you are using a non-Windows machine, then scp is the command-line version that ships with most unix distributions, include OSX. If by change you are trying to view remote files with your Android phone, then SugarSync is one application you can use.Or are you trying to do this programmatically? 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 Jul 28, 12:14 pm, Gopal Biyani gopalbiy...@gmail.com wrote: Just google for WinSCP. On Tue, Jul 28, 2009 at 3:11 PM, johnny johnny.ra...@gmail.com wrote: Is anyone aware of a way to view the directory structure and files on a remote server or PC? Is there an existing app for this? 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: Zii Egg's Android OS
I think it would be tricky to use Android without a menu button. So either they: 1) changed Android (it is open-source, after all) 2) did something clever with the hardware buttons, like how they made the camera button also the back button 3) forgot 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 Jul 28, 11:52 pm, Iulian lucai...@gmail.com wrote: As you all can see in this image:http://www.ziilabs.com/content_images/resource/DG-Zii%20EGG%20Specs.jpg thay have two hardware buttons: HOME and CAMERA buttons (Power it's Power) so where is the MENU button, because as I saw in thier movies when he press CAMERA button goes BACK, so MENU is missing. MENU button could be a software button? They build a custom Android OS to fit their hardware, so this could be done, to have only one hardware button or none on Android. What do you think? --~--~-~--~~~---~--~~ 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 disable the keygaurd and screen locking in android
Hi, please post these kinds of questions to android-porting, thanks. On Thu, Jul 30, 2009 at 5:46 AM, Harishkumar V harishpres...@gmail.comwrote: Hi, i am porting android to our custom board. When android first time boots up, it is proper, i able to go into apps window and able to work. But, if i boot the android for next time, the andorid boots up and goes to main screen, where the screen gets locked displaying Press Menu to unlock. If i press Menu key to unlock, its reporting error, D/KeyguardViewMediator( 841): wakeWhenReadyLocked(82) V/EventHub( 841): revents for 2 = 0x0001 V/EventHub( 841): /dev/input/event0 got: t0=73, t1=573486, type=0, code=0, v=0 D/KeyguardViewMediator( 841): handleWakeWhenReady(82) D/KeyguardViewMediator( 841): pokeWakelock(5000) I am unable to unlock, so there is anyway where we can avoid locking of screen. Thanks and Regards, HarishKumar.V -- 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 handle complex objects from webservice.
How exactly are you receiving the data from the webservice (HTTP POST method, TCP connection, UDP connection..)? If you are receiving your complex object in parts, write a method that will process the input and put the parts together to recreate your object. Lex On Jul 30, 2:52 pm, Ram ramgopalgo...@gmail.com wrote: Hi All, can anybody tell me how to handle a complex type object from webservice. Presently I am able to handle simple String messages. But if I am extracting some array of objects or String, then how to handle this. Waiting for quick reply. -Ram --~--~-~--~~~---~--~~ 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 catch event from the virtual keyboard ?
Either set the window flag to have your IME's window consume all touch events, or make it larger so the user hits it. Note that there is no way to be able to receive touch events there and selectively decide whether they go to the underlying application, it is either all or nothing. On Thu, Jul 30, 2009 at 5:18 AM, Azhdar azh...@gmail.com wrote: No idea ? On Jul 28, 5:30 pm, Azhdar azh...@gmail.com wrote: Hi Everything is in the title : How tocatcheventfrom thevirtualkeyboard? In fact, I want to know if the screen is touch for instance. Thank you in advance ! -- 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: Disactive animation on activity start
Just set the animation style on your window to not have any animations. On Thu, Jul 30, 2009 at 1:01 AM, arnouf arnaud.far...@gmail.com wrote: Hi all, Is it possible to disactive the animation between activities provided to user with cupcake 1.5? User can set a preference with 1.5 to set animation on activity launch. I would like disactive these animations inside my app containing different activities. Is it possible? Regards -- 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: Threads for networking and DatagramSocket
Thank You for your advice, Roman. There's a detailed post about my issue on the Java Sun Forum: http://forums.sun.com/thread.jspa?messageID=10779608#10779608 Lex On Jul 29, 5:06 pm, Roman roman.baumgaert...@t-mobile.com wrote: I recommend to keep your data communication separate from the UI. The UI should be responsive as possible and you don't want to have any blocking on this level. In general data connectivity is not predictable and in worse case you are waiting for a response from the network and blocking your whole UI. For example how would you interrupt your data communication from UI perspective when you handle data communication within the UI and your UI is blocked? -- 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 Jul 29, 3:42 am,Lexhakkinen1...@gmail.com wrote: My Android app is exchanging traffic messages viaUDPwith a server - binary messages of up to 60 Bytes. The server I'm using (external, don't have access to code nor can I convince the developer to change stuff :( ) is identifying the clients solely through sockets (no other type of client ID whatsoever), so I need to use the same socket for receiving and sending. My initial plan was to use separate Threads for receiving and sending data. The network load depends on the traffic situation - sometimes there might be a lot of messages coming in, sometimes only a few. The client also needs to send periodic keep- alive messages, which are simple, 10 character strings. Now the problem is that Java's DatagramSocket.receive method() is synchronized and also blocking as long as there is data to receive, so my sending thread cannot use the socket for sending anything, which results in the server kicking off the client because there's no response coming. My question is, how bad (or not bad) do you think will rejecting the threads and doing all the networking as described above in the UI thread be? Of course, if you also have suggestions on how to overcome the issue, it will be greatly appreciated! Cordialement 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: How did they made those solve the math to dismiss the Alarm Clock type apps?
I certainly hope they don't hold a wake lock. :) They should just schedule an alarm. On Thu, Jul 30, 2009 at 4:27 AM, Mark Murphy mmur...@commonsware.comwrote: alucard20004 wrote: 1. User can just turn off the phone. How did the developer prevent user from turning-off the device? They probably do not stop the user from turning off the device (i.e., holding down the end-call button and choosing Power Off). I would be rather disturbed if an application could do that. They might stop the user from putting the phone to sleep (i.e., pressing the end-call button) by holding a suitable WakeLock. 2. If the user CAN turn off the device, how did the developer schedule the 'math' activity to start next time the device is turned on? Possibly by arranging to have a BroadcastReceiver respond to the ACTION_BOOT_COMPLETED broadcast Intent. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need Android talent? Ask on HADO! http://wiki.andmob.org/hado -- 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: Speech Recognition
Sorry, I don't know. On Thu, Jul 30, 2009 at 1:54 AM, moa mich...@jixel.com wrote: A couple of questions; 1. How does it work with numbers. Is it possible to limit the text returned? If I wanted VR to listen for numbers can I get it to return 115 instead of one hundered and fifteen? 2. Is it possible to define/limit the dictionary of words which it tries to match against? For example; if I new they could only respond in 2 ways, hello and goodbye. Can you define that as the only words to match, so I will only get those and not halo or good buy ? On Jul 29, 10:24 pm, Dianne Hackborn hack...@android.com wrote: The platform only defines the API for voice recognition; because the current implementation we have is tied to Google services, this is not part of the base platform, so not available on all phones. This is one of the reasons the API is a loosly-bound Intent protocol. On Wed, Jul 29, 2009 at 11:03 AM, moa mich...@jixel.com wrote: I think this is the situation. VR is part of cupcake 1.5, however, this has not been fully implemented on many current devices. UK vodafone for example. If your google search widget does bot have the microphone on it then I think your version of cupcake on the device does not have the relevent libraries needed to support VR. If you install some of the custom roms from xda you will see they have the mic icon on search. I think (although I have not got around to trying myself) that it will work fine on these. so, no mic icon on seach == no VR support. please correct me if i'm wrong, but that's my take. ps. what is the story with TTS (text to speech) is that in there too at all? On Jul 14, 6:25 pm, Steven shamilt...@gmail.com wrote: I figured out what was wrong. But like the commenter below I get the recognizer is not present displayed when I run my code in the emulator. I read that googlevoicesearch must be installed for thevoicerecognitionintent to work. Is this correct? -Steven On Jul 9, 6:08 pm, Mark Murphy mmur...@commonsware.com wrote: Steven wrote: So when I use the code from voiceRecognition.java to see if it will work. I get and error with R.layout.voice_recognition as well as R.id What are the error messages? Also, remember that you cannot necessarily just grab bits of Java code -- these errors are referring to items in a layout that may be missing. and when I try import com.example.android.apis.R it wants me to create the class. That should be automatically built once we get the other problems above fixed. -- Mark Murphy (a Commons Guy)http://commonsware.com| http://twitter.com/commonsguy Need help for your Android OSS project?http://wiki.andmob.org/hado -- 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: Zii Egg's Android OS
Anyone can take Android and put it on whatever hardware they want with whatever buttons they want. This doesn't mean it is going to be compatible with existing applications, and a device that isn't compatible won't be running things like market that cause third party developers to have to suddenly deal with it. On Tue, Jul 28, 2009 at 11:52 PM, Iulian lucai...@gmail.com wrote: As you all can see in this image: http://www.ziilabs.com/content_images/resource/DG-Zii%20EGG%20Specs.jpg thay have two hardware buttons: HOME and CAMERA buttons (Power it's Power) so where is the MENU button, because as I saw in thier movies when he press CAMERA button goes BACK, so MENU is missing. MENU button could be a software button? They build a custom Android OS to fit their hardware, so this could be done, to have only one hardware button or none on Android. What do you think? -- 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: creating a shared jar library
Sorry, Android currently doesn't support third party shared libraries. On Thu, Jul 30, 2009 at 4:13 AM, GiladH gila...@gmail.com 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 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: files.length
FTPClient is not part of the Android platform, so you will need to look at whatever code you have built in to your application there to figure out why it isn't working. On Wed, Jul 29, 2009 at 11:02 PM, dario ber...@gmail.com wrote: helo, in Java Se its tell me that files.length is 16 but when i run it in the android plathform tell me that there is 0 FTPClient f = new FTPClient(); f.connect(server, 21); f.login(username, password); FTPFile[] files = f.listFiles(); Log.v(TAG,+files.length(); -- 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: Threads for networking and DatagramSocket
Um... it looks like the people there already answered your question: only the receive() call is synchronized, so you can freely send data while your reader thread is blocked waiting for new data to arrive. I don't understand at all why you are suggesting doing networking on the main thread, since that will just make your problem worse, as now you somehow need to keep the reading from blocking so you can make the UI responsive. There is nothing magical about the main thread that lets it do networking in a way that can't be done in another thread. On Thu, Jul 30, 2009 at 6:46 AM, Lex hakkinen1...@gmail.com wrote: Thank You for your advice, Roman. There's a detailed post about my issue on the Java Sun Forum: http://forums.sun.com/thread.jspa?messageID=10779608#10779608 Lex On Jul 29, 5:06 pm, Roman roman.baumgaert...@t-mobile.com wrote: I recommend to keep your data communication separate from the UI. The UI should be responsive as possible and you don't want to have any blocking on this level. In general data connectivity is not predictable and in worse case you are waiting for a response from the network and blocking your whole UI. For example how would you interrupt your data communication from UI perspective when you handle data communication within the UI and your UI is blocked? -- 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 Jul 29, 3:42 am,Lexhakkinen1...@gmail.com wrote: My Android app is exchanging traffic messages viaUDPwith a server - binary messages of up to 60 Bytes. The server I'm using (external, don't have access to code nor can I convince the developer to change stuff :( ) is identifying the clients solely through sockets (no other type of client ID whatsoever), so I need to use the same socket for receiving and sending. My initial plan was to use separate Threads for receiving and sending data. The network load depends on the traffic situation - sometimes there might be a lot of messages coming in, sometimes only a few. The client also needs to send periodic keep- alive messages, which are simple, 10 character strings. Now the problem is that Java's DatagramSocket.receive method() is synchronized and also blocking as long as there is data to receive, so my sending thread cannot use the socket for sending anything, which results in the server kicking off the client because there's no response coming. My question is, how bad (or not bad) do you think will rejecting the threads and doing all the networking as described above in the UI thread be? Of course, if you also have suggestions on how to overcome the issue, it will be greatly appreciated! Cordialement Lex -- 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] DDMS Allocation Tracker - Start Tracking Disabled
I have not been able to use the Allocation Tracker in DDMS (stand alone from command line). I open DDMS and on the Allocation Tracker tab, the two buttons are disabled as if I do not have something configured correctly or I am not connected to the right process etc... Details: =I think I may have the Static Port Configuration incorrect, which may be the reason behind the problems. I have an entry for emulator-5554 on Debug port 8700. What is the application package supposed to point to exactly? =The emulator is 1.5 avd with an SD card. =I have a G1 device also. =When running DDMS from command line, I am in cygwin running ./ ddms.bat =The following output is displayed on the command line after starting ddms: 56:39 I/ddms: Created: [Debugger 8600--582 inactive] 56:39 I/ddms: Created: [Debugger 8601--622 inactive] 56:39 I/ddms: Created: [Debugger 8602--624 inactive] 56:39 I/ddms: Created: [Debugger 8603--651 inactive] 56:39 I/ddms: Created: [Debugger 8604--669 inactive] 56:39 I/ddms: Created: [Debugger 8605--683 inactive] 56:39 I/ddms: Created: [Debugger 8606--686 inactive] 56:39 I/ddms: Created: [Debugger 8607--733 inactive] =The left pane has one root entry emulator-5554 with the following children: ? 582 8600 ? 622 8601 ? 624 8602 ? 651 8603 ? 669 8604 ? 683 8605 ? 686 8606 ? 733 8607 =The Info tab of DDMS has DDM-aware? no for each child entry in the left pane =When highlighting a child in the left pane, the right pane Allocation Tracker tab has a ? where the Start Tracking button is and is still disabled. That button only says Start Tracking when the root emulator-5554 is selected in the left pane, but the button is still disabled. =The only things that appear to work in DDMS is logcat, Sysinfo, =In preferences, I have Heap updates enabled by default checked, Thread updates enabled by default checked (4 seconds), Client Scan ADB debugger base 8600, Debug selected VM 8627 Please help me identify what I have failed to do. I am happy to provide more details upon request. Thank you 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: LocationManager NullPointerException
Is there any more to the stack trace? The only thing I can think of is you providing a null criteria to getBestProvider(). 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 Jul 29, 9:33 pm, sandy8531 mathur...@gmail.com wrote: One of my customers is getting this ... is this a known problem ? Anything my code could have done to cause this ? java.lang.NullPointerException android.location.LocationManager.getProviders(LocationManager.java: 303) android.location.LocationManager.getBestProvider (LocationManager.java:507) --~--~-~--~~~---~--~~ 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] Notification Like UI
Hi all, i need to implement a UI component similar to the Notification Area in the android os. That is on click i wanna fill the screen with my view, show certain options to the user it should always be on top of all Activities in my application. onFling up i'll minimize the view to the top i'll have to show a few icons in the top. Is it even possible if s can anyone gimme guidance as to how to do it. -- Regards, Sujay Stephen Leacockhttp://www.brainyquote.com/quotes/authors/s/stephen_leacock.html - I detest life-insurance agents: they always argue that I shall some day die, which is not so. --~--~-~--~~~---~--~~ 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] ListView touch problem
Each list item in my ListView is a linkified TextView, and a regular TextView. The problem is that once there is a touchable item in the ListView, the touch works only for that item, that is - only links work, but the entire list item containing the link cannot be touch selected (only with the trackball). I tried this also with buttons inside the list items and the touch behavior was the same - only the button view could be touched. Is there a way to make a list item touchable with touchable views inside? --~--~-~--~~~---~--~~ 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] startActivity Problem
Hi all, I'm trying to call a service directly, and I'm getting an ActivityNotFoundException thrown. My main class looks like this: --- @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); PackageManager pm = getPackageManager(); try { Log.i(TAG,retrieving services:); PackageInfo pinfo = pm.getPackageInfo(test.another, PackageManager.GET_ACTIVITIES | PackageManager.GET_SERVICES); for (ServiceInfo serv : pinfo.services) { Log.i(TAG,declared service: +serv.name); Log.i(TAG, package name: +serv.packageName); Log.i(TAG, enabled: +serv.enabled); Log.i(TAG, exported: +serv.exported); } } catch (NameNotFoundException e) { // TODO Auto-generated catch block e.printStackTrace(); } Intent i = new Intent(); i.setClassName(test.another, test.another.MyService); startActivity(i); setContentView(R.layout.main); } - My service is empty, minus some log messages: public void onCreate() { Log.i(T,created); } public void onStart(Intent i, int code) { Log.i(T,started); } @Override public IBinder onBind(Intent intent) { // TODO Auto-generated method stub return null; } And the service is declared in the manifest file: --- ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=test.another android:versionCode=1 android:versionName=1.0 application android:icon=@drawable/icon android:label=@string/ app_name activity android:name=.Main android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity service android:name=MyService/service /application uses-sdk android:minSdkVersion=3 / /manifest When I run it in either the emulator or on my phone, I get this log: 07-30 10:56:52.676: INFO/main(1686): retrieving services: 07-30 10:56:52.686: INFO/main(1686): declared service: test.another.MyService 07-30 10:56:52.686: INFO/main(1686): package name: test.another 07-30 10:56:52.696: INFO/main(1686): enabled: true 07-30 10:56:52.696: INFO/main(1686): exported: false 07-30 10:56:52.696: INFO/ActivityManager(56): Starting activity: Intent { comp={test.another/test.another.MyService} } 07-30 10:56:52.716: DEBUG/AndroidRuntime(1686): Shutting down VM 07-30 10:56:52.716: WARN/dalvikvm(1686): threadid=3: thread exiting with uncaught exception (group=0x4000fe70) 07-30 10:56:52.716: ERROR/AndroidRuntime(1686): Uncaught handler: thread main exiting due to uncaught exception 07-30 10:56:52.746: DEBUG/dalvikvm(1622): GC freed 5960 objects / 376680 bytes in 423ms 07-30 10:56:52.746: ERROR/AndroidRuntime(1686): java.lang.RuntimeException: Unable to start activity ComponentInfo {test.another/test.another.Main}: android.content.ActivityNotFoundException: Unable to find explicit activity class {test.another/test.another.MyService}; have you declared this activity in your AndroidManifest.xml? 07-30 10:56:52.746: ERROR/AndroidRuntime(1686): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2268) 07-30 10:56:52.746: ERROR/AndroidRuntime(1686): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 2284) 07-30 10:56:52.746: ERROR/AndroidRuntime(1686): at android.app.ActivityThread.access$1800(ActivityThread.java:112) 07-30 10:56:52.746: ERROR/AndroidRuntime(1686): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1692) 07-30 10:56:52.746: ERROR/AndroidRuntime(1686): at android.os.Handler.dispatchMessage(Handler.java:99) 07-30 10:56:52.746: ERROR/AndroidRuntime(1686): at android.os.Looper.loop(Looper.java:123) 07-30 10:56:52.746: ERROR/AndroidRuntime(1686): at android.app.ActivityThread.main(ActivityThread.java:3948) 07-30 10:56:52.746: ERROR/AndroidRuntime(1686): at java.lang.reflect.Method.invokeNative(Native Method) 07-30
[android-developers] Re: creating a shared jar library
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=samples/PlatformLibrary/README.txt;h=5ce9d2f7756a0708e9fc0aed7845f3d69d4a6ae0;hb=cupcake i take it this option still stands (again - only for open source platform), right? GiladH On Jul 30, 5:04 pm, Dianne Hackborn hack...@android.com wrote: Sorry, Android currently doesn't support third party shared libraries. On Thu, Jul 30, 2009 at 4:13 AM, GiladH gila...@gmail.com 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 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: Service class
To create a service: http://developer.android.com/reference/android/app/Service.html To post a message to an activity: http://developer.android.com/reference/android/content/ServiceConnection.html Timer: http://developer.android.com/reference/java/util/Timer.html 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 Jul 30, 6:04 am, Sudeep Jha sudeep.neti...@gmail.com wrote: How to create a service that will post messages to an activity periodically using timer? -- Warm Regards, Sudeep --~--~-~--~~~---~--~~ 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: Handling a layout ...
What if you try to add (and by adding I mean placing on top of it) an ImageView to another one ? Say you've already set the image in your layout xml file and later on you'd like place a smaller image somewhere on it in order it to be used as a button to click on. Emre Date: Thu, 30 Jul 2009 07:20:21 -0400 From: mmur...@commonsware.com To: android-developers@googlegroups.com Subject: [android-developers] Re: Handling a layout ... Emre A. Yavuz wrote: Sorry about the late response. Here's what I meant by the potential casting problem; In order to add the ImageView variable, which was created to handle the Drawable resource, you need to cast the parent layout, which is of type ImageView, to ViewGroup type if you're planning to use the addView() method. You cannot add an ImageView to an ImageView. ImageView is not a container and, therefore, is not a ViewGroup. You can only add Views (e.g., ImageView) to a ViewGroup (e.g., LinearLayout). However, I cannot imagine a GUI design that would require an ImageView hold another ImageView. For example, if your goal is to replace an image in an ImageView, you can just call setImageResource() on the ImageView you already have, rather than try adding a new one. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need Android talent? Ask on HADO! http://wiki.andmob.org/hado _ More storage. Better anti-spam and antivirus protection. Hotmail makes it simple. http://go.microsoft.com/?linkid=9671357 --~--~-~--~~~---~--~~ 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: ListView: invisible dividers still take up space. Is it a bug or a feature?
I can't speak for the original designers' and coders' intent, but it may be they intended to put a space there so that when an item is selected, they can put a yellow rectangle around it, which, they do. 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 Jul 30, 4:30 am, brian.schim...@googlemail.com brian.schim...@googlemail.com wrote: I'm using a ListView with a custom ListAdapter and a custom Drawable as divider. My list contains active elements and passive ones as well. By default, the ListView draws a divider only between two active items. This is exactly what I want it to do, expect that ListView leaves dividerHeight pixles free space above and under eacht inactive item. Because my ListView has no background-graphic (which is on purpose and can't be changed) I see slices of the underlying Views through my list. If you have any dificulties imagining what this means, have a look athttp://brianschimmel.de/divider.jpg I'm rather sure this is a Bug, but maybe it's the intended behaviour. I wanted to hear your opinion (as well as a workaround, if there is any) before filing a bug at b.android.com I can even imagine a reason for the behaviour as it is: If you wanted to make list items active/ inactive at runtime, the current implementation does not change the positioning of the items, while the behaviour I proposes would do. But I'm not sure if activatin/inactivating items is a real need. I'm thinking about not using the build in divider feature at all and inserting a special divider item between each two active items manually. I think this will fix it, too, but I'd rather like another 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: Garbage Collector - best practice
I recommend seeing this lecture from GoogleIO on the same subject: http://code.google.com/events/io/sessions/WritingRealTimeGamesAndroid.html To your question, GC can pause real-time games, unfortunately. Two ways to minimize this are: 1) reuse objects, rather than allocating new ones and letting GC take care of old ones 2) don't use others' classes, like the Java container classes, for example, which can trigger GC 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 Jul 29, 11:58 pm, f_heft delphik...@gmail.com wrote: float is a primitive type, not an object. It sits in a register, not on the heap. Float is an object that can be used to box a float. Hopefully you're not using Float for values used in calculations. I'm using float not Float. I'll try out the allocation tracker, thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: startActivity Problem
Try using startService() to start your service instead of startActivity (). 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 Jul 30, 8:06 am, kolby kolbys...@gmail.com wrote: Hi all, I'm trying to call a service directly, and I'm getting an ActivityNotFoundException thrown. My main class looks like this: --- @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); PackageManager pm = getPackageManager(); try { Log.i(TAG,retrieving services:); PackageInfo pinfo = pm.getPackageInfo(test.another, PackageManager.GET_ACTIVITIES | PackageManager.GET_SERVICES); for (ServiceInfo serv : pinfo.services) { Log.i(TAG,declared service: +serv.name); Log.i(TAG, package name: +serv.packageName); Log.i(TAG, enabled: +serv.enabled); Log.i(TAG, exported: +serv.exported); } } catch (NameNotFoundException e) { // TODO Auto-generated catch block e.printStackTrace(); } Intent i = new Intent(); i.setClassName(test.another, test.another.MyService); startActivity(i); setContentView(R.layout.main); } --- -- My service is empty, minus some log messages: --- - public void onCreate() { Log.i(T,created); } public void onStart(Intent i, int code) { Log.i(T,started); } @Override public IBinder onBind(Intent intent) { // TODO Auto-generated method stub return null; } --- - And the service is declared in the manifest file: --- ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=test.another android:versionCode=1 android:versionName=1.0 application android:icon=@drawable/icon android:label=@string/ app_name activity android:name=.Main android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity service android:name=MyService/service /application uses-sdk android:minSdkVersion=3 / /manifest --- - When I run it in either the emulator or on my phone, I get this log: --- - 07-30 10:56:52.676: INFO/main(1686): retrieving services: 07-30 10:56:52.686: INFO/main(1686): declared service: test.another.MyService 07-30 10:56:52.686: INFO/main(1686): package name: test.another 07-30 10:56:52.696: INFO/main(1686): enabled: true 07-30 10:56:52.696: INFO/main(1686): exported: false 07-30 10:56:52.696: INFO/ActivityManager(56): Starting activity: Intent { comp={test.another/test.another.MyService} } 07-30 10:56:52.716: DEBUG/AndroidRuntime(1686): Shutting down VM 07-30 10:56:52.716: WARN/dalvikvm(1686): threadid=3: thread exiting with uncaught exception (group=0x4000fe70) 07-30 10:56:52.716: ERROR/AndroidRuntime(1686): Uncaught handler: thread main exiting due to uncaught exception 07-30 10:56:52.746: DEBUG/dalvikvm(1622): GC freed 5960 objects / 376680 bytes in 423ms 07-30 10:56:52.746: ERROR/AndroidRuntime(1686): java.lang.RuntimeException: Unable to start activity ComponentInfo {test.another/test.another.Main}: android.content.ActivityNotFoundException: Unable to find explicit activity class {test.another/test.another.MyService}; have you declared this activity in your AndroidManifest.xml? 07-30 10:56:52.746: ERROR/AndroidRuntime(1686): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2268) 07-30 10:56:52.746: ERROR/AndroidRuntime(1686): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 2284) 07-30 10:56:52.746: ERROR/AndroidRuntime(1686): at android.app.ActivityThread.access$1800(ActivityThread.java:112) 07-30 10:56:52.746: ERROR/AndroidRuntime(1686): at
[android-developers] Re: ListView: invisible dividers still take up space. Is it a bug or a feature?
I'm rather sure this is a Bug, but maybe it's the intended behaviour. This is not a bug. Just set the dividerHeight to 0. -- 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: Multicast receive broken in Android 1.5?
Same issue here too. When I retrieve my kernel config file from my Cupcake-upgraded G1 device (by using adb pull /proc/config.gz .) and when I look for CONFIG_IP_MULTICAST, then I find the following line: # CONFIG_IP_MULTICAST is not set Therefore I guess that multicast is disabled in the kernel. It would be interresting to check with a G1 which has not been upgraded to Cupcake. If CONFIG_IP_MULTICAST=yes is found, it would confirm that the kernel has lost IP Multicast during the Cupcake upgrade. Pierre --~--~-~--~~~---~--~~ 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] Separating Widget from main Application
Hello, I have a existing application and I added a Widget to it, so now I have app and widget in this same apk. When I launch the main app the widget onUpdate gets executes whitch is not what I want is there any way to separate this two. --~--~-~--~~~---~--~~ 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
That only applies if you are making your own device. On Thu, Jul 30, 2009 at 8:20 AM, GiladH gila...@gmail.com 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=samples/PlatformLibrary/README.txt;h=5ce9d2f7756a0708e9fc0aed7845f3d69d4a6ae0;hb=cupcake i take it this option still stands (again - only for open source platform), right? GiladH On Jul 30, 5:04 pm, Dianne Hackborn hack...@android.com wrote: Sorry, Android currently doesn't support third party shared libraries. On Thu, Jul 30, 2009 at 4:13 AM, GiladH gila...@gmail.com 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 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: ListView: invisible dividers still take up space. Is it a bug or a feature?
Hi Romain, I think you just got me wrong. If I wanted to have no dividers at all, I would set dividerHeight to 0, of course. Indeed, I want to have dividers between enabled items, but no dividers next to disabled ones. The code in ListView.dispatchDraw() already has code for this: if (bottom listBottom (areAllItemsSelectable || (adapter.isEnabled(first + i) (i == count - 1 || adapter.isEnabled(first + i + 1) { bounds.top = bottom; bounds.bottom = bottom + dividerHeight; drawDivider(canvas, bounds, i); } but the code related to the layout of the children seems to ignore the presence of disabled items. It's reserving space for dividers that will not be drawn by dispatchDraw. Maybe this is intended as well. But anyway, I wish it was intended (and implemented) the other way ;) I think I can't help that with dividerHeight, because it is a global property that affects all dividers at once. with best regards, Brian Schimmel On 30 Jul., 17:57, Romain Guy romain...@google.com wrote: I'm rather sure this is a Bug, but maybe it's the intended behaviour. This is not a bug. Just set the dividerHeight to 0. -- 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] How to use Bluetooth with VoIP
Hi, i did a search in this forum, and found nothing related. I have a voip app working, and i need to implement conversation over bluetooh, when connected. I dont want to connect, but use it. When the handsfree is connected, the audio (i.e, media) is routed automatically to it, but the microphone continues on phone. How can i route the microphone to bluetooth microphone? i tried audioManager.setBluetoothA2dpOn(true) or audioManager.setBluetoothScoOn(true), but both doesn't work in this case. Thanks a lot Breno --~--~-~--~~~---~--~~ 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
Please don't hijack threads with unrelated questions. On Wed, Jul 29, 2009 at 11:16 PM, Dato bera ber...@gmail.com wrote: helo, in Java Se its tell me that files.length is 16 but when i run it in the android plathform tell me that there is 0 FTPClient f = new FTPClient(); f.connect(server, 21); f.login(username, password); FTPFile[] files = f.listFiles(); Log.v(TAG,+files.length(); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Is there Galaxy simulator?
simulator ? I guess you meant images for emulator .. but oems can provide their images for the emulator as addon for SDKr3 .. which app is this ? -Dan On Wed, Jul 29, 2009 at 10:09 PM, Anonymous Anonymous firewallbr...@googlemail.com wrote: No simulator as far as i know,what is the app? On Thu, Jul 30, 2009 at 10:31 AM, amiz aarn...@gmail.com wrote: A Galaxy user emailed us to report that one of our apps crashes when he perfoms a function, we had over 10k downloads of this app with no similar report. Since the Galaxy is not yet available in the US,is there a simulator to help resolve issues like this? Alain --~--~-~--~~~---~--~~ 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: DDMS Allocation Tracker - Start Tracking Disabled
On Jul 30, 7:14 am, shaun shashepp...@gmail.com wrote: =The emulator is 1.5 avd with an SD card. =I have a G1 device also. [...] =The Info tab of DDMS has DDM-aware? no for each child entry in the left pane Is anything peculiar coming out of logcat, e.g. complaints of multiple connection attempts? I'm wondering if there's another copy of DDMS lurking and preventing you from connecting. --~--~-~--~~~---~--~~ 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] Enjoy internet with the Nokia 6700 Classic
Enjoy the best of the internet with the Nokia 6700 Classic. High speed HSDPA allows rapid downloads of all your favorite content, from websites to email. Support for HSUPA allows you to upload data even faster, making sharing your images and movies with others..Read More at http://www.oneworldgift.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] Re: startActivity Problem
Thanks Yusuf, that worked. Still curious though, when did the startActivity behavior change? It worked in an older project that was also 1.5. Michael On Jul 30, 11:52 am, Yusuf T. Mobile yusuf.s...@t-mobile.com wrote: Try using startService() to start your service instead of startActivity (). 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 Jul 30, 8:06 am, kolby kolbys...@gmail.com wrote: Hi all, I'm trying to call a service directly, and I'm getting an ActivityNotFoundException thrown. My main class looks like this: --- @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); PackageManager pm = getPackageManager(); try { Log.i(TAG,retrieving services:); PackageInfo pinfo = pm.getPackageInfo(test.another, PackageManager.GET_ACTIVITIES | PackageManager.GET_SERVICES); for (ServiceInfo serv : pinfo.services) { Log.i(TAG,declared service: +serv.name); Log.i(TAG, package name: +serv.packageName); Log.i(TAG, enabled: +serv.enabled); Log.i(TAG, exported: +serv.exported); } } catch (NameNotFoundException e) { // TODO Auto-generated catch block e.printStackTrace(); } Intent i = new Intent(); i.setClassName(test.another, test.another.MyService); startActivity(i); setContentView(R.layout.main); } --- -- My service is empty, minus some log messages: --- - public void onCreate() { Log.i(T,created); } public void onStart(Intent i, int code) { Log.i(T,started); } @Override public IBinder onBind(Intent intent) { // TODO Auto-generated method stub return null; } --- - And the service is declared in the manifest file: --- ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=test.another android:versionCode=1 android:versionName=1.0 application android:icon=@drawable/icon android:label=@string/ app_name activity android:name=.Main android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity service android:name=MyService/service /application uses-sdk android:minSdkVersion=3 / /manifest --- - When I run it in either the emulator or on my phone, I get this log: --- - 07-30 10:56:52.676: INFO/main(1686): retrieving services: 07-30 10:56:52.686: INFO/main(1686): declared service: test.another.MyService 07-30 10:56:52.686: INFO/main(1686): package name: test.another 07-30 10:56:52.696: INFO/main(1686): enabled: true 07-30 10:56:52.696: INFO/main(1686): exported: false 07-30 10:56:52.696: INFO/ActivityManager(56): Starting activity: Intent { comp={test.another/test.another.MyService} } 07-30 10:56:52.716: DEBUG/AndroidRuntime(1686): Shutting down VM 07-30 10:56:52.716: WARN/dalvikvm(1686): threadid=3: thread exiting with uncaught exception (group=0x4000fe70) 07-30 10:56:52.716: ERROR/AndroidRuntime(1686): Uncaught handler: thread main exiting due to uncaught exception 07-30 10:56:52.746: DEBUG/dalvikvm(1622): GC freed 5960 objects / 376680 bytes in 423ms 07-30 10:56:52.746: ERROR/AndroidRuntime(1686): java.lang.RuntimeException: Unable to start activity ComponentInfo {test.another/test.another.Main}: android.content.ActivityNotFoundException: Unable to find explicit activity class {test.another/test.another.MyService}; have you declared this activity in your AndroidManifest.xml? 07-30 10:56:52.746: ERROR/AndroidRuntime(1686): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2268) 07-30
[android-developers] Regarding tab Indicator
Hi, I want to change the tab indicator which is a label on the top after a request is sent. Is it possible to change it on runtime? Thanks, Sameer Joshi --~--~-~--~~~---~--~~ 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: startActivity Problem
There was never a point at any stage in the development of the platform where startActivity() would start a Service. :) On Thu, Jul 30, 2009 at 10:21 AM, kolbysoft kolbys...@gmail.com wrote: Thanks Yusuf, that worked. Still curious though, when did the startActivity behavior change? It worked in an older project that was also 1.5. Michael On Jul 30, 11:52 am, Yusuf T. Mobile yusuf.s...@t-mobile.com wrote: Try using startService() to start your service instead of startActivity (). 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 Jul 30, 8:06 am, kolby kolbys...@gmail.com wrote: Hi all, I'm trying to call a service directly, and I'm getting an ActivityNotFoundException thrown. My main class looks like this: --- @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); PackageManager pm = getPackageManager(); try { Log.i(TAG,retrieving services:); PackageInfo pinfo = pm.getPackageInfo(test.another, PackageManager.GET_ACTIVITIES | PackageManager.GET_SERVICES); for (ServiceInfo serv : pinfo.services) { Log.i(TAG,declared service: +serv.name); Log.i(TAG, package name: +serv.packageName); Log.i(TAG, enabled: +serv.enabled); Log.i(TAG, exported: +serv.exported); } } catch (NameNotFoundException e) { // TODO Auto-generated catch block e.printStackTrace(); } Intent i = new Intent(); i.setClassName(test.another, test.another.MyService); startActivity(i); setContentView(R.layout.main); } --- -- My service is empty, minus some log messages: --- - public void onCreate() { Log.i(T,created); } public void onStart(Intent i, int code) { Log.i(T,started); } @Override public IBinder onBind(Intent intent) { // TODO Auto-generated method stub return null; } --- - And the service is declared in the manifest file: --- ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=test.another android:versionCode=1 android:versionName=1.0 application android:icon=@drawable/icon android:label=@string/ app_name activity android:name=.Main android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity service android:name=MyService/service /application uses-sdk android:minSdkVersion=3 / /manifest --- - When I run it in either the emulator or on my phone, I get this log: --- - 07-30 10:56:52.676: INFO/main(1686): retrieving services: 07-30 10:56:52.686: INFO/main(1686): declared service: test.another.MyService 07-30 10:56:52.686: INFO/main(1686): package name: test.another 07-30 10:56:52.696: INFO/main(1686): enabled: true 07-30 10:56:52.696: INFO/main(1686): exported: false 07-30 10:56:52.696: INFO/ActivityManager(56): Starting activity: Intent { comp={test.another/test.another.MyService} } 07-30 10:56:52.716: DEBUG/AndroidRuntime(1686): Shutting down VM 07-30 10:56:52.716: WARN/dalvikvm(1686): threadid=3: thread exiting with uncaught exception (group=0x4000fe70) 07-30 10:56:52.716: ERROR/AndroidRuntime(1686): Uncaught handler: thread main exiting due to uncaught exception 07-30 10:56:52.746: DEBUG/dalvikvm(1622): GC freed 5960 objects / 376680 bytes in 423ms 07-30 10:56:52.746: ERROR/AndroidRuntime(1686): java.lang.RuntimeException: Unable to start activity ComponentInfo {test.another/test.another.Main}:
[android-developers] Re: Maximum Number of Connections
On Jul 29, 6:31 pm, Rich miser...@gmail.com wrote: D/libc-abort( 1180): abort() called in pid 1180 I/DEBUG ( 551): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** I/DEBUG ( 551): Build fingerprint: 'generic/google_sdk/generic/:1.5/ CUPCAKE/148875:eng/test-keys' I/DEBUG ( 551): pid: 1180, tid: 1190 org.ale.abtc I/DEBUG ( 551): signal 11 (SIGSEGV), fault addr deadbaad Can you send me an APK or command-line Java program that causes this? (I can't find the symbols for that build.) Better yet, file a bug report on b.android.com and attach it. Running out of sockets should not cause a native library to call abort (). Usually that happens when something calls malloc() or free(), and dlmalloc discovers that the heap is corrupt. --~--~-~--~~~---~--~~ 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: DDMS Allocation Tracker - Start Tracking Disabled
I start with eclipse running, emulator not running, ddms not running. I then run my application on emulator (I don't know if the eclipse plugin will start some ddms process at that time or not). Just looking around logcat for errors or strange occurrences and I see quite a few errors and warnings, but they really do not seem to pertain to this issue. I can list all of them out if it can help, but for now I will list a few that I thought have a slight chance at being pertinent: 07-30 17:32:35.153: ERROR/vold(550): Error opening switch name path '/ sys/class/switch/test2' (No such file or directory) 07-30 17:32:35.153: ERROR/vold(550): Error bootstrapping switch '/sys/ class/switch/test2' (m) 07-30 17:32:35.153: ERROR/vold(550): Error opening switch name path '/ sys/class/switch/test' (No such file or directory) 07-30 17:32:35.153: ERROR/vold(550): Error bootstrapping switch '/sys/ class/switch/test' (m) 07-30 17:32:35.173: ERROR/flash_image(557): can't find recovery partition 07-30 17:32:49.484: ERROR/MemoryHeapBase(584): error opening /dev/ pmem: No such file or directory 07-30 17:32:49.593: WARN/HAL(584): load: module=/system/lib/hw/ copybit.goldfish.so error=Cannot find library 07-30 17:32:49.593: WARN/HAL(584): load: module=/system/lib/hw/ copybit.default.so error=Cannot find library 07-30 17:32:49.593: WARN/SurfaceFlinger(584): ro.sf.lcd_density not defined, using 160 dpi by default. 07-30 17:32:49.613: WARN/HAL(584): load: module=/system/lib/hw/ copybit.goldfish.so error=Cannot find library 07-30 17:32:49.613: WARN/HAL(584): load: module=/system/lib/hw/ copybit.default.so error=Cannot find library 07-30 17:32:49.613: WARN/HAL(584): load: module=/system/lib/hw/ overlay.goldfish.so error=Cannot find library 07-30 17:32:49.613: WARN/HAL(584): load: module=/system/lib/hw/ overlay.default.so error=Cannot find library Then I started DDMS from the command line and the following output showed up in the logcat: 07-30 17:34:22.712: INFO/jdwp(584): Ignoring second debugger -- accepting and dropping 07-30 17:34:22.743: INFO/jdwp(624): Ignoring second debugger -- accepting and dropping 07-30 17:34:22.752: INFO/jdwp(627): Ignoring second debugger -- accepting and dropping 07-30 17:34:22.762: INFO/jdwp(652): Ignoring second debugger -- accepting and dropping 07-30 17:34:22.774: INFO/jdwp(671): Ignoring second debugger -- accepting and dropping 07-30 17:34:22.782: INFO/jdwp(681): Ignoring second debugger -- accepting and dropping 07-30 17:34:22.812: INFO/jdwp(702): Ignoring second debugger -- accepting and dropping 07-30 17:34:22.852: INFO/jdwp(735): Ignoring second debugger -- accepting and dropping Exiting DDMS does not produce further logcat ouput. Would netstat results help here at all? On Jul 30, 1:11 pm, fadden fad...@android.com wrote: On Jul 30, 7:14 am, shaun shashepp...@gmail.com wrote: =The emulator is 1.5 avd with an SD card. =I have a G1 device also. [...] =The Info tab of DDMS has DDM-aware? no for each child entry in the left pane Is anything peculiar coming out of logcat, e.g. complaints of multiple connection attempts? I'm wondering if there's another copy of DDMS lurking and preventing you from connecting. --~--~-~--~~~---~--~~ 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: ListView: invisible dividers still take up space. Is it a bug or a feature?
but the code related to the layout of the children seems to ignore the presence of disabled items. It's reserving space for dividers that will not be drawn by dispatchDraw. Maybe this is intended as well. But anyway, I wish it was intended (and implemented) the other way ;) This is the intended behavior. -- 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: DDMS Allocation Tracker - Start Tracking Disabled
I just exited eclipse and ddms then the emulator from the command line, and ddms from the command line and it looks to work. eclipse must be running ddms also causing multiple instances to run when I ran ddms from command line like you mentioned. I guess I have to figure out how to use the one inside eclipse or just go straight command line. Either way, thank you. On Jul 30, 1:56 pm, shaun shashepp...@gmail.com wrote: I start with eclipse running, emulator not running, ddms not running. I then run my application on emulator (I don't know if the eclipse plugin will start some ddms process at that time or not). Just looking around logcat for errors or strange occurrences and I see quite a few errors and warnings, but they really do not seem to pertain to this issue. I can list all of them out if it can help, but for now I will list a few that I thought have a slight chance at being pertinent: 07-30 17:32:35.153: ERROR/vold(550): Error opening switch name path '/ sys/class/switch/test2' (No such file or directory) 07-30 17:32:35.153: ERROR/vold(550): Error bootstrapping switch '/sys/ class/switch/test2' (m) 07-30 17:32:35.153: ERROR/vold(550): Error opening switch name path '/ sys/class/switch/test' (No such file or directory) 07-30 17:32:35.153: ERROR/vold(550): Error bootstrapping switch '/sys/ class/switch/test' (m) 07-30 17:32:35.173: ERROR/flash_image(557): can't find recovery partition 07-30 17:32:49.484: ERROR/MemoryHeapBase(584): error opening /dev/ pmem: No such file or directory 07-30 17:32:49.593: WARN/HAL(584): load: module=/system/lib/hw/ copybit.goldfish.so error=Cannot find library 07-30 17:32:49.593: WARN/HAL(584): load: module=/system/lib/hw/ copybit.default.so error=Cannot find library 07-30 17:32:49.593: WARN/SurfaceFlinger(584): ro.sf.lcd_density not defined, using 160 dpi by default. 07-30 17:32:49.613: WARN/HAL(584): load: module=/system/lib/hw/ copybit.goldfish.so error=Cannot find library 07-30 17:32:49.613: WARN/HAL(584): load: module=/system/lib/hw/ copybit.default.so error=Cannot find library 07-30 17:32:49.613: WARN/HAL(584): load: module=/system/lib/hw/ overlay.goldfish.so error=Cannot find library 07-30 17:32:49.613: WARN/HAL(584): load: module=/system/lib/hw/ overlay.default.so error=Cannot find library Then I started DDMS from the command line and the following output showed up in the logcat: 07-30 17:34:22.712: INFO/jdwp(584): Ignoring second debugger -- accepting and dropping 07-30 17:34:22.743: INFO/jdwp(624): Ignoring second debugger -- accepting and dropping 07-30 17:34:22.752: INFO/jdwp(627): Ignoring second debugger -- accepting and dropping 07-30 17:34:22.762: INFO/jdwp(652): Ignoring second debugger -- accepting and dropping 07-30 17:34:22.774: INFO/jdwp(671): Ignoring second debugger -- accepting and dropping 07-30 17:34:22.782: INFO/jdwp(681): Ignoring second debugger -- accepting and dropping 07-30 17:34:22.812: INFO/jdwp(702): Ignoring second debugger -- accepting and dropping 07-30 17:34:22.852: INFO/jdwp(735): Ignoring second debugger -- accepting and dropping Exiting DDMS does not produce further logcat ouput. Would netstat results help here at all? On Jul 30, 1:11 pm, fadden fad...@android.com wrote: On Jul 30, 7:14 am, shaun shashepp...@gmail.com wrote: =The emulator is 1.5 avd with an SD card. =I have a G1 device also. [...] =The Info tab of DDMS has DDM-aware? no for each child entry in the left pane Is anything peculiar coming out of logcat, e.g. complaints of multiple connection attempts? I'm wondering if there's another copy of DDMS lurking and preventing you from connecting. --~--~-~--~~~---~--~~ 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: Separating Widget from main Application
Make sure this doesn't just happen when you launch from Eclipse - this is actually a pretty useful feature for development. Michael --~--~-~--~~~---~--~~ 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: MediaScannerConnectionClient which content provider?
Sounds good. Is there a way to specify which database I'd like the MediaScannerConnectionClient to use? On Jul 29, 6:56 pm, Marco Nelissen marc...@android.com wrote: On Wed, Jul 29, 2009 at 8:26 AM, Sonja_android pubmoonm...@gmail.comwrote: I am using the MediaScannerConnection and corresponding MediaScannerConnectionClient to scan and add an audio file to the MediaStore content provider. How do I know which database the file will be added to? Will it use the INTERNAL_CONTENT_URI or EXTERNAL_CONTENT_URI? The Uri that you get back will tell you which database it was added to. --~--~-~--~~~---~--~~ 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] Modifying the built-in Alarm Clock. No way to return to the snooze/dismiss dialog.
(Please excuse my imperfect English) Hi. I'll get straight to the point. I downloaded the built-in Alarm Clock source and trying to modify it so that user need to play mini game in order to stop the alarm. What I did: 1. I removed the dismiss and snooze button. (so user will have no choice but to play mini-game to stop the alarm) 2. I also remove all dismiss() and snooze() from the dispatchKeyEvent () method. to ensure that the alarm won't stop even the user press back button and return to Home screen. 3. Now I plan to put my game in place of this alarm alert dialog(the one that come up when an alarm goes off) All I did is just for that - user will have no choice but to play mini-game to stop the alarm Problem: - alarm goes off. - I press 'back' button. The alert dialog(which soon will be my mini- game) disappear and return to Home screen. - Now I have no way to return to the dialog(my mini-game). And the alarm is still ringing... May I have some pointers? I've tried android:alwaysRetainTaskState=true but still no luck. Thank you 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: what's wrong in this code
it is causing a problem in Thread.sleep (2000); but why ? please if any body explain On Jul 30, 11:23 pm, riz rizcs...@gmail.com wrote: I m just trying to call drawScore method from another Thread . drawScore method just changes the text of textView but it's not working .any idea ? On Jul 30, 11:20 pm, rizwan rizcs...@gmail.com wrote: it is not working . I don't know why please advise at your earliest. I m stuck here . public myclass extends Activity implements ICounter{ TextView view ; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); view = new TextView(this); view.setTextSize(25); view.setTextColor(Color.YELLOW) ; view.setText(Starting Counter.. ) ; setContentView(view) ; CounterManager manager = CounterManager.getcounterManager() ; manager.setCounterListener(this); manager.start(); } @Override public void drawScore(String Score) { // TODO Auto-generated method stub view.setText(Score ) ; } } public class counterManager implements Runnable{ private static counterManager instance ; IForce force ; public static forceManager getcounterManager(){ if(instance == null) instance = new CounterManager(); return instance ; } public void setCounterListener(IForce force) { this.force = force ; } public void start(){ Thread t = new Thread(this) ; t.start() ; } @Override public void run() { // TODO Auto-generated method stub for(int counter = 0 ; counter = 20 ; counter ++) { try { Thread.sleep(2000) ; } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); } force.drawScore(String.valueOf(counter)) ; } } }- Hide quoted text - - Show quoted text -- 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] OPHOne JIL widgets and Android
I have a question.. It appears that OPHOne has JIL web widgets.. Since OPHone is base don andorid OS has anyone started work on supporting JIL web widget sdk/api in Android ? Fred Grott http://mobilebytes.wordpress.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] SoftKeyboard doesn't appear on AlertDialog
Hi, I have one EditText inside one AlertDialog. When the EditText has focus the SoftKeyboard doesn't appear with vertical screen orientation. I have other EditTex in a common Layout and this works fine. Someone with same problem? --~--~-~--~~~---~--~~ 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 use adb tool on SAMSUNG GALAXY?
Hi, I got this working in windows XP (french), but not following any of the suggestions I have seen so far exactly: 1) Set the device in debug mode, under applications (mentioned everywhere, clearly required) 2) Install Samsung New PC Studio (not sure this actually did anything useful...) 3) Install the USB Driver from the Samsung New PC Studio disk (not sure this actually did anything useful...) 4) Modify the android_usb.inf file in the android SDK folder (C: \Program Files\android-sdk-windows-1.5_r3\usb_driver \x86\android_usb.inf, for 32-bit windows), ALMOST exactly as da yang specified in the first post of this thread: add under [Google.NTx86]: ; SAMSUNG GALAXY %USB\VID_04E8PID_6640.DeviceDescRelease%=androidusb.Dev, USB \VID_04E8PID_6640 %USB\VID_04E8PID_6640MI_04.DeviceDescRelease%=androidusb.Dev, USB \VID_04E8PID_6640MI_01 %USB\VID_04E8PID_6640.DeviceDescRelease%=androidusb.Dev, USB \VID_04E8PID_6640 and add under [Strings]: USB\VID_04E8PID_6640.DeviceDescRelease=SAMSUNG GALAXY USB\VID_04E8PID_6640MI_04.DeviceDescRelease=SAMSUNG GALAXY Composite ADB Interface USB\VID_04E8PID_6640.DeviceDescRelease=SAMSUNG GALAXY Bootloader NOTE: the only change with respect to da yang's original entries were replacing MI_01 with MI_04 in all entries. When originally trying da yang's suggestions the INF file was not working for me, and looking into the unknown device's properties I noticed this discrepancy. 5) plug in the phone, allow all the USB mass storage and standard samsung drivers to install, and finally when you are asked for drivers for an unknown device, point windows to your C:\Program Files\android- sdk-windows-1.5_r3\usb_driver\x86\ folder with your modified INF file (assuming 32-bit windows). If windows recognizes the device, great! If it complains that the INF file does not contain information for the device, or something like that, try looking at the properties of the unknown device in device manager - you might have a different device signature. After windows successfully recognized the device, I was able to debug in Eclipse connected directly to my phone - very cool. I guess adb started recognizing it, but I honestly haven't messed with the command- line tools yet - I can just confirm that the fully integrated Eclipse / Android SDK / Android Plugin debug environment works perfectly. One other note that might be relevant: I used the Samsung New PC Studio software to update my Galaxy to the latest image BEFORE I did any of this; I suspect that may be what caused the discrepancy in terms of device signature with respect to da yang's original notes, but I can't be sure. Hopefully this helps someone out there! Best regards, Tao On Jul 28, 3:27 am, f_heft delphik...@gmail.com wrote: Hello, it seems like most of the users in the german android-hilfe.de board got it running perfectly under nearly every windows operating system (XP, Vista 32/64, Win7 32/64). I thought I were the only one who has still problems. I tried it so many times, uninstalled all old drivers, tried new ones etc., but I ddms or 'adb devices' still doesn't list my galaxy (on Win 7 x64) On 26 Jul., 23:55, Akex alexis.v...@gmail.com wrote: Hi, @Xavier : Seems the adb of r3 doesn't work perfectly for Samsung. Tried on Xp and seven After tweaking the .inf file to install drivers for my Samsung i7500 (otherwise Windows doesn't accept the drivers), I can't manage to make my phone visible under ddms (Under Windows XP). I have the last SDK on my computer off course (1.5 r3). Is anybody able to see his Samsung phone under ddms on XP ? My build : 76XXCSDCBALUM6375 Thanks Akex- 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] convertView with wrong type
I hope someone can share some light on a issue I have with using the convertView that is supplied by the BaseAdapter. The problem is that I have a couple of different listviews in my app. When using the convertView with listviews that only shows one type everything works fine, and I experience a big performance increase. Nice! However I also have a listview that can show 4 different types of views, and I see that getView is supplied with a convertView that is of the wrong type. In my BaseAdapter implementation I have added the following: @Override public int getItemViewType(int position){ LiveStreamElement elem = liveStreamElements.get(position); switch(elem.getElementType()){ case TYPE_A: return 0; case TYPE_B: return 1; case TYPE_C: return 2; case TYPE_D: return 3; default: return -1; } } @Override public int getViewTypeCount(){ return 4; } From the log I can see that the correct types are returned in getItemViewType, but nevertheless the convertView that is supplied in the getView method is not guaranteed to be of the right type. Ex if I add elements to the list and call notifyDataSetChanged on the list, sometimes the views in the list will switch positions. The strange thing is that for the most part it seems to work when I scroll, but if I reload the list, some elements might have changed places. If I change the layout of the screen, ex adds a view beneath the listview, which then forces the listview to be redrawn, its elements will ‘sometimes’ exchange places too. I really hope somebody can share some light on this issue…this thing should be rather simple, but it is driving me nuts :D Any input is much very appreciated :) Klaser --~--~-~--~~~---~--~~ 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] Database problems...
Hi there I am trying to create a database with two tables. Employees and Computers. A spinner with employee names fill properly when I don't try create and do anything with the second table... The code to create is: private static class DBOpenHelper extends SQLiteOpenHelper { private static final String CREATE_TABLE_USERS = create table + TABLE_USERS + ( + USER_KEY_ID + integer primary key autoincrement, + USER_KEY_USER + text not null, + USER_KEY_PIN + string);; private static final String CREATE_TABLE_ACCOUNTS = create table + TABLE_COMPUTERS + ( + ACC_KEY_ID + integer primary key autoincrement, + ACC_KEY_USERID + integer not null, + ACC_KEY_COMP_SERIAL + text not null);; public DBOpenHelper(Context context, String name, CursorFactory factory, int version) { super(context, name, factory, version); } @Override public void onCreate(SQLiteDatabase _db) { _db.execSQL(CREATE_TABLE_USERS); _db.execSQL(CREATE_TABLE_COMPUTERS); } Is there somehting I am doing wrong during the creating, as the rest of the code (to read data) is exactly the same... but I can't figure it out. Please help!!! Thanks in advance, Neil --~--~-~--~~~---~--~~ 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] simple twitter query
Just trying to search for a user's latest public twitter post. I have not worked with http in java before, so I don't know how it all comes together with http gets and requests, and such. I just want to get the latest post from a user (say Fred1000), in the form of a json object. If there is a callback ( i assume it is asynchronous) if you could include that, as well as any imports, that would be great. I'd prefer not to use a library like jtwitter at this point, as I want to really see what's going on. thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Custom tabs issue
I could not find a straightforward way to do that, I use reflection APIs to get rid of it. TabWidget tw = getTabWidget(); Field mBottomLeftStrip; Field mBottomRightStrip; try { mBottomLeftStrip = tw.getClass().getDeclaredField (mBottomLeftStrip); mBottomRightStrip = tw.getClass().getDeclaredField (mBottomRightStrip); if(!mBottomLeftStrip.isAccessible()) { mBottomLeftStrip.setAccessible(true); } if(!mBottomRightStrip.isAccessible()){ mBottomRightStrip.setAccessible(true); } mBottomLeftStrip.set(tw, getResources().getDrawable (R.drawable.transparent_background)); mBottomRightStrip.set(tw, getResources().getDrawable (R.drawable.transparent_background)); } catch (Exception e) { e.printStackTrace(); } --Pushkar On Jul 28, 11:32 am, Dandroid danil...@gmail.com wrote: I've set the background image of my tabs using: tabs.getTabWidget().getChildAt(index).setBackgroundResource(resource) and then modified the dimensions of the tabs using: tabs.getTabWidget().getChildAt(index).getLayoutParams().height = height; tabs.getTabWidget().getChildAt(index).getLayoutParams().width = width; This worked out great, but there is a line (like a border) under (all) thetabbuttons that I cannot make invisible. Is there any theme that can be applied in order to make it go away? --~--~-~--~~~---~--~~ 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] cropping and changing images on a soft keyboard
Hi, I am trying to crop an image on a key for a soft keyboard. i want to do the following: 1.create a key with an icon (from a Bitmap) 2.take that Bitmap and crop it 3.set the new Bitmap back on the key as an icon Optional: 4.do some or most of this from the XML using the parser (i could not get a hook to the res/drawable/image name looking at the Xml Parser) here is what i do: protected Key createKeyFromXml(Resources res, Row parent, int x, int y, XmlResourceParser parser) { Key key = new MyKey(res, parent, x, y, parser);//create a normal key Bitmap orgBmp = BitmapFactory.decodeResource(res, R.drawable.sym_keyboard_delete);//i took a new hard-coded image here, but prefer this to be coming from the xml instead, in the MyKey constructor) Bitmap cropedBitmap = Bitmap.createBitmap(orgBmp, 0, 0, 20, 10); //crop the image Canvas canvas = new Canvas(cropedBitmap);//put it in a canvas, since draw() only accepts canvas if(key.icon!=null){ //if icon exists, draw it back on the key key.icon.draw(canvas); } return key; } Any ideas why this does not work? any simpler solutions for this? Thanks, -- -- Yaron Spektor --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---