[android-developers] Google Allo App Technicalities.

2016-09-29 Thread William Jones
What is the difference between the technicalities of whatsapp and Google Allo app? -- 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] Accept License Switch for Android.bat

2016-04-02 Thread William Davis
Using a build system I have to download several different Android Apis using the Android sdk update etc. commands. Several times this requires me to accept licenses. Which I have to do by piping in "echo 'y'" to the command. The tools should provide a switch to allow for automatic license

[android-developers] Google maps in Webview

2016-01-29 Thread William Chan
Hi there! I just built an app with a webview to display my responsive website, but some of the Google maps in the webview are not showing up. Is there something I should be importing or including? Thank -- You received this message because you are subscribed to the Google Groups "Android

[android-developers] Android Studio Android App

2016-01-11 Thread William Henry King
Is there any way I can request that Google's Android team code an official Android Studio app for the Play Store, so that we android developers can develop apps on Android itself? And by Android I mean the Remix OS 2.0. The Alpha version is set to be released on the 12th of Jan (tomorrow). By

[android-developers] Re: Where to ask questions about Android Dev API level 9?

2016-01-07 Thread Clint William Theron
this forum makes me sad. you don't tell me why you don't answer my questions On Wednesday, January 6, 2016 at 2:13:12 PM UTC+2, Clint William Theron wrote: > > Hi. Just what the questions say. > -- You received this message because you are subscribed to the Google Groups "Andr

[android-developers] Where to ask questions about Android Dev API level 9?

2016-01-06 Thread Clint William Theron
Hi. Just what the questions say. -- 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. To post to this group,

[android-developers] How to replace FloatingActionButton icon with my own icon in Android Studio 1.5.1?

2015-12-31 Thread Clint William Theron
Hi super beings:-) Can you tell me how to change the icon of a

[android-developers] Re: Replacing the settings menu(...) with button items.

2015-12-31 Thread Clint William Theron
The menu I'm talking about is contained in the following markup: -- 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] Replacing the settings menu(...) with button items.

2015-12-31 Thread Clint William Theron
Hi power code writers:-) I chose one of your templates (I think it's the blank or empty one) and I really like the top-right menu, it's the one with the three dots vertically on top of each other. Anyway, when we tap this button a popup container appears with the word settings in it. I hope you

Re: [android-developers] question for my app

2015-12-29 Thread William Garcia
If I may interject for a quick response to be in order. Replace your.app.id.here with your actual app id. On Dec 20, 2015 10:54 PM, "mrjasna100" wrote: > erm the link isn't working > > On Monday, December 21,

[android-developers] App gives error when trying to run it.

2015-12-16 Thread Clint William Theron
Hi awesome people:-) After creating a project from the templates I get an error when I try to run the app. I think something went wrong downloading the sdk. How can I reinstall/download only the sdk and not Android Studio? Thank you in advance ps The image attached is a screenshot of the error

[android-developers] Creating a list like the one in android dev guidlines

2013-08-24 Thread William Reed
Hey guys I was going through the android dev guidelines and came upon this awesome list looking thing that would be awesome to have in my app http://i.stack.imgur.com/oLZ5V.png You can see the list on the left phone with the little picture and then the three lines of text. That is exactly what

[android-developers] Re: Creating a list like the one in android dev guidlines

2013-08-24 Thread William Reed
Maybe something like this but with an image view? http://stackoverflow.com/questions/8841283/gmail-like-listview-with-checkboxes-and-using-the-actionbar -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

Re: [android-developers] When to show a dialog from Fragment and when not to

2013-04-15 Thread William Ferguson
the fragment is visible and can trigger a dialog. For situations where fragment is in the background you could use a Toast perhaps? -- H On Apr 14, 2013, at 4:25 PM, William Ferguson william@xandar.com.aujavascript: wrote: I have a Fragment that fires an async task to connect

[android-developers] Re: When to show a dialog from Fragment and when not to

2013-04-15 Thread William Ferguson
Hi Piren, what is an appropriate definition of Started in this instance? WIlliam On Monday, April 15, 2013 1:17:36 AM UTC+10, Piren wrote: Check the fragment state before showing, it should be Started, if not, keep a flag saying that says this dialog needs to be shown. Check for the flag

