[android-developers] Re: Maintaining two Eclipse installs with two Android SDKs
Thanks, I'll look into that. Cheers! On May 19, 6:44 pm, Raphael r...@android.com wrote: With Eclipse 3.3, the plugins are installed in the Eclipse directory. With Eclipse 3.4 and P2 there's a common pool of plugin and specific instances per Eclipse directory. The plugins preferences are however associated with the workspace. In your case you need to have 2 different plugins so you should have the following: - One install of Eclipse 3.4 with the ADT 0.8 plugin - One workspace with the SDK 1.1 pref for that Eclipse install - Another install of Eclipse 3.4 with the ADT 0.9 plugin - Another workspace with the SDK 1.5 pref for the other Eclipse install R/ On Tue, May 19, 2009 at 6:24 PM, nEx.Software justin.shapc...@gmail.com wrote: I've always found that the Workspace holds reference to the Android SDK location so if you are using a different Workspace you should even be able to use just the one install of Eclipse. I am working on Windows but would image that the same would apply to Mac... On May 19, 9:17 am,KeithWileykbwi...@gmail.com wrote: I need to keep the old Android 1.1_r1 SDK around because I have an app that won't build with the 1.1 SDK included with the 1.5 SDK (Actually, it builds, but the newer Dalvik converter won't convert it, error 2, no other feedback as to the problem in Eclipse's console). So I have two completely separate Eclipse installations. However, they seem to share at least *some* preferences (this is on OS X btw), namely, the Android SDK location preference. Is this going to work? I can switch the SDK location preference back and forth as I use the two different versions of Eclipse if I have to (a little annoying I suppose), but are there larger issues I need to worry about? Are there any other really serious problems, perhaps as yet unanticipated, with maintaining two different Eclipse installs using two different Android SDKs? 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: java.lang.VerifyError
I'm having the same problem. There's got to be a better solution then just avoid usages of classes that dalvik fails to load. On May 18, 4:17 pm, Todd Sjolander guyfantas...@gmail.com wrote: That error happens when the dalvik VM loads a class into memory. If you look into the log, you can find exactly what class is causing the problem. I had that problem recently and found that android.text.format.Time doesn't load for me. I think the only way around it is to avoid using the class. For me, it was easy to avoid. You may not have such good luck, I'm sorry to say. Todd Sjolander --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] lots of image to be textured on rotating cube opengl es
now i have lots of pictures to be textured on a Cube.there are four faces to be textured:the front ,back ,left and right?when the cube rotates 360 then load the next four picture and texture them.the method above have a problem :the convertion of every four pictures is not fluent。I think the multithread can work now ,but i am not familiar with it .so can some body give me a example about it ? 现在有很多图片要贴到一个旋转中的立方体的前后左右四个面上,我现在的做法是:先载入四张图片,再贴到立方体上,等立方体旋转一圈后,再载入接着的四张 图片,再贴,类推直到贴完,但这样有一个问题就是载入图片和贴图是顺序的,导致由前4张到后4张过度时会显示卡,为此开个子线程去专门做载入纹理的工 作,这有一个子线程与UI线程的同步问题,UI(主)线程要等到子线程载入纹理工作完成才能去使用纹理贴图,求线程同步的例子。 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Setup eclipse project for android source
Hi, I am following the following article to setup eclipse project for androi source http://source.android.com/using-eclipse But what should I set my eclipse output folder for my project to be? If I just use the .classpath file as it is in the development/ide directory, eclipse tries to compile the whole project everytime I change 1 line in 1 file. I am not sure why this is happening? Thank you for any tip. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: android.util.SparseArray space time complexity properties
I will write some test to check wich one is faster,i understand that the unboxing/boxing is not really fast. Thanks for the info! 2009/5/20 Romain Guy romain...@google.com HashMap can indeed be faster than SparseArray. However, and this is very important, SparseArray does not require boxing/unboxing of primitive types which prevents allocations and thus prevents the GC to stop your games for hundreds of milliseconds. That is much more valuable :) On Tue, May 19, 2009 at 3:04 PM, TjerkW tje...@gmail.com wrote: I need a map from int to certain objects. I wanted to use the HashMap, but in the documentation of SparseArray it says that SparseArray is intented to be *more efficient*: http://developer.android.com/reference/android/util/SparseArray.html However i think the documentation is not entirely correct and needs more info: When reviewing the sourcecode of SparseArray and comparing it with the HashMap i come to the following conclusion Source code of Sparse Array: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob_plain;f=core/java/android/util/SparseArray.java;hb=HEAD For SpareArray: Time complexity for reads and writes on a map of size N is log2(N) + 1, However the time complexity for a HashMap of size N is C*N (where C is a constant) (according to the javadoc http://java.sun.com/j2se/1.4.2/docs/api/java/util/HashMap.html) So maybe SparseArray is more efficient with respect to space complexity it is not for time complexity. So for programs that need high performance a HashMap may be better. At least thats what i think. Am i right? Am i wrong? I need a very fast implementation for my game :-) -- 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 -- -- Tjerk Wolterink @ GMail --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Ideas behind Android's task concept
Hey Mike, no, this also happens on my G1 ;-( Cheers, Mariano On Sun, May 10, 2009 at 1:36 PM, Mike Hearn mh.in.engl...@gmail.com wrote: If you press back and arrive at the same activity you started on, I think that's a bug that I've only seen when using Eclipse to develop. I think if you press back as far as you can possibly go, until you reach the home screen, then run the app from the phone (not from eclipse) it will behave normally. Running the app from the IDE seems to screw around with the task stack for some reason. On May 9, 3:49 pm, Mariano Kamp mariano.k...@gmail.com wrote: I still don't get it ;-( I have the top level activity, let's call it A, that is used by the launcher and have the android:clearTaskOnLaunch attribute set to true. A drills down to B and B to C. Now when I am on activity C and switch to Gmail and back to my app/task then C is up. If I launch the task activity A is displayed not C, which is what I want. But when pressing Back on A I get to A again. That doesn't seem right to me. Shouldn't A have been cleared too, so that Back would return me to the launch screen? On Fri, May 8, 2009 at 5:08 PM, Mariano Kamp mariano.k...@gmail.com wrote: Isn't that the same model that is used on the Desktop?Launching an app usually puts you in a clean state, but switching back to a running instance (Alt/Cmd+Tab) brings you to the screen of the app you were most recently on.That makes perfect sense to me. Actually now that I learned about android:clearTaskOnLaunch [use in contacts http://android.git.kernel.org/?p=platform/packages/apps/Contacts.git;...] here, I can finally try to get my app to behave like I would expect it to. This discussion is very enlightening. Dianne that would be a great topic for a blog post of yours, wouldn't it? ;-) On Fri, May 8, 2009 at 3:07 PM, Mike Hearn mh.in.engl...@gmail.com wrote: As far as contacts goes, though, this is actually intentional -- some apps (like contacts and settings) want to put the user back to their front door when relaunched from home, so they set the option to do that. This is actually a desired inconsistency. Right, I realise it's intentional. What I'm unclear on is, why these apps are special? I presume usability testing revealed this is the behavior users expected. In which case why not reset task stacks for every app? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 solve G1/HTC Magic not recognized by ADB under Windows
This doesn't seem to fix the problem I have on Vista 32 bit. This could be related to some undeletable keys in the registry called VID_0BB4PID_0C02 I've tried deleting them and I get and Error while deleting key, I've tried altering the permissions and I get Access is denied (this is when regedit is started from a command prompt that was started with Run as Administrator). In Safe mode I get a blanket permission denied message when trying to just edit the keys. Al. --- * Written an Android App? - List it at http://andappstore.com/ * == Funky Android Limited is registered in England Wales with the company number 6741909. The registered head office is Kemp House, 152-160 City Road, London, EC1V 2NX, UK. The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries. -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of Raphael Sent: 19 May 2009 22:57 To: android-developers@googlegroups.com Subject: [android-developers] How to solve G1/HTC Magic not recognized by ADB under Windows If you don't use Windows or adb has no problem with your device, please skip this. If your G1 or HTC Magic is not properly recognized by ADB under Windows, please read this. The bottom line: Please make sure to enable Home Settings Applications Development USB debugging on your G1 or HTC Magic *before* you plug it in Windows the very first time. If you read this after the fact, googling why adb doesn't recognize my device under Windows, here are the steps to fix it: This concerns both the G1 and HTC Magic and all flavors of Windows. 1- Remove existing drivers: 1a- Plug your phone 1b- Open the Device Manager 1c- Remove any driver for [ADB Interface HTC Composite ADB Interface] and [Disk Drives HTC Android Phone USB Device] if you see them 1d- Unplug phone 2- Edit the registry 2a- Disclaimer: be careful what you do in regedit. If you're not sure, don't use it :-) 2b- Open the Registry Editor (Start search/run regedit) 2c- You _may_ need to be administrator to do that 2d- Search for vid_0bb4pid_0c02 in keys or values. It makes take a while. If you find in a value, delete the whole key folder. 2e- Some keys might be locked: right-click them and add everyone: full control to the permissions. Then delete the key folder. 2f- Repeat the search till no more instances are found. 2g- Close regedit. 3- Before your plug in your phone: 3a- Make sure to enable Home Settings Applications Development USB debugging on your G1 or HTC Magic 3b- Plug the phone in. Windows should now ask you for a driver 3c- Do NOT selected to search the Windows Update. Instead select I will choose a driver or the equivalent. 3d- Make sure to give the *full* path to the x86 or x86_64 driver, e.g: SDK/usb_driver/x86/ or SDK/usb_driver/x86_64/ If you just select SDK/usb_driver, Windows might take the wrong architecture and complain the driver can't be installed. Thanks for those who reported the issue and helped me solve it. Relevant threads: http://groups.google.com/group/android-beginners/browse_thread/thread/8f99c245c78af3ab/54f9bf343ada8cfd http://groups.google.com/group/android-developers/browse_thread/thread/ab6e89c4b51cd905/36d3f4a8dcc0e144 R/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 solve G1/HTC Magic not recognized by ADB under Windows
For those having trouble deleting keys in vista, you might want to try the tip at; http://forums.techarena.in/vista-help/1075752.htm#post4093603 Al. --- * Written an Android App? - List it at http://andappstore.com/ * == Funky Android Limited is registered in England Wales with the company number 6741909. The registered head office is Kemp House, 152-160 City Road, London, EC1V 2NX, UK. The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries. -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of Raphael Sent: 19 May 2009 22:57 To: android-developers@googlegroups.com Subject: [android-developers] How to solve G1/HTC Magic not recognized by ADB under Windows If you don't use Windows or adb has no problem with your device, please skip this. If your G1 or HTC Magic is not properly recognized by ADB under Windows, please read this. The bottom line: Please make sure to enable Home Settings Applications Development USB debugging on your G1 or HTC Magic *before* you plug it in Windows the very first time. If you read this after the fact, googling why adb doesn't recognize my device under Windows, here are the steps to fix it: This concerns both the G1 and HTC Magic and all flavors of Windows. 1- Remove existing drivers: 1a- Plug your phone 1b- Open the Device Manager 1c- Remove any driver for [ADB Interface HTC Composite ADB Interface] and [Disk Drives HTC Android Phone USB Device] if you see them 1d- Unplug phone 2- Edit the registry 2a- Disclaimer: be careful what you do in regedit. If you're not sure, don't use it :-) 2b- Open the Registry Editor (Start search/run regedit) 2c- You _may_ need to be administrator to do that 2d- Search for vid_0bb4pid_0c02 in keys or values. It makes take a while. If you find in a value, delete the whole key folder. 2e- Some keys might be locked: right-click them and add everyone: full control to the permissions. Then delete the key folder. 2f- Repeat the search till no more instances are found. 2g- Close regedit. 3- Before your plug in your phone: 3a- Make sure to enable Home Settings Applications Development USB debugging on your G1 or HTC Magic 3b- Plug the phone in. Windows should now ask you for a driver 3c- Do NOT selected to search the Windows Update. Instead select I will choose a driver or the equivalent. 3d- Make sure to give the *full* path to the x86 or x86_64 driver, e.g: SDK/usb_driver/x86/ or SDK/usb_driver/x86_64/ If you just select SDK/usb_driver, Windows might take the wrong architecture and complain the driver can't be installed. Thanks for those who reported the issue and helped me solve it. Relevant threads: http://groups.google.com/group/android-beginners/browse_thread/thread/8f99c245c78af3ab/54f9bf343ada8cfd http://groups.google.com/group/android-developers/browse_thread/thread/ab6e89c4b51cd905/36d3f4a8dcc0e144 R/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 solve G1/HTC Magic not recognized by ADB under Windows
Although even this didn't fix the problem. I still get Windows was able to successfully install device driver software, but the driver software encountered a problem when it tried to run. The problem code is 10. Raphael, if you want the Check for solutions log file which has all my devices listed let me know and I'll email it to you along with the .inf file windows is trying to use (which is the one from the 1.5_r1 SDK). Al. --- * Written an Android App? - List it at http://andappstore.com/ * == Funky Android Limited is registered in England Wales with the company number 6741909. The registered head office is Kemp House, 152-160 City Road, London, EC1V 2NX, UK. The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries. -Original Message- From: Al Sutton Sent: 20 May 2009 08:51 To: 'android-developers@googlegroups.com' Subject: RE: [android-developers] How to solve G1/HTC Magic not recognized by ADB under Windows For those having trouble deleting keys in vista, you might want to try the tip at; http://forums.techarena.in/vista-help/1075752.htm#post4093603 Al. --- * Written an Android App? - List it at http://andappstore.com/ * == Funky Android Limited is registered in England Wales with the company number 6741909. The registered head office is Kemp House, 152-160 City Road, London, EC1V 2NX, UK. The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries. -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of Raphael Sent: 19 May 2009 22:57 To: android-developers@googlegroups.com Subject: [android-developers] How to solve G1/HTC Magic not recognized by ADB under Windows If you don't use Windows or adb has no problem with your device, please skip this. If your G1 or HTC Magic is not properly recognized by ADB under Windows, please read this. The bottom line: Please make sure to enable Home Settings Applications Development USB debugging on your G1 or HTC Magic *before* you plug it in Windows the very first time. If you read this after the fact, googling why adb doesn't recognize my device under Windows, here are the steps to fix it: This concerns both the G1 and HTC Magic and all flavors of Windows. 1- Remove existing drivers: 1a- Plug your phone 1b- Open the Device Manager 1c- Remove any driver for [ADB Interface HTC Composite ADB Interface] and [Disk Drives HTC Android Phone USB Device] if you see them 1d- Unplug phone 2- Edit the registry 2a- Disclaimer: be careful what you do in regedit. If you're not sure, don't use it :-) 2b- Open the Registry Editor (Start search/run regedit) 2c- You _may_ need to be administrator to do that 2d- Search for vid_0bb4pid_0c02 in keys or values. It makes take a while. If you find in a value, delete the whole key folder. 2e- Some keys might be locked: right-click them and add everyone: full control to the permissions. Then delete the key folder. 2f- Repeat the search till no more instances are found. 2g- Close regedit. 3- Before your plug in your phone: 3a- Make sure to enable Home Settings Applications Development USB debugging on your G1 or HTC Magic 3b- Plug the phone in. Windows should now ask you for a driver 3c- Do NOT selected to search the Windows Update. Instead select I will choose a driver or the equivalent. 3d- Make sure to give the *full* path to the x86 or x86_64 driver, e.g: SDK/usb_driver/x86/ or SDK/usb_driver/x86_64/ If you just select SDK/usb_driver, Windows might take the wrong architecture and complain the driver can't be installed. Thanks for those who reported the issue and helped me solve it. Relevant threads: http://groups.google.com/group/android-beginners/browse_thread/thread/8f99c245c78af3ab/54f9bf343ada8cfd http://groups.google.com/group/android-developers/browse_thread/thread/ab6e89c4b51cd905/36d3f4a8dcc0e144 R/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to make second DDMS work on the PC which already running a DDMS?
Hi, you could try setting up a virtual machine and run a second dev- sys in there... there are quite some VM, but i can recommend vmware player, which Is free. you can find a lot of howtos with Google. Cheers siddian On May 16, 2:33 pm, gan gan_xiao_...@yahoo.com wrote: Hi: Not sure if anyone has same problem: When one person debugging android application on a PC, emulator-5554 === DDMS A === Eclipse A can communicate well. When the second person want to debug application on another emulator on the same PC emulator-5556 === DDMS B Eclipse B The DDMS B can't communicate to emulator-5556 rightly. Seems emulator-5554 and emulator-5556 both controlled by DDMS A How to resolve this problem? Thanks gan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Shipping to Hong Kong
Com'on anybody? And, if I get it re-directed from another country, is there any chance that it won't work at all? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] debugger not working
Im working on a widget, I'm using eclipse and windows vista 64 bit. I run the app in debug mode and I put a breakpoint on the context.startService line below but the app isn't stopping. My widget is displaying as expected, just showing my frame and some text saying loading. public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { // TODO Auto-generated method stub //super.onUpdate(context, appWidgetManager, appWidgetIds); context.startService(new Intent(context,UpdateService.class)); } When I am running the emulator my console gets spammed with messages like this, even when im not in debug mode. [2009-05-20 03:02:38 - ddms]Can't bind to local 8643 for debugger any insight would be very appreciated! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: already set uses-sdk but market won't accept
I had similar issues, read all that stuff about positioning it correctly in the XML, and did not work either. Then I upgraded to the newest SDK 1.5_r1 and everything worked. On 7 Mai, 06:05, anuraguni...@yahoo.com anuraguni...@yahoo.com wrote: ok i will try putting right under manifest but that is non-sense, why should order of nodes matter in manifest and official doc doesn't say anything abt it? Any one from android-dev listening?? On May 7, 2:36 am, Mariano Kamp mariano.k...@gmail.com wrote: You need to put it in the right place. More info here:http://lmgtfy.com/?q=minSdkVersion On Wed, May 6, 2009 at 2:31 PM, anuraguni...@yahoo.com anuraguni...@yahoo.com wrote: i have already set minSdkVersion in mymanifest xml. here is the appt dump E: manifest (line=2) A: android:versionCode(0x0101021b)=(type 0x10)0x2 A: android:versionName(0x0101021c)=1.1.0 (Raw: 1.1.0) A: package=com.askagent.webcritic (Raw: com.askagent.webcritic) E: application (line=4) A: android:label(0x01010001)=...@0x7f040001 A: android:icon(0x01010002)=...@0x7f020001 E: activity (line=5) A: android:label(0x01010001)=...@0x7f040001 A: android:name(0x01010003)=.WebCritic (Raw: .WebCritic) E: intent-filter (line=7) E: action (line=8) A: android:name(0x01010003) =android.intent.action.MAIN (Raw: android.intent.action.MAIN) E: category (line=9) A: android:name(0x01010003) =android.intent.category.LAUNCHER (Raw: android.intent.category.LAUNCHER) E: uses-permission (line=14) A: android:name(0x01010003)=android.permission.INTERNET (Raw: android.permission.INTERNET) E: uses-sdk (line=15) A: android:minSdkVersion(0x0101020c)=(type 0x10)0x1 so whymarketsays Marketrequires the minSdkVersion to be set in AndroidManifest.xml. The server could not process your apk. Try again. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: “The application xxxxxxxx (process xxxxxx) has stopped unexpectedly. Please try again .”
Can some one please tell me , how do u read the log file or logs ... which the Log.i methods writes to ? Also , I have used the exact code as documented at Android site for Hello View , to load google.com and load a basic html page created by me . The app does not show any error ,BUT it does not show any content on the screen . Can some one help out , i am stuck on it for 2 days . --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] webview contentwidth
Hi, Is there anyway to get the measured width of a webview's rendered html. There is a getContentHeight method that gets the height but there doesn't seem to be a analogous method for widths. Thanks, Bob --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Getting the manifest.xml of applications from the market?
Hi there, is there some way to retrieve the manifest.xml of an application from the market, without installing the application? I think the official Market Application somehow get this file (or at least parts of it) to show needed permissions, etc. before installing. I'd be interested in seeing the IntentFilters defined by applications and their activities and processing this information in my application. thanks, Brian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: youtube on android
Hi Ebin, my reply is a bit late, but maybe it helps you. While Youtube uses a flash player on the web to play its videos, the video itself is encoded with some codec. To play it back in an application, you would not need full flash support (with all that SWF- Vectorgraphics-Actionscript stuff) but you would need to get the raw video data, and then some code that plays back this video. Flash would not be involed in any way then. There are Firefoxplugins and other desktop software which allow to save/download videos from youtube. Not sure if this is allowed by law and by the youtube agreements, but it shows that access to the raw video is possible. Maybe you can do some research in this direction... - Brian On 8 Mai, 06:55, ebin jose ebinjose...@gmail.com wrote: Hi Brian, Thanks for the reply. But I think I didn't make myself clear. We are developing a portable media player using android. we wanted to add youtube playback capability also. So i thought of adding new application which can access and playback youtube content. I couldn't see any application available in androd market. I heard about flash player port news (from adobe). I guess that code is not released yet. I was checking if there is an alternative way to playbackyoutubevideo's on android ? Is there an application that supports flash content playback on android already (though I couldn't find any on android market or related sites) or any development work is underway ? Thanks, Ebin. On Thu, May 7, 2009 at 6:28 PM, brian.schimmel brian.schim...@googlemail.com wrote: Hi Ebin, this is actually very easy. Real phones (developer and user phones) come with a preinstalled youtube application that performs very well. On the emulator, it is not present as far as I remember. If you want to lauch youtube from within your application, maybe this thread helps you: http://groups.google.com/group/android-developers/browse_thread/threa... On 4 Mai, 06:51, ebinjose...@gmail.com ebinjose...@gmail.com wrote: Hi All, I want to playbackyoutubevideos on android. I came to know (from the below mentioned link) that adobe demostrated flash player for android, but they haven't released the code yet. http://www.androidauthority.com/index.php/2008/11/17/flash-player-on-... Is there an alternative way to playbackyoutubevideo's on android ? Is there an application that supports flash content playback on android already (though I couldn't find any on android market or related sites) or any development work is underway ? Thanks in advance, Ebin. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Different UI behavoir between Activity and InputMethodService (test code and video provided)
Hi, I came to this issue : I created a layout with only 1 ImageButton and it works as expected when loaded from Activity (using setContentView) : The button is changing background on touch down event (orange) ... But not changing when the same layout is loaded by the InputMethodService (but it react to onClickEvent if used ) Here is a minimal project and video if you need to reproduce : http://rzr.online.fr/tmp/rzr-test-android-imf-0.0.20090520.tar.gz 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] Bug with EditText and Linkifycation?
Hi, I have an EditText with linkifycation on. But if the content contains a link and I tap on it or move the cursor in it, I get an IndexOutOfBoundsException. Stacktrace below. I think the problem is the getCapsMode method of TextUtils. They don't check if the offset is below 0. So it crashes if there is no selection. E/AndroidRuntime( 2853): Uncaught handler: thread main exiting due to uncaught exception E/AndroidRuntime( 2853): java.lang.IndexOutOfBoundsException: charAt: -2 0 E/AndroidRuntime( 2853):at android.text.SpannableStringBuilder.charAt(SpannableStringBuilder.java: 110) E/AndroidRuntime( 2853):at android.text.TextUtils.getCapsMode (TextUtils.java:1562) E/AndroidRuntime( 2853):at android.view.inputmethod.BaseInputConnection.getCursorCapsMode (BaseInputConnection.java:273) E/AndroidRuntime( 2853):at android.widget.TextView.onCreateInputConnection(TextView.java:4346) E/AndroidRuntime( 2853):at android.view.inputmethod.InputMethodManager.startInputInner (InputMethodManager.java:933) E/AndroidRuntime( 2853):at android.view.inputmethod.InputMethodManager.checkFocus (InputMethodManager.java:1105) E/AndroidRuntime( 2853):at android.view.inputmethod.InputMethodManager.isActive (InputMethodManager.java:530) E/AndroidRuntime( 2853):at android.widget.TextView.onDraw (TextView.java:3880) E/AndroidRuntime( 2853):at android.view.View.draw(View.java: 5838) E/AndroidRuntime( 2853):at android.view.ViewGroup.drawChild (ViewGroup.java:1486) E/AndroidRuntime( 2853):at android.view.ViewGroup.dispatchDraw (ViewGroup.java:1228) E/AndroidRuntime( 2853):at android.view.ViewGroup.drawChild (ViewGroup.java:1484) E/AndroidRuntime( 2853):at android.view.ViewGroup.dispatchDraw (ViewGroup.java:1228) E/AndroidRuntime( 2853):at android.view.View.draw(View.java: 5841) E/AndroidRuntime( 2853):at android.widget.FrameLayout.draw (FrameLayout.java:352) E/AndroidRuntime( 2853):at android.view.ViewGroup.drawChild (ViewGroup.java:1486) E/AndroidRuntime( 2853):at android.view.ViewGroup.dispatchDraw (ViewGroup.java:1228) E/AndroidRuntime( 2853):at android.view.ViewGroup.drawChild (ViewGroup.java:1484) E/AndroidRuntime( 2853):at android.view.ViewGroup.dispatchDraw (ViewGroup.java:1228) E/AndroidRuntime( 2853):at android.view.View.draw(View.java: 5841) E/AndroidRuntime( 2853):at android.widget.FrameLayout.draw (FrameLayout.java:352) E/AndroidRuntime( 2853):at com.android.internal.policy.impl.PhoneWindow$DecorView.draw (PhoneWindow.java:1847) E/AndroidRuntime( 2853):at android.view.ViewRoot.draw (ViewRoot.java:1217) E/AndroidRuntime( 2853):at android.view.ViewRoot.performTraversals(ViewRoot.java:1030) E/AndroidRuntime( 2853):at android.view.ViewRoot.handleMessage (ViewRoot.java:1482) E/AndroidRuntime( 2853):at android.os.Handler.dispatchMessage (Handler.java:99) E/AndroidRuntime( 2853):at android.os.Looper.loop(Looper.java: 123) E/AndroidRuntime( 2853):at android.app.ActivityThread.main (ActivityThread.java:3948) E/AndroidRuntime( 2853):at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime( 2853):at java.lang.reflect.Method.invoke (Method.java:521) E/AndroidRuntime( 2853):at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:782) E/AndroidRuntime( 2853):at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540) E/AndroidRuntime( 2853):at dalvik.system.NativeStart.main (Native Method) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 determine a resource string is existing or not
Hi Nelissen,Thanks for your response, But when I run this program in eclipse, it can't compilable if R.build.buildid doesn't exist. Is there any solution to solve this problem? thanks! 2009/5/19 Marco Nelissen marc...@android.com getString() will throw NotFoundException if the resource does not exist. On Mon, May 18, 2009 at 4:55 AM, aby orz0...@gmail.com wrote: Hi, I want to determine a resource string is existing or not. Because other programs in my system will build this string, I need to check the string building is success or not. If fail, I would replace this string as other string. For example, if I want to get R.build.buildid String updated; if ( R.build.buildid is exist) updated = getString(R.build.buildid); else updated = getString(R.string.none);//R.string.none exist is it possible to check R.build.buildid is existing or not?? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Cursor.moveToFirst() is taking up a lot of time
Thank you for your reply. You where right. The getCount() method takes indeed a lot of time. So i filled another window by using fillWindow() like this: Cursor c = db.query(var1, var2, var3 .); SQLiteCursor liteCursor = (SQLiteCursor) c; CursorWindow cw = new CursorWindow(true); liteCursor.fillWindow(0, cw); And then looping the CursorWindow to get all rows and columns. I presumed that this would make a performance boost because i thought that by doing this i will cut back on overhead. But this actually takes about 40% more time then simply calling getCount() that eventually loads the data into the cursor I already optimized the database and the queries so there is nothing to gain here. But would you there be another way the get values from a database in a faster way? On 19 mei, 02:52, Marco Nelissen marc...@android.com wrote: On Mon, May 18, 2009 at 7:47 AM, Sublimity Mobile Software sublimitysoftw...@gmail.com wrote: Hi, Currently i'm working on a database system for some applications. I need to do a lot of queries to load data from the database into the application. After being amazed how much time it took to do these queries on the database i found out that much time was consumed by cursor.MoveToFirst(). This functions costs currently ~25% of all my database action. If you rearrange your code to call getCount() first, you'll find that getCount() took most of the time. Basically, it's actually fetching the data that's taking most of the time, and that data fetch is not done inside query(), but afterwards, usually as a result of calling getCount(), which calls fillWindow(), which then fetches the data. moveToFirst() calls getCount() internally. If calling getCount() takes too long, then your query is taking too long. Try optimizing it by using an index, returning less columns, 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: debugger not working
It might be 64bit system case. But check this. By default it should be 8700 port. Switch do DDMS perspective (assuming you're on Ecilpse) try to spot your emulator there. On May 20, 10:13 am, schwiz sch...@gmail.com wrote: Im working on a widget, I'm using eclipse and windows vista 64 bit. I run the app in debug mode and I put a breakpoint on the context.startService line below but the app isn't stopping. My widget is displaying as expected, just showing my frame and some text saying loading. public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { // TODO Auto-generated method stub //super.onUpdate(context, appWidgetManager, appWidgetIds); context.startService(new Intent(context,UpdateService.class)); } When I am running the emulator my console gets spammed with messages like this, even when im not in debug mode. [2009-05-20 03:02:38 - ddms]Can't bind to local 8643 for debugger any insight would be very appreciated! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Maps with custom tiles
C'mon there must be a solution:) On 14 mayo, 09:52, khose marcos.hdez@gmail.com wrote: Hi! I've been searching hardly the past two days, looking for a way to implement a map view with custom map tiles. I mean; i have to use maps tiles different than the ones provided by Google Maps. Someone said here that there is a way, but he didn't tell the way to do that. I know that you can do that with Google Maps API for Web, but i've studied Android's API and i can't find a method to load your map tiles. I would appreciate any help and/or example to do this. I'm really stucked and the client need this feature in the application. 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] Wait for activity finishes
Hi, I have a problem with return value of a method witch launches an Activty. I would like a method witch launches an Activty and witch wait for this Activity being complete before returning a value. I note that , doing nothing special, the calling method achieves its own code before launches the Activity. How can i do to have a method witch waits for the activity finishes? My code is the following : Begin Code String result;//class field public String myFunction (RootActivity rootAct, final String title, final ArrayListString label, ArrayListInteger max) { root = rootAct; // The activity witch launches another activity action = SecondActivity.class; Intent i = new Intent(root, action ); root.startActivityForResult(i, 0); //The root activity initializes 'result' with result of SecondActivity in onActivityResult method // return s; } ---End Code- Some help please :-) Cecilia --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] SoundPool in Android 1.5: Still problems
A lot of developers where using the soundpool in 1.1: http://groups.google.com/group/android-developers/browse_thread/thread/b84abc998ad02aa2/1a92b99355ae623f?lnk=gstq=SoundPool#1a92b99355ae623f http://groups.google.com/group/android-developers/browse_thread/thread/e2f18cd7d53bcdfb/afb26f53697d222e?lnk=gstq=SoundPool#afb26f53697d222e In 1.5 it is nicely documented and Dave Sparks says the issues where resolved in 1.5: http://groups.google.com/group/android-developers/browse_thread/thread/b84abc998ad02aa2/1a92b99355ae623f?lnk=gstq=SoundPool#1a92b99355ae623f However my game (with 10 sounds) shows some erattic behaviour when using the soundpool. It looks like the sounds hiccup constantly. Also the sensor does not react that fluently. You can see the behaviour here: http://www.youtube.com/watch?v=X2JF-Sdm6jUeurl=http://www.youtube.com/user/lmjabreufeature=player_embedded The game works fine with the sounds turned of.. So probably this is a performance problem? I do not have a android phone now so i cant test it myself. But somebody recognizes this behaviour? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 an easy way to make EditText look like TextView but still behave like EditText?
This seems to be working.. android:background=@null removes the background, but the text color stays the same. It takes another explicit android:textColor=@null to fix that. I guess those are the values that are set in the editTextStyle, but not in textViewStyle, so they stay the same after style=?android:attr/textViewStyle and need to be nulled-out explicitly. I'm not sure what's really going on here, but this seems to be a clean solution to this problem. The documentation should be more explaining, with more complete and thought-out examples.. Thanks people - a lot! PS: Don't trust the layout tab in the xml editor too much.. On 20 мај, 02:53, Jeff Sharkey jshar...@android.com wrote: This is probably because the EditText still inherits an android:background value from the default system Theme, because the textViewStyle doesn't force a @null background. Try adding an explicit android:background=@null, which should remove the EditText 9-patch frame and any padding that comes with it. j On Tue, May 19, 2009 at 5:19 PM, n5r11 nikolaradosavlje...@gmail.com wrote: I've tried all that you suggested, and nothing happens? EditText still looks the same, both in IDE and when compiled on emulator. EditText style=?android:attr/textViewStyle android:layout_width=fill_parent android:layout_height=wrap_content android:text=Neque porro quisquam est qui.dolorem.com ipsum / EditText style=@android:style/Widget.TextView android:layout_width=fill_parent android:layout_height=wrap_content android:text=Neque porro quisquam est qui.dolorem.com ipsum / I see I'm not the only one with this problem: http://groups.google.rs/group/android-developers/browse_frm/thread/29... n5r11 On 19 мај, 02:05, Jeff Sharkey jshar...@android.com wrote: You should actually be using an attribute instead of a direct reference: style=?android:attr/textViewStyle The underlying @style reference isn't public, but the above attr is. j On Mon, May 18, 2009 at 4:30 PM, MrSnowflake mrsnowfl...@gmail.com wrote: Might be: style=@android:style/Widget.TextView Otherwise, make a TextView and an EditText and change the GONE state of them. On 18 mei, 19:33, Raphael r...@android.com wrote: Try this: android:style=@android:style/Widget.TextView R/ On Sun, May 17, 2009 at 3:31 PM, Nikola Radosavljevic nikolaradosavlje...@gmail.com wrote: Note: I had troubles posting to android-beginners group, so I came here hoping this will work. Hello there, I want an EditText to look like TextView but still behave like EditText. I've tried applying TextView style to my EditText in my layout.xml file, like this: EditText android:id=@+id/lipsum android:text=Lorem ipsum android:style=@android:style/Widget_TextView / ..but I get an error within xml editor: Error: No resource found that matches the given name (at 'style' with value '@android:style/ Widget_TextView'). It is strange because @android:style/ Widget_TextView definitively exists - I double checked it in code via android.R.style.Widget_TextView. Another strange thing is that I don't get android:style offered in the xml editor while typing? There is android:id, android:text and everything else.. but not android:style?! Note: I consider the hard way (making EditText look like TextView) to be: extending EditText and overriding it's onDraw method. Nikolar PS: Check out http://developer.android.com/guide/topics/ui/themes.html#styles. Why are id and style written without android: namespace? -- Jeff Sharkey jshar...@android.com -- Jeff Sharkey jshar...@android.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] BroadcastReceivers not receiving PendingIntents
Hi All, I've had an issue where no matter how I've tried to set it up I'm finding the BroadcastReceivers aren't receiving any PendingIntents. A look through LogCat confirms that the intents are launched, but they're not being executed. I managed to make a simple(ish) repro case. If you take the SimpleWiktionary widget by Jeff Sharkey http://code.google.com/p/wiktionary-android/ and make the following changes plus any required imports. Replace the Service's onStart with this code public static class UpdateService extends Service { @Override public void onStart(Intent intent, int startId) { // Build the widget update for today RemoteViews updateViews = buildUpdate(this); // Push update for this widget to the home screen ComponentName thisWidget = new ComponentName(this, WordWidget.class); AppWidgetManager manager = AppWidgetManager.getInstance (this); manager.updateAppWidget(thisWidget, updateViews); Context context = getBaseContext(); long nextAlarm = System.currentTimeMillis() + 15000; Intent alarmIntent = new Intent(context, WordWidget.class); PendingIntent pendingIntent = PendingIntent.getActivity(context, 0 /* no requestCode */, alarmIntent, 0 /* no flags */); AlarmManager alarmManager = (AlarmManager) context.getSystemService(android.app.Activity.ALARM_SERVICE); alarmManager.set(AlarmManager.RTC_WAKEUP, nextAlarm, pendingIntent); } /code and add an override to onReceive like this code @Override public void onReceive(Context context, Intent intent) { final String action = intent.getAction(); Log.d(WordWidget, Action: + action); super.onReceive(context, intent); } /code Then add the widget to your desktop and watch LogCat. After 15 seconds you'll see the intent getting launched, but nothing logged with the tag WordWidget. I've got no idea what I've done wrong, anybody having a well, there's your problem. moment? Cheers, Alan. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Updating an app make it appear twice !
I made a lot of changes to my app : databases scheme, graphics, code, etc. The biggest is the package name that I renamed to a total different one. The applicatgio got the same name and Id in the manifeste.xml file and the apk got the same name, with the same digital signature. Nevertheless, when using ./adb install -r myapp.apk, myapp appears twice in the menu. How can I prevent this from happening, and if I can't, how can I automate he migration ? I have several clues : prompting the user for uninstalling the old app, copying the database from the old file to the new one, 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] Thread.setDefaultUncaughtExceptionHandler usage
I wanted to get your opinions on the usage of Thread.setDefaultUncaughtException. Here is my scenario: I have an activity that starts up a LocalActivityManager, which in turn starts up several Activities and pulls in their decor views and puts them into current activities view. However, there is the case that a particular activity might be a rogue activity and will cause the entire host activity to crash. One such case is the subactivity causes an OutOfMemory exception due to excessive Bitmap allocation. My thought was that I could make my host application implement UncaughtExceptionHandler and assign the Thread's default uncaught exception handler to it. In the handler, I log that an exception occurred, and the application can continue for very short period of time, but then I get an ANR (Application Not Responding) obviously because I am catching a pretty critical exception and not doing anything about it other than logging. Optimally, I would like to shut down the offending view that caused the exception, but I am not sure how to get that view when I am already in the last stage of trying to deal with the exception (the uncaught exception handler callback). What can I do if I want to keep the architecture of the LocalActivityManager that I currently have in place, but harden my code against contributing activities that do not cooperate or cause my host activity to run out of memory? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Pointers towards monitoring of memory usage in Android
I have an application that allows the user to add many bitmap images onto the screen (think of lots of picture frame widgets). If the applications memory is getting close to reaching its 16MB limit, I would like to stop the user from adding more images to the application. The scenario is much simplified for purposes of brevity, but basically, I would like to monitor my apps memory usage. I wrote a watchdog monitor thread that uses android.os.Debug info and uses the getNativeFreeHeapSize() method to check how much native heap is remaining (since Bitmap allocations count toward the native heap and not the Dalvik heap). This does seem to work, but I was wondering about all of the other methods out there of monitoring the process/ dalvik/native memory usage. Then there is the System wide memory usage. There is Runtime.getRuntime(), ActivityManager.MemoryInfo, Debug.MemoryInfo, and then Debug. What is the optimal mix/match of these api's that will give me the best view of my applications memory usage so I can pre-emptively do something about it. Unfortunately, the activity or applications onLowMemoryWarning() method does not seem to be triggered which is really what I would have liked, hence this request. regards, Nik --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Converting bitmap to grayscale
I would like to convert a Bitmap to a grayscale array of bytes (one byte per pixel). At the same time I want to just crop at section from the middle. Having looked though the various api's it is not clear to me what the best way would be. The best way I have found in se java is as below; BufferedImage image = new BufferedImage(cropWidth, cropHeight, BufferedImage.TYPE_BYTE_GRAY); Graphics g = image.getGraphics(); g.drawImage(colorImage, cropOffsetX, cropOffsetY, null); g.dispose(); Leaving me with a graysale image of the right section; What is the equivalent method with android api's. I am guessing it is along these lines Bitmap bm = Bitmap.createBitmap(500, 500, Bitmap.Config.ALPHA_8); // ALPHA_8? Canvas c = new Canvas(bm); Paint paint = new Paint(); // should something be set here to get grayscale? c.drawBitmap(bm, 200, 200, paint); bm..getPixels(...); // I want byte/pixel not int/ pixel ?? However, I have two questions; 1) What is ALPHA_8? is that grayscale? I have a feeling that the grayscale effect should be done via some saturation on the paint object, right? 2) once I have the Bitmap in grayscale and the right size, what is the best way to get that to a byte[] of pixels (one byte per pixel) ? 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: Windowmanager, problem with progress
I try add activity android:name=.Name android:configChanges=keyboardHidden|orientation and everything works good. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] OpenGL .dae model loader
Does anyone know how to load .dae(collada) files in android? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Building Cupcake on Mac deploying on my ADP1
Hi all, I am trying to setup my Mac OSX (Mac Mini) to build and deploy the Cupcake source code and deploy the built images on my ADP1 device. I must admit - I am no Linux guy, so a bit slow on understanding the various instructions. My problem - I was somehow able to get the sources down to my Mac, and even run a successful MAKE. But - got stuck there (could not figure out how to run the built images on the emulator). So I decided to be brave and compile install on my ADP1 device. [B]This is where I am stuck:[/B] In the explanation at the Google site, they claim there should be a .Repo directory holding a file called manifest.xml in it, and that I should download and add to that directory a file called local_manifest.xml. I can not find such a .Repo directory, and hence - dont know where to put that file. Any help would be highly appreciated ! Shimon Shnitzer --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Building Cupcake on Mac deploying on my ADP1
Hello, On Wed, May 20, 2009 at 2:07 PM, TAKEphONE shimo...@gmail.com wrote: Hi all, I am trying to setup my Mac OSX (Mac Mini) to build and deploy the Cupcake source code and deploy the built images on my ADP1 device. I must admit - I am no Linux guy, so a bit slow on understanding the various instructions. I don't think this has anything to do with Linux or Mac. repo/git are very new tools for a lot of people :-) My problem - I was somehow able to get the sources down to my Mac, and even run a successful MAKE. But - got stuck there (could not figure out how to run the built images on the emulator). Provided that you configured your build with something like: . build/envsetup.sh lunch generic-eng then a simple emulator after a succesful build will automatically launch the emulator with the just-built system image. So I decided to be brave and compile install on my ADP1 device. [B]This is where I am stuck:[/B] In the explanation at the Google site, they claim there should be a .Repo directory holding a file called manifest.xml in it, and that I should download and add to that directory a file called local_manifest.xml. I can not find such a .Repo directory, and hence - dont know where to put that file. the .repo directory is created by the repo init command that you should have launched to intialize your repository. I can only conjecture that you didn't get the sources through the recommended ways. If that is the case, You should really try to follow the instructions herehttp://source.android.com/download after that, there will be a .repo/manifest.xml file (which you should not touch). You should be able to add a new file named .repo/local_manifest.xml then do a repo sync to get some missing pieces, then rebuild. Hope this helps Any help would be highly appreciated ! Shimon Shnitzer --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] ActivityGroup + RelativeLayout problem [urgent]
Hi all, I have an ActivityGroup with three Activities, A, B and C. I get the three activities views by using View viewA = getLocalActivityManager().startActivity(mActivityAId, mActivityAIntent).getDecorView() (for A, B and C) I need viewA to be aligned to its parent top edge, and viewC to be aligned to its parent bottom edge. viewB must be below A and above C. For that I've created a RelativeLayout(mMainLayout), and then, since I have the 3 views, I add them to that layout setting the LayoutParams properly. So, I do the following: *** View viewA = getLocalActivityManager().startActivity(mActivityAId, mActivityAIntent).getDecorView(); viewA.setId(mIdA); RelativeLayout.LayoutParams paramsA = new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT); paramsA.addRule(RelativeLayout.ALIGN_PARENT_TOP); mMainLayout.addView(viewA, paramsA); View viewC = getLocalActivityManager().startActivity(mActivityCId, mActivityCIntent).getDecorView(); viewC.setId(mIdC); RelativeLayout.LayoutParams paramsC = new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT); paramsC.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM); mMainLayout.addView(viewC, paramsC); View viewB = getLocalActivityManager().startActivity(mActivityBId, mActivityBIntent).getDecorView(); viewB.setId(mIdB); RelativeLayout.LayoutParams paramsB = new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT); paramsB.addRule(RelativeLayout.ABOVE, viewC.getId()); paramsB.addRule(RelativeLayout.BELOW, viewA.getId()); mMainLayout.addView(viewB, paramsB); *** However I could notice that viewB is never rightly positioned. I started testing with other views, and I've realized that if all views are created from the same activity, the same as the main layout, I have no problem, but when the views come from different activities the problem occurs. I've also tested finding a view by its Id, and in fact I can not find views by Id that were not created in the same activity as the main layout. Explaning more clearer, I've replaced viewA for a local TextView, added it to mainLayout and then tried to find it via mainLayout.findViewById(viewA.getId()), and it worked fine. But when I used the real desired viewA (the activity A decor view), findViewById returned null view. Am I doing anything wrong? Was it designed to work this way? Or is it a bug? I do need an answer the sooner the possible... Taísa --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Fwd: can't access http://developer.android.com/
Are u from china? use a proxy On Tue, May 19, 2009 at 6:03 PM, show summer showshowsum...@gmail.comwrote: Please give me response! -- Forwarded message -- From: show summer showshowsum...@gmail.com Date: Tue, May 19, 2009 at 6:11 AM Subject: can't access http://developer.android.com/ To: android-developers@googlegroups.com hi, why i can't access http://developer.android.com/ recently?? Please check it thanks Ning --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: OpenGL .dae model loader
As far as I know, there are no pre-build loaders for collada files, which means you would have to create your own parser to read in and create the models. You may wish to look at the ModelLoader/ ModelRenderer projects at the following google code site http://code.google.com/p/android-gl/ for some ideas on how to approach this, though those projects only support OBJ and MD2 formats so it will take some knowledge of the collada file format to create a parser. On May 20, 5:00 am, loril...@gmail.com loril...@gmail.com wrote: Does anyone know how to load .dae(collada) files in android? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Email attachment doesn't send
Hello, I try this code: Intent i= new Intent(android.content.Intent.ACTION_SEND); i.putExtra(android.content.Intent.EXTRA_SUBJECT,this is a test mail); i.putExtra(android.content.Intent.EXTRA_STREAM,Uri.parse(file:// sdcard/dcim/Camera/1233417122606.jpg)); i.putExtra(android.content.Intent.EXTRA_TEXT,hello mail); i.setType(jpeg/image); startActivity(Intent.createChooser(i,Emailfile)); } I can send attachmend via email but attachment doesn't delivered. I see attachment in G1 client but it isn't send. What I do wrong? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 redirect audio to bluetooth headset?
Hi all, I met a problem of bluetooth headset. I want to switch audio playing to bluetooth headset when bluetooth headset is paired. I found BluetoothDevice in android sources which can controll bluetooth. However it is not contained in android.jar. So I used AudioManager.setBluetoothScoOn(true), but it still can't work. This problem has troubled me a long time. I do appreciate your help. Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to add more words onto Binary Dictionary(main.dict)??
thanx for the help but this is USER DICTIONARY(user_dict.db).I want to update the MAIN.dict. It's binary dictionary.Dictionary.cpp reads the words and suggest words and it works through JNI. On May 19, 9:41 pm, Dianne Hackborn hack...@android.com wrote: http://developer.android.com/reference/android/provider/UserDictionar... On Tue, May 19, 2009 at 5:09 AM, Atish atish...@gmail.com wrote: Hi All, Is there any way that i can add many words into main.dict currently used as Main Dictionary in Inputmethods package?? Please reply it's bit urgent. Thanks And Regards, Atish -- 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: Wait for activity finishes
As far as i know, you can't do this. Maybe you want to implement a modal dialog. Launch a (subclass of) android.app.Dialog instead. However, even when using dialogs by calling yourDialog.show(), the show () call returns immediately. It doesn't wait. It looks like you have to re-write some of your code to handle the onActivityResults instead of the returned value of myFunction. On May 20, 5:30 am, danielececil...@gmail.com danielececil...@gmail.com wrote: Hi, I have a problem with return value of a method witch launches an Activty. I would like a method witch launches an Activty and witch wait for this Activity being complete before returning a value. I note that , doing nothing special, the calling method achieves its own code before launches the Activity. How can i do to have a method witch waits for the activity finishes? My code is the following : Begin Code String result; //class field public String myFunction (RootActivity rootAct, final String title, final ArrayListString label, ArrayListInteger max) { root = rootAct; // The activity witch launches another activity action = SecondActivity.class; Intent i = new Intent(root, action ); root.startActivityForResult(i, 0); //The root activity initializes 'result' with result of SecondActivity in onActivityResult method // return s; } ---End Code- Some help please :-) Cecilia --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Cursor.moveToFirst() is taking up a lot of time
If you're sure there is nothing to be gained from optimizing the database itself, then it seems your only option is to not use a database at all. Are you *sure* the database/query can't be further optimized? How much time does your query take anyway? On Wed, May 20, 2009 at 2:17 AM, Sublimity Mobile Software sublimitysoftw...@gmail.com wrote: Thank you for your reply. You where right. The getCount() method takes indeed a lot of time. So i filled another window by using fillWindow() like this: Cursor c = db.query(var1, var2, var3 .); SQLiteCursor liteCursor = (SQLiteCursor) c; CursorWindow cw = new CursorWindow(true); liteCursor.fillWindow(0, cw); And then looping the CursorWindow to get all rows and columns. I presumed that this would make a performance boost because i thought that by doing this i will cut back on overhead. But this actually takes about 40% more time then simply calling getCount() that eventually loads the data into the cursor I already optimized the database and the queries so there is nothing to gain here. But would you there be another way the get values from a database in a faster way? On 19 mei, 02:52, Marco Nelissen marc...@android.com wrote: On Mon, May 18, 2009 at 7:47 AM, Sublimity Mobile Software sublimitysoftw...@gmail.com wrote: Hi, Currently i'm working on a database system for some applications. I need to do a lot of queries to load data from the database into the application. After being amazed how much time it took to do these queries on the database i found out that much time was consumed by cursor.MoveToFirst(). This functions costs currently ~25% of all my database action. If you rearrange your code to call getCount() first, you'll find that getCount() took most of the time. Basically, it's actually fetching the data that's taking most of the time, and that data fetch is not done inside query(), but afterwards, usually as a result of calling getCount(), which calls fillWindow(), which then fetches the data. moveToFirst() calls getCount() internally. If calling getCount() takes too long, then your query is taking too long. Try optimizing it by using an index, returning less columns, 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] GlSurfaceView single buffer
Hello, How can I force GlSurfaceView to use single instead of double buffering? Example code will be greatly appreciated ;) BR, Tomek --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: SDK 1.5 breaks our build
Xavier, thanks for your thoughtful response, and I'm sorry for being so testy, but please understand that this sort of thing can have a big impact on developers. From what you say it sounds like not many others are configuring their projects this way, but for a product that supports multiple platforms it's going to be a common configuration. We have a middle tier that is a service on Android, so the Android service code needs to live with that project while the presentation layer, which is completely platform-specific, lives in another. I have to imagine we're not alone in this. I have other responsibilities than read the Google groups all day long. I certainly understand, and I think that's a real problem for us all-- the Google developers are trying to support the developer community in their spare time, and we developers have no recourse other than to post here and hope someone reads and responds, or submit a bug report and have almost no chance of a timely response. I really think Google needs to create a more mature developer program that has at least pay- per-incident support and other levels of support for the developer community, with dedicated support resources. Having a problem/ solution forum structure also really encourages community experts to step up and augment the vendor resources--it also clearly distinguishes problem-solving from general discussion (see BlackBerry's forums for a good example of this). If Google doesn't put this level of investment into building the community then I really don't believe you can create the kind of ecosystem you need for Android to thrive. That said, I've been looking for a work around. Thanks very much for the effort, this sounds much cleaner than my hack so I'll put it in place and see how it goes. -- Peter --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: “The application xxxxxxxx (process xxxxxx) has stopped unexpectedly. Please try again .”
On Wed, May 20, 2009 at 1:37 AM, abhinav gnroses.infla...@gmail.com wrote: Can some one please tell me , how do u read the log file or logs ... which the Log.i methods writes to ? You read the log by connecting your phone to a computer and running 'adb logcat' (or adb shell logcat) from the command line. You can also see it in the logcat tab in the DDMS Eclipse plugin. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Cursor.moveToFirst() is taking up a lot of time
The first call to moveToNext() is still going to cause getCount() and thus fillWindow() to be called internally, so it won't be any faster. On Wed, May 20, 2009 at 10:58 AM, Streets Of Boston flyingdutc...@gmail.com wrote: In your example, it seems you don't need the getCount() or moveToFirst () at all. The snippet below works well without using getCount or moveToFirst(). [code] Cursor c = db.query(var1, var2, var3 .); while (c.moveToNext()) { // do something with cursor c ... } [/code] On May 18, 10:47 am, Sublimity Mobile Software sublimitysoftw...@gmail.com wrote: Hi, Currently i'm working on a database system for some applications. I need to do a lot of queries to load data from the database into the application. After being amazed how much time it took to do these queries on the database i found out that much time was consumed by cursor.MoveToFirst(). This functions costs currently ~25% of all my database action. Does anyone know why this takes would take so long or does anyone know a better solution to get to the first position of the cursor? My code: Cursor c = db.query(var1, var2, var3 .); c.CustomMoveToFirst(); int count = c.getCount(); for(int i = 0; icount; i++){ doSomethingWithCursor(); c.moveToNext(); } The same problem occurs when i place everything in a while loop and use only the MoveToNext() function. So i think that the problem must be in positioning the cursor to the first position. My code: Cursor c = db.query(var1, var2, var3 .); c.CustomMoveToFirst(); while(c.moveToNext()){ doSomethingWithCursor(); } Thanks, Sublimity Mobile Software --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 redirect audio to bluetooth headset?
FM transmitter can sound half decent, especially compared to very low bitrate mono. On Wed, May 20, 2009 at 12:49 PM, schwiz sch...@gmail.com wrote: Also, I don't see how it could possibly sound worse than using an fm trasmitter which sadly is our only option. On May 20, 11:44 am, schwiz sch...@gmail.com wrote: very poor is still better than nothing at all... On May 20, 10:30 am, Dave Sparks davidspa...@android.com wrote: We don't support sending app processor audio over SCO. The audio quality would be very poor. On May 20, 6:51 am, jianwei kevin@gmail.com wrote: Hi all, I met a problem of bluetooth headset. I want to switch audio playing to bluetooth headset when bluetooth headset is paired. I found BluetoothDevice in android sources which can controll bluetooth. However it is not contained in android.jar. So I used AudioManager.setBluetoothScoOn(true), but it still can't work. This problem has troubled me a long time. I do appreciate your help. 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: android system make. error 45
I remove gjdoc from Synaptic Package Manager; then build passed. On Apr 16, 4:20 pm, pcstal...@gmail.com pcstal...@gmail.com wrote: hi there guys. im trying to make the latest android system. ive gotten past quite a few errors on my own. but i have been stoped dead in my tracks here. im makeing the system. and around 3 to 4 minutes into it. i get line after line of Augh! {seemingly random code here} followed by about 40 to 50 lines of Null tags for gnu.classpath.tools.gjdoc.InheritDocTagImpl [na...@inheritdoc, text=, tagMap=null] and after all of that. i see make: *** [out/target/common/docs/offline-sdk-timestamp]Error45 and thats where im stuck. i cant seem to find out what to do. i'm very grateful for any help at all :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Weird ringtone bug...any solutions??
I was wondering if anyone knows how to set a ringtone from off the sdcard correctly cause obviously I'm doing it wrong. For some reason, I'll set the ringtone(it's actually picked randomly) as the default ringtone using the RingtoneManager.setActualDefaultRingtoneUri() method. This works, and it show's that ringtone as the default ringtone in the settings menu (as well as plays the correct tone), but when I get called it plays a system ring instead of that default ringtone I set. Has anyone else ran into this problem?? I've been looking everywhere online with no luck. I actually have a feeling it has something with the formatting of the Uri but I'm not sure on how else to format it. My current format: Uri ringtoneUri = Uri.fromFile(new File(directory +/ + ringtones.get (whatTone))); directory = /sdcard/media/ringtones --- Just an example, this is actually user generated ringtones.get(whatTone) = BlindedInChains.mp3 --- Also just an example End result of this format: file:///sdcard/media/ringtones/BlindedInChains.mp3 Is this wrong?? Help Please!! :) 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: debugger not working
ok in DDMS view it says emulator-5554 is online myAVD[1.5,debug] then all of the threads below it have the debug symbol with an X over them. and the console spits this out [2009-05-20 12:11:22 - ddms]Failed to reopen debug port for Selected Client to: 8700 [2009-05-20 12:11:22 - ddms]Address family not supported by protocol family: bind java.net.SocketException: Address family not supported by protocol family: bind at sun.nio.ch.Net.bind(Native Method) at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source) at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source) at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source) at com.android.ddmlib.MonitorThread.reopenDebugSelectedPort(Unknown Source) at com.android.ddmlib.MonitorThread.run(Unknown Source) [2009-05-20 12:13:00 - ddms]Can't bind to local 8600 for debugger [2009-05-20 12:13:04 - ddms]Can't bind to local 8601 for debugger [2009-05-20 12:13:04 - ddms]Can't bind to local 8602 for debugger [2009-05-20 12:13:06 - ddms]Can't bind to local 8603 for debugger [2009-05-20 12:13:17 - ddms]Can't bind to local 8606 for debugger [2009-05-20 12:13:17 - ddms]Can't bind to local 8608 for debugger [2009-05-20 12:13:17 - ddms]Can't bind to local 8610 for debugger [2009-05-20 12:13:17 - ddms]Can't bind to local 8615 for debugger [2009-05-20 12:13:18 - ddms]Can't bind to local 8620 for debugger On May 20, 4:20 am, l.kuczera kuk...@gmail.com wrote: It might be 64bit system case. But check this. By default it should be 8700 port. Switch do DDMS perspective (assuming you're on Ecilpse) try to spot your emulator there. On May 20, 10:13 am, schwiz sch...@gmail.com wrote: Im working on a widget, I'm using eclipse and windows vista 64 bit. I run the app in debug mode and I put a breakpoint on the context.startService line below but the app isn't stopping. My widget is displaying as expected, just showing my frame and some text saying loading. public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { // TODO Auto-generated method stub //super.onUpdate(context, appWidgetManager, appWidgetIds); context.startService(new Intent(context,UpdateService.class)); } When I am running the emulator my console gets spammed with messages like this, even when im not in debug mode. [2009-05-20 03:02:38 - ddms]Can't bind to local 8643 for debugger any insight would be very appreciated! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How to capture video frames?
Hi! I´m trying to capture frames from a video file, but I don´t know how to do it. Are there any classes like FrameGrabbingControl (in JMF) for Android? Is it possible with MediaPlayer and MediaRecorder classes? 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 should I use BatteryManager to get battery states?
I want to get the battery states by BatteryMangager and BroadReceiver. I can get Intent.ACTION_BATTERY_CHANGED event,but I don’t know how to process other action such as BatteryManager.BATTERY_PLUGGED_AC and so on. Who can give me advice ,thanks a lot. 愿祖国昌盛,愿人民平安! --- 09年5月20日,周三, n5r11 nikolaradosavlje...@gmail.com 写道: 发件人: n5r11 nikolaradosavlje...@gmail.com 主题: [android-developers] Re: Is there an easy way to make EditText look like TextView but still behave like EditText? 收件人: Android Developers android-developers@googlegroups.com 日期: 2009年5月20日,周三,上午8:19 I've tried all that you suggested, and nothing happens? EditText still looks the same, both in IDE and when compiled on emulator. EditText style=?android:attr/textViewStyle android:layout_width=fill_parent android:layout_height=wrap_content android:text=Neque porro quisquam est qui.dolorem.com ipsum / EditText style=@android:style/Widget.TextView android:layout_width=fill_parent android:layout_height=wrap_content android:text=Neque porro quisquam est qui.dolorem.com ipsum / I see I'm not the only one with this problem: http://groups.google.rs/group/android-developers/browse_frm/thread/2913f29b7b065331/38f79498b2c28597?lnk=gstq=Using+Widget.TextView.ListSeparator#38f79498b2c28597 n5r11 On 19 屑邪褬, 02:05, Jeff Sharkey jshar...@android.com wrote: You should actually be using an attribute instead of a direct reference: style=?android:attr/textViewStyle The underlying @style reference isn't public, but the above attr is. j On Mon, May 18, 2009 at 4:30 PM, MrSnowflake mrsnowfl...@gmail.com wrote: Might be: style=@android:style/Widget.TextView Otherwise, make a TextView and an EditText and change the GONE state of them. On 18 mei, 19:33, Raphael r...@android.com wrote: Try this: 聽 聽 聽 聽 android:style=@android:style/Widget.TextView R/ On Sun, May 17, 2009 at 3:31 PM, Nikola Radosavljevic nikolaradosavlje...@gmail.com wrote: Note: I had troubles posting to android-beginners group, so I came here hoping this will work. Hello there, I want an EditText to look like TextView but still behave like EditText. I've tried applying TextView style to my EditText in my layout.xml file, like this: EditText 聽 聽 聽 聽android:id=@+id/lipsum 聽 聽 聽 聽android:text=Lorem ipsum 聽 聽 聽 聽android:style=@android:style/Widget_TextView / ..but I get an error within xml editor: Error: No resource found that matches the given name (at 'style' with value '@android:style/ Widget_TextView'). It is strange because @android:style/ Widget_TextView definitively exists - I double checked it in code via android.R.style.Widget_TextView. Another strange thing is that I don't get android:style offered in the xml editor while typing? There is android:id, android:text and everything else.. but not android:style?! Note: I consider the hard way (making EditText look like TextView) to be: extending EditText and overriding it's onDraw method. Nikolar PS: Check out http://developer.android.com/guide/topics/ui/themes.html#styles. Why are id and style written without android: namespace? -- Jeff Sharkey jshar...@android.com ___ 好玩贺卡等你发,邮箱贺卡全新上线! http://card.mail.cn.yahoo.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: “The application xxxxxxxx (process xxxxxx) has stopped unexpectedly. Please try again .”
Hi, You can try out 'adb logcat' in terminal, to see the logs when emulator is started. Best Regards, Bindu On Wed, May 20, 2009 at 2:07 PM, abhinav gnroses.infla...@gmail.com wrote: Can some one please tell me , how do u read the log file or logs ... which the Log.i methods writes to ? Also , I have used the exact code as documented at Android site for Hello View , to load google.com and load a basic html page created by me . The app does not show any error ,BUT it does not show any content on the screen . Can some one help out , i am stuck on it for 2 days . --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Web Development on the Android Browser
Has anyone come across documentation on the specific capabilities of the Android Browser? I'm currently developing websites targeted to next generation devices and I haven't come across a lot besides PPK's work here: http://www.quirksmode.org/m/table.html I'm looking for the equivalent of this document on creating web content for the iPhone: http://developer.apple.com/safari/library/documentation/AppleApplications/Reference/SafariWebContent/Introduction/chapter_1_section_1.html#//apple_ref/doc/uid/TP40002079-SW1 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 capture video frames
Hi! I´m an android beginner developer. I´m trying to capture frames from a video file, but I don´t know how to do it. Are there any classes like FrameGrabbingControl (in JMF) for Android? Is it possible with MediaPlayer and MediaRecorder classes? Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Redirecting to market search URL doesn't work
To pretty up the URL we have on our site a URL /get/g1. It redirects to our market.android.com/search URL, eg http://market.android.com/search?q=pname:ourappname. However, going to that link in the G1 browser results in a 404 instead of opening the Market to our app. Questions: 1. Is this a known issue? 2. Does the browser preprocess links on the page but not intercept them in a redirect? Thank you, Dave --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] ERROR Error: No resource found that matches the given name (at 'background' with value
Hi there, Keep getting this same error message in main.xml. ERROR Error: No resource found that matches the given name (at 'background' with value '@drawable/008'). The image is within the drawable file and therefore I don't understand what's wrong Any advice? 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] Redirecting to market search URL doesn't work
To pretty up the URL we have on our site a URL /get/g1. It redirects to our market.android.com/search URL, eg http://market.android.com/search?q=pname:ourappname. However, going to that link in the G1 browser results in a 404 instead of opening the Market to our app. Questions: 1. Is this a known issue? 2. Does the browser preprocess links on the page but not intercept them in a redirect? Thank you, Dave --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: create new home screen
Hi Mark, Can you provide myself with the entire directory source code for this app? Regards, On May 4, 7:05 pm, Mark Murphy mmur...@commonsware.com wrote: droiddroid wrote: How areaHomeand Sweeter home hijacking the home page? I have the SDK, but have no idea how to do it. The Android SDK comes with a sample home screen application. Most of the magic is in the AndroidManifest.xml file: activity android:name=Home android:theme=@style/Theme android:launchMode=singleInstance android:stateNotNeeded=true intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.HOME/ category android:name=android.intent.category.DEFAULT / /intent-filter /activity -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Working around the zoom out with the MapView
Finding the built-in zoom out very unpleasant to look at, I thought It would be a good idea to make my own. What disturbs me is that we get to see a white background instead of the map while zooming out . I do understand why it has be done that way, it's a waste of executing time as well as memory to have to fetch all the tiles around just to realize the zooming out effect . But for personal use, I'd like to do it that way (I don't see any other way to get a clean zooming out effect, but if you do please tell me about it). My problem would be about fetching the tiles around, I don't see how could I do such a thing and I don't think the sources of the Google API are available. Thank you for giving me your input on the question. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 a limit on Extras inside an intent (or a bug on putExtra) ?
Hi, I am struck with an interesting problem. Problem: I create and putExtras into the intent and try to receive on the receiving Activity(getBundle). The Receiving activity receives NULL for some of the Strings that I had put inside the intent On debugging I found, that intent is not able to accept more than 5 values via putExtra. Is there any limit on intent.putExtras? Intent intent = new Intent(screen3time.this, screen5confirm.class); intent.putExtra(screen1.WHEN, choosenWhen); //intent.mExtras.mMap.elementcount Value is 1 intent.putExtra(screen1.WHAT, choosenWhat); //intent.mExtras.mMap.elementcount Value is 2 intent.putExtra(screen1.DD, dateDatePicker.getDayOfMonth()); //intent.mExtras.mMap.elementcount Value is 3 intent.putExtra(screen1.MM, dateDatePicker.getMonth() + 1); //intent.mExtras.mMap.elementcount Value is 4 intent.putExtra(screen1., dateDatePicker.getYear()); //intent.mExtras.mMap.elementcount Value is 5 intent.putExtra(screen1.HH, timePicker.getCurrentHour().intValue()); //intent.mExtras.mMap.elementcount Value remains 5 instead of 6 intent.putExtra(screen1.MIN, timePicker.getCurrentMinute().intValue()); //intent.mExtras.mMap.elementcount Value remains 5 instead of 7 intent.putExtra(screen1.REPEAT_IN_SECONDS, repeat_in_seconds); //intent.mExtras.mMap.elementcount Value remains 5 instead of 8 Last 3 putExtra doesn't update the intent with values. Can someone help me understand if there are limits on putExtra? Thanking in advance, -vignesh --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] putExtra error on AppWidget
Hi everyone. I am just making some AppWidget and I want to pass some Strings through UpdateView to an Activity. But the Bundle is null. I try this: -Widget.java Intent defineIntent = new Intent(context, Visor.class); defineIntent.putExtra (org.rss.androides.post2,artist); PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, defineIntent, 0); updateViews.setOnClickPendingIntent (R.id.widget, pendingIntent); -Viewer.java Bundle b = intent.getExtras(); if (b == null) { finish(); return; } b is always null. Can you help me? I can use a DB but I only need 4 strings... its a little expensive make a DB for a few strings. 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] SoundPool.play() audio channels swapped on 1.1 emulator ?
I just found that left/right channels are swapped when calling SoundPool.play(int soundID, float leftVolume, float rightVolume, int priority, int loop, float rate), running in 1.1 emulator on MacOS. Unfortunately I'm far away from my G1 headset (with proprietary connector) so I can't check if the behavior is the same. Does anybody has such problems ? What behavior can I expect on 1.1 and 1.5 devices ? 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] Listener Service for data sources
Hi All, Iam a beginner in android, just want to develop a service which listens to the database and it should invoke an activity as soon as there is a change. I tried to implement Contacts listener by registering ContentObserver but couldnot see the expected result. Kept log in onChange() method, observed that it is not getting called, any clue that where it might went wrong. Please help me. Best Regards, Bindu --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: problems with my htc magic
Hi, i have the same Problems with the HTC Magic and the Link is broken. can you upload again, please. 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] Movie.decodeStream(inputstream) is returning null after updating to 1.5 SDK
Hi guys, I am new to Android and i've updated android to 1.5 SDK, together with the ADT. I followed all the instruction properly. Rest of the Projects are working fine. but Movie.decodeStream(inputstream) is giving null. it was working fine with Android 1.1. Could you please suggest me any ways to solve this problem ? My code is below. Thanks in advance, freshman ---My code:-- InputStream is = context.getResources().openRawResource (R.drawable.gif_animation); Movie movie = Movie.decodeStream(is); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 solve G1/HTC Magic not recognized by ADB under Windows
Al Sutton wrote: This doesn't seem to fix the problem I have on Vista 32 bit. I had exactly the same problem on vista, it's not possible to delete the keys. What I did was open the device manager in control panel and then turn on show all devices or something like that. I don't have vista handy so can't fine the exact option but it's on one of the menus. Then I uninstalled any devices that looked like it belonged to the phone. I had tried this before but without the option to show everything turned on and likely missed some. Uninstalling the device removes the entries in the registry so you can see when it has worked. Clearly uninstalling random devices isn't the best idea so be careful. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] HttpsUrlConnection Problem
Hi I have been working with the HttpsUrlConnection class and have found an interesting issue, it seems to fail on every other connection. The first request connects to the server successfully but the second one always fails. Any ideas on what i may be doing wrong. Here is my code. Many Thanks HttpsURLConnection httpConnection = null; InputStream is = null; try { httpConnection = (HttpsURLConnection) new URL(url).openConnection (); httpConnection.setRequestProperty( User-Agent, Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/ 2.0.0.1 ); httpConnection.setHostnameVerifier(new HostnameVerifier() { public boolean verify(String hostname, SSLSession session) { return true; } }); httpConnection.setDoOutput(true); httpConnection.setDoInput(true); httpConnection.setUseCaches(false); httpConnection.setRequestProperty(Authorization, Basic + Base64Encoder.encode(username, password)); is = httpConnection.getInputStream(); return parseXmlData(is, type); } catch (MalformedURLException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } finally { if(is != null) { try { is.close(); } catch (IOException e) { e.printStackTrace(); } is = null; } if(httpConnection != null) { httpConnection.disconnect(); httpConnection = null; } } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Does anyone sucessfully port LTTng to Android?
Hi All, I would like to port LTTng to Android. But, I don't know how to port ltt control toolchain. Does anyone have the experience about porting this tool? Very appreciate for your sharing. Best Regards, Elbert --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Android source code versions
Is android-1.5 and cupcake-1.5 is same? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Bluetooth microphone activation
Hi ! I have a bluetooth headset that works fine with android 1.5 for listening music or calling people. My problem is that microphone is only active when I call someone, but I would like it to be activated anytime, for dictation. Is there any way to activate bluetooth microphone wih sdk or is there some special headsets that would be ok for that ? 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 i get the string from edittext?
here is my code,it seems to return false all the time. EditText tv1=(EditText) findViewById(R.id.name); EditText tv2=(EditText) findViewById(R.id.password); if(tv1.getText().toString()==admintv2.getText().toString() ==admin) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Capture video frames
Hi, I´m trying to capture frames from a video file, but I don´t know how to do it. Are there any classes like FrameGrabbingControl (in JMF) for Android? Is it possible with MediaPlayer and MediaRecorder classes? 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] Capture video frames
Hello, how can I capture the frames of a video file? Are there any class like FrameGrabbingControl (in JMF) for Android? Is it possible with MediaPlayer and MediaRecorder classes? Any idea will be greatly appreciated. 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] Setting connection priorities using WifiConfiguration.priority
I am trying to to use WiFi API to set priorities to created profiles. I am using the priority field of WifiConfiguration to set this information. I have found out that no matter what priority I set, Android always tries to re-connect to the latest access point that it was connected to. Here is what I do: 1) I create a profile A with a very low priority (0) 2) I create a profile B with high priority (100) 3) I connect to profile A 4) I turn Wi-Fi off 5) I turn Wi-Fi back on 6) In the scan Android sees both A B 7) Android connects to A, even though its priority is much lower Does anyone has a work around for this? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Help with photo upload api
Hi there, 'm developing an android app that will enable the usr to upload sync their camera photos their we albums(either picasa or flickr or whatever's feasible)... i tried the gdata lib for java which was a failure... n i tried flickr which gave me a very tedious job for the same java lib which i doubt to work with android... plz post any ideas n also plz suggest existing api's or apps with intents for doin the same... Thanks in advance... regards, sujay --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 crop camera preview?
I'm writing an app where the user needs to be able to read text in the camera preview. I've got the preview displaying alright, and the camera has plenty of resolution to make out text at the range I want, but the preview shows a scaled down version of the entire image. I would like to get the preview to display a subset of the image at native resolution, but I'm having trouble getting it to work. A quick search of the mailing list suggests that trying to intercept and manipulate the image through Camera.PreviewCallback.onPreviewFrame is a bad approach so I ditched that. I tried using the Camera.Parameters.setPreviewSize, but it seems to have no effect whatsoever (giving it (1, 1) is the same as giving it (100, 100), which is the same as giving it some rational value). My next thought is to mess around with the Canvas through the SurfaceView's SurfaceHolder, but I don't see a callback that would let me get access each time a frame is ready to display. What would be the best way to preview a subset of the camera preview at native resolution? Thanks - Max --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: I get Unable to resolve static field error
Hello, SDK 1.5 changed the way that 'Java Build Path/Projects' works in the eclipse ADT plugin. (see http://osdir.com/ml/AndroidDevelopers/2009-05/msg00192.html). Previously in eclipse, marking a project to depend on another lead to the compiled .class files from the dependency to be included in your classes.dex and .apk file. This is no longer the case. We encountered the same problem while trying to create a 'content provider'. If you follow the Android guidelines (http://developer.android.com/guide/ topics/providers/content-providers.html) and create a static CONTENT_URI as recommended you will compile in eclipse (if you are using dependent projects) but break at runtime, as the class verifier on the device (or emulator) will not have access to the content provider class. The 'solution' that we used was to not refer to the content providers 'CONTENT_URI' and simply inlined the URI into the code that made the content resolver calls. Regards, Dan. On May 9, 3:29 am, Rakoun regis.geromegn...@gmail.com wrote: I have to project in my eclipse IDE: - my android application, where I defined a content provider, - a junit project base on a article from My life with android blog (http://tinyurl.com/q7v3o5) where I test my content provider. Before I update to 1.5 the junit project work well for my test case. Since I passed to 1.5 sdk the junit test case failed for my test case but work for all test case define in the article of My life with android (http://tinyurl.com/q7v3o5). I compile my junit project in 1.1 and try to test it on a 1.1 avd and 1.5 avd but it still not works. Can anybody help me? Here is the error I get: - 05-09 02:02:43.733: WARN/dalvikvm(1318): VFY: unable to resolve static field 50 (CONTENT_URI) in Lcom/rakoun/boutsdechandelles/ contentprovider/BDCProviderShop$Shops; 05-09 02:02:43.733: WARN/dalvikvm(1318): VFY: rejecting opcode 0x62 at 0x0009 05-09 02:02:43.733: WARN/dalvikvm(1318): VFY: rejected Laexp/junit/ BoutsDeChandellesProviderTest;.testDeleteShop ()V 05-09 02:02:43.743: WARN/dalvikvm(1318): Verifier rejected class Laexp/ junit/BoutsDeChandellesProviderTest; 05-09 02:02:57.724: WARN/dalvikvm(1318): threadid=17: thread exiting with uncaught exception (group=0x4000fe70) 05-09 02:02:57.724: ERROR/AndroidRuntime(1318): Uncaught handler: thread Thread-9 exiting due to uncaught exception 05-09 02:02:57.884: ERROR/AndroidRuntime(1318): java.lang.VerifyError: aexp.junit.BoutsDeChandellesProviderTest 05-09 02:02:57.884: ERROR/AndroidRuntime(1318): at java.lang.Class.getDeclaredConstructors(Native Method) 05-09 02:02:57.884: ERROR/AndroidRuntime(1318): at java.lang.Class.getConstructor(Class.java:484) 05-09 02:02:57.884: ERROR/AndroidRuntime(1318): at junit.framework.TestSuite.getTestConstructor(TestSuite.java:177) 05-09 02:02:57.884: ERROR/AndroidRuntime(1318): at junit.framework.TestSuite.init(TestSuite.java:59) 05-09 02:02:57.884: ERROR/AndroidRuntime(1318): at junit.framework.TestSuite.addTestSuite(TestSuite.java:101) 05-09 02:02:57.884: ERROR/AndroidRuntime(1318): at aexp.junit.ExampleSuite.init(ExampleSuite.java:9) 05-09 02:02:57.884: ERROR/AndroidRuntime(1318): at aexp.junit.TestRunner.run(JUnit.java:144) 05-09 02:02:57.884: ERROR/AndroidRuntime(1318): at java.lang.Thread.run(Thread.java:1058) - Rakoun /°\ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Source Codes
Hi, Are there any sites that provide the source codes for apps? 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] Movie.decodeStream(inputstream) is returning NULL after updating to 1.5 SDK
I updated to 1.5 SDK, together with the ADT. I followed all the instruction properly,rest of the Projects are working fine. but Movie.decodeStream(inputstream) is giving NULL. Not only decodeStream() but all the methods of Movie class returning NULL. I checked out the version notes of SDK 1.5 the Movie class is unchanged. it was working fine with Android 1.1. Could you please suggest me any ways to solve this problem ? My code is as below. Thanks in advance, Freshman ---My code:-- InputStream is = context.getResources().openRawResource (R.drawable.gif_animation); Movie movie = Movie.decodeStream(is); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] zImage and Android for HTC Alpine
Is anybody ported the Android to HTC Alpine? If so is possible to get the files? Thank you Ali --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: how to get random access to raw ressource?
hi, On 19 mai, 18:25, LastQuarter lastquarter0...@gmail.com wrote: I don't know how to get random access to a raw ressource. It is easy to get a FileInputStream from a raw ressource, what about RandomAccessFile? on 1st execution of your app, you may copy your resource to the phone filesystem : FileOutputStream fos = this.openFileOutput(file_copy.raw, MODE_PRIVATE); fos.write(content_raw_file); and then create a randomaccessfile from the copy : RandomAccessFile raf = new RandomAccessFile(this.getFilesDir ().getAbsolutePath()+/file_copy.raw, r); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Does Android have OMA DM, DLOTA client?
I'd like to know where Andriod supports OMA DM(Device Mgmt) , OMA DLOTA ( Download Over The Air). IF yes, please let me know which package supports them in Android. IF not, are there alternative mechanisms in Android or any plan to support them later? 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: SoundPool.play() audio channels swapped on 1.1 emulator ?
I mean that left/right volumes are swapped. I don't know about the channels themselves since I'm using mono files. On May 20, 5:48 pm, sn sylvain.n...@gmail.com wrote: I just found that left/right channels are swapped when calling SoundPool.play(int soundID, float leftVolume, float rightVolume, int priority, int loop, float rate), running in 1.1 emulator on MacOS. Unfortunately I'm far away from my G1 headset (with proprietary connector) so I can't check if the behavior is the same. Does anybody has such problems ? What behavior can I expect on 1.1 and 1.5 devices ? 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] Need Major help on this PLEASE
Hi there, Keep getting this same error message in main.xml. ERROR Error: No resource found that matches the given name (at 'background' with value '@drawable/008'). The image is within the drawable file and therefore I don't understand what's wrong Any advice? 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: Cursor.moveToFirst() is taking up a lot of time
really...? That's surprising. I thought the moveToNext just fetches the rows lazily, fetches them when necessary. On May 20, 2:15 pm, Marco Nelissen marc...@android.com wrote: The first call to moveToNext() is still going to cause getCount() and thus fillWindow() to be called internally, so it won't be any faster. On Wed, May 20, 2009 at 10:58 AM, Streets Of Boston flyingdutc...@gmail.com wrote: In your example, it seems you don't need the getCount() or moveToFirst () at all. The snippet below works well without using getCount or moveToFirst(). [code] Cursor c = db.query(var1, var2, var3 .); while (c.moveToNext()) { // do something with cursor c ... } [/code] On May 18, 10:47 am, Sublimity Mobile Software sublimitysoftw...@gmail.com wrote: Hi, Currently i'm working on a database system for some applications. I need to do a lot of queries to load data from the database into the application. After being amazed how much time it took to do these queries on the database i found out that much time was consumed by cursor.MoveToFirst(). This functions costs currently ~25% of all my database action. Does anyone know why this takes would take so long or does anyone know a better solution to get to the first position of the cursor? My code: Cursor c = db.query(var1, var2, var3 .); c.CustomMoveToFirst(); int count = c.getCount(); for(int i = 0; icount; i++){ doSomethingWithCursor(); c.moveToNext(); } The same problem occurs when i place everything in a while loop and use only the MoveToNext() function. So i think that the problem must be in positioning the cursor to the first position. My code: Cursor c = db.query(var1, var2, var3 .); c.CustomMoveToFirst(); while(c.moveToNext()){ doSomethingWithCursor(); } Thanks, Sublimity Mobile Software- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Redirecting to market search URL doesn't work
2 sounds right. On May 19, 1:38 pm, orangechicken therealdave.my...@gmail.com wrote: To pretty up the URL we have on our site a URL /get/g1. It redirects to our market.android.com/search URL, eghttp://market.android.com/search?q=pname:ourappname. However, going to that link in the G1 browser results in a 404 instead of opening the Market to our app. Questions: 1. Is this a known issue? 2. Does the browser preprocess links on the page but not intercept them in a redirect? Thank you, Dave --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Framework support for detecting starting and stopping of activities
Dianne, Do you see value in extending existing framework and service to support tracking at activity level and submitting back to the community? Thx! On May 13, 4:53 pm, Dianne Hackborn hack...@android.com wrote: I believe the class is UsageStatsService. adb shell dumpsys usagestats will dump its current data. On Wed, May 13, 2009 at 2:21 PM, clemsongrad dpotl...@gmail.com wrote: Dianne, Could you please shed any light on where i should look in 1.5 for this launch information? Atleast i can research on what is there instead of reinventing the wheel. -Best Regards, On May 13, 4:00 pm, Dianne Hackborn hack...@android.com wrote: There is nothing in the SDK for this. In 1.5 there is now some lauch information maintained by the system, which you can modify to have reported if you'd like, though it is pretty rudimentary (for each day, the number of times each .apk has been resumed, and the total duration it was resumed). You will need to build your own system to do anything like this though. On Wed, May 13, 2009 at 1:28 PM, clemsongrad dpotl...@gmail.com wrote: To support usability studies on what applications are used, i want to write a service that logs when an activity is started and also when it has finished. This is to understand how the users are using the device: One straightforward option is to have the applications modify, to write this out. But this is tedious having to modify all applications and will not work esp with third party or built in applications. Is there any alternatives that makes this simpler and easier? BTW: Looking at the android framework source ActivityManagerNative seems to be invoking a Binder interface when an Activity is started and finished. Any information on what this service is? Is this something i can tap into? Apologizes if i am looking at the wrong code, my first foray in to the framework code. Any information or thoughts is greatly appreciated. Thx! -- 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] BroadcastReceivers not receiving PendingIntents
a while back i posted an issue i was having when my BroadcastListener was listening for phone state and sending the info over to an Activity which would present UI. but getIntent() in the receiving Activity always brought back the initial one. should i be using something off PendingIntent in that case too? thanks You should be using PendingIntent.getBroadcast() instead of getActivity(). :) j On Wed, May 20, 2009 at 3:23 AM, Alan Jones skyp...@gmail.com wrote: Hi All, I've had an issue where no matter how I've tried to set it up I'm finding the BroadcastReceivers aren't receiving any PendingIntents. A look through LogCat confirms that the intents are launched, but they're not being executed. I managed to make a simple(ish) repro case. If you take the SimpleWiktionary widget by Jeff Sharkey http://code.google.com/p/wiktionary-android/ and make the following changes plus any required imports. Replace the Service's onStart with this code public static class UpdateService extends Service { @Override public void onStart(Intent intent, int startId) { // Build the widget update for today RemoteViews updateViews = buildUpdate(this); // Push update for this widget to the home screen ComponentName thisWidget = new ComponentName(this, WordWidget.class); AppWidgetManager manager = AppWidgetManager.getInstance (this); manager.updateAppWidget(thisWidget, updateViews); Context context = getBaseContext(); long nextAlarm = System.currentTimeMillis() + 15000; Intent alarmIntent = new Intent(context, WordWidget.class); PendingIntent pendingIntent = PendingIntent.getActivity(context, 0 /* no requestCode */, alarmIntent, 0 /* no flags */); AlarmManager alarmManager = (AlarmManager) context.getSystemService(android.app.Activity.ALARM_SERVICE); alarmManager.set(AlarmManager.RTC_WAKEUP, nextAlarm, pendingIntent); } /code and add an override to onReceive like this code @Override public void onReceive(Context context, Intent intent) { final String action = intent.getAction(); Log.d(WordWidget, Action: + action); super.onReceive(context, intent); } /code Then add the widget to your desktop and watch LogCat. After 15 seconds you'll see the intent getting launched, but nothing logged with the tag WordWidget. I've got no idea what I've done wrong, anybody having a well, there's your problem. moment? Cheers, Alan. -- Jeff Sharkey jshar...@android.com -- jason.software.particle --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Puzzled by soft keyboard
Hi, I have a regular EditText that nicely pops up the soft keyboard when the hardware keyboard is closed. Entering data also works fine and gets preserved by my app. However, when I try to track individual key presses using the following code, EditText myedit; // Only gets number keys?? myedit.setOnKeyListener(new EditText.OnKeyListener() { @Override public boolean onKey(View v, int keyCode, KeyEvent event) { Log.i(OIC,keycode +keyCode); KeyCharacterMap kmap = KeyCharacterMap.load(event.getDeviceId ()); if (kmap.isPrintingKey(keyCode) event.getAction() == KeyEvent.ACTION_DOWN) { // Blah, blah } return false; } }); no key presses show up in LogCat *except* for number key presses (0-9). No letters, punctuation, or anything other than numeric digits and a few special keys such as Del and Return. Is this a bug or a feature? In this particular case I am only interested in individual alphabetic key presses, but the listener fails to report them. What's wrong? I'm using the official Android 1.5 on my ADP. 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: Does Android have OMA DM, DLOTA client?
My understanding is that there is no OMA DM support. One option suggested in other posts are to look at RedBend and InnoPath for that support. I remember seeing couple of discussions on this group regarding that. Pl search and you should be able to find it. Regardless, i summarized it for you i think. On May 20, 4:30 am, onceaweek kyu@gmail.com wrote: I'd like to know where Andriod supports OMA DM(Device Mgmt) , OMA DLOTA ( Download Over The Air). IF yes, please let me know which package supports them in Android. IF not, are there alternative mechanisms in Android or any plan to support them later? 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] What is the best way to perfrmo a query on a Pepole.
Hi, I wan to perfrom a query acorrding to a people, meanning that i need to find out evrething there is to find out on a contact acorrding to his Name ? , how can i perfrom a query that shows me all the phone numbers , all the emails etc. ?? Thanks. Tom --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How can i get the string from edittext?
try: if (tv1.getText().toString().equals(admin) tv2.getText().toString ().equals(admin)) jer On May 20, 2:21 am, hencechen...@gmail.com hencechen...@gmail.com wrote: here is my code,it seems to return false all the time. EditText tv1=(EditText) findViewById(R.id.name); EditText tv2=(EditText) findViewById(R.id.password); if(tv1.getText().toString()==admintv2.getText().toString() ==admin) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Need Major help on this PLEASE
At 11:24 AM -0700 5/20/09, androiddev123 wrote: ERROR Error: No resource found that matches the given name (at 'background' with value '@drawable/008'). What is the corresponding file name? 008.png? I've not tried a pure number as a filename, and the resource compiler is fussy about caps and so forth. What happens if you call it image_008.png and image_008 in the XML? -- Ward --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: create new home screen
It's in the SDK :) On Tue, May 19, 2009 at 2:02 PM, androiddev123 androiddev123ph...@googlemail.com wrote: Hi Mark, Can you provide myself with the entire directory source code for this app? Regards, On May 4, 7:05 pm, Mark Murphy mmur...@commonsware.com wrote: droiddroid wrote: How areaHomeand Sweeter home hijacking the home page? I have the SDK, but have no idea how to do it. The Android SDK comes with a sample home screen application. Most of the magic is in the AndroidManifest.xml file: activity android:name=Home android:theme=@style/Theme android:launchMode=singleInstance android:stateNotNeeded=true intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.HOME/ category android:name=android.intent.category.DEFAULT / /intent-filter /activity -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 2.0 Available! -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How can i get the string from edittext?
Concur, that's a popular beginning Java mistake. Do some google research on Java strings and how == and equals() work. Good luck. On May 20, 11:42 am, NyquilDotOrg jerwar...@gmail.com wrote: try: if (tv1.getText().toString().equals(admin) tv2.getText().toString ().equals(admin)) jer On May 20, 2:21 am, hencechen...@gmail.com hencechen...@gmail.com wrote: here is my code,it seems to return false all the time. EditText tv1=(EditText) findViewById(R.id.name); EditText tv2=(EditText) findViewById(R.id.password); if(tv1.getText().toString()==admintv2.getText().toString() ==admin) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] webKit
Hi I am writing an application that involves searching some specific words in binary files stored in my server at the moment I am searching for those words in a very ineficient way (reading the binary files and compare their content with the words that I am looking for), and I wondered whether is a better way... does anybody know if I can use the webkit package for this? searching for a specific content in some files in a server? 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: Shipping to Hong Kong
Hi LeanAngel, I'm the developer of My Battery Status and i'm currently living in Hong Kong. Basically i got my phone from my sister (in US where she lives). I'm using China Mobile (Peoples) right now and everything seems fine, had my phone since december. You can hook up the APN (for internet) by searching google for the setup instruction. On the question will it work if it came from other country, i got mine working for almost 6 months right now. On where you can get your hands on one, just go to MongKok (near ladies market, besides the minibus stand, going to Prince Edward) there's a lot there, i brought mine in US coz it was cheeper even with the shipping. Hope this clears up your question. Monmonja http://almondmendoza.com On May 20, 11:51 pm, Dr.Luiji luigi.berton...@gmail.com wrote: Hi LeanAngel, This is a real problem. I've had the same problem few months ago (for Italy). I took with the android staff and after a ton of mails the result is: it's impossible. To solve this problem I asked to my US friend to buy and and send it to me. I've try to: - Android Dev Support - Android Marketing good luck Dr.Luiji On May 20, 10:05 am, LeanAngel jxx.c...@gmail.com wrote: Com'on anybody? And, if I get it re-directed from another country, is there any chance that it won't work at all? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] What's the point of the AudioRecord callback functions?
I think I have a basic AudioRecord app working. I say I think because it's all in the emulator and my desktop doesn't even have a mic plugged in, so my ability to test is severely limited until I get 1.5 on my G1 for hardware/mic testing), but I'm confused about AudioRecord's overall structure. As far as I can tell, one must explicitly poll for new audio data by calling read() on a regular basis, i.e., in some sort of loop or on a timer or something like that. The two AudioRecord callback routines do get called, but only after I call read(), and only once per call to read(), so what purpose do they serve? When I have done audio programming like this on other platforms (Mac), a callback is registered and triggered on each audio hardware device interrupt (each time the hardware buffer is filled). In such a case, a callback actually serves a useful purpose because my app doesn't have to explicitly poll for new data, but I just don't get it w.r.t. AudioRecord. What am I missing here? What is the scenario to which the callbacks are applicable? Is it my scenario, where I am processing audio on the data without saving it? Is constantly polling with read() the wrong approach? If so, how do I get the callbacks to trigger repeatedly? 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 -~--~~~~--~~--~--~---