[android-developers] Question about defining selector drawable
Hi, I am trying to setup a selector drawable in my asset file like this: * 2 different images for 'on'/'off' mode in rest mode (i.e. it does not has focus) * another 2 different images for 'on'/'off' mode in focus mode (i.e. it has the focus). In my case, the rest mode works, but the 'focus' mode does not. Can you please tell me what am I missing in the focus mode? Thank you. ?xml version=1.0 encoding=utf-8? selector xmlns:android=http://schemas.android.com/apk/res/android; !-- these 2 images works --- item android:state_checked=false android:drawable=@drawable/off / item android:state_checked=true android:drawable=@drawable/on / !-- these 2 images does not work -- item android:state_focused=true android:state_checked=false android:drawable=@drawable/off_focus / item android:state_focused=true android:state_checked=true android:drawable=@drawable/on_focus / /selector --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Question about defining selector drawable
use state_selected, not focused. On Sun, Feb 15, 2009 at 12:08 AM, Meryl Silverburgh silverburgh.me...@gmail.com wrote: Hi, I am trying to setup a selector drawable in my asset file like this: * 2 different images for 'on'/'off' mode in rest mode (i.e. it does not has focus) * another 2 different images for 'on'/'off' mode in focus mode (i.e. it has the focus). In my case, the rest mode works, but the 'focus' mode does not. Can you please tell me what am I missing in the focus mode? Thank you. ?xml version=1.0 encoding=utf-8? selector xmlns:android=http://schemas.android.com/apk/res/android; !-- these 2 images works --- item android:state_checked=false android:drawable=@drawable/off / item android:state_checked=true android:drawable=@drawable/on / !-- these 2 images does not work -- item android:state_focused=true android:state_checked=false android:drawable=@drawable/off_focus / item android:state_focused=true android:state_checked=true android:drawable=@drawable/on_focus / /selector -- 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: Setup Merchant Account link now available
Still, paypal can do it, why can't google checkout? On Sun, Feb 15, 2009 at 4:41 AM, brs bernhard.r.su...@gmail.com wrote: I would suspect that any such restrictions are due to the intricacies of banking regulations in various countries and where Google checkout has a license perform certain kinds of financial transactions or not. Bernhard On Feb 13, 6:06 pm, Mariano Kamp mariano.k...@gmail.com wrote: Yeah, that is really really bad and even worse and too late communicated. I wonder why? On Fri, Feb 13, 2009 at 7:55 PM, Ivan Soto ivanso...@gmail.com wrote: I knew you wouldn't be able to buy or sell IN Canada. But I had no idea that if I was IN Canada I wouldn't be able to sell to another countries. Now I'm sad. On Fri, Feb 13, 2009 at 11:29 AM, Al Sutton a...@funkyandroid.com wrote: Does Canada appear in the list in the email? Agus wrote: no Canada? On Fri, Feb 13, 2009 at 10:24 AM, Al Sutton a...@funkyandroid.com wrote: Google have already stated UK US first, then Germany, Austria, and the Netherlands, followed by France, Italy, and Spain. It was all in an email Google sent out at the end of last year (http://www.talkandroid.com/526-android-market-paid-apps-2009/). Al. Ivan Soto wrote: I wonder the same. Will it be possible to sell from Canada to the rest of the world? On Fri, Feb 13, 2009 at 10:33 AM, Evgeny V evgen...@gmail.com mailto:evgen...@gmail.com wrote: But it's available for US and UK countires! Means it that only US and UK citizen could be a sellers? On Fri, Feb 13, 2009 at 7:24 PM, g1bb corymgibb...@gmail.com mailto:corymgibb...@gmail.com wrote: Woah, now I can specify a price! On Feb 13, 10:12 am, g1bb corymgibb...@gmail.com mailto:corymgibb...@gmail.com wrote: I noticed a 'Setup a Merchant Account at Google CheckoutFree' is now available at market.android.com http://market.android.com/, but not functional yet. We're getting closer! Is the link working for anyone? -- == 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: [Split the Android screen into two parts and run 2 applications simultaneously on both screen]
The documentation is pretty much the source code. Feel free to look at it, and post questions to the appropriate list (android-platform or android-framework). This is not the appropriate list, so I'll avoid further discussion here. :} On Sat, Feb 14, 2009 at 11:01 PM, Saroj (सरोज) saroj...@gmail.com wrote: Hello Dianne, Thanks for reply. I want to know where can i get some documentation of ActivityManagerService and WindowManagerService source code for study. Regards, Saroj K Pradhan On Sun, Feb 15, 2009 at 1:45 AM, Dianne Hackborn hack...@android.comwrote: This list is for programming with the SDK, please use android-framework or android-platform for talking about changes to the system. That said, doing this is extremely non-trivial. Your first step is to go into ActivityManagerService and WindowManagerService and have a good understanding of that code. Have fun. :) On Fri, Feb 13, 2009 at 5:52 AM, saroj saroj...@gmail.com wrote: Hello all, I need to split the Android screen into two parts and run 2 applications (app A and app B) simultaneously. app A will run on screen 1 and app B will run on screen 2. Both are visible to the users. I need to implement this thing in the Android Framework. How to do it ? Waiting for your valuable inputs. Regards, Saroj K Pradhan -- 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. -- Regards, Saroj K Pradhan My formula for living is quite simple. I get up in the morning and I go to bed at night. In between, I occupy myself as best I can. -- 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: Idea for non-US/UK developers with paid apps (was Setup Merchant Account link now available)
Hi, I would like to chime in on this. First - this is REALLY frustrating - by the time I can sign in and sellmy apps, the market may be filled with competitors. Now - I dont have any problem with competition - I LOVE competition, and am sure I can make the best app (otherwise I would not be in this business). But if other apps get to the market MONTHS ahead - it makes it harder to even impossible to gain the same exposure and market share. I think I understand the hardship on Google side, but I think they need to come up with a solution asap - maybe initiate a solution similar to the one suggested here, or hurry and make the arrangements to accept developers from all other countries. Go and buy an ESD that handles it - you have the money... Or - I will settle for a commitment from Google that they will eventually make it so I can sell and get paid here in Israel (I dont mind selling only in the US - dont need to sell in Israel), and they let me start selling NOW, and accumulate my funds until they can transfer them to me. Anyway - Al - please keep us updated if you are going to suggest such an arrangement - I tink I, for one, will be interested. Thanks ! On Feb 14, 10:48 am, Al Sutton a...@funkyandroid.com wrote: OK, I'm going to float an idea that I'd like some feedback on from developers and (hopefully) someone at Google (Justin, I'd appreciate any clarification you can give on this). My company (Funky Android) is a UK Registered company and I would be willing to allow it to act as a publisher for *some* non-US/UK developers in order to get their paid apps into the app store. What I'd look for is a 2% cut of the app sales price on top of the Markets 30% cut in order to cover support and admin costs (i.e. forwarding user queries, paying the accountant to make sure the money flow is tax efficient and legal, etc.). Is this something developers would want and Google would allow? Al. Mads Kristiansen wrote: I'd like to see someone create a solution like armadillo - i.e. a wrapper to make apps available in the Android Market while using an external DRM/payment solution. There is no word on when I will be able to publish priced apps form my country, so that could be anywhere from 1 month to years from now (well, probably not, but just to make a point). That's a bit of a problem. I'll probably just publish my first app and then do some shameless self promotion in it ;) instead of charging, see what happens with the priced apps and then concentrate a bit on the iPhone development. BR, Mads On Sat, Feb 14, 2009 at 8:28 AM, Mariano Kamp mariano.k...@gmail.com mailto:mariano.k...@gmail.com wrote: Google checkout has been working since 2006 It might be operational since then, but did anyone see Google's checkout in the wild? It is in Google's the best interest to finally do something about it and make it mandatory to use for people so that they will finally start using it, but I don't think it is in the best interest of developers to be forced to use an exotic payment system that no user has ever used before. Given that non-us/uk developers are not allowed to publish their apps makes the story worse, at least for those developers. That's the beauty of Apple's solution. They also don't provide paypal, but at least most user already have an iTunes account and things go very smoothly. On Sat, Feb 14, 2009 at 12:21 AM, Ivan Soto ivanso...@gmail.com mailto:ivanso...@gmail.com wrote: I've been reading a lot about this whole Google Merchant thing and it's actually that Google Checkout only allows to sell goods from US and UK. It's not an Android thing, it's their system is not even complete and operational for all countries. Well, I know they will add more countries like they said in the email but I wonder what is the ETA on Canada. Google checkout has been working since 2006 I believe and people have been whining since then. Still nothing has been done. So seeing how slow is this going, I wonder if they will actually add Canada (or more countries) in a matter of months or years or what? On Fri, Feb 13, 2009 at 4:06 PM, Mariano Kamp mariano.k...@gmail.com mailto:mariano.k...@gmail.com wrote: Yeah, that is really really bad and even worse and too late communicated. I wonder why? On Fri, Feb 13, 2009 at 7:55 PM, Ivan Soto ivanso...@gmail.com mailto:ivanso...@gmail.com wrote: I knew you wouldn't be able to buy or sell IN Canada. But I had no idea that if I was IN Canada I wouldn't be able to sell to another countries. Now I'm sad. On Fri, Feb 13, 2009 at 11:29 AM, Al Sutton
[android-developers] Re: Android 1.1_r1 SDK released and developer.android.com launched
I am also looking for a solution for this. Please help. On Feb 14, 7:17 pm, Guillaume Perrot guillaume.p...@gmail.com wrote: Sadly, the javadoc is not included in the new android.jar, so we can't have the doc in Eclipse anymore when auto-completing... Is there a way to restore that ? On Feb 14, 12:27 am, Mark Murphy mmur...@commonsware.com wrote: DavidLanz wrote: do you guys know what's the different from 1.0.r2 to1.1r1? is there a reference or documentation about the difference? http://developer.android.com/sdk/android-1.1.html -- Mark Murphy (a Commons Guy)http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Android 1.1_r1 SDK released and developer.android.com launched
Is anyone looking into the javadoc issue? On Feb 14, 7:17 pm, Guillaume Perrot guillaume.p...@gmail.com wrote: Sadly, the javadoc is not included in the new android.jar, so we can't have the doc in Eclipse anymore when auto-completing... Is there a way to restore that ? On Feb 14, 12:27 am, Mark Murphy mmur...@commonsware.com wrote: DavidLanz wrote: do you guys know what's the different from 1.0.r2 to 1.1r1? is there a reference or documentation about the difference? http://developer.android.com/sdk/android-1.1.html -- Mark Murphy (a Commons Guy)http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Idea for non-US/UK developers with paid apps (was Setup Merchant Account link now available)
First - this is REALLY frustrating - by the time I can sign in and sellmy apps, the market may be filled with competitors. and they let me start selling NOW, and accumulate my funds until they can transfer them to me. Amen. On Sun, Feb 15, 2009 at 11:18 AM, shimo...@gmail.com shimo...@gmail.com wrote: Hi, I would like to chime in on this. First - this is REALLY frustrating - by the time I can sign in and sellmy apps, the market may be filled with competitors. Now - I dont have any problem with competition - I LOVE competition, and am sure I can make the best app (otherwise I would not be in this business). But if other apps get to the market MONTHS ahead - it makes it harder to even impossible to gain the same exposure and market share. I think I understand the hardship on Google side, but I think they need to come up with a solution asap - maybe initiate a solution similar to the one suggested here, or hurry and make the arrangements to accept developers from all other countries. Go and buy an ESD that handles it - you have the money... Or - I will settle for a commitment from Google that they will eventually make it so I can sell and get paid here in Israel (I dont mind selling only in the US - dont need to sell in Israel), and they let me start selling NOW, and accumulate my funds until they can transfer them to me. Anyway - Al - please keep us updated if you are going to suggest such an arrangement - I tink I, for one, will be interested. Thanks ! On Feb 14, 10:48 am, Al Sutton a...@funkyandroid.com wrote: OK, I'm going to float an idea that I'd like some feedback on from developers and (hopefully) someone at Google (Justin, I'd appreciate any clarification you can give on this). My company (Funky Android) is a UK Registered company and I would be willing to allow it to act as a publisher for *some* non-US/UK developers in order to get their paid apps into the app store. What I'd look for is a 2% cut of the app sales price on top of the Markets 30% cut in order to cover support and admin costs (i.e. forwarding user queries, paying the accountant to make sure the money flow is tax efficient and legal, etc.). Is this something developers would want and Google would allow? Al. Mads Kristiansen wrote: I'd like to see someone create a solution like armadillo - i.e. a wrapper to make apps available in the Android Market while using an external DRM/payment solution. There is no word on when I will be able to publish priced apps form my country, so that could be anywhere from 1 month to years from now (well, probably not, but just to make a point). That's a bit of a problem. I'll probably just publish my first app and then do some shameless self promotion in it ;) instead of charging, see what happens with the priced apps and then concentrate a bit on the iPhone development. BR, Mads On Sat, Feb 14, 2009 at 8:28 AM, Mariano Kamp mariano.k...@gmail.com mailto:mariano.k...@gmail.com wrote: Google checkout has been working since 2006 It might be operational since then, but did anyone see Google's checkout in the wild? It is in Google's the best interest to finally do something about it and make it mandatory to use for people so that they will finally start using it, but I don't think it is in the best interest of developers to be forced to use an exotic payment system that no user has ever used before. Given that non-us/uk developers are not allowed to publish their apps makes the story worse, at least for those developers. That's the beauty of Apple's solution. They also don't provide paypal, but at least most user already have an iTunes account and things go very smoothly. On Sat, Feb 14, 2009 at 12:21 AM, Ivan Soto ivanso...@gmail.com mailto:ivanso...@gmail.com wrote: I've been reading a lot about this whole Google Merchant thing and it's actually that Google Checkout only allows to sell goods from US and UK. It's not an Android thing, it's their system is not even complete and operational for all countries. Well, I know they will add more countries like they said in the email but I wonder what is the ETA on Canada. Google checkout has been working since 2006 I believe and people have been whining since then. Still nothing has been done. So seeing how slow is this going, I wonder if they will actually add Canada (or more countries) in a matter of months or years or what? On Fri, Feb 13, 2009 at 4:06 PM, Mariano Kamp mariano.k...@gmail.com mailto:mariano.k...@gmail.com wrote: Yeah, that is really really bad and even worse and too late communicated. I wonder why? On Fri, Feb 13, 2009 at 7:55 PM, Ivan Soto ivanso...@gmail.com
[android-developers] priced applications. need partner!!!
Hi, Android market launch priced application! wow! But my problem is that priced application registration works only for two countries now - USA and UK. So I'm searching for partner that can be a hop between our company and USA/UK registration. Also I will be very pleasant for any links on vendors that can provide such service. If you know one please let me now. 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: Idea for non-US/UK developers with paid apps (was Setup Merchant Account link now available)
Just set up a UK company. It is very easy and cheap. S On 15 Feb 2009, at 12:09, Mariano Kamp wrote: First - this is REALLY frustrating - by the time I can sign in and sellmy apps, the market may be filled with competitors. and they let me start selling NOW, and accumulate my funds until they can transfer them to me. Amen. On Sun, Feb 15, 2009 at 11:18 AM, shimo...@gmail.com shimo...@gmail.com wrote: Hi, I would like to chime in on this. First - this is REALLY frustrating - by the time I can sign in and sellmy apps, the market may be filled with competitors. Now - I dont have any problem with competition - I LOVE competition, and am sure I can make the best app (otherwise I would not be in this business). But if other apps get to the market MONTHS ahead - it makes it harder to even impossible to gain the same exposure and market share. I think I understand the hardship on Google side, but I think they need to come up with a solution asap - maybe initiate a solution similar to the one suggested here, or hurry and make the arrangements to accept developers from all other countries. Go and buy an ESD that handles it - you have the money... Or - I will settle for a commitment from Google that they will eventually make it so I can sell and get paid here in Israel (I dont mind selling only in the US - dont need to sell in Israel), and they let me start selling NOW, and accumulate my funds until they can transfer them to me. Anyway - Al - please keep us updated if you are going to suggest such an arrangement - I tink I, for one, will be interested. Thanks ! On Feb 14, 10:48 am, Al Sutton a...@funkyandroid.com wrote: OK, I'm going to float an idea that I'd like some feedback on from developers and (hopefully) someone at Google (Justin, I'd appreciate any clarification you can give on this). My company (Funky Android) is a UK Registered company and I would be willing to allow it to act as a publisher for *some* non-US/UK developers in order to get their paid apps into the app store. What I'd look for is a 2% cut of the app sales price on top of the Markets 30% cut in order to cover support and admin costs (i.e. forwarding user queries, paying the accountant to make sure the money flow is tax efficient and legal, etc.). Is this something developers would want and Google would allow? Al. Mads Kristiansen wrote: I'd like to see someone create a solution like armadillo - i.e. a wrapper to make apps available in the Android Market while using an external DRM/payment solution. There is no word on when I will be able to publish priced apps form my country, so that could be anywhere from 1 month to years from now (well, probably not, but just to make a point). That's a bit of a problem. I'll probably just publish my first app and then do some shameless self promotion in it ;) instead of charging, see what happens with the priced apps and then concentrate a bit on the iPhone development. BR, Mads On Sat, Feb 14, 2009 at 8:28 AM, Mariano Kamp mariano.k...@gmail.com mailto:mariano.k...@gmail.com wrote: Google checkout has been working since 2006 It might be operational since then, but did anyone see Google's checkout in the wild? It is in Google's the best interest to finally do something about it and make it mandatory to use for people so that they will finally start using it, but I don't think it is in the best interest of developers to be forced to use an exotic payment system that no user has ever used before. Given that non-us/uk developers are not allowed to publish their apps makes the story worse, at least for those developers. That's the beauty of Apple's solution. They also don't provide paypal, but at least most user already have an iTunes account and things go very smoothly. On Sat, Feb 14, 2009 at 12:21 AM, Ivan Soto ivanso...@gmail.com mailto:ivanso...@gmail.com wrote: I've been reading a lot about this whole Google Merchant thing and it's actually that Google Checkout only allows to sell goods from US and UK. It's not an Android thing, it's their system is not even complete and operational for all countries. Well, I know they will add more countries like they said in the email but I wonder what is the ETA on Canada. Google checkout has been working since 2006 I believe and people have been whining since then. Still nothing has been done. So seeing how slow is this going, I wonder if they will actually add Canada (or more countries) in a matter of months or years or what? On Fri, Feb 13, 2009 at 4:06 PM, Mariano Kamp mariano.k...@gmail.com mailto:mariano.k...@gmail.com wrote: Yeah, that is really really bad and even worse and too late communicated. I wonder why?
[android-developers] Re: Idea for non-US/UK developers with paid apps (was Setup Merchant Account link now available)
Hi, Can I do that ? Without being in the UK ? Without a citizenship ? Can you point a tutorial on this ? Shimon On Feb 15, 3:25 pm, Sena Gbeckor-Kove s...@imkon.com wrote: Just set up a UK company. It is very easy and cheap. S On 15 Feb 2009, at 12:09, Mariano Kamp wrote: First - this is REALLY frustrating - by the time I can sign in and sellmy apps, the market may be filled with competitors. and they let me start selling NOW, and accumulate my funds until they can transfer them to me. Amen. On Sun, Feb 15, 2009 at 11:18 AM, shimo...@gmail.com shimo...@gmail.com wrote: Hi, I would like to chime in on this. First - this is REALLY frustrating - by the time I can sign in and sellmy apps, the market may be filled with competitors. Now - I dont have any problem with competition - I LOVE competition, and am sure I can make the best app (otherwise I would not be in this business). But if other apps get to the market MONTHS ahead - it makes it harder to even impossible to gain the same exposure and market share. I think I understand the hardship on Google side, but I think they need to come up with a solution asap - maybe initiate a solution similar to the one suggested here, or hurry and make the arrangements to accept developers from all other countries. Go and buy an ESD that handles it - you have the money... Or - I will settle for a commitment from Google that they will eventually make it so I can sell and get paid here in Israel (I dont mind selling only in the US - dont need to sell in Israel), and they let me start selling NOW, and accumulate my funds until they can transfer them to me. Anyway - Al - please keep us updated if you are going to suggest such an arrangement - I tink I, for one, will be interested. Thanks ! On Feb 14, 10:48 am, Al Sutton a...@funkyandroid.com wrote: OK, I'm going to float an idea that I'd like some feedback on from developers and (hopefully) someone at Google (Justin, I'd appreciate any clarification you can give on this). My company (Funky Android) is a UK Registered company and I would be willing to allow it to act as a publisher for *some* non-US/UK developers in order to get their paid apps into the app store. What I'd look for is a 2% cut of the app sales price on top of the Markets 30% cut in order to cover support and admin costs (i.e. forwarding user queries, paying the accountant to make sure the money flow is tax efficient and legal, etc.). Is this something developers would want and Google would allow? Al. Mads Kristiansen wrote: I'd like to see someone create a solution like armadillo - i.e. a wrapper to make apps available in the Android Market while using an external DRM/payment solution. There is no word on when I will be able to publish priced apps form my country, so that could be anywhere from 1 month to years from now (well, probably not, but just to make a point). That's a bit of a problem. I'll probably just publish my first app and then do some shameless self promotion in it ;) instead of charging, see what happens with the priced apps and then concentrate a bit on the iPhone development. BR, Mads On Sat, Feb 14, 2009 at 8:28 AM, Mariano Kamp mariano.k...@gmail.com mailto:mariano.k...@gmail.com wrote: Google checkout has been working since 2006 It might be operational since then, but did anyone see Google's checkout in the wild? It is in Google's the best interest to finally do something about it and make it mandatory to use for people so that they will finally start using it, but I don't think it is in the best interest of developers to be forced to use an exotic payment system that no user has ever used before. Given that non-us/uk developers are not allowed to publish their apps makes the story worse, at least for those developers. That's the beauty of Apple's solution. They also don't provide paypal, but at least most user already have an iTunes account and things go very smoothly. On Sat, Feb 14, 2009 at 12:21 AM, Ivan Soto ivanso...@gmail.com mailto:ivanso...@gmail.com wrote: I've been reading a lot about this whole Google Merchant thing and it's actually that Google Checkout only allows to sell goods from US and UK. It's not an Android thing, it's their system is not even complete and operational for all countries. Well, I know they will add more countries like they said in the email but I wonder what is the ETA on Canada. Google checkout has been working since 2006 I believe and people have been whining since then. Still nothing has been done. So seeing how slow is this going, I wonder if they will actually add Canada (or more countries) in a matter of months or
[android-developers] transparent textures...
Hi all I am using opengl for drawing 3d stuff, but so far I've been unable to use transparent textures... this is what I do... does anybody knows what I am missing? Thanks a lot! void initGL() { gl.glEnable(GL10.GL_CULL_FACE); gl.glColor4f(1.0f, 1.0f, 1.0f, 1.0f); gl.glEnableClientState(GL10.GL_VERTEX_ARRAY); gl.glEnableClientState(GL10.GL_TEXTURE_COORD_ARRAY); gl.glEnable(GL10.GL_TEXTURE_2D); gl.glDisable(GL10.GL_DITHER); gl.glMatrixMode(GL10.GL_PROJECTION); gl.glLoadIdentity(); gl.glFrustumf(-ratio, ratio, -1, 1 , 1, 50); gl.glTexParameterx(GL10.GL_TEXTURE_2D,GL10.GL_TEXTURE_MIN_FILTER, GL10.GL_LINEAR); gl.glTexParameterx(GL10.GL_TEXTURE_2D,GL10.GL_TEXTURE_MAG_FILTER, GL10.GL_LINEAR); gl.glFrontFace(GL10.GL_CCW); gl.glEnableClientState(GL10.GL_TEXTURE_COORD_ARRAY); } void drawGL() { gl.glTexImage2D(GL10.GL_TEXTURE_2D, 0, GL10.GL_RGBA, width, height, 0, GL10.GL_RGBA,GL10.GL_UNSIGNED_BYTE, mPixelsBuffer); gl.glVertexPointer(3, GL10.GL_FIXED, 0, mVertexBuffer); gl.glTexCoordPointer(2, GL10.GL_FIXED, 0, mTexBuffer); gl.glDrawElements(GL10.GL_TRIANGLES, nIndex*3, GL10.GL_UNSIGNED_SHORT, mIndexBuffer); } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 some help at testing an Android game
I ran it a few times on my G1 and I got: min: 15, 8, 15 max: 44, 44, 47 avg: 25, 24, 27 The animation is fairly smooth, but there is a brief delay (~100ms) every few seconds caused by garbage collection. On the G1 screen it often looks like there are two bullets in a row when there is only really one, which is presumably because the bullets are black and the screen's response time isn't high enough. I also tried running the demo while moving my finger around on the screen and the performance was much worse: min: 5 max: 23 avg: 13 That's probably because of the issue described here: http://groups.google.com/group/android-developers/browse_thread/thread/39eea4d7f6e6dfca which is worth looking at if you're planning to use touchscreen control in the game. -- Jon --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How to use android:pathPattern attribute in intent filters?
Hi, I would like to associate an activity with http links to files of several types. More precisely, I would like to open in my activity all the files with extensions .epub, .fb2 and .fb2.zip. Unfortunately, there is no standard mymetype associated with such files on the Internet. So I would like to use a filter by file path. I've added the following lines into my AndroidManifest.xml: intent-filter action android:name=android.intent.action.VIEW / category android:name=android.intent.category.DEFAULT / category android:name=android.intent.category.BROWSABLE / data android:mimeType=*/* android:scheme=http android:pathPattern=.*\\.epub / data android:mimeType=*/* android:scheme=http android:pathPattern=.*\\.fb2 / data android:mimeType=*/* android:scheme=http android:pathPattern=.*\\.fb2\\.zip / /intent-filter (Yes, I would like to download these files directly from my application, not by the standard Download Activity.) However the result is slightly confusing: 1. For some links this works as I mean, great! 2. However, when I click the link http://www.feedbooks.com/book/1810.epub, browser tries to download it using standard Dowload Activity and says Cannot download. The content being downloaded is not supported on the phone. 3. In the other hand, all the *.zip links are now processed by my activity! What is wrong in my AndroidManifest.xml? Regards, -- Nikolay Pultsin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: transparent textures...
On Feb 15, 2:23 pm, petunio juanjosegilmen...@hotmail.com wrote: Hi all I am using opengl for drawing 3d stuff, but so far I've been unable to use transparent textures... You need at least: gl.glEnable(GL10.GL_BLEND); and probably also: gl.glBlendFunc(GL10.GL_SRC_ALPHA, GL10.GL_ONE_MINUS_SRC_ALPHA); gl.glTexEnvx(GL10.GL_TEXTURE_ENV, GL10.GL_TEXTURE_ENV_MODE, GL10.GL_REPLACE); -- Jon --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Playing video in android
Are you looking at the log in DDMS? There must be some log output associated with your application. At the very least, you should see ActivityManager starting and stopping it. You can also add some logging to your code. import android.util.Log; private static final String TAG = MyProgram; Then scatter log statements around the code in various places: Log.d(TAG, This will output to the log); On Feb 14, 11:28 pm, Ash ashwin.disco...@gmail.com wrote: thanx for reply... the above code after making changes as mentioned by Dave Sparks does not show any error... when i found the application in emulator and run it myself... i jus see a black screen for a second and the program exits Can u pls help me in correcting the code or by any other video display code... thank u so much for support and replies... On Feb 14, 1:05 pm, Dave Sparks davidspa...@android.com wrote: We can't help you if you can't describe the errors you are seeing. What is in the log? On Feb 14, 10:01 am, Ash ashwin.disco...@gmail.com wrote: Thank u so much for the reply but The program does Not execute at all.. Can u please help On Feb 9, 2:53 am, Dilli dilliraomca...@gmail.com wrote: Hi i think you fixed the size ofvideodisplay mHolder.setFixedSize(176, 144); it may cause the problem of videodisplaying use mHolder.setFixedSize(mp.getVideoWidth(), mp.getVideoHeight()); Regards On Feb 9, 3:58 am, Ash ashwin.disco...@gmail.com wrote: Playvideoonandroid - I'm trying toplayvideofiles onandroid...can anyone please help me... I'm not able to see thevideobut 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; importandroid.app.Activity; importandroid.os.Bundle; importandroid.content.Context; importandroid.graphics.PixelFormat; importandroid.media.MediaPlayer; importandroid.media.MediaPlayer.OnBufferingUpdateListener; importandroid.media.MediaPlayer.OnCompletionListener; importandroid.media.MediaPlayer.OnErrorListener; importandroid.util.Log; importandroid.view.Menu; importandroid.view.SurfaceHolder; importandroid.view.SurfaceView; importandroid.view.Surface; importandroid.view.Window; //importandroid.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,
[android-developers] Re: hosting apk files on godaddy shared windows hosting
well apparently godaddy hosting is unwilling to add the mime type for apk files. the response i got from them is below. Thank you for your reply. As previously stated, we are only able to add MIME Types as an application/octet-stream. We will not be able to install the MIME Type that you requested at this time. We apologize for any inconvenience regarding this issue. Does anyone know of a workaround using .net? Or does anyone know of a reliable host that does support the mime type? On 2/11/09, Josh Dobbs joshdo...@gmail.com wrote: It's running Windows Server On Wed, Feb 11, 2009 at 3:52 PM, Al alcapw...@googlemail.com wrote: What http server are you using? I know for Apache, you can use AddType inside .htaccess. There will probably be equivalents to this for whatever software GoDaddy is using. On Feb 11, 11:26 pm, Josh joshdo...@gmail.com wrote: Ii know that I am supposed to add application/vnd.android.package- archive mime type in iis however i have to access to this. I have emailed godaddy asking them to add it but i just wanted to see if anyone knows of an alternate method that i could use to allow my users to download this from my site. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: hosting apk files on godaddy shared windows hosting
Josh Dobbs wrote: Or does anyone know of a reliable host that does support the mime type? Al Sutton got it working with Amazon S3: http://groups.google.com/group/android-developers/browse_thread/thread/4413db5a224803aa/e1bdfc8d31ec55fd -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/schedule.shtml --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 Market broken? Can't see the new release of my app in the Android Market?!
Hi, strange thing. I uploaded a new release of my app. I downloaded the new version from the Market to try it out and I got the new binary, it also state V1.3.0, which is the new version. The description is from the release before that. Very strange. When looking at http://www.cyrket.com/package/com.newsrob I see the old version V1.2.1 and the old description. When looking at a G1 where the old version is installed it doesn't provide me with the option to upgrade it. Btw. I followed the same steps as the weeks before. The Market has changed and I could use new options (DRM, not paid as I am not from the US/UK), but I kept the old options. Meanwhile the old description is also in the developer's console (which I will change again right away), but it says 1.3.0 and when re-uploading the apk it says The new apk's versionCode (130) in AndroidManifest.xml must be higher than the old apk's versionCode (130)., which is fine, well kind of. Any idea what's that about? Cheers, Mariano --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] WebView.addJavascriptInterface - only String and void supported from Java to Javascript?
Hi, In the object shared between the Java and Javascript code, it appears that only void and String Java return types are supported. Is this correct? I wanted a method that returns a String[] so that my Javascript could loop over it, but it was never called. I also tried an int, and it wasn't called either. However, methods that take a String[] or int as parameters work as expected. I tried looking for how this was done in the framework source code, but it is a native call in BrowserFrame.java. Any idea? 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: Alarm Manager forgets repeating alarms?
On Feb 15, 6:29 am, Mariano Kamp mariano.k...@gmail.com wrote: This question is a bit strange, but does anybody know about a common gotcha when using the AlarmManager? And not knowing it sometimes leads to the AlarmManger forgetting alarms? I have a repeating task that runs once an hour. Some nights it runs without a hitch and some nights it runs a couple of times and then it isn't. Is it because your device is fully powered off and restarted? I think we need to wait for a PIM type API for have long-term persisting alarms. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: RTSP and MMS - mediaplayer shenanigans
No it's a cookie that you get upon passage of username and login. That auth token is part of the URL that you get when a channel is selected. If you enter that URL into a web browser within Windows, it'll pop up Windows media player and play the URL - I can confirm that. Will see if there's a way around this. -Rob On Sun, Feb 15, 2009 at 12:17 AM, Marco Nelissen marc...@android.comwrote: When you say 'cookie', do you mean a real cookie, or are you referring to the auth token in the URL you mentioned earlier? Have you tried entering that URL into a freshly launched webbrowser on your desktop, and did it work? Either way, I'm pretty sure that OpenCore is not going to work with an MMS: URL. On Sat, Feb 14, 2009 at 7:55 PM, Rob Franz rob.fr...@gmail.com wrote: Yes - I get through the authentication and that works with no problems - after the authentication (and you get a cookie) you can select a channel to listen to, which are just HTTP gets. You just pass the cookie each time. When you send the get, you'll get the address of an mms:// feed. On Sat, Feb 14, 2009 at 9:09 PM, Marco Nelissen marc...@android.comwrote: Doesn't that certain satellite radio online streaming audio service require that you authenticate in some way before accessing the stream? On Sat, Feb 14, 2009 at 4:55 PM, Rob Franz rob.fr...@gmail.com wrote: It's hard to say what's being rejected... I have tried putting rtsp:// instead of mms:// but that doesn't seem to work. Basically I'm trying to emulate another program that runs on Windows that logs into a certain satellite radio online streaming audio service (should be pretty easy to guess what it is :) and initiates a streaming audio session when a user picks a channel. It's RTSP with a RTP payload which mediaplayer should support. It's just a question of getting the data and playing it. Unfortunately the media player doesn't seem to throw up meaningful log information... On Sat, Feb 14, 2009 at 1:16 PM, Dave Sparks davidspa...@android.comwrote: I'm pretty sure that OpenCore is going to reject the mms URI. On Feb 13, 8:57 pm, Rob Franz rob.fr...@gmail.com wrote: I believe this is WMA on the other end. Does this present a problem? On Feb 13, 2009 11:13 PM, Rob Franz rob.fr...@gmail.com wrote: Hi all I'm trying to get an RTSP stream going with a verified source - I know there's something on the other end in this case. However, the format of the URL is like this: mms:// a757.l1265761171.c12657.g.lm.akamaistream.net/D/757/12657/v0001/reflector:61171?auth=daEdLa4adcAc2aoc1bYceclcFcQdfbwckcA-bjLJ8.-b4-NvGjptD I admit I'm new to RTSP in general but I think I understand how it works - for my purposes, all I need to do is pass the RTSP URL to the mediaPlayer.setDataSource() method, prepare it, and start. That should be pretty much it, if I understand correctly. No matter what I do, I always get Prepare failed.: status=0xFFFC ,etc. I try to modify different things, but I can never prepare the stream, and so I can't start it. Does the above URL qualify as an rtsp stream (i.e. remove the mms and put in rtsp)? As I understood it, RTSP obsoleted MMS, and MMS has been completely phased out, but apparently some services are still passing out that URL. Anyone seen anything like this before? 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: Alarm Manager forgets repeating alarms?
Nope, not until somebody broke into my house and rebooted it during my sleep ;-) The other problem in finding the source of my issue is, that I can't go back very long in the Android log files. My logfile tells me that the alarms weren't fired, but the logfile doesn't contain any more information to correlate that ;-( Any idea how to expand the logfile, like to 12 hours? On Sun, Feb 15, 2009 at 6:12 PM, Miguel Paraz mpa...@gmail.com wrote: On Feb 15, 6:29 am, Mariano Kamp mariano.k...@gmail.com wrote: This question is a bit strange, but does anybody know about a common gotcha when using the AlarmManager? And not knowing it sometimes leads to the AlarmManger forgetting alarms? I have a repeating task that runs once an hour. Some nights it runs without a hitch and some nights it runs a couple of times and then it isn't. Is it because your device is fully powered off and restarted? I think we need to wait for a PIM type API for have long-term persisting alarms. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 Market broken? Can't see the new release of my app in the Android Market?!
After re-publishing the description (see below) things seem to be normal again. I only see installed on a G1 with an old version installed and not the option to upgrade in my downloads, but that might be a cache issue. On Sun, Feb 15, 2009 at 6:03 PM, Mariano Kamp mariano.k...@gmail.comwrote: Hi, strange thing. I uploaded a new release of my app. I downloaded the new version from the Market to try it out and I got the new binary, it also state V1.3.0, which is the new version. The description is from the release before that. Very strange. When looking at http://www.cyrket.com/package/com.newsrobI see the old version V1.2.1 and the old description. When looking at a G1 where the old version is installed it doesn't provide me with the option to upgrade it. Btw. I followed the same steps as the weeks before. The Market has changed and I could use new options (DRM, not paid as I am not from the US/UK), but I kept the old options. Meanwhile the old description is also in the developer's console (which I will change again right away), but it says 1.3.0 and when re-uploading the apk it says The new apk's versionCode (130) in AndroidManifest.xml must be higher than the old apk's versionCode (130)., which is fine, well kind of. Any idea what's that about? Cheers, Mariano --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Question about defining selector drawable
Thank you. I tried this: item android:state_selected=true android:state_checked=false android:drawable=@drawable/off_focus / item android:state_selected=true android:state_checked=true android:drawable=@drawable/on_focus / But the image still does not switch when my widget has the focus. It still uses the 'orange rectangle boundary when it get the focus. I think that is the default. I just want to change it to 2 different images when it get the focus for my widget. Again, these works for my widget now: item android:state_checked=false android:drawable=@drawable/off / item android:state_checked=true android:drawable=@drawable/on / So I appreciate if you can help me out. Thank you. On Sun, Feb 15, 2009 at 12:32 AM, Romain Guy romain...@google.com wrote: use state_selected, not focused. On Sun, Feb 15, 2009 at 12:08 AM, Meryl Silverburgh silverburgh.me...@gmail.com wrote: Hi, I am trying to setup a selector drawable in my asset file like this: * 2 different images for 'on'/'off' mode in rest mode (i.e. it does not has focus) * another 2 different images for 'on'/'off' mode in focus mode (i.e. it has the focus). In my case, the rest mode works, but the 'focus' mode does not. Can you please tell me what am I missing in the focus mode? Thank you. ?xml version=1.0 encoding=utf-8? selector xmlns:android=http://schemas.android.com/apk/res/android; !-- these 2 images works --- item android:state_checked=false android:drawable=@drawable/off / item android:state_checked=true android:drawable=@drawable/on / !-- these 2 images does not work -- item android:state_focused=true android:state_checked=false android:drawable=@drawable/off_focus / item android:state_focused=true android:state_checked=true android:drawable=@drawable/on_focus / /selector -- 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] java.lang.RuntimeException: Binary XML file line #26: You must supply a layout_height attribute.
I get the following error in logcat: java.lang.RuntimeException: Binary XML file line #26: You must supply a layout_height attribute. Can you please tell me which xml file that I am missing? And it said 'binary xml', does it mean it is actually line 26 in my file? or it is line 26 in the file after it compiles to be a binary xml file? Thank you. 02-15 17:19:58.873: WARN/WindowManager(50): Exception when adding starting window 02-15 17:19:58.873: WARN/WindowManager(50): java.lang.RuntimeException: Binary XML file line #26: You must supply a layout_height attribute. 02-15 17:19:58.873: WARN/WindowManager(50): at android.content.res.TypedArray.getLayoutDimension(TypedArray.java:438) 02-15 17:19:58.873: WARN/WindowManager(50): at android.view.ViewGroup$LayoutParams.setBaseAttributes(ViewGroup.java:3236) 02-15 17:19:58.873: WARN/WindowManager(50): at android.view.ViewGroup$MarginLayoutParams.init(ViewGroup.java:3315) 02-15 17:19:58.873: WARN/WindowManager(50): at android.widget.LinearLayout$LayoutParams.init(LinearLayout.java:1262) 02-15 17:19:58.873: WARN/WindowManager(50): at android.widget.LinearLayout.generateLayoutParams(LinearLayout.java:1188) 02-15 17:19:58.873: WARN/WindowManager(50): at android.widget.LinearLayout.generateLayoutParams(LinearLayout.java:45) 02-15 17:19:58.873: WARN/WindowManager(50): at android.view.LayoutInflater.rInflate(LayoutInflater.java:619) 02-15 17:19:58.873: WARN/WindowManager(50): at android.view.LayoutInflater.inflate(LayoutInflater.java:407) 02-15 17:19:58.873: WARN/WindowManager(50): at android.view.LayoutInflater.inflate(LayoutInflater.java:320) 02-15 17:19:58.873: WARN/WindowManager(50): at android.view.LayoutInflater.inflate(LayoutInflater.java:276) 02-15 17:19:58.873: WARN/WindowManager(50): at com.android.internal.policy.impl.PhoneWindow.generateLayout(PhoneWindow.java:1989) 02-15 17:19:58.873: WARN/WindowManager(50): at com.android.internal.policy.impl.PhoneWindow.installDecor(PhoneWindow.java:2043) 02-15 17:19:58.873: WARN/WindowManager(50): at com.android.internal.policy.impl.PhoneWindow.getDecorView(PhoneWindow.java:1291) 02-15 17:19:58.873: WARN/WindowManager(50): at com.android.internal.policy.impl.PhoneWindowManager.addStartingWindow(PhoneWindowManager.java:541) 02-15 17:19:58.873: WARN/WindowManager(50): at com.android.server.WindowManagerService$H.handleMessage(WindowManagerService.java:5905) 02-15 17:19:58.873: WARN/WindowManager(50): at android.os.Handler.dispatchMessage(Handler.java:88) 02-15 17:19:58.873: WARN/WindowManager(50): at android.os.Looper.loop(Looper.java:123) 02-15 17:19:58.873: WARN/WindowManager(50): at com.android.server.WindowManagerService$WMThread.run(WindowManagerService.java:372) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Map not displayed due to Maps_Persistence error
Hi, I'm facing a new problem with maps. Only blank tiles get displayed. Here is the log. [syntax=java]02-15 18:21:05.379: INFO/ActivityManager(50): Starting activity: Intent { comp={com.SC.UI/com.SC.UI.MapContacts} } 02-15 18:21:05.737: WARN/Maps_Persistence(1466): Couldn't find file: / data/data/com.SC.UI/files/DATA_Preferences 02-15 18:21:05.847: WARN/Maps_Persistence(1466): Couldn't find file: / data/data/com.SC.UI/files/DATA_Tiles 02-15 18:21:05.898: WARN/Maps(1466): Couldn't restore map info, data == null 02-15 18:21:06.259: DEBUG/LocationManager(1466): Constructor: service = android.location.ilocationmanager$stub$pr...@43447568 02-15 18:21:06.557: INFO/MapActivity(1466): Handling network change notification:CONNECTED 02-15 18:21:06.557: ERROR/MapActivity(1466): Couldn't get connection factory client 02-15 18:21:06.908: INFO/ActivityManager(50): Displayed activity com.SC.UI/.MapContacts: 1501 ms [/syntax] Here is what it says, WARN/Maps_Persistence(1466): Couldn't find file: /data/data/com.SC.UI/ files/DATA_Preferences WARN/Maps_Persistence(1466): Couldn't find file: /data/data/com.SC.UI/ files/DATA_Tiles WARN/Maps(1466): Couldn't restore map info, data == null I dont know about DATA_Tiles, but DATA_Preferences definitely exists. I'm not able to read the contents of DATA_Preferences. Any idea what this means, and how do I resolve it? Thanks, Immanuel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: java.lang.RuntimeException: Binary XML file line #26: You must supply a layout_height attribute.
ying lcs wrote: I get the following error in logcat: java.lang.RuntimeException: Binary XML file line #26: You must supply a layout_height attribute. Can you please tell me which xml file that I am missing? You are not missing a file. However, one of your layout XML files has an element that is missing the android:layout_height attribute. Unfortunately, the error processing does not really tell you which layout it is. And it said 'binary xml', does it mean it is actually line 26 in my file? Yes. Binary XML technically refers to the aapt-compacted version of the layout, but it is still line 26 of whichever layout it is. -- 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: MediaPlayer plays sound but screen is black
On Sat, Feb 14, 2009 at 9:48 PM, Brendan raven...@gmail.com wrote: Wow, thank you for helping me through this. That was the little last little bit I needed. I finally got the video playing successfully by waiting until surfaceCreated to try calling prepare. Though I have to admit that it feels like a lot of code to just to play a video. That's why you'd normally use VideoView, which does all this for you. VideoView doesn't support playing from a resource though, so you have to jump through some extra hoops for that case. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 classes and starting new activity
Does any1 have a idea of what i'm doing wrong? On Feb 14, 1:21 pm, automerc bigautosur...@gmail.com wrote: I am having trouble running my application as every time i try to run it the simulator gives me a an error. I looked through the Documentation but I couldn't find anything on user created classes. import android.app.Activity; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.EditText; publicclasssurvey extends Activity { private EditText questions; private EditText answers; private Button next; private Button done; private OnClickListener nextListener; private OnClickListener doneListener; private Forms list = new Forms(); int t; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.questions_app); questions = (EditText) findViewById(R.id.questions); answers = (EditText) findViewById(R.id.answers); next = (Button) findViewById(R.id.next); done = (Button) findViewById(R.id.done); t = 0; nextListener = new OnClickListener(){ public void onClick(View v) { // TODO Auto-generated method stub String qtemp = questions.getText().toString(); list.setA(t, qtemp); String atemp = answers.getText().toString(); String[] answer = atemp.split(|); list.setQ(t, answer); t++; questions.setText(); answers.setText(); } }; doneListener = new OnClickListener(){ public void onClick(View v) { // TODO Auto-generated method stub //starting temp and finishing the current activity Q_end temp = new Q_end(); temp.startActivity(null); finish(); } }; done.setOnClickListener(doneListener); } } I figure out that the instance of the Formsclassis the cause but I'm not sure why. Forms is aclassthat I created in the same package. Also when I try to start the activity Q-end and finish the current activity, it also gives me a error. Can some1 tell me what i'm doing wrong? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: local classes and starting new activity
On Sat, Feb 14, 2009 at 10:21 AM, automerc bigautosur...@gmail.com wrote: (...) //starting temp and finishing the current activity Q_end temp = new Q_end(); temp.startActivity(null); That's not how you start a new activity. Please see the documentation at http://developer.android.com/reference/android/content/Context.html#startActivity(android.content.Intent) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 Market broken? Can't see the new release of my app in the Android Market?!
And it's back to the old version of the description and the new version of the SW (1.3.0). Not sure what to do If you want to see for yourself... Old description: Please remove any old shortcuts before installing V1.2.1. NewsRob Lite is an Android client that provides seamless access to the river of news in your Google Reader account. It synchronizes and downloads articles in the background, so that when you pick up your phone you can start reading news. http://newsrob.com New description: Please remove any old shortcuts from before V1.2. NewsRob is a Google Reader client: - Two-way background sync - Download full partial feeds including assets - Offline capable - Mark all read - Share by email/in Reader - Hide read items - Categories/labels - SD card support - Finger Gestures http://newsrob.com I changed it again to the new version. We will see how that long that holds... On Sun, Feb 15, 2009 at 6:21 PM, Mariano Kamp mariano.k...@gmail.com wrote: After re-publishing the description (see below) things seem to be normal again. I only see installed on a G1 with an old version installed and not the option to upgrade in my downloads, but that might be a cache issue. On Sun, Feb 15, 2009 at 6:03 PM, Mariano Kamp mariano.k...@gmail.com wrote: Hi, strange thing. I uploaded a new release of my app. I downloaded the new version from the Market to try it out and I got the new binary, it also state V1.3.0, which is the new version. The description is from the release before that. Very strange. When looking at http://www.cyrket.com/package/com.newsrob I see the old version V1.2.1 and the old description. When looking at a G1 where the old version is installed it doesn't provide me with the option to upgrade it. Btw. I followed the same steps as the weeks before. The Market has changed and I could use new options (DRM, not paid as I am not from the US/UK), but I kept the old options. Meanwhile the old description is also in the developer's console (which I will change again right away), but it says 1.3.0 and when re-uploading the apk it says The new apk's versionCode (130) in AndroidManifest.xml must be higher than the old apk's versionCode (130)., which is fine, well kind of. Any idea what's that about? Cheers, Mariano --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: java.lang.RuntimeException: Binary XML file line #26: You must supply a layout_height attribute.
Check the file you are passing to setContentView (or whatever file you are using for your view) inside your activity. Line 26 is missing the required attribute. On Feb 15, 5:28 pm, ying lcs ying...@gmail.com wrote: I get the following error in logcat: java.lang.RuntimeException: Binary XML file line #26: You must supply a layout_height attribute. Can you please tell me which xml file that I am missing? And it said 'binary xml', does it mean it is actually line 26 in my file? or it is line 26 in the file after it compiles to be a binary xml file? Thank you. 02-15 17:19:58.873: WARN/WindowManager(50): Exception when adding starting window 02-15 17:19:58.873: WARN/WindowManager(50): java.lang.RuntimeException: Binary XML file line #26: You must supply a layout_height attribute. 02-15 17:19:58.873: WARN/WindowManager(50): at android.content.res.TypedArray.getLayoutDimension(TypedArray.java:438) 02-15 17:19:58.873: WARN/WindowManager(50): at android.view.ViewGroup$LayoutParams.setBaseAttributes(ViewGroup.java:3236) 02-15 17:19:58.873: WARN/WindowManager(50): at android.view.ViewGroup$MarginLayoutParams.init(ViewGroup.java:3315) 02-15 17:19:58.873: WARN/WindowManager(50): at android.widget.LinearLayout$LayoutParams.init(LinearLayout.java:1262) 02-15 17:19:58.873: WARN/WindowManager(50): at android.widget.LinearLayout.generateLayoutParams(LinearLayout.java:1188) 02-15 17:19:58.873: WARN/WindowManager(50): at android.widget.LinearLayout.generateLayoutParams(LinearLayout.java:45) 02-15 17:19:58.873: WARN/WindowManager(50): at android.view.LayoutInflater.rInflate(LayoutInflater.java:619) 02-15 17:19:58.873: WARN/WindowManager(50): at android.view.LayoutInflater.inflate(LayoutInflater.java:407) 02-15 17:19:58.873: WARN/WindowManager(50): at android.view.LayoutInflater.inflate(LayoutInflater.java:320) 02-15 17:19:58.873: WARN/WindowManager(50): at android.view.LayoutInflater.inflate(LayoutInflater.java:276) 02-15 17:19:58.873: WARN/WindowManager(50): at com.android.internal.policy.impl.PhoneWindow.generateLayout(PhoneWindow.java:1989) 02-15 17:19:58.873: WARN/WindowManager(50): at com.android.internal.policy.impl.PhoneWindow.installDecor(PhoneWindow.java:2043) 02-15 17:19:58.873: WARN/WindowManager(50): at com.android.internal.policy.impl.PhoneWindow.getDecorView(PhoneWindow.java:1291) 02-15 17:19:58.873: WARN/WindowManager(50): at com.android.internal.policy.impl.PhoneWindowManager.addStartingWindow(PhoneWindowManager.java:541) 02-15 17:19:58.873: WARN/WindowManager(50): at com.android.server.WindowManagerService$H.handleMessage(WindowManagerService.java:5905) 02-15 17:19:58.873: WARN/WindowManager(50): at android.os.Handler.dispatchMessage(Handler.java:88) 02-15 17:19:58.873: WARN/WindowManager(50): at android.os.Looper.loop(Looper.java:123) 02-15 17:19:58.873: WARN/WindowManager(50): at com.android.server.WindowManagerService$WMThread.run(WindowManagerService.java:372) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How to use Webview as a ListItem and have smooth scrolling?
I am showing a RSS feed in my application using Webview as ListItem and it works great except that it is very sluggish at times. Since I don't know the size of the content then I can't set the height of each Webview and therefore I have the following code (this is the code for a single ListItem): WebView android:id=@+id/rss_title android:layout_width=wrap_content android:layout_height=wrap_content android:layout_weight=1 style=@style/RssText android:textColor=#FF / But the wrap_content causes the Webview to readjust size when scrolling. The scrollbar-indicator of the listview also has problems knowing the size of the complete list so it changes size when scrolling. All this causes a very jerky experience when scrolling. Is there any better way of doing this? Would really appreciate any help! -Christer --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: How to use Webview as a ListItem and have smooth scrolling?
Using WebViews inside a ListView is a bad idea. We tried :) The biggest problem is that when you load data inside a WebView, it takes some time to do the parsing/layout and it happens that it is too slow in the case of scrolling a ListView. As for the scrollbars, Cupcake has a solution for it. There is a new attribute for ListView telling it to disable smooth scrollbars; that's what you want when the items have (very) different heights. On Sun, Feb 15, 2009 at 12:47 PM, Chister Nordvik cnord...@gmail.com wrote: I am showing a RSS feed in my application using Webview as ListItem and it works great except that it is very sluggish at times. Since I don't know the size of the content then I can't set the height of each Webview and therefore I have the following code (this is the code for a single ListItem): WebView android:id=@+id/rss_title android:layout_width=wrap_content android:layout_height=wrap_content android:layout_weight=1 style=@style/RssText android:textColor=#FF / But the wrap_content causes the Webview to readjust size when scrolling. The scrollbar-indicator of the listview also has problems knowing the size of the complete list so it changes size when scrolling. All this causes a very jerky experience when scrolling. Is there any better way of doing this? Would really appreciate any help! -Christer -- 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: java.lang.RuntimeException: Binary XML file line #26: You must supply a layout_height attribute.
This error message means that the layout file for this particular activity does not specify the layout height attribute. I would guess that the LinearLayout height should be set to fill_parent, so that it would consume the entire screen (vertically). Hope that makes sense, Sergey ying lcs wrote: I get the following error in logcat: java.lang.RuntimeException: Binary XML file line #26: You must supply a layout_height attribute. Can you please tell me which xml file that I am missing? And it said 'binary xml', does it mean it is actually line 26 in my file? or it is line 26 in the file after it compiles to be a binary xml file? Thank you. 02-15 17:19:58.873: WARN/WindowManager(50): Exception when adding starting window 02-15 17:19:58.873: WARN/WindowManager(50): java.lang.RuntimeException: Binary XML file line #26: You must supply a layout_height attribute. 02-15 17:19:58.873: WARN/WindowManager(50): at android.content.res.TypedArray.getLayoutDimension(TypedArray.java:438) 02-15 17:19:58.873: WARN/WindowManager(50): at android.view.ViewGroup$LayoutParams.setBaseAttributes(ViewGroup.java:3236) 02-15 17:19:58.873: WARN/WindowManager(50): at android.view.ViewGroup$MarginLayoutParams.init(ViewGroup.java:3315) 02-15 17:19:58.873: WARN/WindowManager(50): at android.widget.LinearLayout$LayoutParams.init(LinearLayout.java:1262) 02-15 17:19:58.873: WARN/WindowManager(50): at android.widget.LinearLayout.generateLayoutParams(LinearLayout.java:1188) 02-15 17:19:58.873: WARN/WindowManager(50): at android.widget.LinearLayout.generateLayoutParams(LinearLayout.java:45) 02-15 17:19:58.873: WARN/WindowManager(50): at android.view.LayoutInflater.rInflate(LayoutInflater.java:619) 02-15 17:19:58.873: WARN/WindowManager(50): at android.view.LayoutInflater.inflate(LayoutInflater.java:407) 02-15 17:19:58.873: WARN/WindowManager(50): at android.view.LayoutInflater.inflate(LayoutInflater.java:320) 02-15 17:19:58.873: WARN/WindowManager(50): at android.view.LayoutInflater.inflate(LayoutInflater.java:276) 02-15 17:19:58.873: WARN/WindowManager(50): at com.android.internal.policy.impl.PhoneWindow.generateLayout(PhoneWindow.java:1989) 02-15 17:19:58.873: WARN/WindowManager(50): at com.android.internal.policy.impl.PhoneWindow.installDecor(PhoneWindow.java:2043) 02-15 17:19:58.873: WARN/WindowManager(50): at com.android.internal.policy.impl.PhoneWindow.getDecorView(PhoneWindow.java:1291) 02-15 17:19:58.873: WARN/WindowManager(50): at com.android.internal.policy.impl.PhoneWindowManager.addStartingWindow(PhoneWindowManager.java:541) 02-15 17:19:58.873: WARN/WindowManager(50): at com.android.server.WindowManagerService$H.handleMessage(WindowManagerService.java:5905) 02-15 17:19:58.873: WARN/WindowManager(50): at android.os.Handler.dispatchMessage(Handler.java:88) 02-15 17:19:58.873: WARN/WindowManager(50): at android.os.Looper.loop(Looper.java:123) 02-15 17:19:58.873: WARN/WindowManager(50): at com.android.server.WindowManagerService$WMThread.run(WindowManagerService.java:372) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 classes and starting new activity
Yea I manage to fix that but it still gives me an error when i ran it. I manage to figure out that its cuase the Forms class instance as every thing run fine when I comment all the code with list and Forms in them. I looked through the notepad example and doesn't seem like I'm doing anything different when creating the new class so I can't figure why its causing an error. The Forms class only has 3 ArrayLists to store data. public class Forms { private ArrayListString Qs; private ArrayListString[] As; private ArrayListString choices; public Forms(){ Qs = new ArrayListString(); As = new ArrayListString[](); choices = new ArrayListString(10); for (int i = 0; i 10; i++){ choices.set(i, null); } } public void setA(int t, String Questions){ Qs.set(t, Questions); } public void setQ(int t, String[] Answer){ As.set(t, Answer); } } On Feb 15, 2:55 pm, Marco Nelissen marc...@android.com wrote: On Sat, Feb 14, 2009 at 10:21 AM, automerc bigautosur...@gmail.com wrote: (...) //starting temp and finishing the current activity Q_end temp = new Q_end(); temp.startActivity(null); That's not how you start a new activity. Please see the documentation athttp://developer.android.com/reference/android/content/Context.html#s...) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 classes and starting new activity
On Sun, Feb 15, 2009 at 1:14 PM, automerc bigautosur...@gmail.com wrote: Yea I manage to fix that but it still gives me an error when i ran what is the error you're getting? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 classes and starting new activity
It says that The application (process application.main)has stopped unexpectedly. Please try again. On Feb 15, 4:29 pm, Marco Nelissen marc...@android.com wrote: On Sun, Feb 15, 2009 at 1:14 PM, automerc bigautosur...@gmail.com wrote: Yea I manage to fix that but it still gives me an error when i ran what is the error you're getting? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 classes and starting new activity
And what does it say in the log? (use 'adb logcat', or the log panel in the ddms plugin) On Sun, Feb 15, 2009 at 1:43 PM, automerc bigautosur...@gmail.com wrote: It says that The application (process application.main)has stopped unexpectedly. Please try again. On Feb 15, 4:29 pm, Marco Nelissen marc...@android.com wrote: On Sun, Feb 15, 2009 at 1:14 PM, automerc bigautosur...@gmail.com wrote: Yea I manage to fix that but it still gives me an error when i ran what is the error you're getting? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 classes and starting new activity
I'm not sure what you mean by log. are you talking about the console on the eclipse? If so its not giving me any errors. On Feb 15, 4:45 pm, Marco Nelissen marc...@android.com wrote: And what does it say in the log? (use 'adb logcat', or the log panel in the ddms plugin) On Sun, Feb 15, 2009 at 1:43 PM, automerc bigautosur...@gmail.com wrote: It says that The application (process application.main)has stopped unexpectedly. Please try again. On Feb 15, 4:29 pm, Marco Nelissen marc...@android.com wrote: On Sun, Feb 15, 2009 at 1:14 PM, automerc bigautosur...@gmail.com wrote: Yea I manage to fix that but it still gives me an error when i ran what is the error you're getting? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 classes and starting new activity
I mean the system log. See http://developer.android.com/guide/developing/tools/adb.html#logcat On Sun, Feb 15, 2009 at 1:50 PM, automerc bigautosur...@gmail.com wrote: I'm not sure what you mean by log. are you talking about the console on the eclipse? If so its not giving me any errors. On Feb 15, 4:45 pm, Marco Nelissen marc...@android.com wrote: And what does it say in the log? (use 'adb logcat', or the log panel in the ddms plugin) On Sun, Feb 15, 2009 at 1:43 PM, automerc bigautosur...@gmail.com wrote: It says that The application (process application.main)has stopped unexpectedly. Please try again. On Feb 15, 4:29 pm, Marco Nelissen marc...@android.com wrote: On Sun, Feb 15, 2009 at 1:14 PM, automerc bigautosur...@gmail.com wrote: Yea I manage to fix that but it still gives me an error when i ran what is the error you're getting? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] docs/reference/keywords.html
It seems that keywords.html has been removed from the docs as of 1.1_r1. Even if the developer docs search box was case insensitive (which it isn't), it would not live up to keywords.html. I found keywords.html incredibly useful and would like to request that it gets reincorporated with the next update. Thank you kindly. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: docs/reference/keywords.html
Alex B wrote: It seems that keywords.html has been removed from the docs as of 1.1_r1. Even if the developer docs search box was case insensitive (which it isn't), it would not live up to keywords.html. I found keywords.html incredibly useful and would like to request that it gets reincorporated with the next update. You may wish to post this on the issue tracker: http://b.android.com -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/schedule.shtml --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 classes and starting new activity
I'm not sure how to use this exactly. I'm running the application on eclipse and there doesn't to be any command to the log, and when I try to run the command on a shell it doesn't work. I figure out that the error is caused when I try to initialize the variable forms. On Feb 15, 4:58 pm, Marco Nelissen marc...@android.com wrote: I mean the system log. Seehttp://developer.android.com/guide/developing/tools/adb.html#logcat On Sun, Feb 15, 2009 at 1:50 PM, automerc bigautosur...@gmail.com wrote: I'm not sure what you mean by log. are you talking about the console on the eclipse? If so its not giving me any errors. On Feb 15, 4:45 pm, Marco Nelissen marc...@android.com wrote: And what does it say in the log? (use 'adb logcat', or the log panel in the ddms plugin) On Sun, Feb 15, 2009 at 1:43 PM, automerc bigautosur...@gmail.com wrote: It says that The application (process application.main)has stopped unexpectedly. Please try again. On Feb 15, 4:29 pm, Marco Nelissen marc...@android.com wrote: On Sun, Feb 15, 2009 at 1:14 PM, automerc bigautosur...@gmail.com wrote: Yea I manage to fix that but it still gives me an error when i ran what is the error you're getting? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Alarm Manager forgets repeating alarms?
You can't expand the size of the log. You can however use adb shell dumpsys alarm to see the current state of the alarm manager, which might help. On Sun, Feb 15, 2009 at 9:18 AM, Mariano Kamp mariano.k...@gmail.comwrote: Nope, not until somebody broke into my house and rebooted it during my sleep ;-) The other problem in finding the source of my issue is, that I can't go back very long in the Android log files. My logfile tells me that the alarms weren't fired, but the logfile doesn't contain any more information to correlate that ;-( Any idea how to expand the logfile, like to 12 hours? On Sun, Feb 15, 2009 at 6:12 PM, Miguel Paraz mpa...@gmail.com wrote: On Feb 15, 6:29 am, Mariano Kamp mariano.k...@gmail.com wrote: This question is a bit strange, but does anybody know about a common gotcha when using the AlarmManager? And not knowing it sometimes leads to the AlarmManger forgetting alarms? I have a repeating task that runs once an hour. Some nights it runs without a hitch and some nights it runs a couple of times and then it isn't. Is it because your device is fully powered off and restarted? I think we need to wait for a PIM type API for have long-term persisting alarms. -- 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] Is it a bad idea to hardcode the memory card location ?
I don't know of any API that would return the memory card location (e.g. /sdcard on the G1) so I have been hardcoding the sdcard/ directory path in my code . Obviously I want my app to work on G1 and future non-HTC Android phones. How are developers handling the memory directory path? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 classes and starting new activity
On Sun, Feb 15, 2009 at 2:28 PM, automerc bigautosur...@gmail.com wrote: I'm not sure how to use this exactly. I'm running the application on eclipse and there doesn't to be any command to the log, and when I try to run the command on a shell it doesn't work. I figure out that the error is caused when I try to initialize the variable forms. You really should learn to use logcat. You will be much more productive that way. The problem you are having is because this: choices = new ArrayListString(10); for (int i = 0; i 10; i++){ choices.set(i, null); } does not do what you think it does. The first line creates an *empty* ArrayList, with a capacity for 10 items. Then you try to set the first 10 items of the list, however the list is empty, and so your index is out of range. If you look at the system log, you will see the app throwing an IndexOutOfBounds exception. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 it a bad idea to hardcode the memory card location ?
On Sun, Feb 15, 2009 at 2:40 PM, j jac...@gmail.com wrote: I don't know of any API that would return the memory card location Environment.getExternalStorageDirectory() --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: hosting apk files on godaddy shared windows hosting
Friends don't let friends host on Go Daddy Aren't these people known domain hoarders? Anyway, you'll have to pull your web site off and switch to a hosting service that allows you to set *any* MIME association through the User Control Panel. May cost you a few bucks more though. I'm not going to recommend mine right now as I'm not terribly happy there, but at least I can do what needs to get done. On Feb 11, 3:26 pm, Josh joshdo...@gmail.com wrote: I have ... godaddy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] On android.media.MediaRecorder, can it record the voice of speaker?
Hello, buddies It's about android.media.MediaRecorder. I want to implement a feature to record the conversation, both voice from speaker and microphone. But I tried on G1 phone, the MediaRecorder only could record the voice from microphone. I looked into the Android doc, there are only two audio sources, MIC and DEFAULT (either to record microphone). So these are my questions: 1. whether can I implement it or not? 2. will more audio sources be supported? If so, which release or when? Thank you:-0 Shawn --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 North America 3G
As interested as I am in Android on my next smart phone, there doesn't seem to be one available with North American 3G (ie, UMTS 850/1900). Which will be the first to have Android ported? HTC Touch Pro, SE Xperia X1a, Toshiba TG01 ... and feel free to before after WMC'09. TIA and cheerios from the Avalon Peninsula, Newfoundland Canada :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] EditText (textbox) to String
Hello everyone, I have this piece of code which doesn't seem to work. I can't get the EditText to a String. //This is the part before onCreate: public EditText nametext; public String name; //This is after the onCreate (I actually call this method from within onCreate): public void dialog() { final Dialog dialog = new Dialog(this); dialog.setContentView(R.layout.name); dialog.setTitle(Name); Button auto = (Button) dialog.findViewById(R.id.automatic); auto.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { nametext = (EditText) findViewById(R.id.nametextxml); name = (String) nametext.getText().toString(); dialog.dismiss(); } }); dialog.show(); } Whenever I run this code, it gives me NullPointerException. I know that this line is the problem: trackname = (String) tracknametext.getText().toString(); Why is this happening? What's the correct way to convert this to a String? Thanks, Noam. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] EditText (textbox) to String
Hello everyone, I am trying to take an EditText textbox that I set in my XML (named tracknametext) and turn it into a String. What is the code to do this? Thanks, Noam. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Installing applications on SD card
there are design issues with installing apps to sd cards. first is offering a format/partitioning utility to create available space. second would be figureing out which apps to install where. if someone were to release 2 versions of an app like old shareware you would have pirate issues. eg. app_demo.apk app_full.apk user installs app_full.apk to sdcard and then copies it to the internet. i'm not saying this way is pirate proof, but life is about keeping the honest people honest look at calif gun laws... anyways, its the same reason we have to root our phones, is because google cannot be held responcible for giving us this control. same reason game manufactures use anticopy protection schemes that have already been broken. it is a way for google to protect themselves. if you brick your phone rooting it, your fault. you brick your phone following an official google tutorial, it becomes googles fault for telling you from a business standpoint, it makes sence. i garrenty google thought about sdcards for installing apps. they were trying to squeeze every last bit of memory out of the phone. On Feb 13, 4:41 pm, pesh...@gmail.com pesh...@gmail.com wrote: I hope you guys can implement that in the next android updates. It is really cool that all the applications are free, but the G1 phone doesn't have a lot of on board memory, so please implement the feature to install applications on the SD Card. That is the only comment I have. A lot of people are Jailbreaking their phones just so they can get to that feature. Please consider it. Thank you. One more thing-If you can make it possible to save the browser cache data on the SD card as well will be awesome. Thank you again! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Setup Merchant Account link now available
By the end of Q1 2009, we will announce support for developers in additional countries. Probably it means not Q1, but hopefully Q2 for Canada and other countries. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Adding a homepage link
Hello , I am new with Android and I`ve already developped a Hello- application,but I don`t know how to add a link to my homepage!!! Does anyone know how to do it? This is my code: package com.android.hello; import android.app.Activity; import android.os.Bundle; import android.widget.TextView; public class Taxi extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); TextView tv = new TextView(this); tv.setText(Hello and welcome to my first app!!! + Do you want to call a taxi now?); setContentView(tv); } } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Screen Lock status of the Android phone
Is there a way to retrieve the status of the screen lock? Some way of telling what is the current state of the screen, locked or not. Thanks, Saddaf --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Setup Merchant Account link now available
The first page of Checkout registration doesn't strictly require US/UK citizenship, only a contact address in US/UK and a credit card number. Of course I have to pay local taxes using the local rules, but it seems that Google doesn't need my local tax number for the payment. Sure, it's a strange idea. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] paintImmediately under Android
Hi, In standard Java, you use repaint() to force the paint() method. paint() method starts after the end of the current method. I explain : public void joueIA() { PosC=1; repaint(); PosL=1; } The paint method will start after the end of joueIA method (after PosC=1 and PosL=1). If you want to force the paint method immediately, you can use the paintImmediately method. public void joueIA() { PosC=1; paintImmediately(0,0,getWidth(),getHeight()); PosL=1; } Then, PosC=1, next the paint method starts and at the end of paint method, posL=1. === OK, now, what's happen under Android Java : You have this code : public void joueIA() { PosC=1; invalidate(); PosL=1; } This code is the same as the repaint method (PosC=1 and PosL=1, next onDraw starts) The question is : What is the same as paintImmediately method under Android, in order to force onDraw method in the middle of a method ? Thanks for all, Chaton. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Are you localizing an app? Do you want to be?
Sorry that I write here a message,but I`ve already written a few new messages in a new theme,but it doesn`t appear!!! I can´t publish my app,because there´s always an error message : The apk is not properly signed. But how can I sign it??? On 3 Feb., 14:51, Peli peli0...@googlemail.com wrote: I have the same question. Dan, in the document you provided, in the section Publishing Localized Applications, the possibility is mentioned to break their .apk files apart into different builds for different groups of languages. The following suggestion is given: The easiest way to do this is to create a temporary folder in Eclipse, move out the resource directories which you do not wish to appear, rebuild the project, and then export an unsigned build as you normally would. Then move the resource directories back in. Unfortunately, it seems Market does not accept multiple apks uploaded in this way, because package names have to be unique (and applications of different language share the same package name!). So for now, we can only include all language versions in a single apk and upload this. What would be the long-term solution here? Construct different package names based on the localization? (may lead to problems if the same content provider is used but several language versions are installed on the same device). I hope that the Market will allow to upload the same package for different localizations, as well as allow for adding different, localized titles and descriptions to applications. Peliwww.openintents.org On Jan 27, 10:59 am, alex alexp...@gmail.com wrote: When we upload our localized apps to the Market, will we be able to provide our application descriptions in different languages? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 Marketplace - No App Icon or Images?
I don't see a place to upload an app icon or photos. Is there now way for users to see screens of your app before they buy it? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Setup Merchant Account link now available
You are right, I think exactly same. Why there was no information about available countries when I was spending money on developer account and Dev G1 ? On Feb 13, 8:38 pm, Evgeny V evgen...@gmail.com wrote: Why they didn't inform me that the market is actually closed market for me? I believe hunderds or thousands developers are agree with me now. On Fri, Feb 13, 2009 at 10:31 PM, Ivan Soto ivanso...@gmail.com wrote: I don't want my $25 back I just want to be able to sell applications. I wonder what was the point of allowing developers get Dev phones in Canada. I mean, it's nice to be able to publish free application but if we are going to be stuck on that until Google releases a phone in here it really killed the idea. A market is not really a market when you can just give stuff for free. I'm actually waiting for an announcement from Google saying when are we going to be able to sell apps _from_countries like Canada and not when are we going to get the phone. On Fri, Feb 13, 2009 at 12:51 PM, Evgeny V evgen...@gmail.com wrote: I'd like to get back my 25$ too! On Fri, Feb 13, 2009 at 8:58 PM, Agus agus.sant...@gmail.com wrote: @Ivan: same situation here. Dear Google, can i have my $25 back? On Fri, Feb 13, 2009 at 10:55 AM, Ivan Soto ivanso...@gmail.com wrote: I knew you wouldn't be able to buy or sell IN Canada. But I had no idea that if I was IN Canada I wouldn't be able to sell to another countries. Now I'm sad. On Fri, Feb 13, 2009 at 11:29 AM, Al Sutton a...@funkyandroid.com wrote: Does Canada appear in the list in the email? Agus wrote: no Canada? On Fri, Feb 13, 2009 at 10:24 AM, Al Sutton a...@funkyandroid.com wrote: Google have already stated UK US first, then Germany, Austria, and the Netherlands, followed by France, Italy, and Spain. It was all in an email Google sent out at the end of last year (http://www.talkandroid.com/526-android-market-paid-apps-2009/). Al. Ivan Soto wrote: I wonder the same. Will it be possible to sell from Canada to the rest of the world? On Fri, Feb 13, 2009 at 10:33 AM, Evgeny V evgen...@gmail.com mailto:evgen...@gmail.com wrote: But it's available for US and UK countires! Means it that only US and UK citizen could be a sellers? On Fri, Feb 13, 2009 at 7:24 PM, g1bb corymgibb...@gmail.com mailto:corymgibb...@gmail.com wrote: Woah, now I can specify a price! On Feb 13, 10:12 am, g1bb corymgibb...@gmail.com mailto:corymgibb...@gmail.com wrote: I noticed a 'Setup a Merchant Account at Google CheckoutFree' is now available at market.android.com http://market.android.com/, but not functional yet. We're getting closer! Is the link working for anyone? -- == 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] Publishing my app
Hello, I`ve developed an application,but I don`t know how to upload it into the Android Market!!! If I click to upload there always appers this error message: The apk is not properly signed. But how can I sign it??? With kind regards Nox --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 Description Character Limit - 325 Characters?
We can't even put up photos of the app? On Feb 13, 1:23 pm, g1bb corymgibb...@gmail.com wrote: Is there any idea if this will increase in the future? This is extremely limiting. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Sending Emails
Hello everyone, I am looking for a way to send an email from a specified email (that I predefine the username, password, etc.) to a different specified email that I have in the string: String email = exam...@domain.com; Thanks, iloveisrael. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Send Email
Hello everyone, I am looking for a way to send an email from a specified email (that I predefine the username, password, etc.) to a different specified email that I have in the string: String email = exam...@domain.com; Thanks, Noam. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] DDMS not displaying processes
I've been trying to locate some excessive object creation to deal with hiccuping caused by the garbage collector (any word on upcoming improvements to this, btw?), and have discovered that DDMS is the tool for the job. I shut down eclipse and booted up DDMS, and it finds my device, but lists no processes running (no matter what I run). Initially, it did list the powermanager app that I had installed, so I assumed this was causing some kind of conflict and uninstalled it and rebooted my device. Now it simply lists no processes. Has anyone had a similar experience? Thanks for any help! -Rye --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: priced applications. need partner!!!
Checkout registration requires a US/UK contact address and a credit card number, so maybe it doesn't require US/UK citizenship. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Idea for non-US/UK developers with paid apps (was Setup Merchant Account link now available)
I don't think it's easy for everybody. For example... if you were from Romania (where you can find lots of developers)... you wouldn't be familiar with UK law other legal stuff (taxes, etc.). And you will probably be required to travel a few times just to sort these out. (and it's not such a short distance between these countries) Besides, what do you mean by 'cheap'? Individual developers prefer simple things On Feb 15, 3:25 pm, Sena Gbeckor-Kove s...@imkon.com wrote: Just set up a UK company. It is very easy and cheap. S --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] About event send function, how to use it
By using telnet localhost 5554 I connect emulator with telnet, here i use event text 123445, it works well. But event sendEV_KEY:BTN_2 does not work. There is no explanation in the help doc. Anybody knows how to use this funtion? 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] DDMS not displaying processes
I've been trying to locate some excessive object creation to deal with hiccuping caused by the garbage collector (any word on upcoming improvements to this, btw?), and have discovered that DDMS is the tool for the job. I shut down eclipse and booted up DDMS, and it finds my device, but lists no processes running (no matter what I run). Initially, it did list the powermanager app that I had installed, so I assumed this was causing some kind of conflict and uninstalled it and rebooted my device. Now it simply lists no processes. Has anyone had a similar experience? Thanks for any help! -Rye --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Hidden Contacts
Hey Miguel, I was having the same problem. It's not a perfect solution but you can check whether the contact has a name and/or phone number and if not add then don't add them to your list. Just loop through all the items and add items to a List and then use the List to populate you listview. Chili On Jan 27, 5:06 am, Miguel Paraz mpa...@gmail.com wrote: On Dec 9 2008, 8:22 am, Paul paul_rash...@yahoo.com wrote: bklik's question seemed to indicate that he was dumping the contact list programactically via his own activity. I was just wondering if thecontactsAPI was returning allcontactsand the activity needed to do the filtering. I have the same situation. I use the contact list content provider to let the user select an email address. The Suggested Contacts are irrelevant to my application and just slow down the loading process. I looked at the SQLite db using the sqlite command line, but couldn't find how to differentiate these contacts. Is there a way? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Problem accessing Google Weather API
Same here although I was using it in webapp. On Feb 12, 2:38 pm, Rockingteam androidmai...@gmail.com wrote: Hi, I have an application that uses Google Weather API. The application was working fine till yesterday night and today morning all of sudden am getting an exception that says : http://403Unauthorized access java.io.FileNotFoundException:http://www.google.com/ig/api?weather=Tokyo,Japan Is there any change in the service provided by Google. Looking forward for help on this. Thanks in advance. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Deleting Incoming SMS???
I have an SMSReceiver that I built to intercept a particular type of SMS that would run a service. That is all working great, however, I would like for this SMS to not show up in the user's inbox. So ideally i would like to delete the SMS on the time of Interception. I have gone through a ton of threads and having seen anyone accomplish this yet. Am I missing something or is this even possible? I would think there would be some _id on the incoming SMS that i could use to run the delete against the SMS store. I am looking for any solution, and I hope someone out there has accomplished this. HELP! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Intent.ACTION_SEND doesn't work?
Hello everyone, When I use this line of code, in the editor, I get an error (Intent.ACTION_SEND cannot be resolved): Intent sendIntent = new Intent(Intent.ACTION_SEND); Why is this happening? Thanks, Noam. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] No applications can perform this action.
Hello everyone,I get the usual No applications can perform this action. Do I need to install a mail program on the emulator? I have tried the K9 email program, but I have not seen any changes. Are there any other programs out there that could do the same? This is my code: String[] mailto = {prefemail}; // Create a new Intent to send messages Intent sendIntent = new Intent(Intent.ACTION_SEND); //Write the body of the Email String emailBody = test123; // Add attributes to the intent sendIntent.setType(message/rfc822); sendIntent.putExtra(Intent.EXTRA_EMAIL, mailto); sendIntent.putExtra(Intent.EXTRA_SUBJECT, somesubject); sendIntent.putExtra(Intent.EXTRA_TEXT, emailBody); startActivity(Intent.createChooser(sendIntent, Email sent.)); Thanks, Noam. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: what's the Media Button?
But isn't the MEDIA_BUTTON intent useless, anyway? I tried to hook to it, to absolutely no avail. After trying around for a couple of hours, I decided to compare my source/manifest to the android Music source - then I realized that the receiver class MediaButtonIntentReceiver within the Music package issues an abortBroadcast after it has handled the MEDIA_BUTTON intent, rendering it useless for all other applications as long as the Music package is installed. Personally, I think this is extremely annoying (as you don't have the choice whether to enable the Media Button for the music player or not), especially when you're trying to find out why your app isn't working as expected for quite some time just to realize that another (system) app is intercepting the broadcast without making it bubble through all the applications installed on the system. On 30 Jan., 21:14, Marco Nelissen marc...@android.com wrote: And in Cupcake it's also used for the buttons on bluetooth a2dp/avrcp devices. On Fri, Jan 30, 2009 at 12:02 PM, Zach Hobbs ho...@helloandroid.com wrote: It's the button on the headset included with the G1. Thanks, Zach On Friday 30 January 2009 12:39:37 pm Peter Jeffe wrote: Documentation for Intent.ACTION_MEDIA_BUTTON says Broadcast Action: The Media Button was pressed. Anyone know exactly what the media button is? Is it intended for devices that have a dedicated hard media button, and therefore non-functional on the G1, or is it something else? Thanks. -- Peter --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Error when clicking on 'Setup Merchant Account'
Here is the message : Oops! An error occurred while processing your request. Does somebody has the same message ? Didier --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Publishing my app
2009/2/14 Nox v.beh...@googlemail.com Hello, I`ve developed an application,but I don`t know how to upload it into the Android Market!!! If I click to upload there always appers this error message: The apk is not properly signed. But how can I sign it??? With kind regards Nox --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] sending data
hi is it possible to send data to external sources.. like a remote sql server or a remote website? example: make a pic with G1 and send it to a remote db server (via internet)... is there somewhere an example of how to do it? thanks for the info.. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Intent.ACTION_SEND doesn't work?
Hello everyone, When I use this line of code, in the editor, I get an error (Intent.ACTION_SEND cannot be resolved): Intent sendIntent = new Intent(Intent.ACTION_SEND); Why is this happening? Thanks, Omri. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Status of the android phone screen
Is there a method to report the status of the screen? Something which tells if the screen is currently locked or not. I have checked the API but have not been able to find anymethod which reports back the status of the screen. Thanks, Saddaf --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] DDMS does not list processes
I've been trying to locate some excessive object creation to deal with hiccuping caused by the garbage collector (any word on upcoming improvements to this, btw?), and have discovered that DDMS is the tool for the job. I shut down eclipse and booted up DDMS, and it finds my device, but lists no processes running (no matter what I run). Initially, it did list the powermanager app that I had installed, so I assumed this was causing some kind of conflict and uninstalled it and rebooted my device. Now it simply lists no processes. Has anyone had a similar experience? Thanks for any help! -Rye --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Sending Emails
Hello everyone, I am looking for a way to send an email from a specified email (that I predefine the username, password, etc.) to a different specified email that I have in the string: String email = exam...@domain.com; Thanks, iloveisrael. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Capturing HEADSET_PLUG (android.intent.action.HEADSET_PLUG)
Hi all, yesterday, I spent several hours trying to figure out how to capture the HEADSET_PLUG intent with a BroadcastReceiver. The manifest defines the receiver, with its intent-filter set to action android:name=android.intent.action.HEADSET_PLUG /. The receiver is working correctly (I verified that by changing the intent filter to capture things like SMS_RECEIVED including the proper permissions and the receiver fired as expected on receiving an SMS), but when listening for HEADSET_PLUG, it never fires. Debugging the whole thing is a bit complicated, as the emulator doesn't seem to support headsets and I have to disconnect my target device (a HTC Dream) from USB in order to attach a headset (so there's no logfile viewing). Are there any special permissions required for applications to capture the HEADSET_PLUG intent (and if so, which? I've tried several, to no avail)? Maybe the Dream doesn't fire such an intent at all (that'd be bad luck for me), but I guess that it must be an issue related to application permissions. The documentation says extremely little (well, actually: nothing) about the single permissions needed to perform all the actions described in the API docs, so this is absolutely something to be improved. What I want to do: Upon detecting a headset, I want to re-route the ringtones from the speakers to the headset, so as not to annoy people in my vicinity by a harsh ringing sound (I'm used to this behaviour from my old phone) - by default, the speaker just keeps on ringing, no matter whether a headset is attached or not. This part is already working, but now I need to know how to detect headset attachment/ detachment events. Thanks in advance, Henning --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: creating a canvas based on OpenGL
also, are you calling canvas.setViewport()? On Feb 13, 7:20 pm, petunio juanjosegilmen...@hotmail.com wrote: Hi I am writing an application that uses both 2D and 3D. For the 3D part I use OpenGL, and for the 2D part, I do: Drawable.draw (myCanvas); There is a desynchronization between them I have heard that you can create aCanvasbased on OpenGL, and then when I draw into thatcanvas, it is redirected to the opengl surface... something like this: if (GL!= null) myCanvasGL=newCanvas(GL); and then, when I use Drawable.draw(myCanvasGL); that drawable should be drawn into the opengl surface... I must be missing something, because all I can see is a frustrating black screen... any ideas, please... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: creating a canvas based on OpenGL
i am interested in this also, but haven't spent any time on it. just some thoughts... are you making all the usual gl calls? like clearing your buffers, setting up your view and projection, enabling textures and then flipping the buffer at the end... repost if you find any resolution. On Feb 13, 7:20 pm, petunio juanjosegilmen...@hotmail.com wrote: Hi I am writing an application that uses both 2D and 3D. For the 3D part I use OpenGL, and for the 2D part, I do: Drawable.draw (myCanvas); There is a desynchronization between them I have heard that you can create a Canvas based on OpenGL, and then when I draw into that canvas, it is redirected to the opengl surface... something like this: if (GL != null) myCanvasGL=new Canvas(GL); and then, when I use Drawable.draw(myCanvasGL); that drawable should be drawn into the opengl surface... I must be missing something, because all I can see is a frustrating black screen... any ideas, please... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: creating a canvas based on OpenGL
Have you set bounds before the draw? a drawable will not draw unless set bounds has been called. On Feb 13, 8:20 pm, petunio juanjosegilmen...@hotmail.com wrote: Hi I am writing an application that uses both 2D and 3D. For the 3D part I use OpenGL, and for the 2D part, I do: Drawable.draw (myCanvas); There is a desynchronization between them I have heard that you can create a Canvas based on OpenGL, and then when I draw into that canvas, it is redirected to the opengl surface... something like this: if (GL != null) myCanvasGL=new Canvas(GL); and then, when I use Drawable.draw(myCanvasGL); that drawable should be drawn into the opengl surface... I must be missing something, because all I can see is a frustrating black screen... any ideas, please... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Send Email (Not from User's Account)
Hello everyone, I am looking for a way to send an email from a specified email (that I predefine the username, password, etc.) to a different specified email that I have in the string: String email = exam...@domain.com; Thanks, Noam. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] post moderated ?
Hi, I posted a new discussion at about 00h10 : 15 Fev 2009. It talk about paintImmediately under Android. I don't see my post. Do you moderated it or am I a idiot (I don't understand Google Group Ergonomy) ? Thanks for all. Chaton. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Publishing my app
Hello, I`ve developed an application,but I don`t know how to upload it into the Android Market!!! If I click to upload there always appers this error message: The apk is not properly signed. But how can I sign it??? With kind regards Nox --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] No applications can perform this action. error
Hello everyone,I am using this code to send an email (with no errors in eclipse), but when I run it in the emulator, I get the No applications can perform this action. error. String[] mailto = {prefemail}; // Create a new Intent to send messages Intent sendIntent = new Intent(Intent.ACTION_SEND); //Write the body of the Email String emailBody = ; // Add attributes to the intent sendIntent.setType(message/rfc822); sendIntent.putExtra(Intent.EXTRA_EMAIL, mailto); sendIntent.putExtra(Intent.EXTRA_SUBJECT, TrackMe Password); sendIntent.putExtra(Intent.EXTRA_TEXT, emailBody); startActivity(Intent.createChooser(sendIntent, Email sent.)); Do I need to install some mail app from it? I tried the K9 email app, installed it with adb, but I don't see any changes. Do I need to do something other than installing? Or is there another good program for it? Thanks, Noam. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] No applications can perform this action. error.
Hello everyone, I am using this code to send an email (with no errors in eclipse), but when I run it in the emulator, I get the No applications can perform this action. error. String[] mailto = {prefemail}; // Create a new Intent to send messages Intent sendIntent = new Intent(Intent.ACTION_SEND); //Write the body of the Email String emailBody = ; // Add attributes to the intent sendIntent.setType(message/rfc822); sendIntent.putExtra(Intent.EXTRA_EMAIL, mailto); sendIntent.putExtra(Intent.EXTRA_SUBJECT, TrackMe Password); sendIntent.putExtra(Intent.EXTRA_TEXT, emailBody); startActivity(Intent.createChooser(sendIntent, Email sent.)); Do I need to install some mail app from it? I tried the K9 email app, installed it with adb, but I don't see any changes. Do I need to do something other than installing? Or is there another good program for it? Thanks, Noam. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: On android.media.MediaRecorder, can it record the voice of speaker?
The G1 does not support recording uplink or downlink audio. On Feb 14, 6:20 am, Shawn_Chiu qiuping...@gmail.com wrote: Hello, buddies It's about android.media.MediaRecorder. I want to implement a feature to record the conversation, both voice from speaker and microphone. But I tried on G1 phone, the MediaRecorder only could record the voice from microphone. I looked into the Android doc, there are only two audio sources, MIC and DEFAULT (either to record microphone). So these are my questions: 1. whether can I implement it or not? 2. will more audio sources be supported? If so, which release or when? Thank you:-0 Shawn --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: sending data
XXL wrote: is it possible to send data to external sources.. like a remote sql server or a remote website? Yes, though you may find using HTTP to publish to a Web service to be easiest. is there somewhere an example of how to do it? Android includes the standard Java HttpUrlConnection class -- you should be able to find examples of it through a search engine. Android also includes the Apache HttpClient library. You can find examples of it here: http://hc.apache.org/httpcomponents-client/examples.html -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/schedule.shtml --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: what's the Media Button?
This is intentional. You want the app that actually handles the button to not propagate it further. Otherwise you install, say, another music player that also uses this button, you press the button, and now both of them start playing. If you want to use the button in your app, you need to give your receiver a higher priority and call abortBroadcast when you handle the event. Since this clearly doesn't scale, we'll add a better way for sharing the use of this button in the future. On Sun, Feb 15, 2009 at 7:54 AM, Henning Schaefer henning.schae...@gmail.com wrote: But isn't the MEDIA_BUTTON intent useless, anyway? I tried to hook to it, to absolutely no avail. After trying around for a couple of hours, I decided to compare my source/manifest to the android Music source - then I realized that the receiver class MediaButtonIntentReceiver within the Music package issues an abortBroadcast after it has handled the MEDIA_BUTTON intent, rendering it useless for all other applications as long as the Music package is installed. Personally, I think this is extremely annoying (as you don't have the choice whether to enable the Media Button for the music player or not), especially when you're trying to find out why your app isn't working as expected for quite some time just to realize that another (system) app is intercepting the broadcast without making it bubble through all the applications installed on the system. On 30 Jan., 21:14, Marco Nelissen marc...@android.com wrote: And in Cupcake it's also used for the buttons on bluetooth a2dp/avrcp devices. On Fri, Jan 30, 2009 at 12:02 PM, Zach Hobbs ho...@helloandroid.com wrote: It's the button on the headset included with the G1. Thanks, Zach On Friday 30 January 2009 12:39:37 pm Peter Jeffe wrote: Documentation for Intent.ACTION_MEDIA_BUTTON says Broadcast Action: The Media Button was pressed. Anyone know exactly what the media button is? Is it intended for devices that have a dedicated hard media button, and therefore non-functional on the G1, or is it something else? Thanks. -- Peter --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: local classes and starting new activity
That was the problem. Thank you On Feb 15, 5:49 pm, Marco Nelissen marc...@android.com wrote: On Sun, Feb 15, 2009 at 2:28 PM, automerc bigautosur...@gmail.com wrote: I'm not sure how to use this exactly. I'm running the application on eclipse and there doesn't to be any command to the log, and when I try to run the command on a shell it doesn't work. I figure out that the error is caused when I try to initialize the variable forms. You really should learn to use logcat. You will be much more productive that way. The problem you are having is because this: choices = new ArrayListString(10); for (int i = 0; i 10; i++){ choices.set(i, null); } does not do what you think it does. The first line creates an *empty* ArrayList, with a capacity for 10 items. Then you try to set the first 10 items of the list, however the list is empty, and so your index is out of range. If you look at the system log, you will see the app throwing an IndexOutOfBounds exception. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 Developer Console and the Market - Several Issues
The Android Developer Console doesn't allow me to unpublish my previously published applications. I thought it may be a browser/ javascript issue, but I tried several browsers with no luck. In addition, the applications I've published that are not free do not show up on the Market. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 Developer Console and the Market - Several Issues
Paid apps will not show up on the market for a few days (I believe the official date is mid next week). Only a handful of people (the google android team and select beta testers) have access to the paid apps right now. Not sure why you can't unpublish your app though, I to am having problems with the developer console / market at the moment (see my post over in the android discuss group) So I am hoping that these issues get worked out before I upload my second paid app tomorrow and before they go on sale to the US public next week. ---snctln www.snctln.com On Feb 15, 6:05 pm, Koush kou...@gmail.com wrote: The Android Developer Console doesn't allow me to unpublish my previously published applications. I thought it may be a browser/ javascript issue, but I tried several browsers with no luck. In addition, the applications I've published that are not free do not show up on the Market. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---