[android-developers] Re: When to show a dialog from Fragment and when not to

2013-04-15 Thread William Ferguson
#show that occur from a delayed handler need to first check to make sure the Fragment is still resumed or potentially face the same issue. Or have I missed something? William On Monday, April 15, 2013 6:51:09 PM UTC+10, Piren wrote: Errr... we need a damn edit button here. i meant: since having

[android-developers] When to show a dialog from Fragment and when not to

2013-04-14 Thread William Ferguson
the dialog, but if that is not an option, then what do I use to determine whether the dialog should be displayed or not? William -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers

Re: [android-developers] Re: Can this variable become null?

2013-03-15 Thread William Ferguson
of objects with indefinite life spans. If you know what you are doing, fine. But it's similar to the mantra we give kids don't run with scissors. William -- -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email

[android-developers] Re: Can this variable become null?

2013-02-25 Thread William Ferguson
You should access it with a getInstance method which will initialize it if it is null. You should initialize the variable in the class initialization and declare it 'final'. There are times when you cannot do this, in which case probably Singleton is the wrong choice. For the rest

[android-developers] Re: Alpha ordering ListPreference values to suit current locale

2013-02-04 Thread William Ferguson
localisation of those resources. William On Monday, February 4, 2013 10:46:44 PM UTC+10, lbendlin wrote: As I said, I would create a SQLite table with locale, language code and language title. Then you can do a database query that filters by the current locale and retrieves language code

[android-developers] Re: Alpha ordering ListPreference values to suit current locale

2013-02-04 Thread William Ferguson
, 2013 5:07:36 PM UTC+4, William Ferguson wrote: But that gains nothing over adding them as static lists inside the resource files. It's not like I'm going to changing the names of countries on a daily basis. In either case I will need to construct the ordered lists for each Locale

[android-developers] Re: Alpha ordering ListPreference values to suit current locale

2013-02-03 Thread William Ferguson
displayed by a ListPreference are in alpha order for the current locale? William On Saturday, February 2, 2013 12:50:49 PM UTC+10, lbendlin wrote: smells like a database driven custom preference to me. On Friday, February 1, 2013 9:13:09 PM UTC-5, William Ferguson wrote: What's the optimal way

[android-developers] Alpha ordering ListPreference values to suit current locale

2013-02-01 Thread William Ferguson
itemEnglisch/item itemSpanisch/item itemFinnisch/item /string-array Should I replicate the keys and values in all resource locales and change their order to suit? Or is their some way that I haven't found yet where I can readily apply a sort to the ListPreference keys and values? William

[android-developers] Re: Unmanaged items in v3 billing API?

2013-01-30 Thread William Ferguson
Managed consumable items in V3 are the replacement for unmanaged items in V2. I think it is a good move. It has greatly simplified the concept IMHO. And the V3 API looks much, much better. William On Thursday, January 31, 2013 3:56:04 AM UTC+10, Michael Parker wrote: Hi all, Reading http

Re: [android-developers] How to specify an IntentFilter that only activates when the Intent comes from within my own app?

