[android-developers] Android Studio NDK
Hi, I would really if someone could tell me where one can find official documentation for using NDK with Android studio. All the samples and documentation I've found on the website is for using NDK with eclipse. http://tools.android.com/recent/usingthendkplugin Any pointers regarding this would be extremely useful. Thanks, --MB -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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 unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] App specific licensing keys fiasco- Impact on old apps/new releases (URGENT).
Hi, My understanding was that for older apps, the licensing key would be the same as the older key for developer account. However what I am noticing is that in the new play.google.com the BASE64 encoded licensing key is different, even for the old apps. Can someone please clarify the following? 1.) Do we need to use the new licensing key for older apps in new releases? Or can we continue to use the developer account licensing key even in newer releases? Are there any other changes that we should be aware of to handle these correctly? Thanks, --MB -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to create an AVD running HTC sense 4.1?
Hi, I would really appreciate any help in how to go about troubleshooting issues specific to HTS sense 4.1 One of our users recently contacted us indicating issues with our app after upgrade to HTC sense 4.1. I created an AVD in Eclipse using HTC Opensense SDK. Is there some way to tell what the HTC sense version on the AVD is. Under About Phone it says: Build number: sdk-eng 4.0.4 MR1 303030 test-keys I am unable to reproduce the issue on this AVD. Is there some way to tell if the AVD is running HTC sense 4.1 or something else? Thanks, --MB. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 an AVD running HTC sense 4.1?
From what the user has described it looks like something has changed with how GestureDetector emits the following two events: - onScroll - onDoubleTap On Saturday, October 6, 2012 10:03:19 AM UTC-7, MB wrote: Hi, I would really appreciate any help in how to go about troubleshooting issues specific to HTS sense 4.1 One of our users recently contacted us indicating issues with our app after upgrade to HTC sense 4.1. I created an AVD in Eclipse using HTC Opensense SDK. Is there some way to tell what the HTC sense version on the AVD is. Under About Phone it says: Build number: sdk-eng 4.0.4 MR1 303030 test-keys I am unable to reproduce the issue on this AVD. Is there some way to tell if the AVD is running HTC sense 4.1 or something else? Thanks, --MB. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Proguard and library projects.
Hi, I've an application_project that depends on a library_project. Do we need to enable proguard for the library_project as well? I noticed the following: All entries in library_project/bin/proguard/mapping.txt are also present in application_project/bin/proguard/mapping.txt. Does this mean there is no need to run proguard on libary projects? Enabling it on the application project is equivalent to enabling it on application project as well as library projects. Thanks, --MB. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How can I change the active store?
I would like to know the answer to this too. Bump up!! On Mar 29, 6:59 am, evyevy evya...@gmail.com wrote: I'm about to publish applications to USA and CHINA. I'm currently located at Israel. how can I change my market store to test my search position? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Rotation gesture detector.
Hi, Is there a rotation gesture detector class available for Android? I've searched the docs but haven't found anything relevant. I am looking for the equivalent of UIRotationGestureRecognizer on iOS. Thanks, --MB. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Rotation gesture detector.
I am already aware of these gesture detectors and using them already. I am specifically looking for rotation gesture detector. On Mar 30, 9:39 pm, James Black planiturth...@gmail.com wrote: You need to do more of the work on Android. This may give you a start:http://www.anddev.org/gesturedetector_and_gesturedetectorongesturelis... On 31 Mar 2012, at 00:16, MB wrote: Hi, Is there a rotation gesture detector class available for Android? I've searched the docs but haven't found anything relevant. I am looking for the equivalent of UIRotationGestureRecognizer on iOS. Thanks, --MB. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, 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
[android-developers] Re: Referring other library projects from within a library project.
No, this won't work for me. I want to refer to a library project from within a library project. I want to create projects like the following: Application project - library 1 project - library 2 project On Mar 26, 10:23 pm, Y2i yur...@gmail.com wrote: Would this work?http://developer.android.com/guide/developing/projects/projects-eclip... On Monday, March 26, 2012 10:15:25 PM UTC-7, MB wrote: Hi, I want to refer to a library project from within another library project. Is there some way to accomplish this? Thanks, --MB. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Referring other library projects from within a library project.
Hi, I want to refer to a library project from within another library project. Is there some way to accomplish this? Thanks, --MB. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Still unclear -- subscriptio model using paypal
In-app Billing in Android market does not support automatically renewing subscriptions. Users would have to re-purchase your in app items at the end of your billing cycle. My understanding is that publications as big as NYT use their own subscription payment/authorization system. This help them save the 30% sales royalty they would otherwise have had to pay Google. On Jan 24, 8:23 am, Miriam Raphael Roberts mrobe...@miamiherald.com wrote: I have looked at numerous posts and there is still some ambiguity.-- Is it possible to have a subscription model using either Paypal or the in-app billing model? If we use in-app billing, do we need to prompt the user each month that we charge them? Instead of in-app billing, can we use paypal instead to collect our monthly fee? Can we charge them not using a monthly prompt? What are papers like the NYT doing? When I download their app and try to subscribe, I am taken to a form that accepts a credit card. We basically want to do the same thing, just using the Paypal Mobile Payment Library. Thank you in advance -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Design questions: Menu replacement for ICS (Android 4.x)
Hi, In ICS (Android 4.x), the menu button has been replaced by barely noticeable 3 vertical dots making apps that rely on menu button difficult to use. I would really appreciate if other developers could share how they are changing their UI so that there is less reliance on the menu. I am thinking of adding an always visible layer of controls at the bottom, with an expandable more control like in traditional menu. Thanks, --MB. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Verifying app signatures
Some developers publish the same apk (signed by the same certificate) on both the Android market and other channels. In that case checking the public key of the signing certificate would not work. The only way to really ensure that an app is installed from Android market would be to use the same APIs(internal and unpublished) that the Android market uses to implement LVL. --MB PS: Would it be possible to share what is the end goal of this exercise? On Nov 22, 12:17 pm, Fernando T ftr...@gmail.com wrote: So we want to verify that all apps on a phone come from the Android Market, because the setting to install apps only from the market can be turned on and off, in addition to apps being installed with adb, etc. One way I thought to do this is to make sure that it is signed by the developer of the app, or by the same certificate as it is in the Market. Even if different versions are installed, the certificate should match. Is there a way to programmatically get either the APK or the signature of the APK from the Android Market? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How do you use and debug your apps in your main phone?
You could store your data in sdcard instead of storing it in per-app storage area. Deleting the app does not wipe the data the app stores on the sdcard. The best option would be to buy a low end Android device from Craigslist/Amazon/Ebay etc. Your time is much more valuable than what a low end device would cost. On Oct 27, 6:58 pm, Ricardo Amaral mas...@ricardoamaral.net wrote: Unfortunately I only have one Android phone and it's the one I use as my main phone and development phone. I was wondering how everyone copes with using your own apps and developing them at the same time with a single phone. I'm constantly uninstalling/installing my app and wiping it's data. What if I really need to use my app and can't afford to lose the current data. How am I supposed to debug a different version on the same phone? Maybe I'm missing something basic here... How do you guys manage this? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Suspended Account - Please Help - Red Alert
Are you saying that you have no option to petition your case/provide your side of the story/change the app to get rid of the said infringing features? If that is indeed the case it is downright unfair at the least. On Oct 25, 7:59 am, burton miller burton.mil...@gmail.com wrote: Only a single view is a webview, and we reformat the stories specifically for android to make them look good. We have a lot of native functionality. Our customers love us. We give the little guys a chance to have an app. I swear, we are the good guys. On Oct 24, 5:40 pm, Zsolt Vasvari zvasv...@gmail.com wrote: So you are saying you have hundreds of apps that are probably just a WebView displaying the content of somebody else's blog. And you got your accountsuspendedfor doing that. I have one word for that: HORAY On Oct 25, 8:18 am,burtonmiller burton.mil...@gmail.com wrote: My developer account has beensuspended. I create apps for blogs and news sites, and Google took down a handful of them for trademark issues last month. I am happy to resolve any conflicts or problems, but I can't get in touch with anyone! I have over half a million customers - and a legitimate business model! Please - someone help us. Dianne, Guy, anybody. We are willing to change apps, remove them, whatever. 6 or 7 apps out of hundreds were removed. There is no number to call - nobody to talk to. We replied to the email - and we haven't heard back. Every hour we are shut down is killing us. We have been building this customer base for six days a week for THREE YEARS. Please help! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: How to debug in app billing - does not work with debug key?
Thanks a ton Nikolay and Laminina for responding to this. This is what I was looking for. I am able to make progress now. Again, thank you very much. --MB. On Aug 29, 9:07 pm, laminina jennys.jen...@gmail.com wrote: What i know is that you can build the project in eclipse using you production keystore...but edit the android manifest to debuggable to true first... then run the APK and whenever you are in the area wher eyou want todebugopen DDMS from eclipse and you will see your package running there in the list...select your pacakge and click de bug icon that will attach the process to eclipse project...and from there you can start putting breakpoint... i hope this is what you were looking for. :) On Aug 29, 8:25 pm, MB manoj.bi...@gmail.com wrote: Hi, I am able to run the sample application (Dungeons.apk) for in-app billingwhen signed with production key. However when I try todebugit in eclipse, it gives the error that This application is not configured for marketbilling. Is there some way todebugin-appbillingin eclipse? I would really appreciate any pointers in resolving this. Thanks, --MB. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to debug in app billing - does not work with debug key?
Hi, I am able to run the sample application (Dungeons.apk) for in-app billing when signed with production key. However when I try to debug it in eclipse, it gives the error that This application is not configured for market billing. Is there some way to debug in-app billing in eclipse? I would really appreciate any pointers in resolving this. Thanks, --MB. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Patent Infringement notice by Lodsys.
How is this different from promoting your app via mobile ads? What if you annotated the link to your paid app as an advertisement? On Jul 6, 12:09 am, LostKid appi13...@gmail.com wrote: Hi We have a game 'Pocket Bingo' which is live in market. Recently got a Fedx from lodsys for a patent infringement on In-App billing. The notice asked us to take down a feature in the game, through which we redirected users to paid version of pocket bingo on the market. Lodsys not only has targeted iOS developers but android developers as well. I believe Apple has stepped in to help out fellow iOS developers. I wish to contact Google and get their attention and their guidance before i could reply to lodsys notice. Can any one please help me and let me know how do i contact Google about this. Also are there any other fellow developers who face the same problem. Any help is appreciated. Thanks -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: att's outright refusal to play fair and stomping on the....
You can still side load software on ATT phones. Its not as convenient as OTA but it works. On Jul 31, 7:46 am, tdog65 taylor6...@gmail.com wrote: spirit of what i thought droid would stand for. Completly open sourced with the owner choosing where to download from. Without rooting, is it possible to get around att outright defiance at what droid stood for in the beggining. By not allowing apk from other respectible markets to be installed and forceing u to take on almost a gig of bloatware in the process. I bout to buy an infuse from art where I have unfortunately bundled all my services at. I wonder if this will alienate some of there long term consumers. I loved my captivate 1 1/2 years ago but the andriod has left it's first pasture the marketplace and now it is grazing in at least 5 other pastures. Good grass(apps) there too. Hope Att or some trick wil allow me to without worrying about the warranty. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Ratings on market are gone
Nope, not fixed yet. On Aug 1, 11:00 am, MarcoAndroid marco...@gmail.com wrote: Should be fixed it seems. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Strange behavior after signing build with release keystore
Make sure that your login screen and main screen are separate Activities. If you are modeling these as Views inside an activity, then you you would have to take care of save/restore as part of the activity life cycle. On Jul 29, 12:27 pm, draf...@gmail.com draf...@gmail.com wrote: Having some really strange bugs with my Android application at the minute, it I run it from Eclipse it runs fine, pretty much perfect. It contains a login screen that I can access and get to my main screen fine when running through Eclipse. When I press the home key and return to my application it returns to the last position (Activity) the application was in. However when I release sign a build and deploy it on the device it has different behavior,after going through the login screen when I press home and then return to the application the login screen always appears. Code is identical in both builds, only difference is one is signed with the default debug keystore while the other is signed with my own release keystore. Has anyone come across this? Its really confusing! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: HorizontalScrollView automatically scrolling
After digging a little further: The scrolling is caused by HorizontalScrollView.onSizeChanged. The HSV gets the currently focused item and makes sure that it is visible in the scroll in the new size, with the following code (from the HSV source): View currentFocused = findFocus(); if (null == currentFocused || this == currentFocused) return; final int maxJump = mRight - mLeft; if (isWithinDeltaOfScreen(currentFocused, maxJump)) { // [Scroll the view] } I don't know what View had focus according the framework, but it was trying to scroll it into view. I'm also unclear why this was only happening when a ListView was shown - it's possible that the ListView declares itself focusable and the LinearLayout doesn't. I fixed the issue by subclassing HorizontalScrollView to return null from findFocus(). I'm still able to click on elements within the HSV - I suspect that navigating the UI with a d-pad might not work. If someone has a non-hack solution let me know... Mike On May 4, 10:35 am, MB michael.bushei...@thoora.com wrote: Hello, I am developing for Honeycomb, and I have aHorizontalScrollViewwith a number of panels that make up the UI. The rightmost panel changes its content, sometimes displaying a ListView. I also have a sliding drawer that, when opening or closing, causes theHorizontalScrollView to resize. When theHorizontalScrollViewresizes, it also jumps to show the rightmost panel, which I don't want. But this only happens when the panel contains a ListView - when the panel contains a LinearLayout theHorizontalScrollViewdoesn't change it's position when resizing. The only similar issue I found while searching is this:http://stackoverflow.com/questions/1878623/listview-in-a-horizontalsc..., but it's triggered by an adapter changing data rather than a resize. How can I stop this automatic scrolling? Thanks, Mike -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] HorizontalScrollView automatically scrolling
Hello, I am developing for Honeycomb, and I have a HorizontalScrollView with a number of panels that make up the UI. The rightmost panel changes its content, sometimes displaying a ListView. I also have a sliding drawer that, when opening or closing, causes the HorizontalScrollView to resize. When the HorizontalScrollView resizes, it also jumps to show the rightmost panel, which I don't want. But this only happens when the panel contains a ListView - when the panel contains a LinearLayout the HorizontalScrollView doesn't change it's position when resizing. The only similar issue I found while searching is this: http://stackoverflow.com/questions/1878623/listview-in-a-horizontalscrollview-in-android, but it's triggered by an adapter changing data rather than a resize. How can I stop this automatic scrolling? Thanks, Mike -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Tiled Bitmap sometimes doesn't tile...
I'm also seeing similar, strange behavior using tiled bitmaps. I'm building for Honeycomb, and have a number of Views with backgrounds defined in the following selector drawable: ?xml version=1.0 encoding=utf-8? selector xmlns:android=http://schemas.android.com/apk/res/android; item android:state_pressed=true android:drawable=@drawable/tiled_bitmap_1 / item android:drawable=@drawable/tiled_bitmap_2 / /selector Here are the two xml resources for the tiled bitmaps: ?xml version=1.0 encoding=utf-8? bitmap xmlns:android=http://schemas.android.com/apk/res/android; android:src=@drawable/tile1 android:gravity=clip_vertical android:tileMode=repeat / ?xml version=1.0 encoding=utf-8? bitmap xmlns:android=http://schemas.android.com/apk/res/android; android:src=@drawable/tile2 android:gravity=clip_vertical android:tileMode=repeat / tile1 and tile2 are the same size, both in the same drawable-hdpi folder. On all views, tiled_bitmap_2, the default state drawable, always tiles correctly. tiled_bitmap_1 (the pressed state drawable) tiles correctly on some views, but not on others. Strangely, if I switch tiled_bitmap_1 and tiled_bitmap_2 in the background selector, both backgrounds always tile correctly. If I change tiled_bitmap_2 to another tiled bitmap - tiled_bitmap_3 - in the project, the tiling works correctly. But I then tried copying the xml for tiled_bitmap_3 into a new file, tiled_bitmap_3_copy, and used that copy as the pressed state drawable, and the tiling for the pressed state became inconsistent. Even though the two xml files are identical! Anyone have an idea on what could be causing this behavior? Mike -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 do you counter repeated bogus reviews from competitors?
Hi Brill, Thanks a lot for the response and the suggestions. I updated the app description with a one liner indicating what our specific competitor has been upto. Given how sensitive an app's quality perception is based on top reviews, I really wish Android market provided their vendors/ developers a way to respond to comments esp. to users who frequently update/touch their comments. Thanks, --MB. On Apr 24, 9:55 pm, Brill Pappin bpap...@sixgreen.com wrote: By the way, I just read your open letter. Maybe a more impartial database needs to be set up listing these jokers. Some way we can all report this kind of thing with rules for how companies get on it and how they get off it. - Brill Pappin On Apr 24, 6:55 pm, MB manoj.bi...@gmail.com wrote: Hi, I am the developer of Android app Gps Ski Maps. We are really frustrated with competitor writing bogus review about our app(by buying app multiple times under different accounts and repeatedly touching the reviews). I am wondering how do you deal with this? What steps do you take to prevent such abuse of Android Market? We expected some bogus reviews, but not at the scale we saw in Android Market. Our app is available on both Android and Blackberry. The spammy review problems has been really a problem only on Android. Blackberry reviews( both good and bad:-)) have been mostly genuine as far as I can tell. The details of our particular case are written here, but I am more interested in figuring out the counter steps. http://goo.gl/pilTF Thanks, --MB (Developer. Gps Ski Maps) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How do you counter repeated bogus reviews from competitors?
Hi, I am the developer of Android app Gps Ski Maps. We are really frustrated with competitor writing bogus review about our app(by buying app multiple times under different accounts and repeatedly touching the reviews). I am wondering how do you deal with this? What steps do you take to prevent such abuse of Android Market? We expected some bogus reviews, but not at the scale we saw in Android Market. Our app is available on both Android and Blackberry. The spammy review problems has been really a problem only on Android. Blackberry reviews( both good and bad:-)) have been mostly genuine as far as I can tell. The details of our particular case are written here, but I am more interested in figuring out the counter steps. http://goo.gl/pilTF Thanks, --MB (Developer. Gps Ski Maps) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Charging for updates in Android market - officially announced but can't find how to enable/use it?
Hi, The following post on the official blog mentions that developers can charge for updates. But I am unable to find any option/documentation in the market console regarding that. http://android-developers.blogspot.com/2011/02/new-merchandising-and-billing-features.html I would really appreciate if someone could provide me pointers regarding this. Thanks, --MB. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Reviews showing up in developer account but not in Android market.
It would be really developer friendly if Android market showed comments in English as well, perhaps behind a button click if not by default. In a lot of European countries, even though the primary language is not English(eg. Germay, France, Denmark), most users are reasonably fluent in English. A single 1 star comment (despite above average ratings) adversely impacts the quality perception of an app. With no option of responding to the comment or providing our side of the story, the current systems is extrmely biased against developers. --MB On Mar 6, 10:36 pm, Zsolt Vasvari zvasv...@gmail.com wrote: So true... On Mar 7, 2:01 pm, brian purgert brianpurge...@gmail.com wrote: I get worse reviews from non english speaking people for some reason. So its good they don't show up for me. On Mar 6, 2011 10:06 PM, Zsolt Vasvari zvasv...@gmail.com wrote: The comment won't show up if the person who wrote it has a device set to use a different language than the person viewing the comments. It's just another puzzling decision by the Market team as: a) The comment may still be in English, regardless of the phone's setting b) The star rating by itself has some value On the other hand, applications written for a different country DO show up even though they are completely useless outside of their country. For example, if you look at the Finance category, it's littered with apps written for the Korean and Japanese markets. On Mar 7, 10:36 am, MB manoj.bi...@gmail.com wrote: Hi, I've a few reviews that show up in my developer account but they do not show up in the Android market. - I've checked the Android market both on the website (market.android.com) as well as on the device (Verizon droid). -These reviews are a few week to a few months old. I would really appreciate if anyone could provide any explanation for why this would happen. Thanks, --MB. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en-Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Reviews showing up in developer account but not in Android market.
Hi, I've a few reviews that show up in my developer account but they do not show up in the Android market. - I've checked the Android market both on the website (market.android.com) as well as on the device (Verizon droid). -These reviews are a few week to a few months old. I would really appreciate if anyone could provide any explanation for why this would happen. Thanks, --MB. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Poor relevancy in Android market since yesterday.
Hi, I am noticing that the Android market search results have become extremely irrelevant since yesterday. This change in search quality(for the worse) is a recent one. Is anyone else noticing this? I haven't seen any official communication from Android market team on their blog regarding any changes in Android market search algorithm. Here are a few examples. 1.) Search for 'english news'. The first result is'NIV Bible', the second result is an app in Asian (non-English) language, the third result is 'China daily'. 2.) Search for 'trail map'. The first app has nothing to do with trail maps. The fourth app onwards are apps in Asian (non-English) languages. Thanks, --MB -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Gallery selected item doesn't show selected state color
Hi there, In my app, I'm using a gallery with an Array of strings, and an ArrayAdapter. I'm using a colorStateList for the text color, to show the selected item in green. When the user interacts with the gallery, dragging, clicking or flinging, the green color appears correctly for the selected item. But the initial selected item doesn't show in green. And if I programmatically set the selected index of the gallery, the selected item doesn't' show in green. I didn't find this issue in my searches. I have defined the TextView used to display the strings in a layout file, gallery_item.xml TextView xmlns:android=http://schemas.android.com/apk/res/android; android:layout_height=match_parent android:layout_width=wrap_content android:textColor=@color/gallery_text_color /TextView The color state list is: selector xmlns:android=http://schemas.android.com/apk/res/android; item android:state_selected=true android:color=#ff9aca3c/ item android:state_focused=true android:color=#ff9aca3c/ !-- Just to be safe -- item android:color=#/ /selector Does anyone know why the initially selected TextView would be showing the default white color? I get a callback to onItemSelected with position == 0, so I know the item is being selected. Just the formatting is off. Thanks, MB -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] How to add content rating for an app in Android market?
Has this (the ability to add content rating to an app) been rolled out yet? http://android-developers.blogspot.com/2010/11/content-rating-for-android-market.html Thanks, --MB -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: ScaleGestureDetector wrapper for reflection.
Thanks a ton for the response. This is extreemely useful. I really really appreciate your response. On Nov 19, 12:19 am, String sterling.ud...@googlemail.com wrote: I got around it by copying ScaleGestureDetector.java from AOSP to my own package. I was then able to implement a wrapper class by following the guidelines inhttp://android-developers.blogspot.com/2010/07/how-to-have-your-cupca... HTH, String On Nov 19, 7:36 am, MB manoj.bi...@gmail.com wrote: Hi, The ScaleGestureDetector constructor takes an object that implements the OnScaleGestureListener interface. How does one write a wrapper for class like ScaleGestureDetector? Any time you implement an interface for 'OnScaleGestureListener', it would give an error. It consistently reproduces on Samsung Galaxy devices running 2.1. I would really appreciate any pointers regarding this. Thanks, --MB. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] ScaleGestureDetector wrapper for reflection.
Hi, The ScaleGestureDetector constructor takes an object that implements the OnScaleGestureListener interface. How does one write a wrapper for class like ScaleGestureDetector? Any time you implement an interface for 'OnScaleGestureListener', it would give an error. It consistently reproduces on Samsung Galaxy devices running 2.1. I would really appreciate any pointers regarding this. Thanks, --MB. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Devices where install from unknown sources is not allowed.
Hi Chris, Thanks for the response. Can you please elaborate on getting around this using the SDK ? At one point Telus ( a Canadian carrier) used to do this for blackberry devices. Users were able to get around this using Desktop manager, which was officially supported(it still is) by RIM. Thanks a lot once again for sharing info regarding the Sideload wonder machine Thanks, --MB. On Nov 1, 10:33 pm, Chris Stratton cs07...@gmail.com wrote: From what I've heard it sounds like it's ATT in general. Note that you can work around this using the SDK or end-user packaging of the same capability as the sideload wonder machine On Nov 1, 1:37 pm, MB manoj.bi...@gmail.com wrote: I would really appreciate if someone could point me to a list of devices/carriers where install from unknown sources is not allowed. For e.g. I can confirm that HTC Aria (offered by ATT) does not allow install from sources other than market. Thanks, -MB. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Devices where install from unknown sources is not allowed.
Hi, I would really appreciate if someone could point me to a list of devices/carriers where install from unknown sources is not allowed. For e.g. I can confirm that HTC Aria (offered by ATT) does not allow install from sources other than market. Thanks, -MB. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Devices where install from unknown sources is not allowed.
HTC Aria does not even have an option where in user can enable installation of apks outside market. ATT/HTC has blocked it. I am looking for an explicit list of names of such devices/carriers. On Nov 1, 11:19 am, DanH danhi...@ieee.org wrote: Any device where Allow installation of non-Market applications is not checked. On Nov 1, 12:37 pm, MB manoj.bi...@gmail.com wrote: Hi, I would really appreciate if someone could point me to a list of devices/carriers where install from unknown sources is not allowed. For e.g. I can confirm that HTC Aria (offered by ATT) does not allow install from sources other than market. Thanks, -MB. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: AESObfuscator is very slow
Android emulator is superrr slow. After a while and some complaining, you will get used to the slowness. There are quite a few discussions on this group as to why it is slow compared to iphone/other emulators. I bet on a real device it would be at least 10x faster. Still, you should do license check in a separate thread since it involves network connectivity. On Oct 27, 9:45 pm, John Gaby jg...@gabysoft.com wrote: I am trying to implement the Market License Checker, and am following the sample application. I am using the AESObfuscator class, but find that it takes a VERY long time (23 seconds on the emulator) to instantiate, which greatly delays the startup of my application. Is this normal, or am I doing something wrong? If it is normal, can I put the license check in a separate thread, or does it need to run in the main thread? 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: Speed from GPS
What device/OS are you trying it on? It works fine on my droid. On Oct 26, 3:54 am, tarek attia tarek.m.at...@gmail.com wrote: Dear all, Just in my application I want to get the speed of the android device using the GPS,so I use the api of location.getspeed() http://developer.android.com/reference/android/location/Location.html... However all the speed I got is just incorrect ,,,and the values are very different from the actual one Any clue on that ??? -- tarek -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Distribution channels for android apps other than marketplace.
Hi, I would really appreciate if some of the experienced developers could share what channels other than the android market place they use for distributing their apps for android devices. From what I have researched so far, 'getjar' looks promising for distributing the lite version. I would really appreciate any insights/comments regarding any channels that are good or any that we are better off avoiding. Thanks, --MB. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Smooth scrolling within a custom view - how to?
Okay, I figured this out. The framework provides computeScroll for this. On Oct 20, 3:35 pm, MB manoj.bi...@gmail.com wrote: Hi, I would really appreciate any insights regarding the following. Any pointers/hints/thoughts on this would be very helpful. I have wasted quite a bit of time on this. I have a custom view that needs to scroll internally. Currently the way I do it is to re-draw the View when I detect fling/scroll gestures. It works but is extremely jerky when the scroll amount is large. I am trying to make the custom view scroll smoothly similar to the way ListView does. I've looked at the 'Scroller' class but couldn't figure out how to make it work with a View. The only solution I've figured out so far is to start a 'Timer'/Thread on large Scrolls and manually post invalidates. This is obviously undesirable from a performance perspective since every fling/large scroll creates a Timer/Thread. I do not want to use ScrollView. The custom view is laid out within a RelativeLayout. Thanks, --MB. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Uploading an app to the Market for testing
You would have to quickly publish and then un-publish the app to test LVL in your app. This is the only way I could figure out. If you figure out something better please share it with the group. This is what I had to do for testing LVL even with the sample LVL code. --MB. On Oct 21, 8:49 am, Bret Foreman bret.fore...@gmail.com wrote: I've just added LVL and server-based licensing into my (as-yet unpublished) app. It appears that the license testing requires that the app exist in the Android Market. Is there a way to publish an app to the Market but keep it hidden while I test? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Droid 2: Cannot download to this device.
Nathan, why don't you publish your free app outside the market place as well? Its always better to have direct relationship with the users of your product. On Oct 20, 8:07 am, Nathan critter...@crittermap.com wrote: Customer says that he can't download my free app and gets the message. Cannot download to this device Is this yet another glitch in the Android Market for which he needs to go to Android Market Support and be ignored? Or is there something I, or the customer can do about it? Nathan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Smooth scrolling within a custom view - how to?
Hi, I would really appreciate any insights regarding the following. Any pointers/hints/thoughts on this would be very helpful. I have wasted quite a bit of time on this. I have a custom view that needs to scroll internally. Currently the way I do it is to re-draw the View when I detect fling/scroll gestures. It works but is extremely jerky when the scroll amount is large. I am trying to make the custom view scroll smoothly similar to the way ListView does. I've looked at the 'Scroller' class but couldn't figure out how to make it work with a View. The only solution I've figured out so far is to start a 'Timer'/Thread on large Scrolls and manually post invalidates. This is obviously undesirable from a performance perspective since every fling/large scroll creates a Timer/Thread. I do not want to use ScrollView. The custom view is laid out within a RelativeLayout. Thanks, --MB. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: automotive related project ideas
How about an app that does offline routing? You would get a lot of ATT, T-mobile customers. On Oct 8, 9:59 am, DanH danhi...@ieee.org wrote: The automotive test tool business is fairly big. Mostly they use specialized equipment, but there may be a niche for using a phone with some sort of dongle to read computer info, do ignition analysis, etc. Trucking companies may be in the market for specialized apps for tracking their routes, etc. Otherwise, how about an app that just shoots the driver if he attempts to text while driving? ;) On Oct 8, 8:55 am, kalyan kumar kalyankumar2...@gmail.com wrote: Hi Guys, Can any one help me by providing some innovative automobile(car ) related projects. -- k.kalyankumar -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Undetectable Android Service
What's the use case you are trying to address? On Oct 8, 4:21 am, Amit Mangal forum.amit.man...@gmail.com wrote: Hi, Is it possible to write a background service in android which is undetectable ? it should not me present is app manager also. Thankyou -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: reliable app store?
Why don't you sell/make the app available on your own website? On Oct 8, 3:27 am, Éva Lovrencsics lovi...@gmail.com wrote: Hello all, I think it's a common problem. I'd like to sell my apps, but my country is not supported for merchants already. Do you know a reliable app store where I can sell apps? Evi -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Testing licensing on emulator.
Hi, I was able to resolve this. This is what needs to be done. 1.) The app needs to have been published at some point for test console settings to work. I published and then quickly unpublished the app. 2.) The app needs to be uploaded as a paid app. I had to sign up for a Google merchant account so that I could upload the 'sample lvl app' as a paid app. Thanks, --MB. On Oct 6, 10:47 am, MB manoj.bi...@gmail.com wrote: I followed all the steps in this doc before I posted here. I am already signed in with my publisher account on an AVD running Google Inc. 2.2. There are some threads on this group indicating the app needs to be published. Is it really the case that an app needs to be published just fortestinglicensing? On Oct 6, 8:43 am, Moto medicalsou...@gmail.com wrote: Read the Android Licensing tutorial they cover what you need to do:http://developer.android.com/guide/publishing/licensing.html#acct-signin -Moto On Oct 6, 2:22 am, MB manoj.bi...@gmail.com wrote: Hi, I amtestinglvl using the sample application (after changing package name and uploading the apk). But it always returns 'Licensed' on the emulatoreven though I've set the test response to 'Not Licensed'. The following thread indicates that LVL cannot be tested with draft applications and will always return 'Licensed'. So how does one test LVL on theemulator? I am sure something as basic as this must be supported. But I am unable to figure out how to do it. I would really appreciate any pointers regarding this. I've wasted quite a bit of time on this poring over the licensing doc and other threads. http://groups.google.com/group/android-developers/browse_thread/threa... Thanks, --MB. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 (dalvik) performance question for API design
In the 'Size' approach, wouldn't there have to be a NullPointerCheck in place of the ArrayBoundsCheck? I usually use the 'Size' approach when the return values are Object types and 'array[]' approach for primitive data types. I never really thought of these from a performance perspective. Please do share your findings if you do any experiments etc. On Oct 7, 9:35 am, DanH danhi...@ieee.org wrote: With a fully optimized JIT they'd be identical. With a dumb JIT or interpretive code I'd guess that the Size approach would have a slight edge (no need to check array bounds, et al), but it's hard to say with any certainty. (A lot depends on how well optimized instance field access is, and there's potential for a 100:1 variation there.) In any event, the amount of time difference you're talking about is negligible compared to many other operations that go on inside a typical Android application. A single tweak of a single character on the display would be thousands of times greater. On Oct 7, 10:34 am, webmonkey webmonke...@gmail.com wrote: Taking into account JIT and non-JIT devices, what would be most efficient on Android for returning multiple values from functions: an array like this: float[] bestSize(float [] result) { // calculations... result[0] = width; result[1] = height; return result; } or a final class like this: Size bestSize(Size result) { // calculations... result.width = width; result.height = height; return result; } Where Size is defined as: public final class Size { public float width; public float height; } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Testing licensing on emulator.
Hi, I am testing lvl using the sample application (after changing package name and uploading the apk). But it always returns 'Licensed' on the emulator even though I've set the test response to 'Not Licensed'. The following thread indicates that LVL cannot be tested with draft applications and will always return 'Licensed'. So how does one test LVL on the emulator? I am sure something as basic as this must be supported. But I am unable to figure out how to do it. I would really appreciate any pointers regarding this. I've wasted quite a bit of time on this poring over the licensing doc and other threads. http://groups.google.com/group/android-developers/browse_thread/thread/41d79e8849e14154/83e23ac79fa93e2a?lnk=gstq=testing+licensing+in+emulator#83e23ac79fa93e2a Thanks, --MB. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Testing licensing on emulator.
I followed all the steps in this doc before I posted here. I am already signed in with my publisher account on an AVD running Google Inc. 2.2. There are some threads on this group indicating the app needs to be published. Is it really the case that an app needs to be published just for testing licensing? On Oct 6, 8:43 am, Moto medicalsou...@gmail.com wrote: Read the Android Licensing tutorial they cover what you need to do:http://developer.android.com/guide/publishing/licensing.html#acct-signin -Moto On Oct 6, 2:22 am, MB manoj.bi...@gmail.com wrote: Hi, I am testing lvl using the sample application (after changing package name and uploading the apk). But it always returns 'Licensed' on the emulator even though I've set the test response to 'Not Licensed'. The following thread indicates that LVL cannot be tested with draft applications and will always return 'Licensed'. So how does one test LVL on the emulator? I am sure something as basic as this must be supported. But I am unable to figure out how to do it. I would really appreciate any pointers regarding this. I've wasted quite a bit of time on this poring over the licensing doc and other threads. http://groups.google.com/group/android-developers/browse_thread/threa... Thanks, --MB. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Speeding up builds on large projects - rename png to PNG
Thanks for the tip!! On Sep 16, 4:32 pm, David Brackeen brack...@gmail.com wrote: I ran into a problem of slow builds and thought I'd share the solution. I'm porting an iPhone app to Android, and as soon as I added the images to the project (400+ pngs), build time went from about 5 seconds to about 40 seconds. This is on a new machine, quad core i7, 8GB ram. The resource processor (aapt) was to blame. Every time I made a change to a layout xml file and hit save - bam, wait 40 seconds. After running aapt in verbose mode, it was obvious what was happening - aapt does png optimization every single time. Optimization is slow, and aapt only used one core. So it makes sense to turn this optimization off. Just run optipng once, no need to optimize every build or every time I save a layout xml file. So how do you turn png optimization off? You can't. There is no Eclipse setting, no command line option for aapt. Digging around the aapt source, I noticed something funny though - it only optimizes images in the drawable folders that end in .png.http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;... Solution: rename all the pngs to end in uppercase .PNG. Then aapt simply copies the files without optimizing. My build time is back to 5 seconds! (Caveat: this won't work for nine-patch files - they still need to end in lowercase .9.png.) -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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 browser certificate issue
My guess is that the date/time on Mathew's device is wrong. Digital certificates have an expiry date that the browser will validate against the time on the device. On Aug 12, 8:05 pm, TreKing treking...@gmail.com wrote: On Wed, Aug 11, 2010 at 2:41 AM, Mathew mathewandma...@gmail.com wrote: What to do? I'm sure you've tried clearing the cache and cookies, right? --- -- 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: onCreate, onStop..... super.onCreate, super.onStop... called before code or after?
By this logic, super.onStop and super.onDestroy would need to be called after the implementation of the more specific class. On Jul 31, 7:50 pm, Satya Komatineni satya.komatin...@gmail.com wrote: Probably there are exceptions to every rule. In this particular instance I would probably have the base class complete its work before I do the work of the derived. May be a poor parallel, but if I am constructing a multi-story house, I would want to finish the base floors and move on to the upper floors. Another thought is, a derived class comes later in conception than the base class. So a derived class can anticipate what a base class does on the otherhand baseclass designers would not have known what the derived class would have done. In case of a constructor, the compiler will tell you that you have to call the super first. However if I know that I am not altering the state of the base class, such as logging a message, I could put that method either before or after. Also if you want the behavior of the base class to be a default one after you have exhausted your options such as attending to menus, then you want to call the base super last. In the particular case of onCreate, as it resembles construction, I go with calling the super first. Hope this reflection helps Satya Komatinenihttp://www.satyakomatineni.comhttp://www.androidbook.com On Sat, Jul 31, 2010 at 10:26 PM, Moto medicalsou...@gmail.com wrote: This might be a simple question but I'm seeing the super call at the end of the overwritten function and also at the start of the function. What is recommended? any differences on this? I feel very beginner with this question... :P i.e. �...@override protected void onCreate) { super.onCreate(); // some code } or �...@override protected void onCreate() { // some code super.onCreate(); } -Moto -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Satya Komatinenihttp://www.satyakomatineni.comhttp://www.androidbook.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: Help: service auto restarts on breakpoint when debugging a service
How did you conclude that the service is auto-starting? Put some 'Log.d()'s in your code in onCreate to confirm auto-starts. I've noticed in the debugger that at times, you have to 'step/next' twice to get over a statement. On Jul 29, 1:59 pm, Ahmad ahmad.mobass...@gmail.com wrote: I have not received any answer on this. Is anyone from google/android reading this? I can't believe this to be an isolated issue. I am sure others have come to/ or will come to it. Any pointer to this will be appreciated. On Jul 22, 3:35 pm, Ahmad ahmad.mobass...@gmail.com wrote: I am trying to run the sample soft keyboard included in the SDK. I am using the debugger, and the literature says that to use a breakpoint while debugging aSERVICE, I need to include: android.os.Debug.waitForDebugger(); So here is the portion of the code I modified: @Override public void onCreate() { /* now let's wait until the debugger attaches */ android.os.Debug.waitForDebugger(); super.onCreate(); // breakpoint 1 mWordSeparators = getResources().getString(R.string.word_separators); // breakpoint 2 } I have put a couple of breakpoints, at the statements indicated by the comments. This is what happens: the debugger first stops at the breakpoint1, for a few seconds. But then theservicerestarts. For the life of me I can't figure out what makes theserviceto restart. Any ideas? Thanks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Dev. tools are good enough except emulator is unusable for file i/o.
Mark, this consistently reproduces for us for file i/o to serialize/ unserialize binary files using DataOutput/InputStream. I will try to create a HelloWorld testcase for this. My experience is same as Leigh. The same piece of code compiled to run for Rim's Os runs superfast on blackberry emulators. On Jul 22, 3:55 pm, Mark Murphy mmur...@commonsware.com wrote: On Thu, Jul 22, 2010 at 6:43 PM, MB manoj.bi...@gmail.com wrote: I am able to get most of the work done using the available dev tools with the exception of anything that has to do with file i/o. File read operations that just take a few seconds on real device take more than 5 minutes on emulator. Its reproducible on both linux and windows. I have taught hundreds of students with hands-on Android training, with a wide range of hardware. None have experienced this problem to the best of my knowledge. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.1 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Dev. tools are good enough except emulator is unusable for file i/o.
I am able to get most of the work done using the available dev tools with the exception of anything that has to do with file i/o. File read operations that just take a few seconds on real device take more than 5 minutes on emulator. Its reproducible on both linux and windows. On Jul 22, 12:07 pm, sampullman sampull...@gmail.com wrote: If you're good with emacs, I would suggest using it for android development. I used eclipse for a bit and couldn't stand it.. it slowed me down enormously, and it hides a lot of lower level stuff that I think is very useful to know if you're serious about developing. You have to customize emacs a bit for it to be efficient enough for android programming, but I think it's worth it in the long run. Sam On Jul 22, 12:17 am, Doug d...@hyper-aware.com wrote: I use Eclipse daily, both professionally and personally. It's a fine tool. If you don't like the logcat in Eclipse (I don't), run `adb logcat` from a terminal. Run `adb logcat | grep 'yourtag'` if you want just your apps' messages. The emulator is just fine. It can take a while to launch, but it is not terribly that slow if you leave it running. If you have a compute- intense app, then you may have a problem. If you have a compute-intense app, then modularize your code and write JUnit unit tests that can run on your dev machine instead of the emulator. Please explain to me millions of c++ projects! Doug -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: make app as default app
Users have an option to change the default browser, default video player. They should have an option to change the default dialer/incoming call handler. It looks more like a missing feature than a security hole. On Jul 20, 4:28 am, Mark Murphy mmur...@commonsware.com wrote: On Tue, Jul 20, 2010 at 5:28 AM, Sandeep sandeep.phanse...@gmail.com wrote: I am developing a dialer application. programatically its possible to make my application/ Activity as a default apps/ Activity ? or can i hide the default incoming caller screen ? There is no supported API for this, and if there were, it would be a security hole. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.1 Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: General Activity Order Question
Why don't you do this? MainActivity In OnCreate. if(userloggedon) showLoggedOnView else showLoginScreenView --MB. On Jul 17, 10:11 am, Gaelin gaelint...@gmail.com wrote: First I have my app running currently and its working fine, I just question how I implemented it. I come from a linear C++ background and this Activity/Intent thing is a little new to me. Here is how my app works currently (order of activities started) (- = Starts Activity, - = Returns from activity) MainActivity - Login Activity - onActivityResult function displayListOfItems ... I am wondering if I should switch the starting intent as follows: LoginActivity MainActivity function displayListOfItems ... The issue I had with the second scenario was that pressing the back hard key would take me from the MainActivity back to the LoginActivity and I didn't like this. I guess to sum up my question, is it normal for the MainActivity to handle all subsequent starting of activities or is it common to do a more linear implementation? --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] File operations extremely slow on emulator - totally stuck.
Hi, I am finding that file operations are extremely slow on emulator. The same operation which takes less than a few seconds in a real device, takes minutes on an emulator. I am using a ubuntu linux machine with 2.4Ghz CPU, 2 GB Ram. I would really appreciate any help in resolving this. I am totally stuck due to this. Thanks, --MB. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Which Android service path to choose for implementing a large upload?
What do you mean by an IntentService? A singleton object running a Thread would be easier to implement and would probably port out of the box on other java based platforms. However it would have the following drawbacks: - Android only treats Activities and Services as components. So if you are using a singleton object to do the grunt work, your process would become a candidate to be killed with higher probability in low memory conditions. - Notifications require a Context in android. So a singleton object would not be able to issue notifications. I would suggest using a Service. On Jul 17, 5:20 pm, Frank Weiss fewe...@gmail.com wrote: My suggestion is to look at some sample code, like Romain Guy's PhotoStream. Although PhotoStream does a Flickr download instead of an upload, the application structure covers services, AsyncTask (albeit an early version thereof), notifications, etc. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: File operations extremely slow on emulator - emulator is unusable.
Anyone else experienced this ??? I've tried on both linux and windows XP. The problem persists on both platforms. Its hard to believe that Android emulator is so bad. It is virtually unusable. On Jul 18, 11:15 pm, MB manoj.bi...@gmail.com wrote: Hi, I am finding that file operations are extremely slow on emulator. The same operation which takes less than a few seconds in a real device, takes minutes on an emulator. I am using a ubuntu linux machine with 2.4Ghz CPU, 2 GB Ram. I would really appreciate any help in resolving this. I am totally stuck due to this. Thanks, --MB. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Rapid Android Development with AML, looking for feedback
Hi Jeff, 1.) How is AML different from using HTML with Webview? 2.) I would use it right away if it were available for RIM's OS. That platform can immensely benefit from a well supported and efficiently implemented markup language for UI. Thanks, --MB. On Jul 13, 8:14 pm, Jeff Rowberg jeffrowb...@gmail.com wrote: Hello again everyone, Due to the response I got from DZone, I've migrated my AML project to its own website, which you can find here: http://www.amlcode.com My quest for feedback and input from the Android development community is still going on though, so if anyone has any suggestions, ideas, criticism, anything at all, I'm wide open to what you have to say. Specifically, here's what I'm trying to find out: 1. Would you use this for your own app? 2. What would it need to do in order to be most useful? Jeff -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Attach debugger to a process running in the emulator via eclipse.
Hi, Is there some way to attach debugger to a process running in the emulator via eclipse? I am trying to debug the following scenario. 1.) Kill a process via pressing the red terminate button from Debug perspective in eclipse. 2.) Relaunch the app in emulator. When the app is relaunched in step 2.), I want to step through the debugger. I am unable to figure out a way to attach debugger to a process running in the emulator. I would really appreciate any pointers regarding this. Thanks a lot, --MB. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Attach debugger to a process running in the emulator via eclipse.
Yes, it is enabled. I killed the process in step 1.) via the suspend/ terminate button in the eclipse debugger gui. After the process is killed I re launch it in the emulator. When it is relaunched, I want to re-attach the debugger. On Jul 13, 12:47 am, Kostya Vasilyev kmans...@gmail.com wrote: Is debugging enabled in your application's manifest? You can only debug applications that are marked for debugging. -- Kostya 13.07.2010 11:44, MB пишет: Hi, Is there some way to attach debugger to a process running in the emulator via eclipse? I am trying to debug the following scenario. 1.) Kill a process via pressing the red terminate button from Debug perspective in eclipse. 2.) Relaunch the app in emulator. When the app is relaunched in step 2.), I want to step through the debugger. I am unable to figure out a way to attach debugger to a process running in the emulator. I would really appreciate any pointers regarding this. Thanks a lot, --MB. -- Kostya Vasilev -- 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] GPS beacon icon does not go away after LocationManager.removeUpdates
Hi, I would really appreciate any ideas regarding the following. Not disabling the GPS would sap all the battery. The GPS beacon icon does not go away even though I invoke LocationManager.removeUpdates in onDestroy. This consistently reproduces in the emulator. I have verified in the debugger that the following is happening correctly: - onCreate: call LocationManager.requestLocationUpdates - onDestroy: call LocationManager.removeUpdates I have tried different values for update interval and distance. I have also included a small testcase showing the issue at the end of this post. Thanks, --Mano public class TestActivity extends Activity { public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.test); startGps(); } public void onDestroy() { stopGps(); super.onDestroy(); } private static long UPDATE_INTERVAL = 1000; //1000ms or 1s private static float MIN_DISTANCE_FOR_UPDATE = 1; //must move by 1m for update. LocationManager _locationManager = null; void startGps() { try { _locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE); //_locationManager.removeUpdates(_locationListener); _locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, UPDATE_INTERVAL, MIN_DISTANCE_FOR_UPDATE, _locationListener ); } catch(Exception ign) { } } void stopGps() { if(_locationManager != null) { _locationManager.removeUpdates(_locationListener); } _locationManager = null; } private LocationListener _locationListener = new LocationListener() { public voidonLocationChanged(Location location) { if(location!= null) { Toast.makeText(TestActivity.this, Location changed, Toast.LENGTH_SHORT).show(); } } public void onProviderDisabled(String provider) { } public void onProviderEnabled(String provider) { } public void onStatusChanged(String provider, int status, Bundle extras) { if(status == LocationProvider.AVAILABLE) { Toast.makeText(TestActivity.this, LocationProvider.AVAILABLE, Toast.LENGTH_SHORT).show(); } else if(status == LocationProvider.TEMPORARILY_UNAVAILABLE) { Toast.makeText(TestActivity.this, LocationProvider.TEMPORARILY_UNAVAILABLE, Toast.LENGTH_SHORT).show(); } else if(status == LocationProvider.OUT_OF_SERVICE) { Toast.makeText(TestActivity.this, LocationProvider.OUT_OF_SERVICE, Toast.LENGTH_SHORT).show(); } } }; }; -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: Application installed twice - may be key pwd change
Hi James, I did not try changing back the pwd to original pwd. Now all the news users have only one icon, but the old users, from first version have 2 icons. Even if I change it back to old key pwd now,am not sure it will install twice or once. It could be a possibility that If i change the pwd to old one, the new users who have only one icon, will get another now, as the pwd is changing. So still wondering,what could be the solution. Could you pls advise. Thanks, AndyDev On May 7, 6:31 am, James Wang jameswangc...@gmail.com wrote: First, If you did sign your app twice with differect key, the second time installation is supposed to be failed. But the fact is not. Have you tested with key password changing back? If you found the first installed app was replaced, I think you get cause. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email 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] How to create a layout like this - multiple scrollable ExpandableListViews in a vertical linearlayout?
Hi, I would really appreciate any insights/pointers regarding creating a layout like this. I have wasted quite a bit of time on this. I want to create a vertical linearlayout which has multiple ExpandableListViews separated by TextViews. - TextView - ExpandableListView - TextView - TextView - ExpandableListView - ExpandableListView I tried the following approaches but each of them has one shortcoming or the other: 1. Add TextView and ExpandableListViews to a linearlayout. The problem with this approach is that LinearLayout by default is unscrollable. Adding the LinearLayout to a ScrollableView creates even more issues because ListViews handle their own scrolling behavior. 2. I tried using a single ExpandableListView to model the above layout but the problem is that setGroupIndicator applies to the entire ExpandableListView, not a specific group. Thanks, --Manoj. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Button click event not working 2.1
Hi, I am new to Android development and I am currently working through a tutorial but have already run into a brick wall. I am trying to handle a simple button click following some sample code but can't get it to work. I do not get any errors, but the click does not register on the emulator. I have set breakpoints and confirmed that the handler never gets executed. I have attached the complete code below. Any help would be appreciated. package com.test.HelloWorld; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.RadioButton; import android.widget.TextView; public class mainPage extends Activity { TextView dollars; TextView euros; TextView debug; RadioButton dtoe; RadioButton etod; Button convert; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); dollars = (TextView)this.findViewById(R.id.dollars); euros = (TextView)this.findViewById(R.id.euros); debug = (TextView)this.findViewById(R.id.Debug); dtoe = (RadioButton)this.findViewById(R.id.dtoe); etod = (RadioButton)this.findViewById(R.id.etod); dtoe.setChecked(true); debug.setText(Program Started..); convert = (Button)this.findViewById(R.id.convert); convert.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generated method stub if (dtoe.isChecked()) { convertDollarsToEuros(); } if (etod.isChecked()) { convertEurosToDollars(); } } }); } protected void convertDollarsToEuros() { double val = Double.parseDouble(dollars.getText().toString()); euros.setText(Double.toString(val*0.67)); debug.setText(euros.getText()); } protected void convertEurosToDollars() { double val = Double.parseDouble(euros.getText().toString()); dollars.setText(Double.toString(val/0.67)); } } -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Application installed twice - may be key pwd change
Hi All, I had an application which was installed correctly on the phone.Later I had released an upgrade.Now the application was installed twice. I did not change any package name, but I changed the Key password while signing the application. I think this is the problem.Now the application is installed twice on many apps, and they see two icons on the Menu.One from first version, and other from 2nd version. Can anyone pls suggest what to do now. Thanks a ton in advance, AndyDev -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] onLocationChanged - differences between emulator 1.5 and emulator 2.1
Hi, I would really appreciate if an experienced Android developer could provide their insights regarding the following. I am testing requestLocationUpdates/onLocationChanged on emulator using Eclipse emulator control in Debug perspective. Everything works as expected when I test on emulator running AVD 2.1. (Both manual mode and GPX file works as expected) However when I run the same code on emulator running AVD 1.5, onLocationChanged is never called. onStatusChanged is called only once with TEMPORARILY_UNAVAILABLE only once. I found the following link regarding this. http://code.google.com/p/android/issues/detail?id=2545 However there are lot of conflicting comments in this thread. I would really appreciate if someone could clarify the following: 1.) Does the onLocationChanged bug exist only the Android 1.5 emulator or does it also reproduce on real devices running Android 1.5? 2.) How do you write code that needs periodic location updates that works on all Android versions including 1.5? Thanks, --MB. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email 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: onLocationChanged Not Calling
I am facing a similar issue on emulator running 1.5. It does not happen on emulator running 2.1 You can find more details regarding these difference in the following thread (A few comments are conflicting). http://code.google.com/p/android/issues/detail?id=2545 Perhaps this bug exists even on real devices running firmware 1.5. I hope some experience developers can comment on this. What is the firmware version on your Tatoo? On Apr 30, 7:46 am, Nithin nithin.war...@gmail.com wrote: Hi, I write a class which implements LocationListener. Its just listeneing to the location. I tried the code in Tatoo, but its not working. The code is.. public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); lm = (LocationManager) getSystemService(Context.LOCATION_SERVICE); lm.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, this); tv = new TextView(this); latLongString = Lat: + currLat + \nLong: + currLong; tv.setText(latLongString); setContentView(tv, new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT)); } public void onLocationChanged(Location location) { // TODO Auto-generated method stub System.out.println( onLocationChanged :: ); if (location != null) { latLongString = Lat : + location.getLatitude() + Long : + location.getLongitude(); Log.i(onLocationChanged(): , latLongString); Toast.makeText(this, latLongString, Toast.LENGTH_SHORT).show(); tv.setText(latLongString); } else { latLongString = Location not found; tv.setText(latLongString); } // tv.invalidate(); } onLocationChanged is not calling at all. GPS is enabled in the device and I put all permissions in manifest also. uses-permission android:name=android.permission.ACCESS_COARSE_LOCATION / uses-permission android:name=android.permission.ACCESS_FINE_LOCATION / Nithin -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email 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: droidfanz.com -- what does it take to get them taken down?
If the market supported dynamic licensing, this would not be an issue. Perhaps there is a proper avenue to approach the Market dev team to give priority to this enhancement. Its highly unlikely that rants on a developer group would reach the right people. Even RIM and all the blackberry app stores(the unofficial ones) support it. Its not an issue on those stores. On Apr 29, 11:33 am, plusminus stoeps...@gmx.de wrote: Same here. I'd beat them up... but that's illegal xD On 21 Apr., 08:28, Edward Falk ed.f...@gmail.com wrote: Found my paid app on their site. This is hardly a new issue; why are they still in business? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email 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 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: Announcement: DynaDroid - an open source micro-framework for Android
Thanks a lot for sharing this. What is the minimum SDK version supported by the framework? Does it support API level 3 (Android 1.5)? On Apr 24, 5:28 pm, Brian Knorr btkn...@gmail.com wrote: Hello all, We developed the popular mobile travel application TripCase (http://www.tripcase.com) natively for the iphone, backberry, winmo, and recently Android. We really like the Android framework compared to the others, but found some of it's concepts like Activities to be very cumbersome when dealing with screen based applications like ours. We have many forms and workflows, lots of viewable and editable data, and we make many calls to our back-end Rails server. In order to streamline our development efforts on Android we created a small convention-based micro-framework which we are calling DynaDroid and would like to open it up to the Android community for use. http://code.google.com/p/dynadroid/ Here are some of the features that you get with DynaDroid: * The entire micro-framework is housed within a singe Activity, so sharing data between screens is finally easy again. * Code by convention and all your xml layouts and menus are dynamically available. * Screen management for pushing, popping, and swapping screens (all with transition animations). * Screen orientation (landscape, portrait) can be controlled on a screen by screen basis. * Error reporting support built-in, so if your app crashes a report is sent to you. And there is more to come: * More dynamic coding conventions - let's get rid of all those if/ else and case statements! * Built-in screen analytics for tracking user interaction * Simplified device to server communication with xml/json parsing and automatic error handling * Extensions to Android UI components without all the plumbing * Easier to use api for interacting with device capabilities (camera, gps, phone, etc..) We would love your feedback on the micro-framework...so please let us know what you would like in the future. And if you have any questions or issues our Google group is located here: http://groups.google.com/group/dynadroid Remember DynaDroid is already being used in the production Android application TripCase, so it's been thoroughly tested and is ready for prime-time. Enjoy! Brian Knorrhttp://www.starterstep.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 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: Alarms/Wake Locks/Sound notification question
Perhaps, for the sound notification to fire, the screen should be on. Try acquring wakelock using different flags. I would start with SCREEN_DIM_WAKE_LOCK and move all the way up to FULL_WAKE_LOCK. On Apr 27, 9:43 am, code_android_festival_way festival.s...@googlemail.com wrote: Hmm does really no one got an idea what could be wrong here? Regards On 25 Apr., 19:44, code_android_festival_way festival.s...@googlemail.com wrote: Well you are right that this will drain the battery pretty heavily. At the moment I am using the broadcast which gets fired every n seconds and gets caught by the receiver which handles the notifications in its onReceive method. But well the problem remains. I haven't found a possibility to get the sound noitification working during the wake lock. If someone has got a solution for that problem I would love hearing about it. :) On 25 Apr., 17:17, Mark Murphy mmur...@commonsware.com wrote: code_android_festival_way wrote: What do you mean exactly by that? Well I know that 30 seconds or even lower is very frequent but I would let the user decide how often he would like to be notified. I mean you may chew up a fair bit of battery life constantly cycling through processes, starting and stopping receiver and/or service components every 30 seconds. I'd use the battery blame screen in Settings to test and see how bad this is in reality. -- Mark Murphy (a Commons Guy)http://commonsware.com|http://twitter.com/commonsguy _Beginning Android 2_ from Apress Now Available! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group 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 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 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] KeyListener not working as expected
Hello All, I am trying to implement a basic program. I have a EditText view, and want to set a KeyListener to it. Here is the code below. myText.setOnKeyListener(new View.OnKeyListener() { public boolean onKey(View view,int keyCode,KeyEvent ke) { Log.d(TAG,”Into on key”); return true; } }); As it is returning true, the onKey method is called for all keys from keyboard on screen, but the typed text does not appear on the EditText view. If I return false, the onKey method is called for only meta keys like Backspace (keyboard on screen),and the typed text does appear on the EditText view. I want to typed text on the EditText view, and work for all keys from keyboard on screen(default Qwerty keyboard). Where am I making mistake. Could anyone pls let me know. Thanks, MB -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe, reply using remove me as the subject.
[android-developers] 2D and 3D plotting application
Guys, any previous work on apps that does math plots/graphs? This might be a 2D or 3D plot/graph. What apis available to help in this? Also, similar apps to build charts and bars graphs. regards, --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: android.app.Application global application variable store
I have now sorted my problem. I used an ExpandableListView so globals were not needed. On Feb 3, 10:55 am, MB marcus.mm.bur...@googlemail.com wrote: How would you useglobalvariables? That is what I would like to do. I have different files for each Activity so I was not sure how to have globals across them. I need the LinkedList to be shared over various Activities so I can use data from it without replication. On Feb 2, 6:02 pm, Dianne Hackborn hack...@android.com wrote: Just make a subclass, put its name in the application tag in your manifest, and retrieve it from the activity and cast it to your class. Though personally I would just useglobalvariables for this kind of stuff. On Sun, Feb 1, 2009 at 5:29 AM, MB marcus.mm.bur...@googlemail.com wrote: I want to create aglobalvariablestorefor a list of user defined objects. I have a LinkedList of Feed (a user defined object) that I need to be made available to a new Activity that is created. This list is displayed using a ListView and so when an item of the ListView is clicked, I need the correct Feed index to be 'passed' to the new Activity. I have no problem doing this as I create an Intent and then pass the id of the selected row. I need the new Activity to have access to the LinkedList of Feed objects. There are different ways to do this (explained here - http://code.google.com/android/kb/framework.html). I want to use the option (quoted from link above): The android.app.Applicationclass The android.app.Applicationis a base class for those who need to maintainglobalapplicationstate. It can be accessed via getApplication() from any Activity or Service. It has a couple of life- cycle methods and will be instantiated by Android automatically if your register it in AndroidManifest.xml. I want to use the above method as I could then fill the LinkedList at applicationstart and then use it throughout without any duplicates etc. Does anyone know how the android.app.Applicationclass can be used as aglobalvariablestorethat can be accessed from other classes? I cannot find any more information on this method of passing information between Activities within a singleapplication. Any information regarding passing user defined objects would be useful and specifically how to get the above idea to work. Cheers, MB. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: android.app.Application global application variable store
How would you use global variables? That is what I would like to do. I have different files for each Activity so I was not sure how to have globals across them. I need the LinkedList to be shared over various Activities so I can use data from it without replication. On Feb 2, 6:02 pm, Dianne Hackborn hack...@android.com wrote: Just make a subclass, put its name in the application tag in your manifest, and retrieve it from the activity and cast it to your class. Though personally I would just use global variables for this kind of stuff. On Sun, Feb 1, 2009 at 5:29 AM, MB marcus.mm.bur...@googlemail.com wrote: I want to create a global variable store for a list of user defined objects. I have a LinkedList of Feed (a user defined object) that I need to be made available to a new Activity that is created. This list is displayed using a ListView and so when an item of the ListView is clicked, I need the correct Feed index to be 'passed' to the new Activity. I have no problem doing this as I create an Intent and then pass the id of the selected row. I need the new Activity to have access to the LinkedList of Feed objects. There are different ways to do this (explained here - http://code.google.com/android/kb/framework.html). I want to use the option (quoted from link above): The android.app.Application class The android.app.Application is a base class for those who need to maintain global application state. It can be accessed via getApplication() from any Activity or Service. It has a couple of life- cycle methods and will be instantiated by Android automatically if your register it in AndroidManifest.xml. I want to use the above method as I could then fill the LinkedList at application start and then use it throughout without any duplicates etc. Does anyone know how the android.app.Application class can be used as a global variable store that can be accessed from other classes? I cannot find any more information on this method of passing information between Activities within a single application. Any information regarding passing user defined objects would be useful and specifically how to get the above idea to work. Cheers, MB. -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] android.app.Application global application variable store
I want to create a global variable store for a list of user defined objects. I have a LinkedList of Feed (a user defined object) that I need to be made available to a new Activity that is created. This list is displayed using a ListView and so when an item of the ListView is clicked, I need the correct Feed index to be 'passed' to the new Activity. I have no problem doing this as I create an Intent and then pass the id of the selected row. I need the new Activity to have access to the LinkedList of Feed objects. There are different ways to do this (explained here - http://code.google.com/android/kb/framework.html). I want to use the option (quoted from link above): The android.app.Application class The android.app.Application is a base class for those who need to maintain global application state. It can be accessed via getApplication() from any Activity or Service. It has a couple of life- cycle methods and will be instantiated by Android automatically if your register it in AndroidManifest.xml. I want to use the above method as I could then fill the LinkedList at application start and then use it throughout without any duplicates etc. Does anyone know how the android.app.Application class can be used as a global variable store that can be accessed from other classes? I cannot find any more information on this method of passing information between Activities within a single application. Any information regarding passing user defined objects would be useful and specifically how to get the above idea to work. Cheers, MB. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] android.app.Application global application variable store
I want to create a global variable store for a list of user defined objects. I have a LinkedList of Feed (a user defined object) that I need to be made available to a new Activity that is created. This list is displayed using a ListView and so when an item of the ListView is clicked, I need the correct Feed index to be 'passed' to the new Activity. I have no problem doing this as I create an Intent and then pass the id of the selected row. I need the new Activity to have access to the LinkedList of Feed objects. There are different ways to do this (explained here - http://code.google.com/android/kb/framework.html). I want to use the option (quoted from link above): The android.app.Application class The android.app.Application is a base class for those who need to maintain global application state. It can be accessed via getApplication() from any Activity or Service. It has a couple of life- cycle methods and will be instantiated by Android automatically if your register it in AndroidManifest.xml. I want to use the above method as I could then fill the LinkedList at application start and then use it throughout without any duplicates etc. Does anyone know how the android.app.Application class can be used as a global variable store that can be accessed from other classes? I cannot find any more information on this method of passing information between Activities within a single application. Any information regarding passing user defined objects would be useful and specifically how to get the above idea to work. Cheers, MB. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---