[android-developers] moving text effect in spinner
Hi, I am showing a list of urls in my spinner adapter and since the URL length is more than the width of the spinner, it is not able to show the whole URL text. Can we get some text moving effect for the spinner selected item so that user can read the whole selected URL when it is moving. One more question, when we click on spinner it shows the selection list in a popup, since the URL is larger than the text it can display, only some part of the URL is shown. how can we deal with it. Is there a way to apply the same text moving effect to the list items. Thanks, Shashidhar -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] OpenGL lockups in 2.2
Please don't hijack existing threads. Go to the web interface (http:// groups.google.com/group/android-developers) and click the new post link on the right. String On Sep 15, 6:40 am, tj tederj...@gmail.com wrote: Hi, I have several android projects, they share some common codes, resources files. Does any body know how to create an android library that can be used among different projects? I know how to do this if it's only java code. But how do you deal with the resource files? The auto generated R.java? How to make the resources in the lib are accessible to the importing project? Thanks, tj -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Scrolling broken in 2.2 ?
My app builds up a custom screen as dictated to me via the users 'application'. This means that I can end up in the situation where I have a parent scrollview and somewhere down the heirachy I can have a listView or a multiline TextView. Both of these scenarios continue to work fine under 2.1, however are broken in 2.2 (both device and emulator). The symptoms are that the child (list or textview) is unable to scroll using touch gestures although they can be scrolled using the keypad. Has anyone else experienced this behaviour and/or have a work around?? It appears that the onTouchEvent function in View has been changed substantially but I am currently delving into the code... Cheers, 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] Child activity lifetime in background
Hi, I have next problem, I have got parent activity and few sub- activities, if app goes to the background by pressed HOME button for long time, all children will be killed, and my app restart from parent activity. For example: A1 - parent, A2,A3,A4 - sub-activities. A1--A2-- A3(top), from A3 I go to the background (HOME). wait 30-40 min and restart app. Only A1 displayed. Could you please explain how to resolve my problem? 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
Re: [android-developers] Scrolling broken in 2.2 ?
Hi, You should never have a scrolling widget inside a scrolling widget; for instance a ListView inside a ScrollView. The behavior for such a setup is pretty much guaranteed to not work (and definitely not guaranteed to work.) On Tue, Sep 14, 2010 at 11:39 PM, Peter Carpenter peter.carpen...@skytechnologies.com wrote: My app builds up a custom screen as dictated to me via the users ‘application’. This means that I can end up in the situation where I have a parent scrollview and somewhere down the heirachy I can have a listView or a multiline TextView. Both of these scenarios continue to work fine under 2.1, however are broken in 2.2 (both device and emulator). The symptoms are that the child (list or textview) is unable to scroll using touch gestures although they can be scrolled using the keypad. Has anyone else experienced this behaviour and/or have a work around?? It appears that the onTouchEvent function in View has been changed substantially but I am currently delving into the code... Cheers, 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 -- 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: Documentation tutorials
Just this morning I came across this (in http://developer.android.com/guide/topics/ui/themes.html): 'The R.style reference, however, is not well documented and does not thoroughly describe the styles, so viewing the actual source code for these styles and themes will give you a better understanding of what style properties each one provides.' Beautiful! We have the documentation ITSELF admitting that it's woefully incomplete! String On Sep 14, 11:00 pm, String sterling.ud...@googlemail.com wrote: One definite criticism I have of the Android reference is descriptions which don't actually clarify the thing that they're meant to be documenting. My all-time favorite is fromhttp://developer.android.com/reference/android/graphics/drawable/Draw... 'A Drawable is a general abstraction for something that can be drawn.' If that's not a circular definition, I don't know what is. I've been in Android development since 1.1 and I am still a bit hazy on exactly what a Drawable IS. Overall, you don't need to look very far to find documentation which is just really lacking. Take a look athttp://developer.android.com/reference/android/content/Entity.html, an example I found after about 30 seconds of searching. What's an Entity? 'A representation of a item using ContentValues. It contains one top level ContentValue plus a collection of Uri, ContentValues tuples as subvalues.' And then, of the 4 methods, there is NO documentation for 3 of them - the only one documented is toString(), and that's the same cut-n-paste description as for any other Object.toString(). One that I've had to actually stop using - for lack of decent documentation - is WallpaperManager.sendWallpaperCommand(). The first parameter, windowToken, is documented as 'The window who these offsets should be associated with, as returned by View.getWindowToken().' Problem is, if you want to send a command to the system wallpaper, there's NO indication of how to get a windowToken for the Home screen. None. Here's another one:http://developer.android.com/reference/android/content/pm/ServiceInfo... Of its 4 methods, dump() and writeToParcel() have no documentation whatsoever, toString() was discussed above, and describeContents() is documented as: 'Describe the kinds of special objects contained in this Parcelable's marshalled representation. Returns a bitmask indicating the set of special object types marshalled by the Parcelable.' Again, this is just carbon-copy, with no further information on the bitmask or the special object types. Here's a classic:http://developer.android.com/reference/android/os/Debug.MemoryInfo.html EVERY method here is documented with a one-line description which is barely more helpful than the method name itself. Typical example: 'public int getTotalPss () Return total PSS memory usage in kB.' Or look at the docs for OpenGL. They're almost non-existent; you need to go track down OpenGL information elsewhere on the web, then try figure out which subset Android implements, and relate it back to Android data types. I could go on and on. Over the last 18 months, I've found many more egregious examples that I can't lay my hands on at the moment. But suffice it to say, these docs DO look like Google isn't trying here. String On Sep 14, 8:45 pm, TreKing treking...@gmail.com wrote: On Tue, Sep 14, 2010 at 2:30 PM, DanH danhi...@ieee.org wrote: Not really. A reference should be coherent and well-organized. What's so incoherent and disorganized about the current documentation? Specifics might help bring more attention to the parts that need it. I've run across several diagrams of the application state flow, for instance, and most are clearly wrong In the official docs? Can you point them out? And descriptions (no diagrams that I've found) of the Intent resolution algorithm are similarly inconsistent. Can you point these out as well? --- -- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Is anyone's active install % dropping like a rock lately?
On Wed, Sep 15, 2010 at 4:44 AM, TreKing treking...@gmail.com wrote: Posted this in the other thread. We received a comment from the Market people: Thanks for writing in. We are currently investigating this issue. So far, this appears to be purely a reporting issue: some update events are being inaccurately recorded as uninstalls, rather than updates, creating a lower active installs percentage. However, our investigation tells us that applications are not actually being uninstalled. We hope to have a resolution soon. This is crazy. Tom -- http://android.hubalek.net -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
RE: [android-developers] Scrolling broken in 2.2 ?
Hey Romain, Thanks for the reply, I can understand why this is not an ideal ui design - I entirely agree. But this doesn't change the fact that there seems to be some regression with the Android UI code. On researching further I've found that there are a number of registered bugs for 2.2 to do with browsers exhibiting similar problems whilst showing pages containing frames. Looks like something fundamental has changed here. As far as our use case goes - I need to be able to display whatever a user requires in their screen. Currently we can show these screens on Windows, iPhone Blackberry and Android 2.1 without any issues. But Android 2.2 suddenly has this issue with the nesting. Whilst we *could* design the app to work around this bug by using a popup editor - this does not help us keep things consistent, and your architecture bug free. As a workaround - do you know of any way to reset Nexus ones back to 2.1? Cheers, :) Peter. -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of Romain Guy Sent: Wednesday, 15 September 2010 4:42 PM To: android-developers@googlegroups.com Subject: Re: [android-developers] Scrolling broken in 2.2 ? Hi, You should never have a scrolling widget inside a scrolling widget; for instance a ListView inside a ScrollView. The behavior for such a setup is pretty much guaranteed to not work (and definitely not guaranteed to work.) On Tue, Sep 14, 2010 at 11:39 PM, Peter Carpenter peter.carpen...@skytechnologies.com wrote: My app builds up a custom screen as dictated to me via the users 'application'. This means that I can end up in the situation where I have a parent scrollview and somewhere down the heirachy I can have a listView or a multiline TextView. Both of these scenarios continue to work fine under 2.1, however are broken in 2.2 (both device and emulator). The symptoms are that the child (list or textview) is unable to scroll using touch gestures although they can be scrolled using the keypad. Has anyone else experienced this behaviour and/or have a work around?? It appears that the onTouchEvent function in View has been changed substantially but I am currently delving into the code... Cheers, 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 -- 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 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] system_server debugging using eclipse.
You wouldn't use the NDK or SDK for this. On Tue, Sep 14, 2010 at 10:43 PM, kiran kiranbhat2...@gmail.com wrote: Hi how can i debug the android telephony and radio service part of android (system_server) using eclipse debugging tool. Regards Kiran -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Cant seem to get resources to select with layouts for different densities
I don't know exactly what is going on here, but I would *strongly* suggest that if you are trying to do different layouts based on screen density then you are doing things wrong. The only thing density impacts is UI scaling; that is taken care of in a layout with the dp units if you need to specify dimensions. It otherwise has no impact on layout, and should not cause your layout to change. Note as per the spec for resource resolution, density configurations are matched in a somewhat special way, since the platform assumes it can pick any density resource and scale it to match the real device density. Obviously this doesn't make a lot of sense for layouts, so it is something you should avoid. On Tue, Sep 14, 2010 at 8:36 PM, niko20 nikolatesl...@yahoo.com wrote: I also tried to change my targetSdk value to 7 and it made no difference, without a root layout default layout.xml file, the app crashes - it doesn't load the layout-normal-hdpi layout.xml file for some reason. How frustrating this layout stuff is! -niko On Sep 14, 10:12 pm, niko20 nikolatesl...@yahoo.com wrote: Just wanted to give a bit more info I also have a layout.xml file in the default layout directory. In my code the main activity uses this line: setContentView(R.layout.main); If I delete the layout.xml from the default layout directory I get a force close on startup. So does this line of code interfere with android's layout loading or something , overriding it? -niko On Sep 14, 9:40 pm, niko20 nikolatesl...@yahoo.com wrote: Hi, I'm trying to understand the layout engine for different screen sizes and densities, to look into adding support for tablets in my apps. I was under the impression that you could also have different layouts based on screen density as well in android, and it would select the appropriate one. I have the following: a layout-normal-mdpi directory with a layout.xml file. a layout-normal-hdpi directory with a layout xml file with a different layout for high density screens. In my application manifest I have min SDK as 3, target SDK as 5. I have a supports-screens element and declare the following: android:largeScreens=true android:anyDensity=true I'm compiling against Android 2.2 library. However, when I run an AVD that is in WVGA854 mode with a lcd.density of 240, android isn't using my hdpi layout, it still uses my mdpi layout. I don't know why and need help! Thanks! -niko -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Scrolling broken in 2.2 ?
Umm, Well, Getting back to 2.1 will not fix your problems. I would reckon the best approach would be to re-design your UI. -Kumar Bibek http://techdroid.kbeanie.com On Sep 15, 12:05 pm, Peter Carpenter peter.carpen...@skytechnologies.com wrote: Hey Romain, Thanks for the reply, I can understand why this is not an ideal ui design - I entirely agree. But this doesn't change the fact that there seems to be some regression with the Android UI code. On researching further I've found that there are a number of registered bugs for 2.2 to do with browsers exhibiting similar problems whilst showing pages containing frames. Looks like something fundamental has changed here. As far as our use case goes - I need to be able to display whatever a user requires in their screen. Currently we can show these screens on Windows, iPhone Blackberry and Android 2.1 without any issues. But Android 2.2 suddenly has this issue with the nesting. Whilst we *could* design the app to work around this bug by using a popup editor - this does not help us keep things consistent, and your architecture bug free. As a workaround - do you know of any way to reset Nexus ones back to 2.1? Cheers, :) Peter. -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of Romain Guy Sent: Wednesday, 15 September 2010 4:42 PM To: android-developers@googlegroups.com Subject: Re: [android-developers] Scrolling broken in 2.2 ? Hi, You should never have a scrolling widget inside a scrolling widget; for instance a ListView inside a ScrollView. The behavior for such a setup is pretty much guaranteed to not work (and definitely not guaranteed to work.) On Tue, Sep 14, 2010 at 11:39 PM, Peter Carpenter peter.carpen...@skytechnologies.com wrote: My app builds up a custom screen as dictated to me via the users 'application'. This means that I can end up in the situation where I have a parent scrollview and somewhere down the heirachy I can have a listView or a multiline TextView. Both of these scenarios continue to work fine under 2.1, however are broken in 2.2 (both device and emulator). The symptoms are that the child (list or textview) is unable to scroll using touch gestures although they can be scrolled using the keypad. Has anyone else experienced this behaviour and/or have a work around?? It appears that the onTouchEvent function in View has been changed substantially but I am currently delving into the code... Cheers, 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 -- 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 athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: moving text effect in spinner
I am not very sure, but you can try this. Use a custom layout for your spinner, and in there, make the textview marquee. I expect that to work, but again, have never tried that. -Kumar Bibek http://techdroid.kbeanie.com On Sep 15, 11:06 am, Shashidhar shashi.zep...@gmail.com wrote: Hi, I am showing a list of urls in my spinner adapter and since the URL length is more than the width of the spinner, it is not able to show the whole URL text. Can we get some text moving effect for the spinner selected item so that user can read the whole selected URL when it is moving. One more question, when we click on spinner it shows the selection list in a popup, since the URL is larger than the text it can display, only some part of the URL is shown. how can we deal with it. Is there a way to apply the same text moving effect to the list items. Thanks, Shashidhar -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Handling large screens, such as tablets - still doesn't make sense to me
On Tue, Sep 14, 2010 at 7:08 PM, niko20 nikolatesl...@yahoo.com wrote: The problem arises when you now get a device which still reports itself as HDPI, but has a much larger screen size, which is what the Samsung does - it reports itself as hdpi, but has 1024x600 pixels. What happens is your button is still 80DPI, and shows the same size as before, but the screen is now up to 2 times bigger in the X direction! Leaving either a ton of unusable space, OR still making your layout look small on a large screen. The problem is since android doesn't scale your app to fit the screen size, there is no way you can come up with a layout that will look proper on different screens. It may be functional but you wont be able to predict at all what the layout will actually LOOK like. If you just want to have, say, a UI with 3x3 controls that are spread across the available space, then tell the layout manager to this either with weights in a linear layout or percentage units or such. If you are using ImageView for example for the inner controls, you can tell it how to adjust the image to match whatever space it gets (scale it etc). I may still just not get this but right now it really seems convoluted to me. In my opinion what should have been a simple scaling is now a complex affair. The behavior you are asking for is actually not what most apps want. For example, if I have a button in my app, I don't want its graphics to be scaled up some fairly random amount so that whatever screen size I designed my UI for is spread across the screen of whatever device I am running on. Most apps want their controls like buttons to stay the same size, and for their UI to resize as they specify to give the extra space to a list view or some other element of the UI that can show more data. Or games would typically use a SurfaceView, and if they want to design their game to assume a fixed size and let the platform resize to the real screen size, that can be done by setting a fixed size for the surface view. (At the cost of potentially some jaggies or other artifacts since the entire game in the surface view is being scaled before compositing to the screen.) -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to create setup file..!
You can follow this post to know about it. The online docs are quite informative though. http://techdroid.kbeanie.com/2010/02/sign-your-android-applications-for.html -Kumar Bibek http://techdroid.kbeanie.com On Sep 15, 10:21 am, Gold thangadura...@gmail.com wrote: Hi.All, Once I complete the application . How i will create the setup file and deploy it.! Thanks in advance, Gold -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Another developer has published an app using the EXACT same name as mine
Quick search in european trademark register shows me that there are 606 hits on ICE - so probably you have no way to trademark it. On Sep 14, 9:02 pm, Flying Coder av8r.st...@gmail.com wrote: Hi Dan, Thanks for the feedback. The app is ICE: In Case of Emergency and has been published on the Market since Feb 09 (at the time, it was the only ICE app for Android). Its currently one of the top-rated paid apps in the Health category. Its such a common phrase, that I wasn't expecting to be able to Trademark it, but I did expect the Market to require competitors to use names that were at least a LITTLE different. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Custom Account / Sync adapter: inability to edit contacts?
Thank you so much, that confirms what I was afraid of. Starred it; hope this will be taken care of soon. Until then, making a custom account / sync adapter is not really an option. Like other commenters in this issue, unfortunately we only realize that fact after doing most of the job :( BoD On Sep 15, 1:19 am, joebowbeer joe.bowb...@gmail.com wrote: Seehttp://code.google.com/p/android/issues/detail?id=5988 On Sep 14, 3:09 am, BoD bodl...@gmail.com wrote: So apparently the answer is no... :( BoD On Sep 14, 10:37 am, Kostya Vasilyev kmans...@gmail.com wrote: I believe there was some info on this in the old thread. -- Kostya Vasilyev --http://kmansoft.wordpress.com 14.09.2010 12:21 пользователь BoD bodl...@gmail.com написал: custom contacts are assumed to be sufficiently different from standard ones, and so the built-in... How disappointing. Is there a mechanism to inject your own contact editing Activity into the Contact app? BoD PS: I did use search thank you very much - the only related threads I found were unanswered as I mentioned, maybe you could point me to the relevant thread? On Sep 14, 10:01 am, Kostya Vasilyev kmans...@gmail.com wrote: This came up on this list before... 14.09.2010 11:48 пользователь BoD bodl...@gmail.com написал: Anybody please? I saw this question was asked several times in the past but never answered... -- You received this message because you are subscribed to the Google Groups Android Developers g... -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Any way to animate a 2D Game Smooth without OpenGL ?
Hi miguel, thanks for the response. Afaik. Every example game written by the google guys has a inner thread class in the gameview. But i think only for sharing variables of the gameview. Not quite sure if there where any other advantages gc wise. Normally locks a more a timesink and slowing down the thread, or is there a case where it can speed up performance. And from the normal java world. Locks like synchronized where needed while multithreading. Do you have more threads working on some objects? Currently i have 1 thread running for the surface view. This thread has a instance variabel gamedata where everything is happening. All lists of game objects are located in the gamedata object. Maybe this is a archtectural flaw ? The game view implements the touchlistener an delegates the inputs to the thread via thread save queue. The other direction, like the thread send a value to the score textview happens via messagehandler who delegates the msg to the referenced views. I think i rewrite a test project focussing on testing how i get rid of the hiccups. On 15 Sep., 00:09, Miguel Morales therevolti...@gmail.com wrote: How are you avoiding String Concatenation ? TextFields as a Example only take Strings I don't really use this myself because I don't really strings in inner loops. First, you want to make those time elements draw/update as least as possible. If not, you can use a string buffer:http://developer.android.com/reference/java/lang/StringBuilder.html A) Don't know, ddms works great for me. Try using it outside of eclipse, it works better by itself. b) I don't think there is a way, try playing with ddms. (I believe outside of eclipse it has more features) c) Depending on how you communicate with your inner/display thread, I use locks for speed. On Tue, Sep 14, 2010 at 2:39 PM, Andreas andreas.k...@googlemail.com wrote: How are you avoiding String Concatenation ? TextFields as a Example only take Strings And if you have a Score, or Time Element that Shows Some Numbers i wasn't able to get around creating a String implicitly. Currently i'am testing on my Motorola Milestone. On the Emulator it even runs slower with constant hiccups. Some other Problem while researching the hiccups: a) Currenty the Method Profiling in Eclipse isnt' working because of a error Unable to open trace file 'sdcard/com.antrace' : Permission Denied. Kind of Strange because a added uses-permission android:name=android.permission.WRITE_EXTERNAL_STORAGE/ already in the Manifest. b) Is there any way that logcat shows which objects where recycled ? Currently it only says GC freed xyz Simply because the Allocation View don't show me Thread Objects that may cause the GC to run so often. c) Is there any big disadvantage if the GameThread is a outer Thread..not like in all the examples (there it.s a inner class) thanks 4 feedback On 14 Sep., 22:45, Miguel Morales therevolti...@gmail.com wrote: Are you using the emulator or a hardware device for testing? I'm sure there's gotta be something that's allocating in your code. In my personal experience, I've gotten the GC down to once a minute at the worst. A lot of the time you can't fully get rid of GC hiccups because of background applications that allocate objects. Make sure you're not appending any string, check any other background code that's running (like your logic loop). You have to make sure there's no allocations throughout any long running or looping code. I'm fairly sure the canvas onDraw method doesn't allocate anything by itself, and you can get some decent performance out of it without going to openGL. I'm sure you've seen this but just in case:http://code.google.com/events/io/2009/sessions/WritingRealTimeGamesAn... It outlines some common pitfalls. On Tue, Sep 14, 2010 at 1:02 PM, Andreas andreas.k...@googlemail.com wrote: to 1) Did that already. I ruled out everything that was creatinglike shadow Copies or String Concat. I re-implement my own FastList instead of any ArrayList oder Hashmap. To there is nearly nothing that is created intentionally. But the GC is anyway running every couple of seconds. Sometimes only 50 ms somtimes 500 ms. The thing might be, hat you can't tell the GC that he should hold on for some time. It's not in my hands, and since everything in 2d drawing and standard Android Libs is in the GC domain and will be interrupt the game for some ms. 2) i think i have about max 100-150 Objects moving around in my screen. + the not moving static objects. I tested it with 200 Objects but the only flaw i saw was the GC hiccups issue. 3)opengl has a hard learning curve. And since i develop Java for about 10 Years now i thought i could handle the graphic stuff via the canvas / draw architecture. Since this might be a KO Criteria I'm kind of afraid to rewrite my game to use
[android-developers] Re: Fil-rate workaround with FBOs?
Well, I ran the experiement... 1.) it does work, though apparently the FBO texture ends up upside down with relation to all my other textures, so I had to do a little correction for that 2.) it does increase the frame rate, but not substantially 3.) it does look worse (a 256x256 FBO is not too awful. 128x128 is horrid) 4.) it consumes extra memory (for the FBO buffer(s)) on a Moto Droid I, my reference scene Without FBOs, rendering to full screen: about 20 fps With FBOs, rendering to 128x128: about 28.5fps With FBOs, rendering to 256x256: about 26.2fps With FBOs, rendering to 32x32: about about 30 fps (clearly unusuable, of course, unless you wanted a illusion of out of focus) 512x512 is not on the table as you get an out of memory condition with high regularity I still have to try it on the Eris (my problem phone), but overall, I don't think the result really justifies the feature. I'm pretty sure the fill rate I save with the smaller render target is lost with the render of the background quad with that texture on it. Perhaps if I had a clever way to jam the texture (and stretch it nicely) into the colorBuffer directly... On Sep 12, 1:12 pm, Samsyn d...@synthetic-reality.com wrote: My apologies if this is a stupid question... Might I get a net frame rate improvement if I did something like this: * create an FBO of resolution less than the full phone screen dimensions (user-selected quality vs speed option) * do most of my scene rendering into that FBO * then the 'real' (full screen) render would either use the FBO as the starting background color buffer contents, or render it (probably orthographically) as a single quad. * then probably add UI/Text decoration on top of that, where the resolutions really benefits. And, is there some egl glue (I am a glSurfaceView kinda dood) that would automagically do something like this in the first place? Or am I being naive to think the GPU could do its work faster if it was rendering to a lower resolution target? And would the phone with the worst fill rate also be the phone that doesn't support FBOs in the first place? After reading the OpenVR info (thanks again, Lance) I think I might get some improvement by breaking some huge triangles into smaller ones. I have some (water layer, in particular) that are so large they probably get processed by every tile of the screen. Thanks for any insights, - Dan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Problem with broadcasts and permissions
Hi, I have two applications, one of which (B) implements a broadcast receiver. The application (A) which sends the broadcast, binds a permission to it which the receiver (B) shall possess. The problem is now: If I install the receiver (B) first and the sender (A) afterwards, the receiver will never receive the broadcast. I assume this happens because the installation of the receiver somewhere fails when it comes to the uses permission part of the manifest (because this permission is not yet registered/defined). However, this issue should be resolved as soon as the sender (which defines the permission in the manifest) is installed, but unfortunately isn't. It does not even help to re-install the receiver. The only way to resolve the issue is to completely uninstall the receiver application and do a fresh install. Is this behaviour intended (not a bug, a feature)? Cheers, Heiko -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: ADT master and aapt
Is it possible to build Windows version of aapt.exe ? Thanks On Sep 14, 7:26 pm, Xavier Ducrohet x...@android.com wrote: Not yet. you'll have to build it yourself from master. On Tue, Sep 14, 2010 at 2:06 AM, snpe snp...@gmail.com wrote: Hi, ADT master execute aapt with the --debug-mode option. aapt in Android SDK 07 doesn't support this option. Is there Windows build of SDK which support this ? Thanks, Peco -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Xavier Ducrohet Android SDK Tech Lead Google Inc. Please do not send me questions directly. 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] Determining sender of (explicit) intent
Hi again, afaik there is no way to determine the sender of an (explicit) intent. Every intent should hold an instance variable with the package and class name of the sender. This would be a great way to verify the source. What are your thoughts about this? Cheers, Heiko P.S.: If this is already possible, please point me in the right direction. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 anyone's active install % dropping like a rock lately?
This is crazy. Tom Indeed it is. One of my apps is dropping the percentage active installs by 0.50 %, and the other is increasing by 0.50%. I was happily thinking the new updates have attracted users to use the app more, but after these issues one can't be sure... Alberto -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Is anyone's active install % dropping like a rock lately?
The same. I'm absolutely not able to track whether newly implemented changes caused more active installs or less active installs. I really don't understand why omnipotent Google is not able to fix so trivial stuff like reporting. I would like to get explanation what is preventing them from make solid stats. I would like to get explanation why it take ONE MOTH to get info that they are aware of the issue and they are working on it. Is Android Market just side project maintained by Google volunteers in their leisure time? Are developers like us important for Google? I have really bad feeling from Android Market overall. AM is probably my biggest disillusion in Android world :-( Tom On Wed, Sep 15, 2010 at 10:50 AM, Albert albert8...@googlemail.com wrote: This is crazy. Tom Indeed it is. One of my apps is dropping the percentage active installs by 0.50 %, and the other is increasing by 0.50%. I was happily thinking the new updates have attracted users to use the app more, but after these issues one can't be sure... Alberto -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- --- Tom Hubalek (tom.huba...@gmail.com), http://android.hubalek.net, http://blog.hubalek.net/ http://facebook.com/thubalek, http://www.linkedin.com/in/thubalek http://twitter.com/thubalek, http://twitter.com/android_dev_tom -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Stream WMA using libmms libffmpeg
I need a report about libmms libffmpeg in Java/Android and how can we use them to stream wma ??? 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: Is anyone's active install % dropping like a rock lately?
Thanks for writing in. We are currently investigating this issue. So far, this appears to be purely a reporting issue: some update events are being inaccurately recorded as uninstalls, rather than updates, creating a lower active installs percentage. However, our investigation tells us that applications are not actually being uninstalled. We hope to have a resolution soon. This fits, actually. I had been holding steady at around 50%. Released my first update for a month yesterday evening and now I'm down to 45%. Pent -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Cant seem to get resources to select with layouts for different densities
I switched to using layout-normal-long and this works now. However, the documentation indicates that the other should work too, it's not clear - but your explanation does make sense to me I think. Thanks for the help Dianne. -niko On Sep 15, 2:14 am, Dianne Hackborn hack...@android.com wrote: I don't know exactly what is going on here, but I would *strongly* suggest that if you are trying to do different layouts based on screen density then you are doing things wrong. The only thing density impacts is UI scaling; that is taken care of in a layout with the dp units if you need to specify dimensions. It otherwise has no impact on layout, and should not cause your layout to change. Note as per the spec for resource resolution, density configurations are matched in a somewhat special way, since the platform assumes it can pick any density resource and scale it to match the real device density. Obviously this doesn't make a lot of sense for layouts, so it is something you should avoid. On Tue, Sep 14, 2010 at 8:36 PM, niko20 nikolatesl...@yahoo.com wrote: I also tried to change my targetSdk value to 7 and it made no difference, without a root layout default layout.xml file, the app crashes - it doesn't load the layout-normal-hdpi layout.xml file for some reason. How frustrating this layout stuff is! -niko On Sep 14, 10:12 pm, niko20 nikolatesl...@yahoo.com wrote: Just wanted to give a bit more info I also have a layout.xml file in the default layout directory. In my code the main activity uses this line: setContentView(R.layout.main); If I delete the layout.xml from the default layout directory I get a force close on startup. So does this line of code interfere with android's layout loading or something , overriding it? -niko On Sep 14, 9:40 pm, niko20 nikolatesl...@yahoo.com wrote: Hi, I'm trying to understand the layout engine for different screen sizes and densities, to look into adding support for tablets in my apps. I was under the impression that you could also have different layouts based on screen density as well in android, and it would select the appropriate one. I have the following: a layout-normal-mdpi directory with a layout.xml file. a layout-normal-hdpi directory with a layout xml file with a different layout for high density screens. In my application manifest I have min SDK as 3, target SDK as 5. I have a supports-screens element and declare the following: android:largeScreens=true android:anyDensity=true I'm compiling against Android 2.2 library. However, when I run an AVD that is in WVGA854 mode with a lcd.density of 240, android isn't using my hdpi layout, it still uses my mdpi layout. I don't know why and need help! Thanks! -niko -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Scrolling broken in 2.2 ?
It sounds like Peter is working on so,e framework for cross platform applications, si it's probably less than ideal to make Android just act different. You are probably out of luck for 2.2 if the browser exhibits the same behavior. On Sep 15, 3:18 am, Kumar Bibek coomar@gmail.com wrote: Umm, Well, Getting back to 2.1 will not fix your problems. I would reckon the best approach would be to re-design your UI. -Kumar Bibekhttp://techdroid.kbeanie.com On Sep 15, 12:05 pm, Peter Carpenter peter.carpen...@skytechnologies.com wrote: Hey Romain, Thanks for the reply, I can understand why this is not an ideal ui design - I entirely agree. But this doesn't change the fact that there seems to be some regression with the Android UI code. On researching further I've found that there are a number of registered bugs for 2.2 to do with browsers exhibiting similar problems whilst showing pages containing frames. Looks like something fundamental has changed here. As far as our use case goes - I need to be able to display whatever a user requires in their screen. Currently we can show these screens on Windows, iPhone Blackberry and Android 2.1 without any issues. But Android 2.2 suddenly has this issue with the nesting. Whilst we *could* design the app to work around this bug by using a popup editor - this does not help us keep things consistent, and your architecture bug free. As a workaround - do you know of any way to reset Nexus ones back to 2.1? Cheers, :) Peter. -Original Message- From: android-developers@googlegroups.com [mailto:android-develop...@googlegroups.com] On Behalf Of Romain Guy Sent: Wednesday, 15 September 2010 4:42 PM To: android-developers@googlegroups.com Subject: Re: [android-developers] Scrolling broken in 2.2 ? Hi, You should never have a scrolling widget inside a scrolling widget; for instance a ListView inside a ScrollView. The behavior for such a setup is pretty much guaranteed to not work (and definitely not guaranteed to work.) On Tue, Sep 14, 2010 at 11:39 PM, Peter Carpenter peter.carpen...@skytechnologies.com wrote: My app builds up a custom screen as dictated to me via the users 'application'. This means that I can end up in the situation where I have a parent scrollview and somewhere down the heirachy I can have a listView or a multiline TextView. Both of these scenarios continue to work fine under 2.1, however are broken in 2.2 (both device and emulator). The symptoms are that the child (list or textview) is unable to scroll using touch gestures although they can be scrolled using the keypad. Has anyone else experienced this behaviour and/or have a work around?? It appears that the onTouchEvent function in View has been changed substantially but I am currently delving into the code... Cheers, 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 -- 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 athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Cant seem to get resources to select with layouts for different densities
Ok - one more question In my project I set the layout UI designer to Nexus One. This allowed me to create a layout based on a long screen such as a Nexus one. However, even with that, when I run it on a WVGA845 it still doesn't look right since the screen is still 85 pixels wider than a Nexus one! I guess I need to switch to all Relative Layouts or something - but I still dont see how you can ever get a layout that isn't going to look funky on different screen dimensions. -niko On Sep 15, 4:54 am, niko20 nikolatesl...@yahoo.com wrote: I switched to using layout-normal-long and this works now. However, the documentation indicates that the other should work too, it's not clear - but your explanation does make sense to me I think. Thanks for the help Dianne. -niko On Sep 15, 2:14 am, Dianne Hackborn hack...@android.com wrote: I don't know exactly what is going on here, but I would *strongly* suggest that if you are trying to do different layouts based on screen density then you are doing things wrong. The only thing density impacts is UI scaling; that is taken care of in a layout with the dp units if you need to specify dimensions. It otherwise has no impact on layout, and should not cause your layout to change. Note as per the spec for resource resolution, density configurations are matched in a somewhat special way, since the platform assumes it can pick any density resource and scale it to match the real device density. Obviously this doesn't make a lot of sense for layouts, so it is something you should avoid. On Tue, Sep 14, 2010 at 8:36 PM, niko20 nikolatesl...@yahoo.com wrote: I also tried to change my targetSdk value to 7 and it made no difference, without a root layout default layout.xml file, the app crashes - it doesn't load the layout-normal-hdpi layout.xml file for some reason. How frustrating this layout stuff is! -niko On Sep 14, 10:12 pm, niko20 nikolatesl...@yahoo.com wrote: Just wanted to give a bit more info I also have a layout.xml file in the default layout directory. In my code the main activity uses this line: setContentView(R.layout.main); If I delete the layout.xml from the default layout directory I get a force close on startup. So does this line of code interfere with android's layout loading or something , overriding it? -niko On Sep 14, 9:40 pm, niko20 nikolatesl...@yahoo.com wrote: Hi, I'm trying to understand the layout engine for different screen sizes and densities, to look into adding support for tablets in my apps. I was under the impression that you could also have different layouts based on screen density as well in android, and it would select the appropriate one. I have the following: a layout-normal-mdpi directory with a layout.xml file. a layout-normal-hdpi directory with a layout xml file with a different layout for high density screens. In my application manifest I have min SDK as 3, target SDK as 5. I have a supports-screens element and declare the following: android:largeScreens=true android:anyDensity=true I'm compiling against Android 2.2 library. However, when I run an AVD that is in WVGA854 mode with a lcd.density of 240, android isn't using my hdpi layout, it still uses my mdpi layout. I don't know why and need help! Thanks! -niko -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How do I refer to a drawable with a variable
On 14 September 2010 17:24, nextgen nextgenfant...@comcast.net wrote: Thank you for this, it gives me a possible solution. Unfortunately getDrawable will only take an integer as an input, which really defeats the simplicity of solution I'm looking for. I can set about assigning integers to each team, but I'm not sure that would even do it because I'm not sure about the nature of the integer it wants. Here is the description I see in Eclipse: // returns ID of drawable given by name (i.e. getDrawableByName( app_icon ); public static int getDrawableByName( String name ) { int drawableId = 0; try { Class res = R.drawable.class; Field field = res.getField( name ); drawableId = field.getInt(null); } catch (Exception e) { // Toast.makeText(context, DIT Service: onStartCommand(), Toast.LENGTH_SHORT).show(); Log.e(DateInTray, Failure to get drawable: + name, e); } return( drawableId ); } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] 1-star Market weirdness
On 14 September 2010 20:29, Zsolt Vasvari zvasv...@gmail.com wrote: I woke up this morning to 2 new 1-star rating on my app, which made it 3 total. There were no comments and no purchase cancelations in the last couple of days, so I said to myself WTF, 2 people actually kept the app and gave it a one star? I thought it might be a competitor. Or moron kid. Or frustrated competitor. Or both. Or Market just sucks :) But I just looked again and the 2 new 1-stars have disappeared. What is going on with the market? Anyone can revoke own rating (see menu in Market app on device). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: GOOGLE, WHAT IS GOING ON with the Active Install %? Bug in install to SDCARD is my guess!
On 14 September 2010 21:21, Pent tas...@dinglisch.net wrote: If that turns out to be it, I'm kindof horrified how many people are running old versions of my app! That's common problem. And that's people check for updates in their code as you can't rely on the OS there. And if you find out new version nag the user saying you do not support version they use but there's free update for them. Or that new version introduces many cool fixes and improvements, That usually works :) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] onResume is always called on TabActivity so onCreate is not necessary?
Is it suppose to work this way? I have a TabActivity with 3 tabs, each tab started an activity and I realise when a tab is clicked onResume is call. If I have onCreate, when app start it will launch onCreate and then onResume immediately. So, I can just get ride of onCreate in this case? 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: ADT master version
Do I really have to explain something so elementary? 8 is not the same as 8.0.0 is not the same as 8(.0.0). So yes, you did make it more confusing instead of less. For that matter, are they sharing the same version number, or the same API level? The version number is 2.2, the API level 8. Based on what you have said so far, it sounds like you are using the API level as the version number for the tools, which is not the same as making all tools and plug-ins share the same version number. So again, yes, you are making things more confusing instead of less. On Sep 14, 2:10 pm, Xavier Ducrohet x...@android.com wrote: On Tue, Sep 14, 2010 at 1:39 PM, Indicator Veritatis mej1...@yahoo.com wrote: Greater consistency is not apparent, so no, it is not less confusing. Rather, it sounds like another example of Google making crab-like sideways motion instead of forward motion (progress). What's still confusing? All tools and plug-ins now share the same version number (back then, DDMS, traceview, the emulator, etc... all had different version numbers and most people didn't know where to find them anyway) and no progress? Yes, you're right of course, all we're doing for the next version is changing the version number, nothing else. Xav On Sep 14, 10:27 am, Xavier Ducrohet x...@android.com wrote: We decided to make things consistent and less confusing with the version numbers. Tools r8 will ship with ADT 8(.0.0) Xav On Tue, Sep 14, 2010 at 2:02 AM, snpe snp...@gmail.com wrote: Hi, I have noticed that you change version of ADT plugin from 0.9.8 to 8.0.0. Is it mistake ? I suppose that it would be 0.9.9, 0.10.0 or if ADT is stable 1.0.0. Regards, Peco -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Xavier Ducrohet Android SDK Tech Lead Google Inc. Please do not send me questions directly. 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 -- Xavier Ducrohet Android SDK Tech Lead Google Inc. Please do not send me questions directly. 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: help with fade of view
Just to clarify, my problem is that I dont know how to handle some sort of notify. I want to fade the view out, when the fade is done, I want to open a new url and fade it in. Anyone that could help me? On 13 Sep, 22:11, jake142 m...@tesella.se wrote: Hi guys, I currentley have a webview that runs as a thread so that I can change the url every 10 sec. public class HtmlView extends Activity implements Runnable public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.html); webview = (WebView) findViewById(R.id.HTML); webview.getSettings().setJavaScriptEnabled(true); Thread thread = new Thread(this); thread.start(); } public void run() { //Get the message String msgUrl = getNextMessage(); //Set the message to the WebView Bundle data = new Bundle(); Log.i(msgUrl, msgUrl); data.putString(url, msgUrl); UImsg = new Message(); UImsg.setData(data); handler.sendMessage(UImsg); handler.postDelayed(this, 1); } private Handler handler = new Handler() { public void handleMessage(Message msg) { // webview.startAnimation(AnimationUtils.loadAnimation(webview.getContext(), R.anim.fadeout)); Bundle b = msg.getData(); String url = b.getString(url); webview.loadUrl(url); webview.startAnimation(AnimationUtils.loadAnimation(webview.getContext(), R.anim.fadein)); } }; Is this the right way to do it? What I want to do is: 1. Fade the view out 2. Add a new url 3. Fade the view in Ho do I get my fading to work as described above? For now, this should run forever (I will implement a another thread reading the SD memory searching for files that will change to a different activity). Best regards, Jake142 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 real time sound spectrum analyzer
Well, it depends on how many different frequency bins he wants and how complicated a windowing function. If he wants lots of bins and a fancy window, he will wish he had direct access to the DSP on the phone as well as raw audio. Otherwise, he can get a lot of mileage out of an FFT algorithm even in plain Java. Processors are so much faster these days, even on a phone. On Sep 14, 3:30 am, Tez earlencefe...@gmail.com wrote: AudioRecord API. Using this you can get raw bytes from the microphone stream. Since you are analyzing audio, this is a heavy operation. You may want to consider the NDK. However, you cannot access the audio APIs from the NDK. You may have to write a JNI wrapper to transfer byte streams. Cheers, Earlence On Sep 14, 12:19 pm, Muhammad Ali zaandr...@gmail.com wrote: Hi All, I am new for multimedia in java and I am going to develop an application which can analyze the sound spectrum. I don't know how to get a real time sound from the mic of the android and analyze it. If someone know about any API and method that how to get real time sound and get the values of its spectrum please help me, I am very thankful you for your precious time. Yours, Ali -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] libmms libffmpeg in Android to Stream WMA
I need a report about libmms libffmpeg in Android how can we use them to stream wma ??? 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
Re: [android-developers] Stop the launcher activity from starting the application
On Wed, Sep 15, 2010 at 12:41 AM, Nithin M Warrier nithin.war...@gmail.com wrote: I have a enable and disable button. When this button is enable, user can launch my application normally. But when the button is in disable state, I don't want to start the application, that is the launcher activity should not start, but the icon for application will be there. When we click on the icon for application to launch it should not start. Any Idea please. Mr. Stratton's solution is your only choice. While you could disable the activity via PackageManager, that removes the icon from the launcher. If the icon is in the launcher, by definition it can be started. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to create a common library in android - containing resource files as well
Create an Android library project: http://developer.android.com/guide/developing/eclipse-adt.html#libraryProject http://developer.android.com/guide/developing/other-ide.html#libraryProject On Wed, Sep 15, 2010 at 1:40 AM, tj tederj...@gmail.com wrote: Hi, I have several android projects, they share some common codes, resources files. Does any body know how to create an android library that can be used among different projects? I know how to do this if it's only java code. But how do you deal with the resource files? The auto generated R.java? How to make the resources in the lib are accessible to the importing project? Thanks, tj -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Open proper app with intent
Some questions: 1) since you say the file does not open, I assume you are landing in the catch{} clause with an exception. What exception do you get? 2) what Activity do you have registered for android.content.Intent.ACTION_VIEW in AndroidManifest.xml? 3) How did you arrive at the conclusion that filePath + / + label.getText() was the right way to build the file name? That looks like path + extension w/ everything in between missing. On Sep 13, 7:26 pm, Bryan Parks bryan...@gmail.com wrote: Forgive me if this is a topic that has already been discussed, but I've searched for hours and can't seem to find the answer I'm looking for. I'm trying to cut my teeth on Android programming with a simple file manager app and currently have most all functions working, but I can't seem to open a selected file with the appropriate app. Here is my current code: / **/ String extension = MimeTypeMap.getFileExtensionFromUrl((String)label.getText()); String mimeType = MimeTypeMap.getSingleton().getMimeTypeFromExtension(extension); if (mimeType != null MimeTypeMap.getSingleton().hasMimeType(mimeType)) { try { File fileToOpen = new File(filePath + / + label.getText()); Intent i = new Intent(); i.setAction(android.content.Intent.ACTION_VIEW); i.setDataAndType(Uri.fromFile(fileToOpen), mimeType); startActivity(i); } catch (Exception e) { Toast.makeText(this, Could Not Open File!, Toast.LENGTH_SHORT).show(); }} else { Toast.makeText(this, Unknown Mime Type, Toast.LENGTH_SHORT).show();} / **/ The strange thing is that I get some rather interesting results with this code. On my handset, it doesn't seem to want to open doc files at all, but will open the one xls file I have without a problem in Docs2Go. Also, when throwing about 10 pdf files at it, it will open 2 of them with no problem but claims Unknown Mime Type on the other 8. Theoretically, this code should find the extension on the file, then figure out the appropriate MIME type from the extension, then call the activity handing over the MIME type as an argument, but theory doesn't seem to be enough to get me through this one. Any suggestions you guys can make, or tutorials you can point me at would be greatly appreciated. Thanks! -Bryan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Problem with broadcasts and permissions
On Wed, Sep 15, 2010 at 4:33 AM, Heiko heiko.wi...@gmail.com wrote: Is this behaviour intended (not a bug, a feature)? Based on a previous discussion of this topic in this group, I think the answer is bug or at least implementation gap. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 filter to launch an application
Hi, I want to do the following. When a user clicks on a URL containing a few specific keywords like http://ad.mysite.com from somewhere like entering the URL in a to do note in calendar, i want to recognize mysite.com keywords and launch my application instead of browser. I know that the browser activity's manifest file contains a filter to launch it if the keywords http or www are found .So how can i override this behaviour? Thanks, Alok. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Digest for android-developers@googlegroups.com - 25 Messages in 16 Topics
I am new to Android. help me to learn Android Application programming.If you have any Tutorials for Android then forword me on my mail.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: Is anyone's active install % dropping like a rock lately?
If you put an update out it tempts a few (me usually) to uninstall the App - I usually figure that its not worth my time updating it and I do not want it to auto update incase it installs a nasty, so I delete it and figure I can always get it when I want it again. Bill (and his thought processes) On Sep 15, 10:43 am, Pent tas...@dinglisch.net wrote: Thanks for writing in. We are currently investigating this issue. So far, this appears to be purely a reporting issue: some update events are being inaccurately recorded as uninstalls, rather than updates, creating a lower active installs percentage. However, our investigation tells us that applications are not actually being uninstalled. We hope to have a resolution soon. This fits, actually. I had been holding steady at around 50%. Released my first update for a month yesterday evening and now I'm down to 45%. Pent -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Easiest way to know if SD card has been prepared?
How would one know if the SD card has been mounted at startup. Perhaps some sort of callback/event/message that I can grab that tells me when SD has been mounted/unmounted? My LWP starts before SD is available, but can check for add-ons that are on the SD card. I need to delay load until after it is ready when there is a dependency. Thanks in advance, Adam -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Easiest way to know if SD card has been prepared?
On Wed, Sep 15, 2010 at 7:46 AM, HaMMeReD adamhamm...@gmail.com wrote: How would one know if the SD card has been mounted at startup. Environment.getExternalStorageState(). Perhaps some sort of callback/event/message that I can grab that tells me when SD has been mounted/unmounted? See the ACTION_MEDIA_* broadcast Intents, documented on the Intent class: http://developer.android.com/reference/android/content/Intent.html -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 create a common library in android - containing resource files as well
As I understand it, the common library stuff is broken, since you can't put any UI stuff in the library due to naming problems. There was a thread on this topic a week or two back. String, I think that hijacking mostly occurs when someone uses an email reply to start a new thread. It's a bit of ugliness in the Google Groups implementation, and only partly the fault of the poster. On Sep 15, 12:40 am, tj tederj...@gmail.com wrote: Hi, I have several android projects, they share some common codes, resources files. Does any body know how to create an android library that can be used among different projects? I know how to do this if it's only java code. But how do you deal with the resource files? The auto generated R.java? How to make the resources in the lib are accessible to the importing project? Thanks, tj -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Find the location in Android Map
Hello 2 All, I m working on my one application in that user have to put latitude and longitude of the location and after pressing the button the map shows that location. I have a problem in that. Can anyone help me to solve it out? ~Dhr -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: GOOGLE, WHAT IS GOING ON with the Active Install %? Bug in install to SDCARD is my guess!
On Sep 14, 9:21 pm, Pent tas...@dinglisch.net wrote: If that turns out to be it, I'm kindof horrified how many people are running old versions of my app! One of my games was released in April. More than 10 updates later, I am still receiving crash reports from the original version of the game. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 in the bowser in Android accessing my web site: The server failed to communicate. Try again later.
Hi, I have a problem accessing my web site from the Android browser, see the error below. On a desktop in Chrome for instance it works perfectly. I think it has do do with DNS or something in the setup, Im using Google Apps as the WEB-site provider and another company as the domain registrar. Anyone know whats going on? Also the browser add some characters in the end of the call: dat=http://www.unidevsolutions.com/SeUXX/ 09-15 14:00:22.067: DEBUG/MobileDataStateTracker(85): replacing old mInterfaceName (rmnet0) with rmnet0 for dun 09-15 14:00:22.067: DEBUG/MobileDataStateTracker(85): replacing old mInterfaceName (rmnet0) with rmnet0 for hipri 09-15 14:00:22.067: DEBUG/MobileDataStateTracker(85): replacing old mInterfaceName (rmnet0) with rmnet0 for supl 09-15 14:00:22.077: DEBUG/MobileDataStateTracker(85): replacing old mInterfaceName (rmnet0) with rmnet0 for mms 09-15 14:00:22.077: DEBUG/MobileDataStateTracker(85): default Received state= CONNECTED, old= CONNECTED, reason= (unspecified), apnTypeList= * 09-15 14:00:22.077: DEBUG/NetworkLocationProvider(85): onDataConnectionStateChanged 3 09-15 14:00:22.447: WARN/InputManagerService(85): Window already focused, ignoring focus gain of: com.android.internal.view.iinputmethodclient$stub$pr...@44bf4188 09-15 14:00:24.457: DEBUG/dalvikvm(154): GC_EXTERNAL_ALLOC freed 2459 objects / 121592 bytes in 105ms 09-15 14:00:25.672: DEBUG/SearchDialog(8058): launching Intent { act=android.intent.action.SEARCH flg=0x1000 cmp=com.android.browser/.BrowserActivity (has extras) } 09-15 14:00:25.677: INFO/SearchDialog(8058): Starting (as ourselves) #Intent;action=android.intent.action.SEARCH;launchFlags=0x1000;component=com.android.browser/.BrowserActivity;S.query=http %3A%2F%2Fwww.unidevsolutions.com%2F;S.user_query=http%3A%2F %2Fwww.unidevsolutions.com%2F;end 09-15 14:00:25.677: INFO/ActivityManager(85): Starting activity: Intent { act=android.intent.action.SEARCH flg=0x1000 cmp=com.android.browser/.BrowserActivity (has extras) } 09-15 14:00:26.407: INFO/ActivityManager(85): Starting activity: Intent { act=android.intent.action.VIEW cat=[android.intent.category.BROWSABLE] dat=http:// www.unidevsolutions.com/SeUXX/ cmp=com.android.browser/.BrowserActivity } 09-15 14:00:28.427: DEBUG/dalvikvm(8058): GC_FOR_MALLOC freed 6082 objects / 507880 bytes in 87ms 09-15 14:00:28.457: ERROR/Tab(8058): onReceivedError -7 http://www.unidevsolutions.com/ The server failed to communicate. Try again later. 09-15 14:00:29.197: DEBUG/dalvikvm(85): GC_EXPLICIT freed 30865 objects / 1359096 bytes in 122ms Regards Jonas. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] How to create a common library in android - containing resource files as well
Just what I need. Thanks a lot, tj On 09/15/2010 07:08 PM, Mark Murphy wrote: Create an Android library project: http://developer.android.com/guide/developing/eclipse-adt.html#libraryProject http://developer.android.com/guide/developing/other-ide.html#libraryProject On Wed, Sep 15, 2010 at 1:40 AM, tjtederj...@gmail.com wrote: Hi, I have several android projects, they share some common codes, resources files. Does any body know how to create an android library that can be used among different projects? I know how to do this if it's only java code. But how do you deal with the resource files? The auto generated R.java? How to make the resources in the lib are accessible to the importing project? Thanks, tj -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: How to create a common library in android - containing resource files as well
On Wed, Sep 15, 2010 at 8:14 AM, DanH danhi...@ieee.org wrote: As I understand it, the common library stuff is broken, since you can't put any UI stuff in the library due to naming problems. There was a thread on this topic a week or two back. No, it works fine. You just have to think ahead. I have some advice written up here: http://andparcel.com/ -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Find the location in Android Map
On Wed, Sep 15, 2010 at 7:18 AM, dhrumil dhrumilsh...@gmail.com wrote: I have a problem in that. And the problem is what? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Find the location in Android Map
The problem is that I am not able to find that exact location and not able to put marker on that location. ~Dhr On Wed, Sep 15, 2010 at 6:01 PM, TreKing treking...@gmail.com wrote: On Wed, Sep 15, 2010 at 7:18 AM, dhrumil dhrumilsh...@gmail.com wrote: I have a problem in that. And the problem is what? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Is anyone's active install % dropping like a rock lately?
On Wed, Sep 15, 2010 at 6:35 AM, Droid rod...@gmail.com wrote: If you put an update out it tempts a few (me usually) to uninstall the App - I usually figure that its not worth my time updating it Interesting. I'm usually curious to see what has been added (if anything) so I always update - even apps I don't really use anymore. and I do not want it to auto update incase it installs a nasty Installs a nasty? Is that what the kids are calling it these days? so I delete it and figure I can always get it when I want it again. Unless it's unpublished or otherwise yanked from the Market. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] subscription expiry..!
Hi All, My new requirement is subscription expiry. when I install the application it will show the subsciption form if the subsciption id matches it will proceed.! next time onwards it automatically goes to the homescreen. After that some 45 days after application will expired and also I need to show notification also like Application is Expired . How can I achieve this..! very urgent.. eagery waiting for the reply..! Cheers, Rubin -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] subscription expiry..!
Hi All, My new requirement is subscription expiry. when I install the application it will show the subsciption form if the subsciption id matches it will proceed.! next time onwards it automatically goes to the homescreen. After that some 45 days after application will expired and also I need to show notification also like Application is Expired . How can I achieve this..! very urgent.. eagery waiting for the reply..! Cheers, Rubin -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] notification..!
Hi All, How to store information registry.. and how to show notifcation based on registry details..like expiry date and all Cheers, Rubin -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Why I can not open database in my service layer class
When I create a instance of the SQLiteOpenHelper, I always need a Context to be passed as its constructor's argument. To use this Context, in my service layer class, I extends Activity class, though I do not display this activity on the screen because it is my service layer. I always get NullPointer exception when I open the SQLiteOpenHelper in my service layer class, Is it because my service layer class extends the Activity class but I did not show this activity on mobile screen? (That's there is no intent to my service layer class), if it is so, how to get rid of it if I wanna open a SQLiteOpenHelper in my service layer class which do not need to extends Activity, but need a Context object to pass to SQLiteOpenHelper? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] subscription expiry..!
On Wed, Sep 15, 2010 at 7:51 AM, Rubin jeff.rubi...@gmail.com wrote: when I install the application it will show the subsciption form if the subsciption id matches it will proceed.! What does this even mean? How can I achieve this..! Achieve what? You're post is very broad and generic. very urgent.. Oh geez. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] notification..!
On Wed, Sep 15, 2010 at 7:52 AM, Rubin jeff.rubi...@gmail.com wrote: How to store information registry.. What is information registry? and how to show notifcation based on registry details..like expiry date and all What are registry details? What is expiry date and all? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Toast not changing on mapactivity
On Tue, Sep 14, 2010 at 10:40 PM, dadada ytbr...@gmail.com wrote: However, my first Toast appears and it never change despite detecting changes in sensor values. What could be the reason? You're sure the other statements are being hit? (Breakpoints or logging will tell you that. Is the value actually changing, just taking a second or two? I assume sensor data will be triggered frequently and Toast messages get queued up, so what you might be seeing is not the first message permanently, but multiple instances of the first message. If you wait long enough it should change. That said, Toast is probably not the best way to display changes in sensor data. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Digest for android-developers@googlegroups.com - 25 Messages in 16 Topics
go through the http://developer.android.com/guide/basics/what-is-android.html On Wed, Sep 15, 2010 at 5:04 PM, amol pathak amolpath...@gmail.com wrote: I am new to Android. help me to learn Android Application programming.If you have any Tutorials for Android then forword me on my mail.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.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Thanks Regards Rakesh Kumar Jha Consultant(Software Developer) Symphony Services Corp (India) Pvt Ltd Bangalore (O) +918030273740 (R) +919886336619 -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Login with database..!
On Wed, Sep 15, 2010 at 12:20 AM, Gold thangadura...@gmail.com wrote: I need to check to user login credential with database login credential.. how i will achieve this. Exactly as you stated. What's the problem? Eagerly waiting for the reply..! What's with this ..! notation? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] able to select 2 RadioButton in a RadioGroup ??!??!
hello, I have a simple RadioGroup in one of my view, with several RadioButton : RadioGroup group = new RadioGroup(this.getApplicationContext()); this.setContentView(group); for (int i = 0; i 10; i++) { group.addView(getRadioButton(i)); } private RadioButton getRadioButton(final int position) { RadioButton v = new RadioButton(this.getApplicationContext()); if (position == 0) { v.setChecked(true); } return v; } It display 10 radio buttons, and one of them is checked (the first one). But if I click on another radio button, the first one stay selected ... Is there something wrong with my code ? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Child activity lifetime in background
On Wed, Sep 15, 2010 at 1:40 AM, viktor victor.scherb...@gmail.com wrote: I have next problem, I have got parent activity and few sub- activities, if app goes to the background by pressed HOME button for long time, all children will be killed, and my app restart from parent activity. Right. That's how it works. Could you please explain how to resolve my problem? Don't wait 30 - 40 minutes to reuse your app? If you haven't used an app this long, it's reasonable to expect it to be killed and started from scratch next time you open it. Why is this a problem? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] able to select 2 RadioButton in a RadioGroup ??!??!
On Wed, Sep 15, 2010 at 8:10 AM, Christophe christophe.lebesner...@gmail.com wrote: Is there something wrong with my code ? 1 - Your getRadioButton function returns a new RadioButton. 2 - You're using getApplicationContext(). - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Race condition (?) in Dialog causes NPE?
Hello, I have a custom widget that can display a pop-up dialog. I have a single report of a NPE happening, and looking through my code, I don't know how that's possible unless there is a race condition involved somehow. Just wondering if anybody can point me to the problem. Here's my code (irrelevant stuff omitted): public class CurrencyEditText extends LinearLayout { Dialog mDialog; // If the dialog is NOT showing, this is NULL protected void onDetachedFromWindow() { super.onDetachedFromWindow(); // Dismiss, if showing if (mDialog != null) { mDialog.dismiss(); mDialog = null; } } private void showDialog() { Builder builder = new Builder(context); // Set dialog properties, omitted... builder.setPositiveButton(R.string.set, new OnClickListener() { public void onClick(DialogInterface dialog, int buttonId) { // Dismiss CurrencyEditText.this.mDialog.dismiss(); CurrencyEditText.this.mDialog = null; // Send message here, omitted... } }); builder.setNegativeButton(android.R.string.cancel, new OnClickListener() { public void onClick(DialogInterface dialog, int buttonId) { // Dismiss -- NPE happens on next line as mDialog is NULL, which it shouldn't be CurrencyEditText.this.mDialog.dismiss(); CurrencyEditText.this.mDialog = null; // Send message here, omitted... } }); mDialog = builder.show(); } } That's it -- mDialog is not touched anywhere else. So either the click listener is called after onDetachedFromWindow() or before builder.show() can set mDialog. Obviously, I could address the symptom by butting a NULL check around the crashing line, but I would like to understand what's going on here as I use the same pattern all over my app. 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
Re: [android-developers] Find the location in Android Map
On Wed, Sep 15, 2010 at 7:37 AM, Dhrumil Shah dhrumilsh...@gmail.comwrote: The problem is that I am not able to find that exact location and not able to put marker on that location. And what exactly is that exact location? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to get image from received share intent from Gallery
Well, You get the content Uri, query the MediaStore content provider with this Uri, and you will get the absolute path to the image from the column called data. Do whatever you want with this. But, this doesn't seem to work on all platform releases, especially, the behaviour is different on devices lower than and 1.6 and later. The Android bug tracker has a long running bug regarding this. http://code.google.com/p/android/issues/detail?id=1480 If you are tagetting devices with 1.6 or before, you probably have to find something else. -Kumar Bibek http://techdroid.kbeanie.com On Sep 15, 2:46 am, Frank Weiss fewe...@gmail.com wrote: OK, the secret sauce was to use the ContentResolver. In this case the code is: Uri streamUri = theIntent.getParcelableExtra(Intent.*EXTRA_STREAM*); *if* (streamUri != *null*) { ContentResolver cr = getContentResolver(); InputStream is; *try* { is = cr.openInputStream(streamUri); bitmap = BitmapFactory.*decodeStream*(is); } *catch* (FileNotFoundException e) { // *TODO* Auto-generated catch block e.printStackTrace(); } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Any way to animate a 2D Game Smooth without OpenGL ?
Hi Andreas, Sorry to jump in late, but I thought I'd share my experiences with non- opengl on Android. I have a game engine which uses both open gl and the canvas system depending on the device capabilities (some devices, like HTC Tattoo have software implementations of opengl which is actually slower than canvas). I get reasonable performance from the canvas api, but the important thing is that the bottle-neck has always been draw speed and nothing else. I pretty much followed the replica island approach whereby I have two threads, one which just draws and the other where all the game calcs are done. My game thread routinely outperforms my render thread, but I am drawing quite a lot so this may not be everyone's experience. I'd say you do have a slight architectural flaw in that (it appears) that your game logic is being computed in the same thread as the rendering. This means that the render thread has to wait each frame for the game to update state. It's much better to separate these two. Have your game logic updated in a separate thread, then just notify the render thread when it's time to draw (you can do this by sending a message to your surface view using a Handler and then invalidating the canvas). Basically what I do is this: I have a separation of game objects, and renderable objects. A game object is the real representation of the in-game element (eg the player). The renderable object is simple a set of x,y coords, plus scale, rotation etc and a reference to the image that represents the sprite (I have some more logic to include sprite animations etc, but the basic concept is the same). Hence my renderables are dumb. They don't know what they are, they just know how to be drawn. My game objects contain all the important logic information (eg player health etc). This is how I cater for both Canvas and OpenGL. I have CanvasRenderable objects and OpenGLRenderable objects which both extend a common base class (... you guessed it.. Renderable). This base class pretty much has just one method... draw(). (actually it sends in a reference to the graphics context... so either Canvas or GL10, but you get the idea) When the render thread is drawing the renderables, the game thread is processing the next step in the game. Once the game thread has completed its step, it waits for the render thread to complete (I implemented a simple mutex sort of like the java ReadWriteLock, but one that doesn't allocate a bunch of objects like the ReadWriteLock does!). Once the render thread has completed, I send all the updated coordinates, rotations etc to the renderable objects from the game object counterparts. While I am doing this, I prevent the render thread from rendering the next frame (using the same mutex) so it isn't rendering objects in a half-moved state. Then the game thread is ready to process its next step, and it uses the time taken to process the last step (including the time spent waiting for the render thread) as the input into the calculations. The end result is that the render thread is just doing one thing.. rendering... as fast as it can. All the actual logic is separated into the Game Thread. The only delay in each frame is the time it takes to set all the coordinates etc on the renderables.. which is usually pretty fast. The third thread is just the Activity which handles the user input etc. This will typically only affect objects in the Game Thread (eg increase speed of player etc) As far as GC calls go, I have not been able to eliminate them completely (there still seem to be allocations buried in the Android api which I can't seem to get rid of) but they are infrequent enough that it's not really an issue. I just used the Allocation Tracking to locate any dodgy allocations and re-code them out. I'm currently not rendering any Strings however (not during gameplay anyway), but you could also get around this by not writing text as such, but by simply drawing each character as an image. So you have a small image for each alpha-numeric character you need, then maintain a fixed size array of values representing the String you need to draw. Then you just draw a sequence of images. Of course you would abstract this so it makes your life easier (eg create a renderable which takes a numeric value and knows how to draw it as a sequence of images at an x,y position). I assume you have already done so, but if not I strongly recommend you watch the YouTube video of Chris Pruett explaining his game architecture. Made a lot of sense to me. http://www.youtube.com/watch?v=U4Bk5rmIpic Not sure if I've really been any help here, but if you have any questions I'd be happy to share whatever I have learnt (so far). Cheers, Jason. On Sep 15, 6:04 pm, Andreas andreas.k...@googlemail.com wrote: Hi miguel, thanks for the response. Afaik. Every example game written by the google guys has a inner thread class in the gameview. But i think only for sharing variables of the
[android-developers] Re: Track the moment when an activity is actually visible
onStart?? On Sep 15, 12:18 am, TreKing treking...@gmail.com wrote: On Tue, Sep 14, 2010 at 2:13 PM, avigadl avig...@gmail.com wrote: How can I track this moment? onResume? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: able to select 2 RadioButton in a RadioGroup ??!??!
hello treKing, 1 - Your getRadioButton function returns a new RadioButton. since I want 10 different radio buttons in my group, I can reuse the same radio button ?!? 2 - You're using getApplicationContext(). I have try with just this instead of getApplicationContext(), but the problem is still there Should I use something else ? thanks for you help On Sep 15, 3:28 pm, TreKing treking...@gmail.com wrote: On Wed, Sep 15, 2010 at 8:10 AM, Christophe christophe.lebesner...@gmail.com wrote: Is there something wrong with my code ? 1 - Your getRadioButton function returns a new RadioButton. 2 - You're using getApplicationContext(). - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: able to select 2 RadioButton in a RadioGroup ??!??!
1. New Radio button: I dont see a problem with that. Interesting issue though, I will check it out and let you know. -Kumar Bibek http://techdroid.kbeanie.com On Sep 15, 6:28 pm, TreKing treking...@gmail.com wrote: On Wed, Sep 15, 2010 at 8:10 AM, Christophe christophe.lebesner...@gmail.com wrote: Is there something wrong with my code ? 1 - Your getRadioButton function returns a new RadioButton. 2 - You're using getApplicationContext(). - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: able to select 2 RadioButton in a RadioGroup ??!??!
On Wed, Sep 15, 2010 at 8:35 AM, Christophe christophe.lebesner...@gmail.com wrote: 1 - Your getRadioButton function returns a new RadioButton. since I want 10 different radio buttons in my group, I can reuse the same radio button ?!? The code you posted adds 10 RBs to a group. Then your get function returns a new one that's not associated with anything. How do you expect that to work? You're basically saying, when getting a Radio Button, instead of getting one I already created, make a new one and if was trying to get the first one, set it to checked. Also, don't associate it with a group so its checked state won't effect others. 2 - You're using getApplicationContext(). I have try with just this instead of getApplicationContext(), but the problem is still there This won't fix your problem (see #1), but you should avoid getApplicationContext(). It will cause you problems elsewhere. Should I use something else ? Your most local Context ... usually this. On Wed, Sep 15, 2010 at 8:38 AM, Kumar Bibek coomar@gmail.com wrote: 1. New Radio button: I dont see a problem with that. He already created 10 and the new ones don't get added to the group. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Find the location in Android Map
The exact location is the location entered by the user in the edit text i.e. the latitude and longitude of that location. If u didnt get my question, I can send u my code then run it and suggest me. ~Dhr On Wed, Sep 15, 2010 at 7:00 PM, TreKing treking...@gmail.com wrote: On Wed, Sep 15, 2010 at 7:37 AM, Dhrumil Shah dhrumilsh...@gmail.comwrote: The problem is that I am not able to find that exact location and not able to put marker on that location. And what exactly is that exact location? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: notification..!
Hi, Sorry for mistaken..I want to store information in the registry like installation time and date based on that I want to display notifiation..! Cheers, Rubin On Sep 15, 6:00 pm, TreKing treking...@gmail.com wrote: On Wed, Sep 15, 2010 at 7:52 AM, Rubin jeff.rubi...@gmail.com wrote: How to store information registry.. What is information registry? and how to show notifcation based on registry details..like expiry date and all What are registry details? What is expiry date and all? ----- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: subscription expiry..!
Hi When I use the application in first time I want to display License form..! This License is valid for 45 days..! after that I need show alert is your license is expired please renew like that..! Cheers, Rubin On Sep 15, 5:59 pm, TreKing treking...@gmail.com wrote: On Wed, Sep 15, 2010 at 7:51 AM, Rubin jeff.rubi...@gmail.com wrote: when I install the application it will show the subsciption form if the subsciption id matches it will proceed.! What does this even mean? How can I achieve this..! Achieve what? You're post is very broad and generic. very urgent.. Oh geez. ----- TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: GOOGLE, WHAT IS GOING ON with the Active Install %? Bug in install to SDCARD is my guess!
One of my games was released in April. More than 10 updates later, I am still receiving crash reports from the original version of the game. A lot of people may be getting their apps from shady download sites instead through the Android Market (app packs, often packaged as rar archives and uploaded to share hosting sites or distributed through bittorrent). -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Why I can not open database in my service layer class
On Wed, Sep 15, 2010 at 8:57 AM, xi developer xidevelope...@gmail.com wrote: When I create a instance of the SQLiteOpenHelper, I always need a Context to be passed as its constructor's argument. To use this Context, in my service layer class, I extends Activity class, though I do not display this activity on the screen because it is my service layer. A Service is a Context. Use the Service as your Context. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Intent filter to launch an application
Solved the problem. Referred to the Manifest file of Androd Browser. Thanks, Alok. On Wed, Sep 15, 2010 at 4:59 PM, Alok Kulkarni kulsu...@gmail.com wrote: Hi, I want to do the following. When a user clicks on a URL containing a few specific keywords like http://ad.mysite.com from somewhere like entering the URL in a to do note in calendar, i want to recognize mysite.com keywords and launch my application instead of browser. I know that the browser activity's manifest file contains a filter to launch it if the keywords http or www are found .So how can i override this behaviour? Thanks, Alok. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: GOOGLE, WHAT IS GOING ON with the Active Install %? Bug in install to SDCARD is my guess!
So people just ignore the notification icon and don't bother updating? On Sep 15, 8:18 am, Michael A. michael.aki...@gmail.com wrote: On Sep 14, 9:21 pm, Pent tas...@dinglisch.net wrote: If that turns out to be it, I'm kindof horrified how many people are running old versions of my app! One of my games was released in April. More than 10 updates later, I am still receiving crash reports from the original version of the game. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Shape with different stroke and fill
How can I draw a shape (e.g. circle, rectange) that has different stroke and fill colors? Eg. A circle with green perimeter, but black inner fill. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Find the location in Android Map
On Wed, Sep 15, 2010 at 8:46 AM, Dhrumil Shah dhrumilsh...@gmail.comwrote: The exact location is the location entered by the user in the edit text i.e. the latitude and longitude of that location. OK. So user entered location as lat and lon. Why can't you plot it? What's the EXACT problem? What have you tried so far? If u didnt get my question, I can send u my code then run it and suggest me. No. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Loading XML data to array “gives up” if XML is too big
Correct, I'm using Resources.getStringArray (shown above). Also, I've not yet learned how to do data any other way than XML bundled in the app -- it is on my list to learn not only straight text files, as you suggest, but also using a database, or especially putting this out on the internet somewhere and not bundling with the app, as Frank suggests. So I have a workaround for now, but I will pursue these more-permanent solutions next. It's not easy learning Android and Java from scratch while trying to produce apps under a time constraint, but I'm trying my best. I very much appreciate you taking the time to reply. On Sep 14, 10:44 pm, DanH danhi...@ieee.org wrote: I'm assuming you use Resources.getStringArray to read the array? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: notification..!
On Wed, Sep 15, 2010 at 8:48 AM, Rubin jeff.rubi...@gmail.com wrote: I want to store information in the registry What registry? - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: subscription expiry..!
On Wed, Sep 15, 2010 at 8:49 AM, Rubin jeff.rubi...@gmail.com wrote: When I use the application in first time I want to display License form..! OK. This License is valid for 45 days..! OK..! after that I need show alert is your license is expired please renew OK. I still have no idea what part you're having trouble with. You questions is very broad and generic and you're never going to get help this way. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Child activity lifetime in background
If you haven't used an app this long, it's reasonable to expect it to be killed and started from scratch next time you open it. Why is this a problem? My app based on maps and blogs, many of users said that isn't convenient when they hide an app, and restating it to startup activity. They want that app coming to the same activity. For example, you are reading blog, and meet your friend somewhere, you will hide your app. After few minutes you want to come to your blog, but blog closed. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Use of FLAG_ACTIVITY_SINGLE_TOP and FLAG_ACTIVITY_CLEAR_TOP
Hi, I am facing a problem with the launch of activity mode as SingleTop.I have four activities A,B,C,D which are declared as SingleTop.Also I have a activity X from which these activities are launched.X is declared as SingleTask. Now the use case scenario is: I launch activity X and from there activity C.From Activity C goto activity Y and there press the Home key and got the home screen and from there again launch activity X and then C. To launch C , I have use the flag intent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP | Intent.FLAG_ACTIVITY_CLEAR_TOP); But observed that instead of launching the same instance , first onDestroy() of C gets called followed by onCreate() of Activity C which is not as per my expectation. I expect that onResume() will be called for activity C. Am I doing anything wrong or this is the desired behavior? Note: I have not implemented onNewIntent() API in my class. Thanks, Shekhar -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Shape with different stroke and fill
On Wed, Sep 15, 2010 at 9:09 AM, Baran Ozgul baran.oz...@gmail.com wrote: How can I draw a shape (e.g. circle, rectange) that has different stroke and fill colors? http://developer.android.com/reference/android/graphics/Paint.html - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Child activity lifetime in background
On Wed, Sep 15, 2010 at 9:17 AM, viktor victor.scherb...@gmail.com wrote: They want that app coming to the same activity. Either play with Activity launch flags (I doubt there's something that will do this, but worth a shot) or track the user's last activity and state yourself in the preferences and then restore it as necessary when your main activity is restarted. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Child activity lifetime in background
15.09.2010 18:24, TreKing ?: On Wed, Sep 15, 2010 at 9:17 AM, viktor victor.scherb...@gmail.com mailto:victor.scherb...@gmail.com wrote: They want that app coming to the same activity. Either play with Activity launch flags (I doubt there's something that will do this, but worth a shot) or track the user's last activity and state yourself in the preferences and then restore it as necessary when your main activity is restarted. I believe it's this one: http://developer.android.com/reference/android/content/Intent.html#FLAG_ACTIVITY_NEW_TASK -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: able to select 2 RadioButton in a RadioGroup ??!??!
The code you posted adds 10 RBs to a group. Then your get function returns a new one that's not associated with anything. hu ? the only radio button I add are the one returned from the function : group.addView(getRadioButton(i)); it is equivalent to the following code (which doesn't work either) : for (int i = 0; i 10; i++) { RadioButton v = new RadioButton(this); if (i == 3) { v.setChecked(true); } group.addView(v); } On Sep 15, 3:42 pm, TreKing treking...@gmail.com wrote: On Wed, Sep 15, 2010 at 8:35 AM, Christophe christophe.lebesner...@gmail.com wrote: 1 - Your getRadioButton function returns a new RadioButton. since I want 10 different radio buttons in my group, I can reuse the same radio button ?!? The code you posted adds 10 RBs to a group. Then your get function returns a new one that's not associated with anything. How do you expect that to work? You're basically saying, when getting a Radio Button, instead of getting one I already created, make a new one and if was trying to get the first one, set it to checked. Also, don't associate it with a group so its checked state won't effect others. 2 - You're using getApplicationContext(). I have try with just this instead of getApplicationContext(), but the problem is still there This won't fix your problem (see #1), but you should avoid getApplicationContext(). It will cause you problems elsewhere. Should I use something else ? Your most local Context ... usually this. On Wed, Sep 15, 2010 at 8:38 AM, Kumar Bibek coomar@gmail.com wrote: 1. New Radio button: I dont see a problem with that. He already created 10 and the new ones don't get added to the group. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: UI is blocking on IntentService
A little more study of this behavior is making me suspect that the problem is not the UI getting blocked but that the IntentService thread is hogging the CPU. It shouldn't be doing that (Unless the HttpPost is doing something stupid like polling a register) but I think I'll roll out some profiling just to make sure. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: able to select 2 RadioButton in a RadioGroup ??!??!
@Treking, You will have to create new Radiobuttons each time, else, you will not be able to add it to the RadioGroup. It will say, the child already has a parent. So, if you want to display multiple radio buttons like this, then, you have to create new ones, i.e, you cannot reuse that. There seems to be a problem, if you try to set the checked option, before adding it to the RadioGroup. If you set it after adding it, that works fine... Here's the code. RadioGroup rg = (RadioGroup) findViewById(R.id.RadioGroup01); for (int i = 0; i 6; i++) { rg.addView(getRadioButton(i)); } ((RadioButton)rg.getChildAt(0)).setChecked(true); private RadioButton getRadioButton(int index) { RadioButton rb = new RadioButton(this); rb.setText(Radio + index); return rb; } -Kumar Bibek http://techdroid.kbeanie.com On Sep 15, 6:42 pm, TreKing treking...@gmail.com wrote: On Wed, Sep 15, 2010 at 8:35 AM, Christophe christophe.lebesner...@gmail.com wrote: 1 - Your getRadioButton function returns a new RadioButton. since I want 10 different radio buttons in my group, I can reuse the same radio button ?!? The code you posted adds 10 RBs to a group. Then your get function returns a new one that's not associated with anything. How do you expect that to work? You're basically saying, when getting a Radio Button, instead of getting one I already created, make a new one and if was trying to get the first one, set it to checked. Also, don't associate it with a group so its checked state won't effect others. 2 - You're using getApplicationContext(). I have try with just this instead of getApplicationContext(), but the problem is still there This won't fix your problem (see #1), but you should avoid getApplicationContext(). It will cause you problems elsewhere. Should I use something else ? Your most local Context ... usually this. On Wed, Sep 15, 2010 at 8:38 AM, Kumar Bibek coomar@gmail.com wrote: 1. New Radio button: I dont see a problem with that. He already created 10 and the new ones don't get added to the group. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Easiest way to know if SD card has been prepared?
I guess, you can also check for Broadcasts, if you mount-remount your sdcard frequently when your application/service is running. But, checking for the storage state is the surest way. -Kumar Bibek http://techdroid.kbeanie.com On Sep 15, 4:51 pm, Mark Murphy mmur...@commonsware.com wrote: On Wed, Sep 15, 2010 at 7:46 AM, HaMMeReD adamhamm...@gmail.com wrote: How would one know if the SD card has been mounted at startup. Environment.getExternalStorageState(). Perhaps some sort of callback/event/message that I can grab that tells me when SD has been mounted/unmounted? See the ACTION_MEDIA_* broadcast Intents, documented on the Intent class: http://developer.android.com/reference/android/content/Intent.html -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: able to select 2 RadioButton in a RadioGroup ??!??!
On Wed, Sep 15, 2010 at 9:44 AM, Kumar Bibek coomar@gmail.com wrote: You will have to create new Radiobuttons each time, else, you will not be able to add it to the RadioGroup. I missed this part rg.addView(*getRadioButton(i)*); My bads. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: able to select 2 RadioButton in a RadioGroup ??!??!
You have to create a new RadioButton each time. Else, trying to re-use the one radio button which is already added to the radio group, will throw an error. Setting the Radio Button before adding it, has this problem. If you set the radio button after adding it to the radio group, it works fine. RadioGroup rg = (RadioGroup) findViewById(R.id.RadioGroup01); for (int i = 0; i 6; i++) { rg.addView(getRadioButton(i)); } ((RadioButton)rg.getChildAt(0)).setChecked(true); private RadioButton getRadioButton(int index) { RadioButton rb = new RadioButton(this); rb.setText(Radio + index); return rb; } - Kumar Bibek http://techdroid.kbeanie.com On Sep 15, 7:37 pm, Christophe christophe.lebesner...@gmail.com wrote: The code you posted adds 10 RBs to a group. Then your get function returns a new one that's not associated with anything. hu ? the only radio button I add are the one returned from the function : group.addView(getRadioButton(i)); it is equivalent to the following code (which doesn't work either) : for (int i = 0; i 10; i++) { RadioButton v = new RadioButton(this); if (i == 3) { v.setChecked(true); } group.addView(v); } On Sep 15, 3:42 pm, TreKing treking...@gmail.com wrote: On Wed, Sep 15, 2010 at 8:35 AM, Christophe christophe.lebesner...@gmail.com wrote: 1 - Your getRadioButton function returns a new RadioButton. since I want 10 different radio buttons in my group, I can reuse the same radio button ?!? The code you posted adds 10 RBs to a group. Then your get function returns a new one that's not associated with anything. How do you expect that to work? You're basically saying, when getting a Radio Button, instead of getting one I already created, make a new one and if was trying to get the first one, set it to checked. Also, don't associate it with a group so its checked state won't effect others. 2 - You're using getApplicationContext(). I have try with just this instead of getApplicationContext(), but the problem is still there This won't fix your problem (see #1), but you should avoid getApplicationContext(). It will cause you problems elsewhere. Should I use something else ? Your most local Context ... usually this. On Wed, Sep 15, 2010 at 8:38 AM, Kumar Bibek coomar@gmail.com wrote: 1. New Radio button: I dont see a problem with that. He already created 10 and the new ones don't get added to the group. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Race condition (?) in Dialog causes NPE?
Do you have access to the stacktrace? On Sep 15, 3:29 pm, Zsolt Vasvari zvasv...@gmail.com wrote: Hello, I have a custom widget that can display a pop-up dialog. I have a single report of a NPE happening, and looking through my code, I don't know how that's possible unless there is a race condition involved somehow. Just wondering if anybody can point me to the problem. Here's my code (irrelevant stuff omitted): public class CurrencyEditText extends LinearLayout { Dialog mDialog; // If the dialog is NOT showing, this is NULL protected void onDetachedFromWindow() { super.onDetachedFromWindow(); // Dismiss, if showing if (mDialog != null) { mDialog.dismiss(); mDialog = null; } } private void showDialog() { Builder builder = new Builder(context); // Set dialog properties, omitted... builder.setPositiveButton(R.string.set, new OnClickListener() { public void onClick(DialogInterface dialog, int buttonId) { // Dismiss CurrencyEditText.this.mDialog.dismiss(); CurrencyEditText.this.mDialog = null; // Send message here, omitted... } }); builder.setNegativeButton(android.R.string.cancel, new OnClickListener() { public void onClick(DialogInterface dialog, int buttonId) { // Dismiss -- NPE happens on next line as mDialog is NULL, which it shouldn't be CurrencyEditText.this.mDialog.dismiss(); CurrencyEditText.this.mDialog = null; // Send message here, omitted... } }); mDialog = builder.show(); } } That's it -- mDialog is not touched anywhere else. So either the click listener is called after onDetachedFromWindow() or before builder.show() can set mDialog. Obviously, I could address the symptom by butting a NULL check around the crashing line, but I would like to understand what's going on here as I use the same pattern all over my app. 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: Shape with different stroke and fill
Just draw it twice using different paints each time. On Sep 15, 10:09 am, Baran Ozgul baran.oz...@gmail.com wrote: How can I draw a shape (e.g. circle, rectange) that has different stroke and fill colors? Eg. A circle with green perimeter, but black inner fill. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: able to select 2 RadioButton in a RadioGroup ??!??!
There seems to be a problem, if you try to set the checked option, before adding it to the RadioGroup. If you set it after adding it, that works fine... Yes ! It works fine now ! A bug in android ? :) thanks for you help On Sep 15, 4:44 pm, Kumar Bibek coomar@gmail.com wrote: @Treking, You will have to create new Radiobuttons each time, else, you will not be able to add it to the RadioGroup. It will say, the child already has a parent. So, if you want to display multiple radio buttons like this, then, you have to create new ones, i.e, you cannot reuse that. There seems to be a problem, if you try to set the checked option, before adding it to the RadioGroup. If you set it after adding it, that works fine... Here's the code. RadioGroup rg = (RadioGroup) findViewById(R.id.RadioGroup01); for (int i = 0; i 6; i++) { rg.addView(getRadioButton(i)); } ((RadioButton)rg.getChildAt(0)).setChecked(true); private RadioButton getRadioButton(int index) { RadioButton rb = new RadioButton(this); rb.setText(Radio + index); return rb; } -Kumar Bibekhttp://techdroid.kbeanie.com On Sep 15, 6:42 pm, TreKing treking...@gmail.com wrote: On Wed, Sep 15, 2010 at 8:35 AM, Christophe christophe.lebesner...@gmail.com wrote: 1 - Your getRadioButton function returns a new RadioButton. since I want 10 different radio buttons in my group, I can reuse the same radio button ?!? The code you posted adds 10 RBs to a group. Then your get function returns a new one that's not associated with anything. How do you expect that to work? You're basically saying, when getting a Radio Button, instead of getting one I already created, make a new one and if was trying to get the first one, set it to checked. Also, don't associate it with a group so its checked state won't effect others. 2 - You're using getApplicationContext(). I have try with just this instead of getApplicationContext(), but the problem is still there This won't fix your problem (see #1), but you should avoid getApplicationContext(). It will cause you problems elsewhere. Should I use something else ? Your most local Context ... usually this. On Wed, Sep 15, 2010 at 8:38 AM, Kumar Bibek coomar@gmail.com wrote: 1. New Radio button: I dont see a problem with that. He already created 10 and the new ones don't get added to the group. - TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en