[android-developers] Re: Problem with sound on Notifications on Emulator
The API Demos has examples. Checkout StatusBarNotifications and NotifyingService. For your example Vibrating: // if vibrate on- after a 100ms delay, vibrate for 200ms, pause for 150 // ms and then vibrate for 500ms. notification.vibrate = new long[] { 100,200,150, 500 }; if you are not particular about playing your sound, soundUri = content://settings/system/notification_sound notification.sound = soundUri; You can use the following to just use default vibration and sounds. notification.defaults = Notification.DEFAULT_ALL I haven't noticed in logcat any messages for Vibrate, but it works on the device. Cheers, Chander --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Touch screen response delay
I figured out what was causing my particular problem. Both the method that draws the SurfaceView and the method that handles the touch events were synchronized with the same object. I'm guessing the delays were caused because the touch event handler method couldn't access this object while the drawing method was running... which was just about all the time. To resolve the problem, all I had to do was remove the synchronization from the touch event handler method and modify my drawing method so that it accessed the camera's location only once (which I would have done in the first place had I been writing efficient code). I'm feeling pretty dumb for missing that... but thank you nonetheless for your helpful responses! They definitely got me thinking toward the solution. On Feb 6, 7:58 pm, Al alcapw...@googlemail.com wrote: Hi, have you checked the trace file that is written when an anr occurs? It shoud be in /data/anr with the filename traces.txt. This will show exactly what was running and at what line of code when the anr popped up and should help locate the problem code. On Feb 6, 7:03 pm, Zombies and Robots caecus...@gmail.com wrote: Hello. I am working on a game that displays its graphics through a modified SurfaceView. The game scrolls around a map based on the location of the main character. That all works fine. I am trying to add a feature to the game that allows you to touch the screen and drag the camera around to see other parts of the map. This is where I am running into trouble. The game's SurfaceView overrides 'public boolean onTouchEvent(MotionEvent event)' to call another method in the game's thread which handles the events. Sometimes, this works fine (although the frame rate drops significantly while the screen is touched). Other times, there will be a delay of several seconds before the game responds to a touch event, during which time the game continues, but the user loses all control. During these delays, a message sometimes appears stating that my activity is not responding, and giving the options to 'Force close' or 'Wait'. If the user selects 'Wait', the game almost always resumes right away, but these delays are obviously not acceptable. The delays occur only the first time the screen is touched after the game is started. Once the game has resumed after a delay, the touch events work just fine again. I have experimented with having the game thread sleep for short periods at various points throughout the game. Although this does seem to have a small effect on the problem, the delays still happen. Has anyone else run into this? What am I doing wrong? Thank you very much for any suggestions you can provide. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] If i use the internet in my app, how long does it stay connected?
Hi, sorry for asking some questions that might seem stupid to some - i don't have a G1, only the emulator: if in an app i use let's say HttpUrlConnection to send some stuff to a server, and then i don't need it any more (basically i don't use it anymore): 1) Does Android know i'm needing the internet, and will it connect? (or do i need to do something special?) 2) If i don't use it anymore, is there a timeout after which it will disconnect? I don't want the user to remain connected if it's my app that created the connection... Thanks, Teo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: SlidingDrawer not working with RC33
Romain Guy wrote: Please, please don't use private APIs, it only hurts the users :( Got to admit my local doctor rarely sees people complaining about injuries caused by private API usage, but I haven't checked with the ER yet ;). Al. -- == 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. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: SlidingDrawer not working with RC33
Maybe an API compliance test should be run as part of any app build. Does an API usage checking tool exist? and is it publicly available? Al. Jean-Baptiste Queru wrote: Even worse, it hurts the entire ecosystem, by making users believe that plaftorm upgrades have bugs when in fact the applications are broken to start with. JBQ On Sat, Feb 7, 2009 at 3:18 PM, Romain Guy romain...@google.com wrote: That means your app will break in cupcake though. Please, please don't use private APIs, it only hurts the users :( On Feb 7, 2009 1:43 PM, Stefan skyntc...@gmail.com wrote: After digging a bit around in the source code, it looks like the namespace used for the attributes of the internal widgets has changed in RC33 from xmlns:android=http://schemas.android.com/apk/res/ android to some other namespace (probably something like http://schemas.android.com/apk/res/android.intenral ??) and that caused the SlidingDrawer to not find its attributes. Well... one should never rely on internal classes, but... the SlidingDrawer is actually so useful... I am glad it will make it as an officially supported class. On Feb 7, 4:34 pm, Romain Guy romain...@google.com wrote: Even worse, SlidingDrawer will move ... On Sat, Feb 7, 2009 at 12:14 PM, Jean-Baptiste Queru j...@android.com wrote:Oh, ah, I had... On Sat, Feb 7, 2009 at 11:28 AM, Romain Guy romain...@google.com wrote:No, SlidingDraw... On Sat, Feb 7, 2009 at 7:18 AM, Jean-Baptiste Queru j...@android.com wrote: Can you please report this issue inhttp://b.android.com/? (a plain copy-paste will do).Thanks, JBQ On Sat, Feb 7, 2009 at 6:54 AM, Stefan skyntc...@gmail.com wrote: It appears that ... romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private... 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 suppo... -- == 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. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: SlidingDrawer not working with RC33
That's the whole point of the SDK. It does NOT let you use private APIs since they are stripped out of the SDK. If you compile your app against the git tree or a custom SDK, there's not much we can do. It's also up to the developers to be reasonable. On Sun, Feb 8, 2009 at 1:43 AM, Al Sutton a...@funkyandroid.com wrote: Maybe an API compliance test should be run as part of any app build. Does an API usage checking tool exist? and is it publicly available? Al. Jean-Baptiste Queru wrote: Even worse, it hurts the entire ecosystem, by making users believe that plaftorm upgrades have bugs when in fact the applications are broken to start with. JBQ On Sat, Feb 7, 2009 at 3:18 PM, Romain Guy romain...@google.com wrote: That means your app will break in cupcake though. Please, please don't use private APIs, it only hurts the users :( On Feb 7, 2009 1:43 PM, Stefan skyntc...@gmail.com wrote: After digging a bit around in the source code, it looks like the namespace used for the attributes of the internal widgets has changed in RC33 from xmlns:android=http://schemas.android.com/apk/res/ android to some other namespace (probably something like http://schemas.android.com/apk/res/android.intenral ??) and that caused the SlidingDrawer to not find its attributes. Well... one should never rely on internal classes, but... the SlidingDrawer is actually so useful... I am glad it will make it as an officially supported class. On Feb 7, 4:34 pm, Romain Guy romain...@google.com wrote: Even worse, SlidingDrawer will move ... On Sat, Feb 7, 2009 at 12:14 PM, Jean-Baptiste Queru j...@android.com wrote:Oh, ah, I had... On Sat, Feb 7, 2009 at 11:28 AM, Romain Guy romain...@google.com wrote:No, SlidingDraw... On Sat, Feb 7, 2009 at 7:18 AM, Jean-Baptiste Queru j...@android.com wrote: Can you please report this issue inhttp://b.android.com/? (a plain copy-paste will do).Thanks, JBQ On Sat, Feb 7, 2009 at 6:54 AM, Stefan skyntc...@gmail.com wrote: It appears that ... romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private... 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 suppo... -- == 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. -- 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: SlidingDrawer not working with RC33
Is checking API usage in a apk feasible? That way problems could be picked up at distribution or installation time? Al. Romain Guy wrote: That's the whole point of the SDK. It does NOT let you use private APIs since they are stripped out of the SDK. If you compile your app against the git tree or a custom SDK, there's not much we can do. It's also up to the developers to be reasonable. On Sun, Feb 8, 2009 at 1:43 AM, Al Sutton a...@funkyandroid.com wrote: Maybe an API compliance test should be run as part of any app build. Does an API usage checking tool exist? and is it publicly available? Al. Jean-Baptiste Queru wrote: Even worse, it hurts the entire ecosystem, by making users believe that plaftorm upgrades have bugs when in fact the applications are broken to start with. JBQ On Sat, Feb 7, 2009 at 3:18 PM, Romain Guy romain...@google.com wrote: That means your app will break in cupcake though. Please, please don't use private APIs, it only hurts the users :( On Feb 7, 2009 1:43 PM, Stefan skyntc...@gmail.com wrote: After digging a bit around in the source code, it looks like the namespace used for the attributes of the internal widgets has changed in RC33 from xmlns:android=http://schemas.android.com/apk/res/ android to some other namespace (probably something like http://schemas.android.com/apk/res/android.intenral ??) and that caused the SlidingDrawer to not find its attributes. Well... one should never rely on internal classes, but... the SlidingDrawer is actually so useful... I am glad it will make it as an officially supported class. On Feb 7, 4:34 pm, Romain Guy romain...@google.com wrote: Even worse, SlidingDrawer will move ... On Sat, Feb 7, 2009 at 12:14 PM, Jean-Baptiste Queru j...@android.com wrote:Oh, ah, I had... On Sat, Feb 7, 2009 at 11:28 AM, Romain Guy romain...@google.com wrote:No, SlidingDraw... On Sat, Feb 7, 2009 at 7:18 AM, Jean-Baptiste Queru j...@android.com wrote: Can you please report this issue inhttp://b.android.com/? (a plain copy-paste will do).Thanks, JBQ On Sat, Feb 7, 2009 at 6:54 AM, Stefan skyntc...@gmail.com wrote: It appears that ... romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private... 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 suppo... -- == 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. -- == 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. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: SlidingDrawer not working with RC33
It would be way too costly to do it at install time (both in CPU and disk space.) We could do the check during the upload to Market but that wouldn't solve the issue with apps installed through other means (especially alternatives to Market.) I'd rather trust the developers to do the right thing. On Sun, Feb 8, 2009 at 2:02 AM, Al Sutton a...@funkyandroid.com wrote: Is checking API usage in a apk feasible? That way problems could be picked up at distribution or installation time? Al. Romain Guy wrote: That's the whole point of the SDK. It does NOT let you use private APIs since they are stripped out of the SDK. If you compile your app against the git tree or a custom SDK, there's not much we can do. It's also up to the developers to be reasonable. On Sun, Feb 8, 2009 at 1:43 AM, Al Sutton a...@funkyandroid.com wrote: Maybe an API compliance test should be run as part of any app build. Does an API usage checking tool exist? and is it publicly available? Al. Jean-Baptiste Queru wrote: Even worse, it hurts the entire ecosystem, by making users believe that plaftorm upgrades have bugs when in fact the applications are broken to start with. JBQ On Sat, Feb 7, 2009 at 3:18 PM, Romain Guy romain...@google.com wrote: That means your app will break in cupcake though. Please, please don't use private APIs, it only hurts the users :( On Feb 7, 2009 1:43 PM, Stefan skyntc...@gmail.com wrote: After digging a bit around in the source code, it looks like the namespace used for the attributes of the internal widgets has changed in RC33 from xmlns:android=http://schemas.android.com/apk/res/ android to some other namespace (probably something like http://schemas.android.com/apk/res/android.intenral ??) and that caused the SlidingDrawer to not find its attributes. Well... one should never rely on internal classes, but... the SlidingDrawer is actually so useful... I am glad it will make it as an officially supported class. On Feb 7, 4:34 pm, Romain Guy romain...@google.com wrote: Even worse, SlidingDrawer will move ... On Sat, Feb 7, 2009 at 12:14 PM, Jean-Baptiste Queru j...@android.com wrote:Oh, ah, I had... On Sat, Feb 7, 2009 at 11:28 AM, Romain Guy romain...@google.com wrote:No, SlidingDraw... On Sat, Feb 7, 2009 at 7:18 AM, Jean-Baptiste Queru j...@android.com wrote: Can you please report this issue inhttp://b.android.com/? (a plain copy-paste will do).Thanks, JBQ On Sat, Feb 7, 2009 at 6:54 AM, Stefan skyntc...@gmail.com wrote: It appears that ... romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private... 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 suppo... -- == 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. -- == 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. -- 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: SlidingDrawer not working with RC33
That said, it could be interesting to flag bad apps on Market and warn the user that the app he's about to download might break with a future update of the system :)) On Sun, Feb 8, 2009 at 2:06 AM, Romain Guy romain...@google.com wrote: It would be way too costly to do it at install time (both in CPU and disk space.) We could do the check during the upload to Market but that wouldn't solve the issue with apps installed through other means (especially alternatives to Market.) I'd rather trust the developers to do the right thing. On Sun, Feb 8, 2009 at 2:02 AM, Al Sutton a...@funkyandroid.com wrote: Is checking API usage in a apk feasible? That way problems could be picked up at distribution or installation time? Al. Romain Guy wrote: That's the whole point of the SDK. It does NOT let you use private APIs since they are stripped out of the SDK. If you compile your app against the git tree or a custom SDK, there's not much we can do. It's also up to the developers to be reasonable. On Sun, Feb 8, 2009 at 1:43 AM, Al Sutton a...@funkyandroid.com wrote: Maybe an API compliance test should be run as part of any app build. Does an API usage checking tool exist? and is it publicly available? Al. Jean-Baptiste Queru wrote: Even worse, it hurts the entire ecosystem, by making users believe that plaftorm upgrades have bugs when in fact the applications are broken to start with. JBQ On Sat, Feb 7, 2009 at 3:18 PM, Romain Guy romain...@google.com wrote: That means your app will break in cupcake though. Please, please don't use private APIs, it only hurts the users :( On Feb 7, 2009 1:43 PM, Stefan skyntc...@gmail.com wrote: After digging a bit around in the source code, it looks like the namespace used for the attributes of the internal widgets has changed in RC33 from xmlns:android=http://schemas.android.com/apk/res/ android to some other namespace (probably something like http://schemas.android.com/apk/res/android.intenral ??) and that caused the SlidingDrawer to not find its attributes. Well... one should never rely on internal classes, but... the SlidingDrawer is actually so useful... I am glad it will make it as an officially supported class. On Feb 7, 4:34 pm, Romain Guy romain...@google.com wrote: Even worse, SlidingDrawer will move ... On Sat, Feb 7, 2009 at 12:14 PM, Jean-Baptiste Queru j...@android.com wrote:Oh, ah, I had... On Sat, Feb 7, 2009 at 11:28 AM, Romain Guy romain...@google.com wrote:No, SlidingDraw... On Sat, Feb 7, 2009 at 7:18 AM, Jean-Baptiste Queru j...@android.com wrote: Can you please report this issue inhttp://b.android.com/? (a plain copy-paste will do).Thanks, JBQ On Sat, Feb 7, 2009 at 6:54 AM, Stefan skyntc...@gmail.com wrote: It appears that ... romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private... 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 suppo... -- == 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. -- == 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. -- 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 -- 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: SlidingDrawer not working with RC33
I'd rather trust the developers to do the right thing. That's probably how Microsoft felt about Windows developers before the first virus came along. With APK API checking at point of distribution (AndAppStore, Market, SlideME, etc.), we could cover most user installs. I fully agree that installing from a developers site bypasses this, but once of the value add features distribution channels could add is ensuring that apks are future-proofed in terms of APIs. Al. Romain Guy wrote: It would be way too costly to do it at install time (both in CPU and disk space.) We could do the check during the upload to Market but that wouldn't solve the issue with apps installed through other means (especially alternatives to Market.) I'd rather trust the developers to do the right thing. On Sun, Feb 8, 2009 at 2:02 AM, Al Sutton a...@funkyandroid.com wrote: Is checking API usage in a apk feasible? That way problems could be picked up at distribution or installation time? Al. Romain Guy wrote: That's the whole point of the SDK. It does NOT let you use private APIs since they are stripped out of the SDK. If you compile your app against the git tree or a custom SDK, there's not much we can do. It's also up to the developers to be reasonable. On Sun, Feb 8, 2009 at 1:43 AM, Al Sutton a...@funkyandroid.com wrote: Maybe an API compliance test should be run as part of any app build. Does an API usage checking tool exist? and is it publicly available? Al. Jean-Baptiste Queru wrote: Even worse, it hurts the entire ecosystem, by making users believe that plaftorm upgrades have bugs when in fact the applications are broken to start with. JBQ On Sat, Feb 7, 2009 at 3:18 PM, Romain Guy romain...@google.com wrote: That means your app will break in cupcake though. Please, please don't use private APIs, it only hurts the users :( On Feb 7, 2009 1:43 PM, Stefan skyntc...@gmail.com wrote: After digging a bit around in the source code, it looks like the namespace used for the attributes of the internal widgets has changed in RC33 from xmlns:android=http://schemas.android.com/apk/res/ android to some other namespace (probably something like http://schemas.android.com/apk/res/android.intenral ??) and that caused the SlidingDrawer to not find its attributes. Well... one should never rely on internal classes, but... the SlidingDrawer is actually so useful... I am glad it will make it as an officially supported class. On Feb 7, 4:34 pm, Romain Guy romain...@google.com wrote: Even worse, SlidingDrawer will move ... On Sat, Feb 7, 2009 at 12:14 PM, Jean-Baptiste Queru j...@android.com wrote:Oh, ah, I had... On Sat, Feb 7, 2009 at 11:28 AM, Romain Guy romain...@google.com wrote:No, SlidingDraw... On Sat, Feb 7, 2009 at 7:18 AM, Jean-Baptiste Queru j...@android.com wrote: Can you please report this issue inhttp://b.android.com/? (a plain copy-paste will do).Thanks, JBQ On Sat, Feb 7, 2009 at 6:54 AM, Stefan skyntc...@gmail.com wrote: It appears that ... romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private... 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 suppo... -- == 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. -- == 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. -- == 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. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to
[android-developers] Re: SlidingDrawer not working with RC33
I'm not sure if it should be part of the sdk. any app created with the sdk already would pass this check. It should more be a tool built into the normal make process so you get warnings like you get right now if you change the api. Additionally it could notify the developer and maybe show him a link with FAQs about internal api usage, or jni, or whatever evil was detected in the app. On Sun, Feb 8, 2009 at 11:10 AM, Al Sutton a...@funkyandroid.com wrote: Looks like we're on the same page :). Just PLEASE make this a public API checker (possibly as part of the SDK). I'd happily include the check into AndAppStore, and I'm sure Shane would be interested in putting into SlideME as well. Al. Romain Guy wrote: That said, it could be interesting to flag bad apps on Market and warn the user that the app he's about to download might break with a future update of the system :)) On Sun, Feb 8, 2009 at 2:06 AM, Romain Guy romain...@google.com wrote: It would be way too costly to do it at install time (both in CPU and disk space.) We could do the check during the upload to Market but that wouldn't solve the issue with apps installed through other means (especially alternatives to Market.) I'd rather trust the developers to do the right thing. On Sun, Feb 8, 2009 at 2:02 AM, Al Sutton a...@funkyandroid.com wrote: Is checking API usage in a apk feasible? That way problems could be picked up at distribution or installation time? Al. Romain Guy wrote: That's the whole point of the SDK. It does NOT let you use private APIs since they are stripped out of the SDK. If you compile your app against the git tree or a custom SDK, there's not much we can do. It's also up to the developers to be reasonable. On Sun, Feb 8, 2009 at 1:43 AM, Al Sutton a...@funkyandroid.com wrote: Maybe an API compliance test should be run as part of any app build. Does an API usage checking tool exist? and is it publicly available? Al. Jean-Baptiste Queru wrote: Even worse, it hurts the entire ecosystem, by making users believe that plaftorm upgrades have bugs when in fact the applications are broken to start with. JBQ On Sat, Feb 7, 2009 at 3:18 PM, Romain Guy romain...@google.com wrote: That means your app will break in cupcake though. Please, please don't use private APIs, it only hurts the users :( On Feb 7, 2009 1:43 PM, Stefan skyntc...@gmail.com wrote: After digging a bit around in the source code, it looks like the namespace used for the attributes of the internal widgets has changed in RC33 from xmlns:android=http://schemas.android.com/apk/res/ android to some other namespace (probably something like http://schemas.android.com/apk/res/android.intenral ??) and that caused the SlidingDrawer to not find its attributes. Well... one should never rely on internal classes, but... the SlidingDrawer is actually so useful... I am glad it will make it as an officially supported class. On Feb 7, 4:34 pm, Romain Guy romain...@google.com wrote: Even worse, SlidingDrawer will move ... On Sat, Feb 7, 2009 at 12:14 PM, Jean-Baptiste Queru j...@android.com wrote:Oh, ah, I had... On Sat, Feb 7, 2009 at 11:28 AM, Romain Guy romain...@google.com wrote:No, SlidingDraw... On Sat, Feb 7, 2009 at 7:18 AM, Jean-Baptiste Queru j...@android.com wrote: Can you please report this issue inhttp://b.android.com/? (a plain copy-paste will do).Thanks, JBQ On Sat, Feb 7, 2009 at 6:54 AM, Stefan skyntc...@gmail.com wrote: It appears that ... romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private... 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 suppo... -- == 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. -- == 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. -- 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 -- == Funky Android Limited is registered in England Wales with the company number 6741909. The registered head office is Kemp House, 152-160 City
[android-developers] Re: SlidingDrawer not working with RC33
I agree it's not necessary if you're building apps with the SDK, but I see it's primary usage as being by developers wanting to check an apks' compliance level and its' results would be firmly tied to the android version and thus the SDK version, so an API checker from the 1.0 SDK may generate errors for cupcake apps, but an API checker from the cupcake SDK would pass them. Al. Urs Grob wrote: I'm not sure if it should be part of the sdk. any app created with the sdk already would pass this check. It should more be a tool built into the normal make process so you get warnings like you get right now if you change the api. Additionally it could notify the developer and maybe show him a link with FAQs about internal api usage, or jni, or whatever evil was detected in the app. On Sun, Feb 8, 2009 at 11:10 AM, Al Sutton a...@funkyandroid.com wrote: Looks like we're on the same page :). Just PLEASE make this a public API checker (possibly as part of the SDK). I'd happily include the check into AndAppStore, and I'm sure Shane would be interested in putting into SlideME as well. Al. Romain Guy wrote: That said, it could be interesting to flag bad apps on Market and warn the user that the app he's about to download might break with a future update of the system :)) On Sun, Feb 8, 2009 at 2:06 AM, Romain Guy romain...@google.com wrote: It would be way too costly to do it at install time (both in CPU and disk space.) We could do the check during the upload to Market but that wouldn't solve the issue with apps installed through other means (especially alternatives to Market.) I'd rather trust the developers to do the right thing. On Sun, Feb 8, 2009 at 2:02 AM, Al Sutton a...@funkyandroid.com wrote: Is checking API usage in a apk feasible? That way problems could be picked up at distribution or installation time? Al. Romain Guy wrote: That's the whole point of the SDK. It does NOT let you use private APIs since they are stripped out of the SDK. If you compile your app against the git tree or a custom SDK, there's not much we can do. It's also up to the developers to be reasonable. On Sun, Feb 8, 2009 at 1:43 AM, Al Sutton a...@funkyandroid.com wrote: Maybe an API compliance test should be run as part of any app build. Does an API usage checking tool exist? and is it publicly available? Al. Jean-Baptiste Queru wrote: Even worse, it hurts the entire ecosystem, by making users believe that plaftorm upgrades have bugs when in fact the applications are broken to start with. JBQ On Sat, Feb 7, 2009 at 3:18 PM, Romain Guy romain...@google.com wrote: That means your app will break in cupcake though. Please, please don't use private APIs, it only hurts the users :( On Feb 7, 2009 1:43 PM, Stefan skyntc...@gmail.com wrote: After digging a bit around in the source code, it looks like the namespace used for the attributes of the internal widgets has changed in RC33 from xmlns:android=http://schemas.android.com/apk/res/ android to some other namespace (probably something like http://schemas.android.com/apk/res/android.intenral ??) and that caused the SlidingDrawer to not find its attributes. Well... one should never rely on internal classes, but... the SlidingDrawer is actually so useful... I am glad it will make it as an officially supported class. On Feb 7, 4:34 pm, Romain Guy romain...@google.com wrote: Even worse, SlidingDrawer will move ... On Sat, Feb 7, 2009 at 12:14 PM, Jean-Baptiste Queru j...@android.com wrote:Oh, ah, I had... On Sat, Feb 7, 2009 at 11:28 AM, Romain Guy romain...@google.com wrote:No, SlidingDraw... On Sat, Feb 7, 2009 at 7:18 AM, Jean-Baptiste Queru j...@android.com wrote: Can you please report this issue inhttp://b.android.com/? (a plain copy-paste will do).Thanks, JBQ On Sat, Feb 7, 2009 at 6:54 AM, Stefan skyntc...@gmail.com wrote: It appears that ... romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private... 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 suppo... -- == 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
[android-developers] Re: Bring up active dialer or send dial tone
Thanks for the response! It'll be nice to be able to make a custom DTMF dialer. Too bad about not being able to send a signal to bring up the dialer for an existing call. My convenience app will only be able to solve one issue instead of two... Thanks, Steve On Feb 2, 3:08 pm, David d...@android.com wrote: On Jan 27, 2:45 am, songs coca.c...@gmail.com wrote: Hi, I'm trying to write a convenience app that needs to bring up the active dialer for a connected call, but I'm having issues after trying a couple of approaches. Sorry, right now the DTMF dialpad is built in to the in-call UI (i.e. it's not a separate activity, like the outgoing-call Dialer is) and there's currently no API to control it. We *do* hope to make some major updates to the android.telephony.TelephonyManager API in a future release, allowing lots more control over telephony features (such sending DTMF tones over the uplink, so a 3rd party app could interact with an IVR system or provide an alternate DTMF dialpad.) I don't think we have any plans to let 3rd party apps control the internal UI of the in-call screen, though (like forcing the DTMF dialpad to come up). Feel free to file an RFE, though. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] PhoneStateListener state transitions
Hi, I'm a little confused by what I'm seeing with regards to phone state transitions via the PhoneStateListener. When I receive a call, this is what happens: (call comes in) RINGING - IDLE (I pick up) OFFHOOK (I hang up) IDLE It's that first transition from RINGING to IDLE without any interaction from me (not ending the call, not answering the call) that confuses me. Do I really have to implement an idle counter to know that an incoming call has really ended? Seems like the reported phone state represents some sort of phone state that isn't the obvious one... Is this a bug or am I just not in tune with the paradigm here? Regards, Steve --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: PhoneStateListener state transitions
Also, adding/receiving other calls while on an existing doesn't seem to send any new events. On Feb 8, 3:21 am, songs coca.c...@gmail.com wrote: Hi, I'm a little confused by what I'm seeing with regards to phone state transitions via the PhoneStateListener. When I receive a call, this is what happens: (call comes in) RINGING - IDLE (I pick up) OFFHOOK (I hang up) IDLE It's that first transition from RINGING to IDLE without any interaction from me (not ending the call, not answering the call) that confuses me. Do I really have to implement an idle counter to know that an incoming call has really ended? Seems like the reported phone state represents some sort of phone state that isn't the obvious one... Is this a bug or am I just not in tune with the paradigm here? Regards, Steve --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Technique for displaying different options menus
Hi, I'm trying to figure out a way to display different option menu groups at a time based on various events. For instanece, if the click listeners on certain views have been triggered, the activity should bring up a specific option menu. On the other hand if they are not on focussed, by pressing the menu button the activity should display different more generic menu options. I've played around with Menu.setGroupVisible(int groud, boolean visible), however, I couldn't work out a way to have it working properly. I've been stuck on this for a day now. Any suggestions are welcomed! Many 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: SlidingDrawer not working with RC33
Dianne, In this particular case, the SlidingDrawer class is not private, it is public but it is in the package com.android.internal.widget package. This .internal. (and the lack of official documentation on it) is the only clue you get that this class is probably not intended to be used directly. (I come from the world of Windows Mobile development where it is to a large degree a custom to rely on some undocumented APIs to do what you want to do, so that made me take that gamble, which in my case did not pay of) I actually did something similar to what you suggest - as my app was already built around it - I end up creating my own implementation for the SlidingDrawer - this way I know it will work with RC30, RC33 and probably Cupcake. I have to admit, the fact that the Android is an open source OS and we have at all access the the source code to learn and diagnose issues, is like a breath of fresh air after having to deal for many years in the proprietary Windows world. My only suggestion is that at least for the official releases RC30, RC33 etc. that are being pushed to the end users - give us a way to find what has changed in the APIs and what bugs have been fixed. I simple change list will do, or an API checking tool or whatever other means that you can think of. On Feb 7, 10:48 pm, Dianne Hackborn hack...@android.com wrote: When a new SDK is posted, there is a complete API diff and overview of the changes. However, there is very little change to the platform APIs in 1.1, so there isn't much to say about this one. I'm not sure when an SDK for it will be available. Also, out of curiosity, how did you go about using the private class? If you are actually using the SDK, you shouldn't be able to use any of the private classes, just to protect people from accidentally using things that will break on them. Finally, if there is a class like this in the internal implementation that you really want to use, just copy it out and build the copy in to your own code. That way your code won't break when the system changes. On Sat, Feb 7, 2009 at 4:10 PM, Stefan skyntc...@gmail.com wrote: Yes, I do agree that relying on private APIs is dangerous and should be avoided for all the reasons you mention. (The only reason I posted my findings is to save somebody the debugging time as it was not obvious what was the reason at first) This brings another related question. Is there a single place where we as developers can see what has changed between the public releases of the API's for example from RC30 = RC33? - (preferably both internal and external changes)? The only thing I could find is that RC33 has fixed several bugs and added several features, but nothing specific about what has changed and what bugs have been fixed. Stefan On Feb 7, 6:21 pm, Jean-Baptiste Queru j...@android.com wrote: Even worse, it hurts the entire ecosystem, by making users believe that plaftorm upgrades have bugs when in fact the applications are broken to start with. JBQ On Sat, Feb 7, 2009 at 3:18 PM, Romain Guy romain...@google.com wrote: That means your app will break in cupcake though. Please, please don't use private APIs, it only hurts the users :( On Feb 7, 2009 1:43 PM, Stefan skyntc...@gmail.com wrote: After digging a bit around in the source code, it looks like the namespace used for the attributes of the internal widgets has changed in RC33 from xmlns:android= http://schemas.android.com/apk/res/ android to some other namespace (probably something likehttp:// schemas.android.com/apk/res/android.intenral ??) and that caused the SlidingDrawer to not find its attributes. Well... one should never rely on internal classes, but... the SlidingDrawer is actually so useful... I am glad it will make it as an officially supported class. On Feb 7, 4:34 pm, Romain Guy romain...@google.com wrote: Even worse, SlidingDrawer will move ... On Sat, Feb 7, 2009 at 12:14 PM, Jean-Baptiste Queru j...@android.com wrote:Oh, ah, I had... On Sat, Feb 7, 2009 at 11:28 AM, Romain Guy romain...@google.com wrote:No, SlidingDraw... On Sat, Feb 7, 2009 at 7:18 AM, Jean-Baptiste Queru j...@android.com wrote: Can you please report this issue inhttp://b.android.com/?(ahttp://b.android.com/?%28aplain copy-paste will do).Thanks, JBQ On Sat, Feb 7, 2009 at 6:54 AM, Stefan skyntc...@gmail.com wrote: It appears that ... romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private... 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 suppo... -- Jean-Baptiste M. JBQ Queru Android Engineer, Google. -- Dianne Hackborn Android framework
[android-developers] Re: Need help in writing unit test for parcelable object
OK. I found it faster than I thought or I would have waited to make that last reply. You have two options: 1.) put the parcelable in an intent, then get it back out. -- this would be instead of calling the Creator yourself. This is actually where I saw the call to setDataPosition(0), in the android.os.Bundle source. 2.) call parcel.setDataPosition(0); -- call right before your creator call. This is the flip of Parcel. It makes sense that you have to set the position back to the beginning to start reading. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Central service scheduler
we had something similiar in an older release of openintents, called alerts. never got around to test it on the current release, but if there is interest we could revive it, shouldn't be to diffcult. zero openintents.org On Feb 7, 9:57 pm, Christoph Studer chstu...@gmail.com wrote: Sweet! Thanks for the reply and looking forward to that API. Christoph On Sat, Feb 7, 2009 at 8:57 PM, Jean-Baptiste Queru j...@android.com wrote: There is something like that in cupcake. I forgot the exact API name, sorry. JBQ On Sat, Feb 7, 2009 at 10:19 AM, Christoph Studer chstu...@gmail.com wrote: Would it make sense to create a central scheduler for services that need to run periodically? There are a lot of application that want to run at periodic intervals, require network access and need to keep the device awake during their work. Instead of each app having to use an AlarmManager, a WakeLock and its own network availability checking / auto-retry, wouldn't it make sense to provide an API that would do that work? Also, if you have a lot of apps on your device with background checks, they run on different schedules and wake the device up more frequently than if they'd run on a synchronized schedule. Ideally, I'd imagine this service scheduler to provide the following: * Application can register and unregister service intents for a certain schedule. * Provide schedules an app can register for. These could be constant such as a frequent schedule (every 10mins) and a less frequent one (every 60mins), or maybe user configurable. * Apps can specify a network filter, i.e. only run when connected via wifi, 3g, 2g... * Services would signal to the scheduler when they're done, possibly with an error code such that the scheduler could retry automatically out of the ordinary schedule. * Provide a UI for users to change schedules, unregister services, etc. * Define and require permissions for schedules such that users could see how much battery drainage an app is causing. I really think this would be quite useful for developers and users likewise. This central service scheduler could be part of the platform/SDK or it could be a user APK, much like some of the OI components already available. Any thoughts? Christoph P.S.: Not sure whether android-developers is the right mailinglist, but it does not quite fit into any of the others, either. -- Jean-Baptiste M. JBQ Queru Android Engineer, Google. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Local communication with a service from another APK that runs in the same process
Any ideas? Anyone? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: SlidingDrawer not working with RC33
Building apps with the SDK is apparently NOT enough to insure API compliance as the example with the SlidingDrawer showed - the app was build with the latest SDK 1.0 r2 and without using reflection or any other funky access. I firmly believe that we as developers, have the most vested interest for our apps to work on the widest possible range of API versions and device types (Just wait until Android gets a candy bar style models where users rely mostly keyboard for navigation. How many of the apps available today will still work flawlessly?). If you put lots of time and effort to write your app, you want to ensure that you did not do (unknowingly) anything stupid to limit its use. Even more you want to find as soon as possible all stupid things you did and fix them before they hit the end user. I am sure we all test our apps on the emulator and the G1 device we have, but can you be absolutely sure it will work flawlessly on the next release (RC33.. Cupcake...)? One other example I noticed - the text on the tab buttons - in RC30 if it is longer - it wraps, in RC33 - the same text is displayed in a marquee). Is this an API change? While the tab text is probably not significant issue, it points that you really don't know about it until you get the RC33 and realize that your UI may be a bit off here and there. The truth is API changes happen - sometimes they are big and obvious, sometimes small and less obvious. In my opinion the smart thing to do is to give developers the information and tools to react to the changes and update our applications as soon as possible. There is probably a complementary set of tools that can help us with that: API change list, API Checking tool, Emulator images for RC30, RC33 Cupcake etc - are all ways that we can use proactively before the new platform changes are pushed to the public. On Feb 8, 5:18 am, Al Sutton a...@funkyandroid.com wrote: I agree it's not necessary if you're building apps with the SDK, but I see it's primary usage as being by developers wanting to check an apks' compliance level and its' results would be firmly tied to the android version and thus the SDK version, so an API checker from the 1.0 SDK may generate errors for cupcake apps, but an API checker from the cupcake SDK would pass them. Al. Urs Grob wrote: I'm not sure if it should be part of the sdk. any app created with the sdk already would pass this check. It should more be a tool built into the normal make process so you get warnings like you get right now if you change the api. Additionally it could notify the developer and maybe show him a link with FAQs about internal api usage, or jni, or whatever evil was detected in the app. On Sun, Feb 8, 2009 at 11:10 AM, Al Sutton a...@funkyandroid.com wrote: Looks like we're on the same page :). Just PLEASE make this a public API checker (possibly as part of the SDK). I'd happily include the check into AndAppStore, and I'm sure Shane would be interested in putting into SlideME as well. Al. Romain Guy wrote: That said, it could be interesting to flag bad apps on Market and warn the user that the app he's about to download might break with a future update of the system :)) On Sun, Feb 8, 2009 at 2:06 AM, Romain Guy romain...@google.com wrote: It would be way too costly to do it at install time (both in CPU and disk space.) We could do the check during the upload to Market but that wouldn't solve the issue with apps installed through other means (especially alternatives to Market.) I'd rather trust the developers to do the right thing. On Sun, Feb 8, 2009 at 2:02 AM, Al Sutton a...@funkyandroid.com wrote: Is checking API usage in a apk feasible? That way problems could be picked up at distribution or installation time? Al. Romain Guy wrote: That's the whole point of the SDK. It does NOT let you use private APIs since they are stripped out of the SDK. If you compile your app against the git tree or a custom SDK, there's not much we can do. It's also up to the developers to be reasonable. On Sun, Feb 8, 2009 at 1:43 AM, Al Sutton a...@funkyandroid.com wrote: Maybe an API compliance test should be run as part of any app build. Does an API usage checking tool exist? and is it publicly available? Al. Jean-Baptiste Queru wrote: Even worse, it hurts the entire ecosystem, by making users believe that plaftorm upgrades have bugs when in fact the applications are broken to start with. JBQ On Sat, Feb 7, 2009 at 3:18 PM, Romain Guy romain...@google.com wrote: That means your app will break in cupcake though. Please, please don't use private APIs, it only hurts the users :( On Feb 7, 2009 1:43 PM, Stefan skyntc...@gmail.com wrote: After digging a bit around in the source code, it looks like the namespace used for the attributes of the internal widgets has changed in RC33 from
[android-developers] Re: What is Default emulator options for?
Hi Karl, If you just care how to set command line option in Eclipse, you can set it in run configuration. It's under the Target tab-Additional Emulator Command Line Options. On 1月20日, 下午10时42分, Karl Ostendorf chicagok...@gmail.com wrote: This is also my experience. For example, setting the timezone option: -timezone Europe/Berlin works when I start the emulator from the command line but not from within Eclipse. Anyone know why the options do not carry over from Eclipse? Or how to fix this? On Jan 20, 5:43 am, Join findhe...@gmail.com wrote: Hi guys, In Eclipse, Window-Preferences-Android-launch,what is the field of Default emulator options used for? When I set some options here, nothing expected happens to the emulator started in Eclipse. 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] Assisted GPS
Hi, When I want to get a GPS fix as quickly as possible do I need to add this permission: uses-permission android:name=android.permission.ACCESS_ASSISTED_GPS / Or is it the same if I already ask for the following: uses-permission android:name=android.permission.ACCESS_FINE_LOCATION / Or do I need to use both? Thanks in advance, Willem --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Technique for displaying different options menus
Hi, I am doing this using the following method: - Declare int constants which will be unique to each button - After initializing button variables via findViewById, use View#setTag to set the unique ID to that button, and the onClickListener to 'this' - Declare another int variable which will hold the current state (mState in the example below) - Implement the OnClickListener method in the following way: Integer id = (Integer) view.getTag(); mState = id; switch (id) { case BUTTON_1: //do stuff break; case BUTTON_2: //do more stuff break; } - Create the menu as normal in onCreateMenuOptions - In onPrepareMenuOptions (which is called each time the menu will be shown), do something like this: switch (mState) { case BUTTON_1: //hide/show certain menu groups/items break; //etc, etc } Hope this helps. On Feb 8, 12:19 pm, mobilek...@googlemail.com mobilek...@googlemail.com wrote: Hi, I'm trying to figure out a way to display different option menu groups at a time based on various events. For instanece, if the click listeners on certain views have been triggered, the activity should bring up a specific option menu. On the other hand if they are not on focussed, by pressing the menu button the activity should display different more generic menu options. I've played around with Menu.setGroupVisible(int groud, boolean visible), however, I couldn't work out a way to have it working properly. I've been stuck on this for a day now. Any suggestions are welcomed! Many 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: Technique for displaying different options menus
Hi, I am doing this using the following method: - Declare int constants which will be unique to each button - After initializing button variables via findViewById, use View#setTag to set the unique ID to that button, and the onClickListener to 'this' - Declare another int variable which will hold the current state (mState in the example below) - Implement the OnClickListener method in the following way: Integer id = (Integer) view.getTag(); mState = id; switch (id) { case BUTTON_1: //do stuff break; case BUTTON_2: //do more stuff break; } - Create the menu as normal in onCreateMenuOptions - In onPrepareMenuOptions (which is called each time the menu will be shown), do something like this: switch (mState) { case BUTTON_1: //hide/show certain menu groups/items break; //etc, etc } Hope this helps. On Feb 8, 12:19 pm, mobilek...@googlemail.com mobilek...@googlemail.com wrote: Hi, I'm trying to figure out a way to display different option menu groups at a time based on various events. For instanece, if the click listeners on certain views have been triggered, the activity should bring up a specific option menu. On the other hand if they are not on focussed, by pressing the menu button the activity should display different more generic menu options. I've played around with Menu.setGroupVisible(int groud, boolean visible), however, I couldn't work out a way to have it working properly. I've been stuck on this for a day now. Any suggestions are welcomed! Many 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: Technique for displaying different options menus
Hi, nice solution, I'll try do adapt it for my case. Thanks! On Feb 8, 3:32 pm, Al alcapw...@googlemail.com wrote: Hi, I am doing this using the following method: - Declare int constants which will be unique to each button - After initializing button variables via findViewById, use View#setTag to set the unique ID to that button, and the onClickListener to 'this' - Declare another int variable which will hold the current state (mState in the example below) - Implement the OnClickListener method in the following way: Integer id = (Integer) view.getTag(); mState = id; switch (id) { case BUTTON_1: //do stuff break; case BUTTON_2: //do more stuff break; } - Create the menu as normal in onCreateMenuOptions - In onPrepareMenuOptions (which is called each time the menu will be shown), do something like this: switch (mState) { case BUTTON_1: //hide/show certain menu groups/items break; //etc, etc } Hope this helps. On Feb 8, 12:19 pm, mobilek...@googlemail.com mobilek...@googlemail.com wrote: Hi, I'm trying to figure out a way to display different option menu groups at a time based on various events. For instanece, if the click listeners on certain views have been triggered, the activity should bring up a specific option menu. On the other hand if they are not on focussed, by pressing the menu button the activity should display different more generic menu options. I've played around with Menu.setGroupVisible(int groud, boolean visible), however, I couldn't work out a way to have it working properly. I've been stuck on this for a day now. Any suggestions are welcomed! Many 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: can not see the files after yaffs2 image mounted
HI , Did u change partition table in mtd files in kernel? i think file name is mtdblock.c U need to update u r MTD partion tables in this file, when u boot up u r system try to capture u r hyperterminal messages , u find a partion table which mentions u r blocks of devices , there u update these changes , it should work! Best Regards, Rajesh N On Sun, Feb 8, 2009 at 1:04 PM, ebmajor ebma...@hanmail.net wrote: Hi Rajesh, thank you for your reply. Here are the details. First of all, I try to create my own yaffs2 image so I don't use system.img and userdata.img. My test environment is 'x86 desktop Ubuntu + MTD Nand flash simulator' since I want to verify only if my yaffs2 image works well I downloaded yaffs2 source code and compiled on my desktop Ubuntu to generate mkyaffs2image. and downloaded also MTD-Utils for flash tools and nandwrite. After that, I created 'test' directory and copied several files in it and then did the commands as steps 1. 'mkyaffs2image ./test img.yaffs2' 2. flash_eraseall /dev/mtd0 3. nandwrite -a -o /dev/mtd0 img.yaffs2 4. mount -t yaffs2 /dev/mtdblock0 /mnt/yaffs2 I've done all the steps without errors. However when I typed 'ls -l /mnt/yaffs2', it shows only 'lost+found' directory I've googled about the trouble so saw some of people have the same error but there is no solution on the web I searched. Regards. On 2월8일, 오후12시59분, Rajesh N rajesh.andr...@gmail.com wrote: Hi, Can u mention the steps which u have used to create yaffs2 image from u android file system? Did u do u yaffs2 file system image for both data.img and system.img? In android SDK1.0 data.img is read only, u should not create yaffs2 image for it, rather u need to create RAMFS or CRAMFS image for it. only system.img needs to be yaffs2 formated and mounted on system! How r u burning yaffs2 image? from boot loader or from kernel? Please elaborate steps u did from creating an image to mounting the file system, it will rather give clear picture on what mistake u could have done in installing yaffs2 image! Best Regards, Rajesh N 2009/2/8 ebmajor ebma...@hanmail.net Dear all, I created img.yaffs2 using mkyaffs2image and then mounted it into Ubuntu MTD NAND flash simulator. so if I use 'cat /proc/filesystems' I can see yaffs and yaffs2 and by 'cat /proc/mtd' I can see /dev/mtd0에 Nand simulator partition 0. (block size is 0x4000) after that using mtd-utils, I did 'flash_eraseall /dev/mtd0' 'nandwrite -a -o /dev/mtd0 img.yaffs2 so I can see the image is writing as writeing data to block 0 writeing data to block 4000 writeing data to block 8000 after that to see the files I mounted mount -t yaffs2 /dev/mtdblock0 /mnt/yaffs2 but when I type the command 'ls -l /mnt/yaffs2' there is only 'lost+found' directory What's wrong with me? 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: Assisted GPS
Huh what do you mean by that: When I want to get a GPS fix as quickly as possible You always get it as quickly as possible. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Assisted GPS
With AGPS the GPS unit is informed of the latest positions of the satellites from a website (or something). This allows the GPS to get a fix quicker than if it would not know the latest positions of the satellites. So when using AGPS you get a fix more quickly than without. Cheers, Willem On Feb 8, 7:34 pm, mobilek...@googlemail.com mobilek...@googlemail.com wrote: Huh what do you mean by that: When I want to get a GPS fix as quickly as possible You always get it as quickly as possible. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: SlidingDrawer not working with RC33
That is a good news. May i ask a request, since you guys making a public widget , could you provide little bit flexibility where this widget ca attached to . For example there are cases when i want to attach this to the top ( currently we're using custom widget based on SlidingDrawer ). And ability to change drawable of the handle would be nice as well. On Feb 7, 3:34 pm, Romain Guy romain...@google.com wrote: Even worse, SlidingDrawer will move to android.widget in Cupcake :)) (And thus become public API.) On Sat, Feb 7, 2009 at 12:14 PM, Jean-Baptiste Queru j...@android.com wrote: Oh, ah, I hadn't seen that it was android.INTERNAL.SlidingDrawer (emphasis mine). There's no guarantee of compatibility of private APIs between versions. JBQ On Sat, Feb 7, 2009 at 11:28 AM, Romain Guy romain...@google.com wrote: No, SlidingDrawer is a private widget. It is not supported. On Sat, Feb 7, 2009 at 7:18 AM, Jean-Baptiste Queru j...@android.com wrote: Can you please report this issue inhttp://b.android.com/? (a plain copy-paste will do). Thanks, JBQ On Sat, Feb 7, 2009 at 6:54 AM, Stefan skyntc...@gmail.com wrote: It appears that android.internal.widget.SlidingDrawer widget had changed between RC30 and RC33. On RC33 it fails to inflate the layout XML complaining that: The handle attribute is required and must refer to a valid child This is the XML I am trying to inflate: com.android.internal.widget.SlidingDrawer android:id=@+id/drawer android:layout_width=fill_parent android:layout_height=wrap_content android:topOffset=5px android:bottomOffset=7px android:handle=@+id/playlistHeader android:content=@+id/playList ImageView android:id=@id/playlistHeader android:focusable=true android:clickable=true android:scaleType=center android:src=@drawable/ic_mp_current_playlist_btn android:layout_height=56dip android:layout_width=fill_parent / ListView android:id=@+id/playList android:layout_width=fill_parent android:layout_height=fill_parent android:background=@color/grid_dark_background/ /com.android.internal.widget.SlidingDrawer The XML above has both the content and the handle attribute and worked fine in RC30? Does anyone know what has changed and how to fix it? Stefan -- Jean-Baptiste M. JBQ Queru Android Engineer, Google. -- 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 -- Jean-Baptiste M. JBQ Queru Android Engineer, Google. -- 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: SlidingDrawer not working with RC33
That is a good news. May i ask a request, since you guys making a public widget , could you provide little bit flexibility where this widget ca attached to . Won't happen for cupcake. And ability to change drawable of the handle would be nice as well. You already can. The handle is any view you want. -- 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] android by example
How do I get the source for stock android apps. I specifically want the source for the music app and the dialer. I have tried downloading from the git repository but every attempt complains about not being able to find it. What is the correct procedure for accessing the source for the stock android apps? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: SlidingDrawer not working with RC33
A private API does not necessarily mean the class or method has the private Java keyword on it. Actually there are many Java-public classes and methods that are part of the private APIs. Normally these are stripped from the SDK. I don't know why the internal package is still in the SDK but indeed, the internal name of the package is a good indication that this is not a public API. Again there is no need for an API checking tool in the SDK because the SDK itself *is* the API checking tool. Apparently we just let a few things slip and we need to fix them. We also perfectly agree that you should get a detailed changelog with the new SDK. Such a changelog should NOT, however, include changes about anything private and/or internal. On Sun, Feb 8, 2009 at 4:52 AM, Stefan skyntc...@gmail.com wrote: Dianne, In this particular case, the SlidingDrawer class is not private, it is public but it is in the package com.android.internal.widget package. This .internal. (and the lack of official documentation on it) is the only clue you get that this class is probably not intended to be used directly. (I come from the world of Windows Mobile development where it is to a large degree a custom to rely on some undocumented APIs to do what you want to do, so that made me take that gamble, which in my case did not pay of) I actually did something similar to what you suggest - as my app was already built around it - I end up creating my own implementation for the SlidingDrawer - this way I know it will work with RC30, RC33 and probably Cupcake. I have to admit, the fact that the Android is an open source OS and we have at all access the the source code to learn and diagnose issues, is like a breath of fresh air after having to deal for many years in the proprietary Windows world. My only suggestion is that at least for the official releases RC30, RC33 etc. that are being pushed to the end users - give us a way to find what has changed in the APIs and what bugs have been fixed. I simple change list will do, or an API checking tool or whatever other means that you can think of. On Feb 7, 10:48 pm, Dianne Hackborn hack...@android.com wrote: When a new SDK is posted, there is a complete API diff and overview of the changes. However, there is very little change to the platform APIs in 1.1, so there isn't much to say about this one. I'm not sure when an SDK for it will be available. Also, out of curiosity, how did you go about using the private class? If you are actually using the SDK, you shouldn't be able to use any of the private classes, just to protect people from accidentally using things that will break on them. Finally, if there is a class like this in the internal implementation that you really want to use, just copy it out and build the copy in to your own code. That way your code won't break when the system changes. On Sat, Feb 7, 2009 at 4:10 PM, Stefan skyntc...@gmail.com wrote: Yes, I do agree that relying on private APIs is dangerous and should be avoided for all the reasons you mention. (The only reason I posted my findings is to save somebody the debugging time as it was not obvious what was the reason at first) This brings another related question. Is there a single place where we as developers can see what has changed between the public releases of the API's for example from RC30 = RC33? - (preferably both internal and external changes)? The only thing I could find is that RC33 has fixed several bugs and added several features, but nothing specific about what has changed and what bugs have been fixed. Stefan On Feb 7, 6:21 pm, Jean-Baptiste Queru j...@android.com wrote: Even worse, it hurts the entire ecosystem, by making users believe that plaftorm upgrades have bugs when in fact the applications are broken to start with. JBQ On Sat, Feb 7, 2009 at 3:18 PM, Romain Guy romain...@google.com wrote: That means your app will break in cupcake though. Please, please don't use private APIs, it only hurts the users :( On Feb 7, 2009 1:43 PM, Stefan skyntc...@gmail.com wrote: After digging a bit around in the source code, it looks like the namespace used for the attributes of the internal widgets has changed in RC33 from xmlns:android= http://schemas.android.com/apk/res/ android to some other namespace (probably something likehttp:// schemas.android.com/apk/res/android.intenral ??) and that caused the SlidingDrawer to not find its attributes. Well... one should never rely on internal classes, but... the SlidingDrawer is actually so useful... I am glad it will make it as an officially supported class. On Feb 7, 4:34 pm, Romain Guy romain...@google.com wrote: Even worse, SlidingDrawer will move ... On Sat, Feb 7, 2009 at 12:14 PM, Jean-Baptiste Queru j...@android.com wrote:Oh, ah, I had... On Sat, Feb 7, 2009 at 11:28 AM, Romain
[android-developers] Send Bitmap with Socket
I want to send a Bitmap to Server and I want to use Socket . This is my code in the Class Client::: This code save the Bitmap compressed in Jpeg in the phone , after I want send it. ContentValues values = new ContentValues(3); values.put(MediaStore.Images.Media.DISPLAY_NAME,Esempio); values.put(MediaStore.Images.Media.DESCRIPTION, Esempio); values.put(MediaStore.Images.Media.MIME_TYPE, image/jpeg); // Add a new record without the bitmap, but with the values. // It returns the URI of the new record. Uri uri = getContentResolver().insert (MediaStore.Images.Media.EXTERNAL_CONTENT_URI, values); try { Bitmap sourceBitmap=BitmapFactory.decodeByteArray(img, 0, img.length); // Now get a handle to the file for that record, and save the data into it. // sourceBitmap is a Bitmap object representing the file to save to the database. OutputStream outStream = getContentResolver().openOutputStream (uri); sourceBitmap.compress(Bitmap.CompressFormat.JPEG, 50, outStream); outStream.close(); } catch (Exception e) { Log.e(TAG, exception while writing image, e); } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: keytool - need help
how? On Feb 1, 5:54 pm, Mark Roberts snappe...@gmail.com wrote: Are you using Eclipse? You can load directly onto the G1 using eclipse. On Feb 1, 4:58 pm, solid young...@gmail.com wrote: I am new to developing android apps. I have been writing java webapps for years and decided to try my hand at this. I have my app humming along in the emulator but I am having problems installing my app on the g1 itself. I copied the apk file to the sd card and I used the apps installer app from the market to install off the SD card. I get prompted for the install and everything seems to go fine but the my new app never shows up in the apps menu or in the installed applications. I am hoping this is simply because I did not sign it. I am trying to figure out how to sign a app but this is weird and counterintutive. I already have a gpg key. Can that be used to sign my app? If so, how do I import my key into the keytool store? Is there something I am missing? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 by example
This should do it ... http://source.android.com/download. If you are having trouble downloading it, please check http://groups.google.com/group/repo-discuss to see if your question has already been answered, else, post a question in that forum. -Ravi On Feb 8, 1:49 pm, solid young...@gmail.com wrote: How do I get the source for stock android apps. I specifically want the source for the music app and the dialer. I have tried downloading from the git repository but every attempt complains about not being able to find it. What is the correct procedure for accessing the source for the stock android apps? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] GPS wakes up when screen wakes up
I have a properly functioning service that registers a locationlistener for GPS updates. It's registered to wake up every 30 mins (even if the object moved 0 meters). The problem is that everytime the screen wakes up (from standby), it fires the onStatusChanged, followed by onLocationChanged regardless how much time has passed since the last GPS fix. Also, my LocationManager registers this in service's onCreate() and removes it on onDestoy() and I'm not destroying and re-creating my service. Any ideas why would LocationListener's callbacks wake up outside its scheduled time? Thx --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: App Idea: Very interesting, unique, and information efficient text-entry method -- (no keyboard(not even on screen KB))
Someone on another forum, was thinking that dasher would not be able easily allow abbreviations and informal typing that is common with cell phone text entry. I made this video to demonstrate that dasher adapts to however you type, and how it can handle any kind of language or abbreviations with ease. I figured I would post this video here as well so people could see how easy it is. This is a quick vid I made just now, to show how dasher makes abbreviations easy. Better quality: http://screencast.com/t/ffXiC9q2 Same video on youtube (lower quality) http://www.youtube.com/watch?v=nZHB-FbSHJo On Feb 2, 1:54 pm, bdb4269 bdb4...@gmail.com wrote: (To see this message in a much better format -- follow this link)http://androidcommunity.com/forums/showthread.php?p=133454 I think someone should port Dasher to Android. Dasher is free software, that takes an extremely unique approach to achieve information efficient text entry. It allows lots of different input methods, and is very adaptable, and customizable. Here is a description from the Dasher Website. [quote]Dasher is an information-efficient text-entry interface, driven by natural continuous pointing gestures. Dasher is a competitive text- entry system wherever a full-size keyboard cannot be used - for example, * when operating a computer one-handed, by joystick, touchscreen, trackball, or mouse; * when operating a computer with zero hands (i.e., by head-mouse or by eyetracker); * on a palmtop computer; * on a wearable computer. ...using a mouse[/touchpad/trackball], experienced users can write at 39 words per minute. [/quote] Quick video, just to show it workhttp://www.youtube.com/watch?v=0d6yIquOKQ0 An hour long video, that goes into detail, as to how it works, all the different ways it can be used.http://video.google.com/videoplay?docid=5078334075080674416ei=caEsSZ... Dasher on an IPAQhttp://www.youtube.com/watch?v=4jxhJjkwleofeature=related The Dasher Websitehttp://www.inference.phy.cam.ac.uk/dasher/ And just want to point out, that Dasher already has support for all sorts of languages, so if someone ported Dasher to Android, it would give it another unique option for text input in all sorts of languages. Here is a link that shows the language files already available for Dasher.http://www.inference.phy.cam.ac.uk/dasher/download/alphabets/ALPHABET... EDIT: By No Keyboard I just mean that this method does not involve a KB of any kind I do NOT mean to imply that this is a total replacement for the physical keyboard.. rather I think of it as a one handed on-screen text entry method to be used when convenient --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: SlidingDrawer not working with RC33
too bad . shouldn't be a complicated change. well for time being i'll continue to use that http://code.google.com/p/android-misc-widgets/source/browse/trunk/android-misc-widgets/src/org/miscwidgets/widget/Panel.java Any chance to see a kind of home screen container widget where you can drop your views and flip through them ? Right now we're using extended ( so now it' can accept any view(s) with in itself ) code from workspace for that, but it'll be nice to see this sometime in the future as official container. On Feb 8, 1:48 pm, Romain Guy romain...@google.com wrote: That is a good news. May i ask a request, since you guys making a public widget , could you provide little bit flexibility where this widget ca attached to . Won't happen for cupcake. And ability to change drawable of the handle would be nice as well. You already can. The handle is any view you want. -- 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: Graphics question: bilinear interpolation
Hi Dianne, I am afraid I don't understand how that would help. I am implementing an image distortion algorithm. It takes in a source Bitmap and output a distorted Bitmap. Can you elaborate? On Feb 7, 8:15 pm, Dianne Hackborn hack...@android.com wrote: How about this: http://code.google.com/android/reference/android/graphics/Paint.html#... On Sat, Feb 7, 2009 at 8:06 PM, j jac...@gmail.com wrote: Is there an Android API for performing bilinear interpolation? I discovered that my own interpolation implementation is extremely slow running on the G1 so it's pretty useless. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Android SDK v1.1 due soon?
I recently upgraded to RC33 on my G1 and when I uploaded an application from within eclipse, I received a message warning that the SDK version on the phone was 1.1, which did not match the SDK version of 1.0 I am using. I was wondering when the 1.1 SDK will be available for developers. I'm not noticing any issues, and I am not sure what, if any, new functionality has been added to the 1.1 SDK. Just thought I'd ask. Regards, Scheff's Blend. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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! View layout issue
Hey guys, I am trying to define a view with the following requirements: 1. the view should occupy the entire screen, except the notification area (the top small bar) 2. The view should be even split into three parts, the top and bottom are two huge buttons, and the middle is a scrollable list. Note: no matter how many items in the list, it should only take 1/3 of view space. I created the following layout xml, but it has dimension hard coded, which is obviously undesired. What's the right way to do this? Thanks in advance! Xin My code (obviously not desired): --- TableLayout android:id=@+id/widget146 android:layout_width=320px android:layout_height=480px android:orientation=vertical xmlns:android=http://schemas.android.com/apk/res/android; TableRow android:id=@+id/widget147 android:layout_width=fill_parent android:layout_height=116px android:orientation=horizontal Button android:id=@+id/favorite_card android:text=@string/favorite_card android:keepScreenOn=true android:layout_width=fill_parent android:layout_height=110px android:textSize=45px/ /TableRow TableRow android:id=@+id/widget149 android:layout_width=fill_parent android:layout_height=180px android:orientation=horizontal ScrollView android:id=@+id/ScrollView_CardSelector android:layout_width=fill_parent android:layout_height=180px android:scrollbars=none LinearLayout xmlns:android=http://schemas.android.com/apk/res/android; android:layout_width=fill_parent android:layout_height=180px ListView android:id=@android:id/list android:typeface=sans android:textSize=20sp android:layout_width=fill_parent android:layout_height=180px android:animationCache=true/ /LinearLayout /ScrollView /TableRow TableRow android:id=@+id/widget151 android:layout_width=fill_parent android:layout_height=116px android:orientation=horizontal Button android:id=@+id/direct_call android:text=@string/direct_call android:keepScreenOn=true android:layout_width=fill_parent android:layout_height=110px android:textSize=45px/ /TableRow /TableLayout --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: SlidingDrawer not working with RC33
Any chance to see a kind of home screen container widget where you can drop your views and flip through them ? Right now we're using extended ( so now it' can accept any view(s) with in itself ) code from workspace for that, but it'll be nice to see this sometime in the future as official container. I don't see this widget move to the framework in the foreseeable future. The goal of the framework is not to offer any type of widget, but commonly used widgets. On Feb 8, 1:48 pm, Romain Guy romain...@google.com wrote: That is a good news. May i ask a request, since you guys making a public widget , could you provide little bit flexibility where this widget ca attached to . Won't happen for cupcake. And ability to change drawable of the handle would be nice as well. You already can. The handle is any view you want. -- 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 -- 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: App source from Git not compatible with current SDK?
Thank you very much, this was very helpful. My apologies for jumping to conclusions! I'm usually suspicious of the way corporations involve themselves with with F/OSS, but this seems to be entirely on the level. Good show. Thanks again! Rich On Feb 7, 10:03 pm, Dianne Hackborn hack...@android.com wrote: They are compiled against the framework library, before the non-SDK symbols have been stripped from it. The platform build system -can- build against the SDK version, but that feature didn't exist until very late in to the 1.0 platform, so many of the apps don't use it, and so as much as one tries to avoid it they will end up unintentionally using non-SDK methods. Also there was a lot of cleanup of the SDK that happened late in 1.0, when there wasn't time to update all of the existing apps to use new official SDK APIs. As for the Intent flag, that is actually a new feature in Cupcake (which is in the SDK), so it just means you are trying to build a post-1.0 application against the 1.0 SDK. There is a very good chance this won't work, like here. If you want to build against the 1.0 SDK, you really should do this from the 1.0 version of the app. I don't know about the Vibrator thing; there is certaily a public API for controlling the vibrator. Some specific answers: On Sat, Feb 7, 2009 at 6:39 PM, Rich miser...@gmail.com wrote: If that's the case, how were they compiled? Do you have a private SDK different from our SDK? Build it with the platform build system, as everyone else who currently works on the app does. There is nothing hidden about this. So what should I do.. Will I be able to clean this code up and use it, or should I just wait for the GPowers to be release a full SDK? There is nothing being kept from you. The full complete source to the platform is right up there in git for you to do whatever you want with it. I'm fairly miffed about this quite honestly, as what is the point of having this as an open source project if we can't even compile the code to be working on. Before publicly getting miffed at people (about stuff they gave you for free no less), it is good to have an idea of what you are getting miffed about. :} -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: BitmapShader performance
Thanks for the details. I did think that the disparity might be the result of a unoptimized code paths, but my understanding of how the Shader integrates into the rendering implementation as a whole was too sketchy to know whether this would be an optimization that one might reasonably expect to be feasible. In my case, the optimization isn't vital since the existing code works pretty much as well as I need it to - I guess the tiles are large enough that the overhead of rendering them separately isn't too great. As a general point, I've run into a few surprises regarding the performance characteristics of certain graphical operations. One I ran into yesterday was that drawing an RGB_565 image (without matrix) onto a Canvas obtained from a SurfaceView became significantly slower after specifying SRC mode on the Paint object. Given that there is no alpha channel on the src, I would have expected the SRC mode to have been a noop at worst, and at best trigger an optimization. I hesitate to report these as issues because knowing what the expected performance should be (or can be expected to be) seems very difficult. Tom. 2009/2/6 Mike Reed r...@google.com Doh! You've stumbled across a known missing optimization. No promises, but this has been identified as an future optimization. The dirty details are that the current code has special optimizations for a straight drawBitmap when there is no matrix (other than translate). In addition, there is another optimization for SRC mode with 32bit bitmaps, where the blitter can literally call memcpy, since there is no need to inspect the src pixels for blending. Neither of these optimizations exist (yet) for the bitmapshader code. On Thu, Feb 5, 2009 at 5:41 PM, tomgibara m...@tomgibara.com wrote: Romain, Thanks for the explanation. On Feb 5, 10:26 pm, Romain Guy romain...@google.com wrote: Tom, A shader is a per-pixel operation, which lets you apply it to any shape, respecting alpha blending as well. As such it is not surprising that your first method is faster. On Thu, Feb 5, 2009 at 2:08 PM, tomgibara m...@tomgibara.com wrote: I'm experimenting with tiling a fullscreen image (480x320px ARGB bitmap) with a square image (160x160px ARGB bitmap). My initial implementation was naive: public void render(Canvas canvas) { final int size = tile.getWidth(); final int w = canvas.getWidth(); final int h = canvas.getHeight(); for (int y = 0; y h; y += size) { for (int x = 0; x w; x += size) { canvas.drawBitmap(tile, x, y, null); } } } Then I remembered that Paint supports a Shader, so I swapped this implementation for something much more satisfying: public void render(Canvas canvas) { canvas.drawPaint(paint); } Where paint is initialized outside this method with: paint = new Paint(); paint.setShader(new BitmapShader(tile, Shader.TileMode.REPEAT, Shader.TileMode.REPEAT)); I expected that using a BitmapShader would be competitive with the first implementation and probably slightly faster. But initial benchmarking indicates that the first method is more than twice as fast (almost 3x as fast if PorterDuff.Mode.SRC is used for both). I found that surprising. Is there a good reason that the BitmapShader is necessarily much slower, or does it point to a deficiency in its implementation? -- 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] Code Repository
Is there a SVN or other respository for the Example code? Drilling down through the web site is tedious. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Code Repository
Michael Caughey wrote: Is there a SVN or other respository for the Example code? Drilling down through the web site is tedious. If you mean the ApiDemos, they are installed with your SDK. Look in the samples/ directory underneath the directory where your SDK resides. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Published! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 SDK v1.1 due soon?
I was sondering the same. It's not that my application won't work, but it would be nice to get the SDK updated. On Sun, Feb 8, 2009 at 3:17 PM, clark clarkd...@gmail.com wrote: I recently upgraded to RC33 on my G1 and when I uploaded an application from within eclipse, I received a message warning that the SDK version on the phone was 1.1, which did not match the SDK version of 1.0 I am using. I was wondering when the 1.1 SDK will be available for developers. I'm not noticing any issues, and I am not sure what, if any, new functionality has been added to the 1.1 SDK. Just thought I'd ask. Regards, Scheff's Blend. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 help in writing unit test for parcelable object
James, Thank you. On Sun, Feb 8, 2009 at 5:09 AM, James jw.ma...@gmail.com wrote: OK. I found it faster than I thought or I would have waited to make that last reply. You have two options: 1.) put the parcelable in an intent, then get it back out. -- this would be instead of calling the Creator yourself. This is actually where I saw the call to setDataPosition(0), in the android.os.Bundle source. 2.) call parcel.setDataPosition(0); -- call right before your creator call. This is the flip of Parcel. It makes sense that you have to set the position back to the beginning to start reading. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 TabActivity customization
In short, Android developers made it hard to customize TabActivity. All previous attempts don't work with the latest API release. If you've been thinking about it but couldn't figure out the right way, here's one of the solutions: http://tourizo.blogspot.com/2009/02/android-tabactivity-customization.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Unit testing context.sendBoardcast function
Hi, I have the following test case which tests context.sendBoardcast() function: public void testInstallFavorite() { Context context = getContext(); IntentFilter filter = new IntentFilter(); filter.addAction(com.android.launcher.action.INSTALL_SHORTCUT); context.registerReceiver(new DummyBoardcastReceiver(), filter); Intent installShortcut = new Intent(com.android.launcher.action.INSTALL_SHORTCUT); context.sendBroadcast(installShortcut); // count is a dummy variable which increments by 1 when DummyBoardcastReceiver::onReceive() is called assertEquals(count, 1); } But the DummyBoardcastReceiver::onReceive() is never get called. Can you please tell me why? or if there is a better way to unit test the code? private int count = 0; class DummyBoardcastReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { Intent shortCutIntent = intent.getParcelableExtra(Intent.EXTRA_SHORTCUT_INTENT); assertNotNull(shortCutIntent); count++; } } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Any one know why Timeout executing service: ServiceRecord happen?
Any one has some clue about this? Thanks! On Feb 6, 11:45 am, Eckel zhangjin...@gmail.com wrote: Hi, I try to create a mini player view on home screen and still use the music mediaplayback service by putting a IMediaPlaybackService aidl in home directory. the mini player can normally playback and control the music, but often meet the anr(com.android.music) and see below log. Anyone can give some hints? Thanks in advance. 01-01 01:40:02.031 904:0x399 W/ActivityManager ] Timeout executing service: ServiceRecord{43b7bb18 com.android.music/.MediaPlaybackService} [ 01-01 01:40:02.101 904:0x399 I/ActivityManager ] ANR (application not responding) in process: com.android.music Annotation: Executing service ComponentInfo{com.android.music/ com.android.music.MediaPlaybackService} CPU usage: Load: 5.95 / 2.65 / 1.01 CPU usage from 8543ms to 2916ms ago: mediaserver: 25% = 19% user + 6% kernel com.db4o.servo.search: 20% = 14% user + 6% kernel com.android.music: 17% = 10% user + 6% kernel system_server: 17% = 7% user + 9% kernel touch_daemon: 2% = 0% user + 2% kernel android.process.media: 1% = 1% user + 0% kernel logcat: 0% = 0% user + 0% kernel kswapd0: 0% = 0% user + 0% kernel micco_charger: 0% = 0% user + 0% kernel -oms.qwertyboard.QwertyInputMethodService: 0% = 0% user + 0% kernel TOTAL: 80% = 50% user + 27% kernel + 3% iowait /proc/meminfo: MemTotal: 113240 kB MemFree: 2068 kB Buffers: 16 kB Cached: 23852 kB SwapCached: 0 kB Active: 78652 kB Inactive: 3832 kB SwapTotal: 0 kB SwapFree: 0 kB Dirty: 0 kB Writeback: 0 kB AnonPages: 58672 kB Mapped: 19712 kB Slab: 3712 kB SReclaimable: 636 kB SUnreclaim: 3076 kB PageTables: 5212 kB NFS_Unstable: 0 kB Bounce: 0 kB CommitLimit: 56620 kB Committed_AS: 1931344 kB VmallocTotal: 532480 kB VmallocUsed: 20992 kB VmallocChunk: 486396 kB [ 01-01 01:40:02.101 904:0x399 I/Process ] Sending signal. PID: 968 SIG: 3 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Cannot delete that URL exception
Hi, I am getting the Cannot delete that URL exception(see below): java.lang.UnsupportedOperationException: Cannot delete that URL: content://contacts/phones at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:130) at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:110) at android.content.ContentProviderProxy.delete(ContentProviderNative.java:362) at android.content.ContentResolver.delete(ContentResolver.java:386) Here is my code: private void removeContact(Context context, String phone) { context.getContentResolver().delete(Contacts.Phones.CONTENT_URI, Contacts.PhonesColumns.NUMBER+=?, new String[] {phone}); } Can you please tell me what am I missing? Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] I want to emulate the simple listview's rows
I made my simple, custom rows and listviews. Right now, only clicking on the text of the row is valid selection area. I want the entire row, even the no-text area to be selectable. Where do I modify? Am I looking for focusing or selecting? My row xml: - ?xml version=1.0 encoding=utf-8? TextView android:id=@+id/text1 xmlns:android=http:// schemas.android.com/apk/res/android android:layout_width=wrap_content android:layout_height=36px android:gravity=center_vertical android:lines = 1 android:typeface = normal android:textStyle = android:textSize = 18px android:paddingLeft = 7px / My listview xml: - ListView android:id=@+id/android:list android:layout_width=fill_parent android:layout_height=wrap_content android:layout_weight=1.0/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Why does my monkey terminated ??
Dear all: As you know,i started the monkey tool at adb shell,and run a script file to send a series of commands including key and mouse events,But sadly to see that when i close the adb DOS window,Monkey just terminates, I wonder why should this happen,and Will it do the same to a real device ?? Thanks in advance! Bgs, Ashrotronics --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Why does my monkey terminated ??
Um, don't close the shell you are running the monkey on. The monkey command prints its result data there so it would be pretty pointless to run it and close its shell, anyway. On Sun, Feb 8, 2009 at 7:43 PM, Ashrotronics 030440...@163.com wrote: Dear all: As you know,i started the monkey tool at adb shell,and run a script file to send a series of commands including key and mouse events,But sadly to see that when i close the adb DOS window,Monkey just terminates, I wonder why should this happen,and Will it do the same to a real device ?? Thanks in advance! Bgs, Ashrotronics -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: does compiler detect dead code?
Yes, this is standard Java stuff. Compiling happens with the standard javac, so you get all of its regular features. On Sun, Feb 8, 2009 at 7:44 PM, gsmd gsm...@gmail.com wrote: For example, will this result in any performance gain: -- public static final boolean DEV_MODE = false; if(DEV_MODE){ // log stuff, compute debug values etc. } --- TIA. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to add shortcut in home screen by modifying config file ?
If you are doing your own build of the platform, please ask your questions on android-platform or android-framework. This will reduce the noise on this list, and help people understand the context in which to answer your question. Thanks. On Sun, Feb 8, 2009 at 6:43 PM, HelloWorld xiaolong_...@yahoo.com.cnwrote: Thank you Guy and Peli. Because I need preload more shortcuts in homescreen, would you please point me how to add them into the database Guy mentioned above? On 2月7日, 上午3时01分, Romain Guy romain...@google.com wrote: But the broadcast intent used there is in the com.android.launcher namespace, so it is not part of the public SDK API, and may break in a future version of Launcher. Right? It will not break. It is not considered a private API, it's just not a platform API. Peli www.openintents.org On Feb 6, 7:32 pm, Romain Guy romain...@google.com wrote: The shortcuts are contained in a private database. There is no config file you can modify directly. On Fri, Feb 6, 2009 at 1:46 AM, HelloWorld xiaolong_...@yahoo.com.cn wrote: Dear all, Would you please point me how to add more shortcuts in home screen? -- I want to do this by modifying config file rather than draging an app and dropping it on home screen. Namely, I want to know which config file contains these shortcuts. Thanks for your help in Advance. Thanks, HelloWorld -- 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 -- 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- 隐藏被引用文字 - - 显示引用的文字 - -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: I want to emulate the simple listview's rows
Still only selects the text. Any workarounds? On Feb 8, 7:27 pm, Chander Pechetty cspeche...@gmail.com wrote: You need to tell your ListView that the list items are focusable. ListView.setItemsCanFocus(true). --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Why does my monkey terminated ??
So,according what u said,if i modify the monkey source code to be no outputs,and recompile it in android source code ,then the generated new monkey tool can continue running after i close the shell,am i right ?? On Feb 9, 12:15 pm, Dianne Hackborn hack...@android.com wrote: Um, don't close the shell you are running the monkey on. The monkey command prints its result data there so it would be pretty pointless to run it and close its shell, anyway. On Sun, Feb 8, 2009 at 7:43 PM, Ashrotronics 030440...@163.com wrote: Dear all: As you know,i started the monkey tool at adb shell,and run a script file to send a series of commands including key and mouse events,But sadly to see that when i close the adb DOS window,Monkey just terminates, I wonder why should this happen,and Will it do the same to a real device ?? Thanks in advance! Bgs, Ashrotronics -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to invoke a service of one APK in another APK
Hi, My objective: I want to develop two .apks as .apk#1 and .apk#2. My .apk#1 has one serice as serv#1 and .apk#2 has serive as .serv#2. I wanna to invoke the serv#1 of .apk#1 in serv#2 of .apk#2. For time being i have created two .apks and thinking how to commucate between them, i mean how i should proceed to invoke serv# of .apk#1 in my .apk#2. Can someone please help me what all steps i need to follow to achive my objective? If someone can share a sample example if you had that would be really helpful for me. I have lots of questions in my mind mentioned below but not sure whether all my understanding are correct or not as per my objective -- - As per my knowledge both .apk#1 and .apk#2 will run in different process, so i might require the IPC mechanism. - I also need to expose the interface using AIDL. Is it require to generate and compile the AIDL interface for both the .apk#1 and .apk#2. - How i can include the .apk#1 in .apk#2, is it like package .apk#1?? Thanks Regards, Sunil Dianne Hackborn hack...@android.com Sent by: android-developers@googlegroups.com 02/07/2009 01:35 AM Please respond to android-developers@googlegroups.com To android-developers@googlegroups.com cc Subject [android-developers] Re: How to invoke a service of one APK in another APK You have to compile the generated AIDL interfaces into each application, and make sure the service is exported with android:exported=true if it doesn't declare any intent filters. You didn't actually say what exact problem you are hitting, though, so I can't offer much more help than that. On Fri, Feb 6, 2009 at 4:44 AM, Android sunil.mahar...@lntinfotech.com wrote: Hello All I have one query regarding how to use the services of different APK in my APK. Suppose i have created APK1 having services(serv1, serv2) and APK2. I want to invoke the serv1 in APK2. I have tried by using aidl files also. These my question: - How we can access services of different .apk. - How to use the aidl file, is the aidl file should be added in the .apk whose service we want to use. I have gone through the below links, but couldn't find any concret idea of how to impliment. http://code.google.com/android/reference/aidl.html http://minicompact.com/mobiletalk/?tag=android-service http://minicompact.com/mobiletalk/?p=18 http://code.google.com/android/reference/android/os/IBinder.html It would be appreciable If someone answer my question. -Kumar -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. __ __ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Why does my monkey terminated ??
If you launch it as a background process it may, it depends on what the shell is set up to do when it gets closed. On Sun, Feb 8, 2009 at 9:11 PM, Ashrotronics 030440...@163.com wrote: So,according what u said,if i modify the monkey source code to be no outputs,and recompile it in android source code ,then the generated new monkey tool can continue running after i close the shell,am i right ?? On Feb 9, 12:15 pm, Dianne Hackborn hack...@android.com wrote: Um, don't close the shell you are running the monkey on. The monkey command prints its result data there so it would be pretty pointless to run it and close its shell, anyway. On Sun, Feb 8, 2009 at 7:43 PM, Ashrotronics 030440...@163.com wrote: Dear all: As you know,i started the monkey tool at adb shell,and run a script file to send a series of commands including key and mouse events,But sadly to see that when i close the adb DOS window,Monkey just terminates, I wonder why should this happen,and Will it do the same to a real device ?? Thanks in advance! Bgs, Ashrotronics -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Why does my monkey terminated ??
I'll try myself, and Thanks for your advice ! On Feb 9, 1:45 pm, Dianne Hackborn hack...@android.com wrote: If you launch it as a background process it may, it depends on what the shell is set up to do when it gets closed. On Sun, Feb 8, 2009 at 9:11 PM, Ashrotronics 030440...@163.com wrote: So,according what u said,if i modify the monkey source code to be no outputs,and recompile it in android source code ,then the generated new monkey tool can continue running after i close the shell,am i right ?? On Feb 9, 12:15 pm, Dianne Hackborn hack...@android.com wrote: Um, don't close the shell you are running the monkey on. The monkey command prints its result data there so it would be pretty pointless to run it and close its shell, anyway. On Sun, Feb 8, 2009 at 7:43 PM, Ashrotronics 030440...@163.com wrote: Dear all: As you know,i started the monkey tool at adb shell,and run a script file to send a series of commands including key and mouse events,But sadly to see that when i close the adb DOS window,Monkey just terminates, I wonder why should this happen,and Will it do the same to a real device ?? Thanks in advance! Bgs, Ashrotronics -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them.- 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] failed to install application to emulator which is built from android source
I have one android application, which can run well in android sdk 1.0 R2. I also rebuilt android platform in my Ubuntu, at last, the emulator can run successfully, but when I try to install the application into the emulator, following errors came: a...@harry-ubuntu:~/workroom/opensource/android/mydroid/out/host/linux-x86/bin$ ./adb install ~/workroom/GrayKoala.apk 878 KB/s (173860 bytes in 0.193s) pkg: /data/local/tmp/GrayKoala.apk Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES] Can anyone throw a light on it? Thanks Harry --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 any setStyle method?
Dianne, I tried going down the 'declare-styleable' route as you suggested. I'm a bit stuck because 'declare-styleable' needs to be placed in a 'attrs.xml' file, which gets compiled to R.java in the package specified by the 'package' attribute in AndroidManifest.xml. But I am creating a View for other developers to use. So I can't know in advance what their package will be. So 'declare-styleable' doesn't seem appropriate? Or am I missing something? Please help! Is it possible in R2 to programmatically apply styles? Regards, Richard. P.S. With regard to AttributeSet, I found this thread http://markmail.org/message/ogskv4frewsxghlp which suggests it is a known issue for now? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Changing foreground or background color of title text of a Dialog
I have a subclass of android.app.Dialog and because I am using a light theme, the dialog title comes out as Black on a dark background which is hardly readable. This leads me to the question: how do I change the Dialog title background or foreground colors? Can I do this via a theme? Which property will it map to? Here is how I define my theme: style name=MyTheme parent=android:Theme.Light item name=android:windowBackground#f3efe1/item item name=android:windowNoTitletrue/item item name=android:textColor@drawable/solid_black/item /style If theme is not possible, can I do this programmatically? Thanks Inder --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] can not see the font of Activity
now i have a ExpandListActivity,now i want to change it's background color ,when i change the color to White,i can not see the font.just focus the item that can see it!why? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How do we define enum?
How do we define enum? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] can not see the font of Activity
now i have a ExpandListActivity,now i want to change it's background color ,when i change the color to White,i can not see the font.just focus the item that can see it!why? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Detecting changes to a specific row through a content observer
Hi. I would like to detect changes to a Contact. Registering a ContentObserver correctly notifies when a change occures, but does not tell where. Registering Contacts.CONTENT_URI will report a change on Contacts.People or Contacts.Phones, but will not say which record or which table. I could get a hash on each entry, save it on my own db, and compare and find the changed record, but it seems to repeat work that already just been done, and could be slow. Any ideas appreciated. A. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Need help.. I dont know how to get listview up with different screen layout
Hi Currently I am using Absolute layout for my root layout. In this Absolute layout, I have one Absolute layout on the top, followed by a linearlayout. I want to put my viewlist in the linear layout. so it goes l ike this ?xml version=1.0 encoding=utf-8? AbsoluteLayout android:id=@+id/widget0 android:layout_width=fill_parent android:layout_height=fill_parent xmlns:android=http://schemas.android.com/apk/res/android; AbsoluteLayout android:id=@+id/widget30 android:layout_width=429px android:layout_height=122px android:layout_x=0px android:layout_y=2px /AbsoluteLayout LinearLayout android:id=@+id/widget31 android:layout_width=428px android:layout_height=107px android:orientation=vertical android:layout_x=0px android:layout_y=132px ListView id=android:list android:layout_width=fill_parent android:layout_height=fill_parent android:background=#00FF00 android:layout_weight=1 android:drawSelectorOnTop=false/ TextView id=android:empty android:layout_width=fill_parent android:layout_height=fill_parent android:background=#FF android:text=No data/ /LinearLayout /AbsoluteLayout My data is stored in a string. Can someone tell me how do I link that data to the listView , and also preserving the layout of two partitioning, with my title on top and listview at the bottom ? Thank in advanced --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Vertical SeekBar?
Is it possible to have a vertical SeekBar? I would want this for a tilt control slider. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] HTC
How can I get a development kit from HTC? I can buy phones from many different sources but I want a development kit directly from HTC - any ideas 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] Promoting Discussion of the Android Marketshare
Below is a link to a blog with some preliminary ideas for promoting Android in the mobile OS market. There are developers out there with much greater knowledge of Android and their competitors; so, I encourage these developers to respond to my blog here, at blogspot, or perhaps develop your own version of my blog in a more publicized forum. http://androidmarketshare.blogspot.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] Playing video in android
Play video on android - I'm trying to play video files on android...can anyone please help me... I'm not able to see the video but audio works fine... here is the code PLEASE HELP ME... BY GUIDING ME.. BY CORRECTING THE CODE OR WITH ANY NEW CODE package com.vi3; import java.io.IOException; import android.app.Activity; import android.os.Bundle; import android.content.Context; import android.graphics.PixelFormat; import android.media.MediaPlayer; import android.media.MediaPlayer.OnBufferingUpdateListener; import android.media.MediaPlayer.OnCompletionListener; import android.media.MediaPlayer.OnErrorListener; import android.util.Log; import android.view.Menu; import android.view.SurfaceHolder; import android.view.SurfaceView; import android.view.Surface; import android.view.Window; //import android.view.Menu.Item; public class vi3 extends Activity { private static final String LOG_TAG = |; private MediaPlayer mp; private Preview mPreview; //private myAcListener myListener = new myAcListener()this; /** Called when the activity is first created. */ @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); Log.i(LOG_TAG, CameraApp.onCreate); mPreview = new Preview(this); //requestWindowFeature(W); // stopMedia(); // releaseMedia(); setContentView(R.layout.main); //setContentView(mPreview); playMedia(); } private void playMedia(String s_filePath) { setContentView(mPreview); //s_filePath = /tmp/mp4.mp4; s_filePath = /data/local/video/test_qcif_200_aac_64.mp4; //s_filePath = /tmp/test.mpg; //s_filePath = /tmp/3.3gp; Log.i(LOG_TAG, CameraApp.playMedia); mp = new MediaPlayer(); try { mp.setDataSource(s_filePath); } catch (IllegalArgumentException e) { // TODO Auto-generated catch block Log.v(LOG_TAG, CameraApp.playMedia:IllegalArgumentException); e.printStackTrace(); } catch (IOException e) { Log.v(LOG_TAG, CameraApp.playMedia:IOException); // TODO Auto-generated catch block e.printStackTrace(); } try { //mp.setDisplay(mPreview.getHolder().getSurface()); mp.prepare(); int i = mp.getDuration(); Log.i(LOG_TAG, Duration: + String.valueOf(i)); mp.start(); } catch (Exception e) { Log.v(LOG_TAG, e.toString()); mp.stop(); mp.release(); } //setContentView(mPreview); } private void pauseMedia() { Log.i(LOG_TAG, CameraApp.pauseMedia); if (null != mp) { mp.pause(); } } private void stopMedia() { Log.i(LOG_TAG, CameraApp.stopMedia); if (null != mp) { mp.stop(); } } private void releaseMedia() { Log.i(LOG_TAG, CameraApp.releaseMedia); if (null != mp) { mp.release(); } } class Preview extends SurfaceView implements SurfaceHolder.Callback { SurfaceHolder mHolder; private boolean mHasSurface; Preview(Context context) { super(context); mHolder = getHolder(); mHolder.addCallback(this); mHasSurface = false; //mHolder.setFixedSize(320, 240); mHolder.setFixedSize(176, 144); //mHolder.setFixedSize(192, 242); } public void surfaceCreated(SurfaceHolder holder) { // The Surface has been created, start our main acquisition thread. mHasSurface = true; } public void surfaceDestroyed(SurfaceHolder holder) { // Surface will be destroyed when we return. Stop the preview. mHasSurface = false; } public void surfaceChanged(SurfaceHolder holder, int format,int w, int h) { // Surface size or format has changed. This should not happen in this // example. } } } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] flipping window upside down
Does anyone know If I can specify for an Android application to have the main window and all its children draw upside down on the phone. I'm looking for something similar to portrait and landscape orientation but more like portrait_upside_down and landscape_upside_down. 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] Rendering a map off-screen?
I want to create a map off-screen, so I can load it as a texture in OpenGL. So, of course I'm not putting the MapView on the main screen, which means I'm manually forcing the layout through the layout() function, and then using the drawCanvas() method to write out the screen content into a bitmap. However, I'm struggling to get a handle on the tile loading. There's the preLoad() function, but other than that I can't seem to force/ determine what's going on under the hood in terms of how far the tiling has come. Is this possible at all really, or is for example the MapActivity doing some special magic to the MapView object only when it is set on- screen through SetContentView()? Thanks, Ralf --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 optimized environment to develop or modify an application in Android platform?
I wanna ask a simple question to all android developers~ What is the optimized environment to develop or modify an application in Android platform? How are you developing an application now? Google provided several excellent tools to develop an application such as Emulator, Dalvik Debug Monitor, Logcat, SQLites. However, the basic thing in developing an application is... build fix... isn't it? The way how I develop is that... modify some code in windows system.. and then move the changed source to Ubuntu system and... build it. (make). Now... I wanna make it easier~ so.. I built an application(in packages) using Eclipse in windows system, but it is not able to build it because the android.jar does not include so many APIs from framework (e.g.:\frameworks\base\core\java\com\google\android) I created a new SDK using make sdk in the Ubuntu system to fix this problem, but it is still not able to build an application using Eclipse. Is there anyone who can help me on this? Are there no ways to build an existing application in packages? (\packages\apps) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Android emulator Interface
Hi, i found some reference to the sliding drawer but could'nt find the code to use it.. http://groups.google.com/group/android-developers/browse_thread/thread/5d735511a2de5137/422eea2daef3dbb4?hl=enlnk=gstq=SlidingDrawer#422eea2daef3dbb4 any help will be appreciated. thanks On Jan 16, 3:10 pm, elo esyo...@gmail.com wrote: Hi! I would like the source code of a sliding drawer ( in which I need to put ImageButton) in an Eclipse Projet which run. 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] RC33 breaks xml pages
I can no longer view XML pages (T-Mobile web2go). Has anybody seen the same issues? I am using android.webkit.Webview in my application and it isn't working either. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 invoke a service of one APK in another APK
Hi, I had posted this question earlier in the Android-Beginners list but didn't get any response :( Saw this thread here and thought of trying my luck again! Can someone help me with the steps to export a service to another android application? I have created a service and defined an interface which is exposed by the service. I want to be able to get a reference to this interface in another android application. package scratch.service; Service: DbService Interface: DbServiceInterface (aidl filename is DbServiceInterface.aidl) In the AndroidMainfest.xml for the Service: I have these lines: --- permission android:name=scratch.permission.DB_SERVICE_KEY android:label=DbServicePermission android:description=@string/perm_desc android:protectionLevel=dangerous/ uses-permission android:name=scratch.application.permission.DB_SERVICE_KEY/ application android:label=@string/app_name !-- Export this service so that it can be used -- service android:name=.DbService android:exported=true android:enabled=true android:permission=scratch.permission.DB_SERVICE_KEY intent-filter action android:name=MyDbService / /intent-filter /service --- Now, moving onto the the client application that uses the Service: package scratch.activity Activity: DbActivity In the AndroidMainfest.xml for the Activity: --- uses-permission android:name=scratch.permission.DB_SERVICE_KEY / application android:label=@string/app_name activity android:name=.DbActivity android:label=@string/app_name intent-filter action android:name=android.intent.action.MAIN / category android:name=android.intent.category.LAUNCHER / /intent-filter /activity --- I have imported scratch.service.DbServiceInterface in the source-file for the Activity but while building I used to get: --- compile: [javac] Compiling 2 source files to /home/rohan/workspace/projects/ android/MyDatabaseActivity/bin/classes [javac] /home/rohan/workspace/projects/android/MyDatabaseActivity/ src/scratch/activity/DbActivity.java:17: cannot find symbol [javac] symbol : class DbServiceInterface [javac] location: package scratch.service [javac] import scratch.service.DbServiceInterface; [javac] ^ [javac] /home/rohan/workspace/projects/android/MyDatabaseActivity/ src/scratch/activity/DbActivity.java:22: cannot find symbol [javac] symbol : class DbServiceInterface [javac] location: class scratch.activity.DbActivity [javac] private DbServiceInterface refService = null; [javac] ^ [javac] /home/rohan/workspace/projects/android/MyDatabaseActivity/ src/scratch/activity/DbActivity.java:110: package DbServiceInterface does not exist [javac] refService = DbServiceInterface.Stub.asInterface(service); [javac]^ [javac] 3 errors --- To overcome this, I used: 'ant -libs path-to-classes dir for the service' Build errors disappear but while starting the Activity, I get: 01-09 12:05:22.577: INFO/ActivityManager(52): Starting activity: Intent { action=android.intent.action.MAIN categories= {android.intent.category.LAUNCHER} flags=0x1020 comp= {scratch.activity/scratch.activity.DbActivity} } 01-09 12:05:22.978: INFO/ActivityManager(52): Start proc scratch.activity for activity scratch.activity/.DbActivity: pid=1613 uid=10018 gids={} 01-09 12:05:23.117: INFO/jdwp(1613): received file descriptor 20 from ADB 01-09 12:05:24.008: WARN/dalvikvm(1613): VFY: unable to find class referenced in signature (Lscratch/service/DbServiceInterface;) 01-09 12:05:24.047: WARN/dalvikvm(1613): VFY: unable to resolve interface method 61: Lscratch/service/DbServiceInterface;.getNames () [Ljava/lang/String; 01-09 12:05:24.057: WARN/dalvikvm(1613): VFY: rejecting opcode 0x72 at 0x0012 01-09 12:05:24.067: WARN/dalvikvm(1613): VFY: rejected Lscratch/ activity/DbActivity$3;.onClick (Landroid/view/View;)V 01-09 12:05:24.067: WARN/dalvikvm(1613): Verifier rejected class Lscratch/activity/DbActivity$3; 01-09 12:05:24.087: DEBUG/AndroidRuntime(1613): Shutting down VM 01-09 12:05:24.087: WARN/dalvikvm(1613): threadid=3: thread exiting with uncaught exception (group=0x40010e28) 01-09 12:05:24.177: ERROR/AndroidRuntime(1613): Uncaught handler: thread main exiting due to uncaught exception 01-09 12:05:24.257: ERROR/AndroidRuntime(1613): java.lang.VerifyError: scratch.activity.DbActivity$3 01-09 12:05:24.257: ERROR/AndroidRuntime(1613): at scratch.activity.DbActivity.init(DbActivity.java:53) 01-09 12:05:24.257: ERROR/AndroidRuntime(1613): at java.lang.Class.newInstance(Native Method) 01-09 12:05:24.257: ERROR/AndroidRuntime(1613): at android.app.Instrumentation.newActivity(Instrumentation.java:1096) 01-09 12:05:24.257: ERROR/AndroidRuntime(1613): at
[android-developers] Re: After the ADT 0.9 update, Eclipse can not create R.java automatically
It still doesn't work for me~ :-( It gives me the same error message~ [2009-02-09 10:01:22 - Mms] W/ResourceType( 3244): Unable to get buffer of resource asset file [2009-02-09 10:01:22 - Mms] (skipping index file 'D:\Project \cupcake_20090129.tar\packages\apps\Mms\res\drawable\Thumbs.db') [2009-02-09 10:01:22 - Mms] Adding multiple application package resources; only one is allowed. [2009-02-09 10:01:22 - Mms] Use -x to create extended resources. [2009-02-09 10:01:22 - Mms] D:\Project\cupcake_20090129.tar\packages \apps\Mms\res\layout\add_attachment_list.xml:21: ERROR No resource identifier found for attribute 'layout_width' in package 'android' Do you know any other option to fix this problem? :-( On 1월29일, 오전7시01분, Khuong kgh...@gmail.com wrote: The ADT's PreCompilerBuilder uses aapt to generate the R.java file. The android.jar includes a compressed resources file called resources.arsc that appt needs to extract out to a buffer. The first error indicates that it failed to create this buffer. The root cause is that the buffer max size is set to 1 MB. The resources.arsc file in prior versions was smaller than the max size, but in cupcake, it's about 1.3 MB. For a quick workaround, you can increase this buffer size to 2 MB. To do this, look for the Asset.h file under mydroid/frameworks/base/include/utils change UNCOMPRESS_DATA_MAX = 1 * 1024 * 1024 to UNCOMPRESS_DATA_MAX = 2 * 1024 * 1024 and rebuild the sdk again. On Jan 21, 9:12 am, moontain chen.worksp...@gmail.com wrote: Hi, I checked out cupcake branch yesterday and made the full build and sdk successfully, and I also built the ADT 0.9 with the command cupcake/development/tools/eclipse/scripts/build_server.sh on another Linux box. Then I updated the ADT 0.9 and set new SDK on Eclipse. Then I created a simple Android project Test with Android Project Wizard, the Eclipse created project files except the R.java and then reported following errors. Seems the resources are not correctly parsed. Errors: [2009-01-21 15:07:32 - Test] W/ResourceType( 267): Unable to get buffer of resource asset file [2009-01-21 15:07:32 - Test] /Volumes/DATA/workspace/myspace/Test/res/layout/main.xml:2: ERROR No resource identifier found for attribute 'orientation' in package 'android' [2009-01-21 15:07:32 - Test] /Volumes/DATA/workspace/myspace/Test/res/layout/main.xml:2: ERROR No resource identifier found for attribute 'layout_width' in package 'android' [2009-01-21 15:07:32 - Test] /Volumes/DATA/workspace/myspace/Test/res/layout/main.xml:2: ERROR No resource identifier found for attribute 'layout_height' in package 'android' [2009-01-21 15:07:32 - Test] /Volumes/DATA/workspace/myspace/Test/res/layout/main.xml:7: ERROR No resource identifier found for attribute 'layout_width' in package 'android' [2009-01-21 15:07:32 - Test] /Volumes/DATA/workspace/myspace/Test/res/layout/main.xml:7: ERROR No resource identifier found for attribute 'layout_height' in package 'android' [2009-01-21 15:07:32 - Test] /Volumes/DATA/workspace/myspace/Test/res/layout/main.xml:7: ERROR No resource identifier found for attribute 'text' in package 'android' [2009-01-21 15:07:32 - Test] /Volumes/DATA/workspace/myspace/Test/AndroidManifest.xml:2: ERROR No resource identifier found for attribute 'versionCode' in package 'android' [2009-01-21 15:07:32 - Test] /Volumes/DATA/workspace/myspace/Test/AndroidManifest.xml:2: ERROR No resource identifier found for attribute 'versionName' in package 'android' [2009-01-21 15:07:32 - Test] /Volumes/DATA/workspace/myspace/Test/AndroidManifest.xml:6: ERROR No resource identifier found for attribute 'icon' in package 'android' [2009-01-21 15:07:32 - Test] /Volumes/DATA/workspace/myspace/Test/AndroidManifest.xml:6: ERROR No resource identifier found for attribute 'label' in package 'android' [2009-01-21 15:07:32 - Test] /Volumes/DATA/workspace/myspace/Test/AndroidManifest.xml:7: ERROR No resource identifier found for attribute 'name' in package 'android' [2009-01-21 15:07:32 - Test] /Volumes/DATA/workspace/myspace/Test/AndroidManifest.xml:7: ERROR No resource identifier found for attribute 'label' in package 'android' [2009-01-21 15:07:32 - Test] /Volumes/DATA/workspace/myspace/Test/AndroidManifest.xml:10: ERROR No resource identifier found for attribute 'name' in package 'android' [2009-01-21 15:07:32 - Test] /Volumes/DATA/workspace/myspace/Test/AndroidManifest.xml:11: ERROR No resource identifier found for attribute 'name' in package 'android' [2009-01-21 15:07:32 - Test] /Volumes/DATA/workspace/myspace/Test/AndroidManifest.xml:15: ERROR No resource identifier found for attribute 'minSdkVersion' in package 'android' [2009-01-21 15:07:32 - Test] W/ResourceType( 268): Unable to get buffer of resource asset file [2009-01-21 15:07:32 - Test]
[android-developers] Re: Emulator Browser gives error secure connection could not be established
hi, even i am getting same problem.if u get it solved plz send me to swapna.annaman...@gmail.com On Jan 17, 4:27 pm, jalandar jagtap...@gmail.com wrote: emulator browser gives error secure connection could not be established is it the case that emulator browser don't have certificates, is there any other reason, will anybody clear me. The browser is not working for non-secure connection too it gives error : Data Connectivity Problem : The Server Failed to communicate. Try again later Other Appl r working fine e.g Maps, 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] Hi
New join --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: access to internal telephony
Hi, Using a DEV phone, seems I can not make calls to numbers containing extra digits (i.e. pauses - either 'hard' or 'timed'). They are stripped. If I start the call from the built-in contacts app using the ACTION_VIEW intent and then tapping a phone field with, say - *151,#,1 it is dialed ok. Is there any intent other than ACTION_CALL I need to use to start a call to a number like *151,#,1 to have the device call then send those extra digits ? Or is there any specific intent data ? type ? extra ? Or maybe a formatting ? TIA On Feb 8, 6:09 am, Dianne Hackborn hack...@android.com wrote: Not any time soon. Most of the classes there will only work when running code in the phone process, and making them work in other process would be significant work. Also on the G1 I don't believe that anything in the application processor even has access the voice data stream, so it just wouldn't be able to do what you want even if you were modifying the platform itself. On Sat, Feb 7, 2009 at 11:04 AM, Gero Mudersbach ger...@web.de wrote: Hello, are there plans to make com.android.internal.telephony available public? As far as I understand it is currently not possible to write e.g. an answering machine within the current framework (standard sdk), because direct access to acceptCall and hangup methods is missing. Best G. Mudersbach -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] the image captured using Intent i = new Intent(android.media.action.IMAGE_CAPTURE); is very small
hello everybody I am capturing Image from app using : the image captured using Intent i = new Intent (android.media.action.IMAGE_CAPTURE); but it is very small (25*50) Why this is happening; will anybody suggest me solution? thank you --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Audio Streaming with Media Player
Hello!!! this source code is no problem! but just only Url is incorrect. mp.setDataSource(http://asx.skypro.ch/radio/internet-64/ drs3.asx); you should choice correct Url ( for down load file). mp.setDataSource(http://amnhac.timnhanh.com/player/getsong/down /35A5E94E/f255cbf3cd58dfa923867c0b49c784ba/887379/1234163243); if you correct it, you can run playback!. OK! V.Nhan!! On Jan 26, 4:31 pm, arnouf arnaud.far...@gmail.com wrote: Hello, I tried to do the same thing. I had to implement a buffering file system...but it was not easy, two files one reading the stream and another readed by player... But the problem was the first file streaming the content grew without stopping... So wait cupcake... But how LastFm could provide this type of streaming? On 12 jan, 15:04, Lukas lukasn...@googlemail.com wrote: I want to play a radio stream directly from a url, without downloading it first into a temporary file on the phone and having MediaPlayer read it from there. But if I provide the MediaPlayer with a url it returns this error: (-10, 0) Does anybody know what it means or what is the problem with the code below? The stream I want to play is wma: mp.setDataSource(http://asx.skypro.ch/radio/internet-64/ drs3.asx); Thanks a lot, Lukas Here's the code: public class PlayRadio extends Activity implements OnClickListener, OnPreparedListener, OnErrorListener { MediaPlayer mp; /** Called when the activity is first created. */ �...@override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Button bt = (Button)findViewById(R.id.Play); bt.setOnClickListener(this); } �...@override public void onClick(View v) { try { mp = new MediaPlayer(); mp.setAudioStreamType(AudioManager.STREAM_MUSIC); mp.setOnPreparedListener(this); mp.setOnErrorListener(this); mp.setDataSource(http://asx.skypro.ch/radio/internet-64/ drs3.asx); mp.prepareAsync(); } catch(Exception e) { Log.e(radio, e.getMessage()); } } �...@override public void onPrepared(MediaPlayer mp) { Log.i(radio, prepare finished); mp.start(); } �...@override public boolean onError(MediaPlayer mp, int what, int extra) { mp.MEDIA_ERROR_UNKNOWN Log.e(TAG, onError--- what: + what + extra: + extra); return false; } } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 command to check SDCARD is present ?
somebody will tel me the command for checking sdcard of device what is command to check SDCARD is present ? or in other words how to appl the sdcard is there or not? 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 -~--~~~~--~~--~--~---