2013-01-14 Thread William Ferguson
OK, now that we've established that I have zero choice but to construct my own chooser Intent, what have I missed in the code below? NB this seems so fragile. I feel like I'm having to make too many assumptions how how the Android framework works. /** * Creates a Chooser Intent

Re: [android-developers] How to specify an IntentFilter that only activates when the Intent comes from within my own app?

2013-01-13 Thread William Ferguson
/plain to also make themselves available. @EveryoneElse if you are thinking BroadcastReceivers, LocalBroadcastManager etc then you're on the wrong tangent, this is about starting an Activity. William On Monday, January 14, 2013 4:16:56 AM UTC+10, Mark Murphy (a Commons Guy) wrote: Please do

Re: [android-developers] How to specify an IntentFilter that only activates when the Intent comes from within my own app?

2013-01-13 Thread William Ferguson
Activities available to respond, including my own Activity. But I don't want my own Activity to be able to respond to text/plain shared from another app. Hence why android:exported=false sounds like the perfect solution. William On Monday, January 14, 2013 7:46:34 AM UTC+10, Kristopher Micinski wrote

Re: [android-developers] How to specify an IntentFilter that only activates when the Intent comes from within my own app?

2013-01-13 Thread William Ferguson
a custom chooser and inject my Activity into it. William On Monday, January 14, 2013 7:47:54 AM UTC+10, Mark Murphy (a Commons Guy) wrote: On Sun, Jan 13, 2013 at 4:39 PM, William Ferguson william@xandar.com.au javascript: wrote: @Mark @Kristopher really? the doco for android:exported

[android-developers] How to specify an IntentFilter that only activates when the Intent comes from within my own app?

2013-01-12 Thread William Ferguson
(Intent.EXTRA_TEXT, content); final Intent chooserIntent = Intent.createChooser(shareIntent, Share via)); context.startActivity(chooserIntent); William -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email

Re: [android-developers] How to specify an IntentFilter that only activates when the Intent comes from within my own app?

2013-01-12 Thread William Ferguson
within my app. Ie it shouldn't be available from within other apps. William On Sunday, January 13, 2013 4:12:39 PM UTC+10, Joman Chu wrote: Does android:exported=false do what you want? See http://developer.android.com/guide/topics/manifest/activity-element.html#exported On Sun, Jan 13

[android-developers] Re: How to add AdMob

2013-01-11 Thread William Ferguson
Admob forum: https://groups.google.com/forum/?fromgroups=#!forum/google-admob-ads-sdk I believe this is now a redundant setting. Just set it to Use test mode setting set in client code William On Friday, January 11, 2013 3:54:10 PM UTC+10, askl wrote: wow thank very much for your fast

[android-developers] Re: How to add AdMob

2013-01-10 Thread William Ferguson
You can leave testDevices in there, it won't hurt. And yes you can use it for all your Activities. NB you may be better off asking Admob questions on the Admob newsgroup. Though you have received some pretty good responses here. William On Friday, January 11, 2013 3:26:28 PM UTC+10, askl wrote

[android-developers] How to avoid useless getView in GridView

2013-01-08 Thread William Guy
I have tested GridView behavior in getView() , and i got: 01-08 11:18:55.925: E/getView(4113): Position: 0, Child Count: 0, ConvertView: Null 01-08 11:18:55.945: E/getView(4113): Position: 0, Child Count: 0 01-08 11:18:55.955: E/getView(4113): Position: 1, Child Count: 1, ConvertView: Null

[android-developers] How to avoid useless getView in GridView?

2013-01-08 Thread William Guy
I have tested GridView behavior in getView, and i got: 01-08 11:18:55.925: E/getView(4113): Position: 0, Child Count: 0, ConvertView: Null 01-08 11:18:55.945: E/getView(4113): Position: 0, Child Count: 0 01-08 11:18:55.955: E/getView(4113): Position: 1, Child Count: 1, ConvertView: Null

[android-developers] Re: Reg: Automatic Time Setting Request

2013-01-03 Thread William Ferguson
You need to set your app up as a listener to an NTP server. On Friday, January 4, 2013 3:47:21 PM UTC+10, Kondlada wrote: HI All, I am looking to get absolute Time from the mobile Carrier as My app dependency on current time, Where can not trust the Android System Time

Re: [android-developers] Replacement for MODE_WORLD_READABLE

2013-01-01 Thread William Ferguson
that be done later since #onCreate is called on every App startup? William On Monday, December 31, 2012 8:45:57 AM UTC+10, Mark Murphy (a Commons Guy) wrote: On Sun, Dec 30, 2012 at 5:24 PM, William Ferguson william@xandar.com.au javascript: wrote: So considering the use case how do I

Re: [android-developers] Replacement for MODE_WORLD_READABLE

2013-01-01 Thread William Ferguson
Thanks Tre, as one of the ACRA committers I have pretty good idea of what's involved. But it's too heavy weight and not transparent enough to the user. Yes I could build it, but I'd rather spend effort elsewhere. William On Monday, December 31, 2012 1:54:41 PM UTC+10, TreKing wrote: On Sun

[android-developers] Replacement for MODE_WORLD_READABLE

2012-12-30 Thread William Ferguson
how do I rebuild without using MODE_WORLD_READABLE? William -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android

[android-developers] Re: AdMob House Ads

2012-12-07 Thread William Ferguson
John, you might be better off asking this one over in https://groups.google.com/forum/?fromgroups#!forum/google-admob-ads-sdk William On Friday, December 7, 2012 12:08:44 PM UTC+10, John Coryat wrote: I know this probably isn't the best place to ask this but I haven't found another

[android-developers] Re: App crash report - InputChannel - could not read input channel file descriptors from parcel.

2012-12-06 Thread William Ferguson
I know this is a *really* old thread now, but there is a credible issue raised for it. http://code.google.com/p/android/issues/detail?id=32470 So those that are experiencing it can go and star if you want to add your weight to getting it noticed and fixed. William On Monday, October 3

[android-developers] Re: why progress dialog dismiss after rotating the screen landscap to portrait

2012-11-26 Thread William Ferguson
of reconstruction of the dialog. William On Tuesday, November 27, 2012 1:36:23 PM UTC+10, monty wrote: Hello, i am using android annotation , in my app i am using progress dialog but after rotation the screen it dismiss(why). -- You received this message because you are subscribed

[android-developers] Re: why progress dialog dismiss after rotating the screen landscap to portrait

2012-11-26 Thread William Ferguson
the FragmentManager, perhaps showing some of your code might help. William On Tuesday, November 27, 2012 2:52:20 PM UTC+10, monty wrote: but showDialog is deprecated. On Tuesday, November 27, 2012 9:43:50 AM UTC+5:30, William Ferguson wrote: It is being dismissed because during rotation your Activity

Re: [android-developers] Re: How do I fix this error

2012-11-19 Thread William Ferguson
Actually, considering the info you gave I think Lew's response was quite appropriate and not at all rude. Perhaps you should consider rephrasing your question and providing some more detail next time. William On Tuesday, November 20, 2012 11:39:07 AM UTC+10, Bear35805 wrote: Lew, I find

[android-developers] Re: random Resource$NotFoundException reports

2012-11-08 Thread William Ferguson
Exactly what Bob said. Have an app around long enough ad you will see all kinds of weird shit show up in your crash reports. William On Thursday, November 8, 2012 10:08:05 PM UTC+10, b0b wrote: I see this kind of errors from time to time. Probably due to bad installs or broken systems

[android-developers] junit classes in live Webkit code

2012-10-09 Thread William Ferguson
was burnt into and being used by a production class. I wonder whether they really meant to use the Java assert statement instead and hope it has been fixed since. The Junit Assert class shouldn't be used outside of a test harness. Has anyone else seen anything similar? William -- You received

[android-developers] Using NFC on Android

2012-10-04 Thread William Chan
Hi I'm working on a project for Uni and I was wondering which is the lowest level of the Android API I would need to use for accessing NFC functions etc. Thank you very much. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] Re: Using NFC on Android

2012-10-04 Thread William Chan
. So I shall develop on that. Thank you very much again, William Chan -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email

[android-developers] Re: Android Application Update is becoming overhead...

2012-09-25 Thread William Ferguson
One of the changes to Google Play announced at Google IO 2012 was incremental updates. You get this for free with the latest version of Google Play. Ie you don't need to do anything to enable it. On Tuesday, September 25, 2012 4:46:39 PM UTC+10, Arunprasad Rajkumar wrote: Hi All, Suppose I

[android-developers] Re: Access Web Services via SOAP on password-protected server from an Android App

2012-09-23 Thread William Ferguson
If the Request requires authentication then you're going to have to authenticate. Sounds like you'll need to provide username/password in the Request header. William On Monday, September 24, 2012 11:19:14 AM UTC+10, solnichko wrote: Hi guys, Does anyone know how I could make it possible

[android-developers] Re: Paypal in Android

2012-09-17 Thread William Ferguson
were there, so who knows. William On Tuesday, September 18, 2012 4:48:31 AM UTC+10, Lew wrote: William Ferguson wrote: Michael Leung wrote: I got a client which has an online shop using Paypal. They want to make an app which is the native android interface for their online shop. I

[android-developers] Re: Advertising opt out

2012-09-17 Thread William Ferguson
to take away the ads for the same coin. On the Ad metrics, reducing the number of ad requests to increase the CPC or eCPM doesn't increase (or even affect) the revenue. It just makes those numbers look better. William https://play.google.com/store/apps/details?id=au.com.xandar.jumblee On Tuesday

[android-developers] Re: WIN DEATH Logs

2012-09-16 Thread William Ferguson
? Is it from the UI thread? Does the service method take a long time to return? That would be the cause the WIN DEATH and the ANR. William On Monday, September 17, 2012 3:16:40 PM UTC+10, Sat wrote: Guys please reply ... On Saturday, September 15, 2012 4:28:17 PM UTC+5:30, Sat wrote: Hi All, I

[android-developers] Re: Paypal in Android

2012-09-16 Thread William Ferguson
Only if you intend to violate the terms of your agreement with Google Play . 1) You cannot use a payment mechanism other than Google Play for an app distributed via Google Play. 2) You cannot use Google Play to charge for physical goods. William On Monday, September 17, 2012 3:30:14 PM UTC+10

[android-developers] Re: Dungeons in-app billing test app cannot be found in Play Store

2012-09-09 Thread William Ferguson
of the unpublished app. William On Monday, September 10, 2012 2:35:09 AM UTC+10, Escape Radius wrote: I'm trying to test the in-app billing example, Dungeons and I'm confused about testing the app. I have complied the demo .apk, and uploaded it to my Developer Console. According

Re: [android-developers] Re: Where/how to find the Google Play identity on Android and how to send that to an AppEngine stance.

2012-08-28 Thread William Ferguson
a global identity, I just need an identity unique to my app. re: OAuth2 on Android - isn't that already available? http://code.google.com/p/google-api-java-client/wiki/OAuth2#Android William On Tuesday, August 28, 2012 3:38:02 PM UTC+10, Nikolay Elenkov wrote: On Tue, Aug 28, 2012 at 1:53 PM

Re: [android-developers] Re: Where/how to find the Google Play identity on Android and how to send that to an AppEngine stance.

2012-08-28 Thread William Ferguson
the Google Play services seems half implemented to me :-( AFAIK, it is not available yet, are you referring to the docs? https://developers.google.com/android/google-play-services/ No. Perhaps I misunderstood one of the GoogleIO sessions. They were referring to in-app billing and

[android-developers] Re: Where/how to find the Google Play identity on Android and how to send that to an AppEngine stance.

2012-08-27 Thread William Ferguson
Surely someone has dealt with this issue before .. On Friday, August 24, 2012 2:49:38 PM UTC+10, William Ferguson wrote: I asked this question on StackOverflow ( http://stackoverflow.com/questions/12015303/what-user-identity-should-be-used-to-collate-in-app-purchases-from-google-play

Re: [android-developers] Re: Where/how to find the Google Play identity on Android and how to send that to an AppEngine stance.

2012-08-27 Thread William Ferguson
with the http request, which means you need to gather it on the Android device first, which leads back to the top. Or did I miss something? William -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android

[android-developers] Where/how to find the Google Play identity on Android and how to send that to an AppEngine stance.

2012-08-23 Thread William Ferguson
as part of the purchase flow. So where/how to get it? William -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android

[android-developers] Lowest memory (storage) consuming photo file format

2012-08-21 Thread William Reed
What do you guys think the best file format is for background images? And for icons? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group,

Re: [android-developers] Obfuscating a database for in-app billing

2012-08-19 Thread William Ferguson
...@gmail.comjavascript: wrote: Take a look at Google Play licensing library, it is a good example of AES-based obfuscation. Search for AESObfuscator here http://developer.android.com/guide/google/play/licensing/adding-licensing.html BR, Przemek On 08/18/2012 03:06 PM, William Ferguson wrote

[android-developers] Obfuscating a database for in-app billing

2012-08-18 Thread William Ferguson
direction? William -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options

Re: [android-developers] Obfuscating a database for in-app billing

2012-08-18 Thread William Ferguson
Thanks Nikolay, that makes sense. Kostya, you mean obfuscate each field value independently (and yes I prefer to use a DB that writing my own file format). I haven't found any examples that do that. To which library are you referring? Have you got a URL to an example? William On Saturday

Re: [android-developers] Obfuscating a database for in-app billing

2012-08-18 Thread William Ferguson
://developer.android.com/guide/google/play/licensing/adding-licensing.html BR, Przemek On 08/18/2012 03:06 PM, William Ferguson wrote: Thanks Nikolay, that makes sense. Kostya, you mean obfuscate each field value

[android-developers] Emulate Gmail's Fragment System

2012-07-10 Thread William Swartzendruber
Gmail on tablets has a system where top level fragments can be pushed off the screen to make room for a new one. Or the fragment on the very left can hide itself when switching to portrait mode, but reappear when going back to landscape mode. How is this done? What classes are used to

[android-developers] Re: Sliding/moving fragments (like Gmail and Email app) in Honeycomb

2012-07-10 Thread William Swartzendruber
I'm also very curious about how this works. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

Re: [android-developers] Re: Simple app with commons-httpclient-3.1.jar

2012-06-28 Thread Iain William Wiseman
On 20/06/2012 7:16 p.m., Uwe Maurer wrote: Why not just use the built-in http clients? They are optimized for Android and you don't bloat your app with extra dependencies like junit. See here for more information: http://android-developers.blogspot.com/2011/09/androids-http-clients.html Uwe

[android-developers] Multiple applications with WakeLock vs. one WakeLock app

2012-05-13 Thread William Kelley
I am developing a simple GPS logger that runs as a service, getting fixes in short intervals. As I've read documentation and posts in this forum, I realize I need a WakeLock to keep the service running and logging points. Right now, without a WakeLock, my service runs fine for many hours, even

Re: [android-developers] Multiple applications with WakeLock vs. one WakeLock app

2012-05-13 Thread William Kelley
in the battery use UI so they know who to blame for killing their battery. On Sun, May 13, 2012 at 2:51 PM, William Kelley williamtkel...@gmail.comwrote: I am developing a simple GPS logger that runs as a service, getting fixes in short intervals. As I've read documentation and posts

Re: [android-developers] When using LocationManager.requestLocationUpdates, do I need a WakeLock?

2012-05-11 Thread William Kelley
On Friday, May 11, 2012 4:57:35 AM UTC-7, ste1024 wrote: Sorry for digging up this ancient topic, but an trying to find an answer to the same question. In my app so I am able to receive location updates even if I put the device to sleep, without explicitly holding a WakeLock. I came

Re: [android-developers] When using LocationManager.requestLocationUpdates, do I need a WakeLock?

2012-05-11 Thread William Kelley
Just a followup: Tasker and AutomateIt both do have Prevent device from sleeping (ie WakeLock) as permissions. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To

Re: [android-developers] Re: Long running Android service is getting recreated over and over

2012-05-10 Thread William Kelley
On Wednesday, May 9, 2012 9:40:20 PM UTC-7, Kristopher Micinski wrote: What you're doing isn't draining the battery only because of the service, but also because of the location updates you'll be getting.. GPS fixing is definitely the main battery killer here, but there are smart ways

Re: [android-developers] Re: Long running Android service is getting recreated over and over

2012-05-10 Thread William Kelley
lbendlin and gjs, thanks for the confirmation that users do indeed want long running services sometimes. And that battery life is acceptable when running GPS almost non-stop. On Thursday, May 10, 2012 8:43:11 AM UTC-7, Kristopher Micinski wrote: What are your smart ways? No matter what, the

Re: [android-developers] Re: Long running Android service is getting recreated over and over

2012-05-10 Thread William Kelley
I don't know, I haven't experienced any problems with that yet. I have set my GPS fix interval to as low as 4 seconds and as high as a few minutes (haven't tried anything over that yet) and my device hits those marks just fine. Of course, if I am outside, the fix is usually instantaneous,

[android-developers] Long running Android service is getting recreated over and over

2012-05-09 Thread William Kelley
I have a simple Android Activity with one button to start and stop a long running Android Service (which does some simple logging). As soon as I start the service, I close the app (Activity) and the service should then run in the background indefinitely. But it doesn't. At random times, the

Re: [android-developers] Long running Android service is getting recreated over and over

2012-05-09 Thread William Kelley
So, if I want a long running process (logging GPS points over several hours), I would need to use START_STICKY and then maintain some knowledge of state between service restarts. That is, save state to disk (filename that I am writing to, specifically). And since onDestroy is not called and

Re: [android-developers] Long running Android service is getting recreated over and over

2012-05-09 Thread William Kelley
Thanks. I'm not sure why long running services are frowned upon. As long as they don't overly consume resources and are done with the user's knowledge, and indeed the user *wants* the features of a long running service, then what is the harm? If a user wants to log something for a long time,

[android-developers] Re: Long running Android service is getting recreated over and over

2012-05-09 Thread William Kelley
Thanks for all the insightful comments. Too many to reply to individually so I'll just plow through them without quoting. As to RAM: RAM is a premium and yet when I look at the process running on my phone, the smallest is using 15M, while most of the others are 20M+, some up to 60M+. I don't

[android-developers] getHitRect differences in FroYo / Gingerbread / ICS?

2012-05-01 Thread William Sanville
Hello, My end result is to increase the clickable area of certain views that are small. It appears that this can be done with a TouchDelegatehttp://groups.google.com/group/android-developers/browse_thread/thread/178af525ab84b371, but in my case, there will be scenarios where one container has

[android-developers] Re: AsyncTask in Android 4.0

2012-04-20 Thread William Ferguson
months as it avoided changes of threading behaviour between sdk versions. But even good 3rd party libraries can cut down down due to changes in policy like this. William On Saturday, April 21, 2012 5:16:35 AM UTC+10, Nathan wrote: Still adjusting to the changes in Android 4.0 regarding AsyncTask

[android-developers] Looking for a favour from someone with an Android 1.6 device

2012-04-01 Thread William Ferguson
if this is a quirk of the emulator or if it is real. And if anyone has any ideas as to what the discrepancy is between the 2 builds then I'm all ears. William -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email

Re: [android-developers] Way to set android:vmSafeMode at runtime

2012-03-16 Thread William Ferguson
Of course. Perfect. Thanks Mark. Yes, I was somewhat surprised when I noted that there was no doco for vmSafeMode. But I'm not too worried as so far I just want the default in all scenarios except for V9 and V9 instances aren't going to lose than behaviour now. William On Friday, March 16

[android-developers] Way to set android:vmSafeMode at runtime

2012-03-15 Thread William Ferguson
to switch off JIT for everyone, just for the FROYO users. Does anyone know of a way to set vmSafeMode at runtime? William -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com

[android-developers] Re: Mismatch in runtime layout selection based upon size/density

2012-02-24 Thread William Ferguson
Thanks Dianne, that's clarified quite a few things for me. I guess my disconnect was started by fact that the layout qualifiers allow for a density specifier. William On Feb 25, 6:49 am, Dianne Hackborn hack...@android.com wrote: I'm not sure I am totally following you, but if you have two

[android-developers] Re: Mismatch in runtime layout selection based upon size/density

2012-02-23 Thread William Ferguson
Thanks for the review Mark. I didn't think I was going insane, just tearing my hair out. William On Feb 23, 11:15 pm, Mark Murphy mmur...@commonsware.com wrote: Replying to the list: On Thu, Feb 23, 2012 at 2:54 AM, William Ferguson william.ferguson...@gmail.com wrote: you can download

[android-developers] Re: Mismatch in runtime layout selection based upon size/density

2012-02-23 Thread William Ferguson
- layout_B_more_capabable_screens Or if I want to implement the layouts I have actually been supporting, I can collapse this to - default - layout_A_less_capabable_screens - large- layout_B_more_capabable_screens William On Feb 24, 11:09 am, Dianne Hackborn hack...@android.com wrote: Keep in mind that all densities

[android-developers] Re: Mismatch in runtime layout selection based upon size/density

2012-02-22 Thread William Ferguson
with is how the decision on which resource qualified layout is chosen. In particular why an 800*400 160dpi device is considered large-hdpi William On Feb 22, 9:35 pm, moktarul anam mokta...@gmail.com wrote: Hi William, I will suggest you to use layout weight/ weight sum ( basically instead if giving

[android-developers] Re: Mismatch in runtime layout selection based upon size/density

2012-02-22 Thread William Ferguson
Thanks Mark, I'll put something together tonight. On Feb 23, 10:07 am, Mark Murphy mmur...@commonsware.com wrote: If you create a sample project that can demonstrate the problem, I'd like to take a peek at it. On Wed, Feb 22, 2012 at 6:44 PM, William Ferguson william.ferguson

[android-developers] Mismatch in runtime layout selection based upon size/density

2012-02-21 Thread William Ferguson
choosing the layout. Is there a way to programatically determine which resource selectors have been used to choose layout? William -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers

[android-developers] Re: Why would PackageManager throw PackageNotFound for its own App Package?

2012-02-08 Thread William Ferguson
downloads I've only seen about a dozen instances in the last 6 months, but I've had 4 in the last week. I can't see anything else particularly special in the device info. William On Feb 9, 9:00 am, Doug beafd...@gmail.com wrote: If this is reported through the market, I wouldn't take it seriously

[android-developers] Why would PackageManager throw PackageNotFound for its own App Package?

2012-02-07 Thread William Ferguson
context.getPackageManager().getPackageInfo(packageName, PackageManager.GET_SIGNATURES); } catch (PackageManager.NameNotFoundException e) { throw new IllegalStateException(Could not find the package for + packageName + !!, e); } William -- You received this message because you are subscribed

[android-developers] Re: Why would PackageManager throw PackageNotFound for its own App Package?

2012-02-07 Thread William Ferguson
Hi Mark, Its on the UI thread from a button click. William On Feb 7, 11:37 pm, Mark Murphy mmur...@commonsware.com wrote: When are you calling this? One conceivable scenario would be if you are doing this a bit asynchronously from your activity (e.g., AsyncTask). If the user fired up your

[android-developers] Re: Why would PackageManager throw PackageNotFound for its own App Package?

2012-02-07 Thread William Ferguson
But I didn't feed anything after midnight. Honest On Feb 8, 3:15 am, Mark Murphy mmur...@commonsware.com wrote: Yup, definitely gremlins. :-) On Tue, Feb 7, 2012 at 8:46 AM, William Ferguson william.ferguson...@gmail.com wrote: Hi Mark, Its on the UI thread from a button click

[android-developers] Audio During a Call

2012-01-30 Thread William Qaqish
Experts, Numerous blogs state that in-call audio is not accessible however, a recent forum about the Galaxy S ( http://forums.whirlpool.net.au/archive/1637137 ) implies that you are capable of playing audio to the caller. Has access to in-call audio been now available to allow audio files

[android-developers] Re: Failed to register input channel

2012-01-24 Thread William Ferguson
Anyone? On Jan 23, 11:38 am, William Ferguson william.ferguson...@gmail.com wrote: I get about one of these errors occurring roughly every 50,000 app starts, so it's starting to occur pretty regularly now. I have never managed to make it occur on a local device so I can't check the logs

[android-developers] Re: Failed to register input channel

2012-01-24 Thread William Ferguson
Remote device so I don't have added to logcat or DDMS. On Jan 24, 8:39 pm, Marcelo Henrique marceloh...@gmail.com wrote: Device or Emulator  ?  Logcat ...  DDMS  ... is checked? 2012/1/24 William Ferguson william.ferguson...@gmail.com Anyone? On Jan 23, 11:38 am, William Ferguson

[android-developers] Two webview windows in one app

2012-01-23 Thread William
Is it possible to have 2 webview windows that each open a seperate site? The first Webview window will have 50% height and so will the 2nd one as well. If not, is it somehow possible to read 2 html pages where the first one will always be stuck, covering 50% of the screen while the bottom window

[android-developers] Failed to register input channel

2012-01-22 Thread William Ferguson
. William java.lang.RuntimeException: Failed to register input channel. Check logs for details. at android.view.InputQueue.nativeRegisterInputChannel(Native Method) at android.view.InputQueue.registerInputChannel(InputQueue.java:92) at android.view.ViewRoot.setView(ViewRoot.java:595

[android-developers] Re: Intercept and update Javascript resource loading from webview

2012-01-18 Thread William
I dont know the answer but it is an interesting attempt. Did you figure it out yet? I bet digging deep into the webview, while ugly, would do it On Jan 13, 8:45 am, Ashutosh ashuwon...@gmail.com wrote: Any idea guys?? On Jan 12, 12:11 pm, Ashutosh ashuwon...@gmail.com wrote: Hi

[android-developers] Holo Theme and Overflow Button/Menu

2012-01-11 Thread William Mann
Hi, I'm finishing up an application that has an options menu (I'm using the Galaxy Nexus for development) and using the default theme everything works fine. However, I'd like to use the Holo theme and I set that up in my Manifest file. The application still works and I like the theme, but I

  1   2   3   4   >