[android-developers] Re: Local Service vs Remote Service

2010-11-10 Thread William Ferguson
, Nov 10, 2010 at 4:29 AM, Dianne Hackborn hack...@android.com wrote: On Wed, Nov 10, 2010 at 1:25 AM, William Ferguson william.ferguson...@gmail.com wrote: Um, I think the point that Lance was trying to make was that he won't actually know about the force close UNLESS he uses the remote

[android-developers] Re: Local Service vs Remote Service

2010-11-10 Thread William Ferguson
Sorry, I may have muddled several concepts here .. I'll blame lack of sleep. I was thinking that a RuntimeException force closes an app and that there is limited opportunity to capture the failure (pre Froyo) before the app is destroyed. But if using Thread.setDefaultUncaughtExceptionHandler()

[android-developers] Re: Begging with Web Services in Android

2010-11-09 Thread William Añez
-designpatter... This will allow you to invoke your web service (Jboss) from your android client easily. I have this running on my phone. On Oct 25, 10:44 am, William Añez wecu...@gmail.com wrote: Hi guys, Im sorry if Im asking something too easy, but Im just starting programing

[android-developers] Re: One process, two live Application objects?

2010-11-04 Thread William Ferguson
. William On Nov 1, 4:07 am, Dianne Hackborn hack...@android.com wrote: That said, my recommendation to everyone is to just not subclass Application.  This gives you *nothing* you can't do in other, better ways.  In particular, a singleton directly represents what is really going on (it lives

[android-developers] Sqlite busy timeout - [was Re: error code 5: database is locked]

2010-11-02 Thread William Ferguson
to execute. On Nov 2, 9:14 pm, Kostya Vasilyev kmans...@gmail.com wrote: William, This: http://developer.android.com/reference/android/database/sqlite/SQLite...) suggests that thread-safe locking is enabled by default. Are you turning it off somewhere, perhaps? If not, I think you could try

[android-developers] Re: error code 5: database is locked

2010-11-01 Thread William Ferguson
look like there is any waiting being done. Is that an option that can be configure? for an SQLite transaction? I couldn't find anything that suggested that. Stacktrace below. William 11-01 23:40:30.173: ERROR/Database(8715): Error inserting .. crane=large length=6

[android-developers] Re: error code 5: database is locked

2010-11-01 Thread William Ferguson
I have seen some other discussions on this issue for Sqlite and the solution was to increase the busy timeout for the DB. Anyone know how that is achieved on Android? On Nov 2, 12:14 am, William Ferguson william.ferguson...@gmail.com wrote: I'm seeing the same thing. And to answer

[android-developers] AdMob Analytics?

2010-10-31 Thread William Ferguson
Is anyone using AdMob analytics to track location and events in their app? I haven't been able to find any Android relevant info for the (AdMob) analytics side of things. Can someone please point me in the right direction? Alternatively, what are you using to track location and event data? --

[android-developers] Re: How to figure out who is causing GC on my device?

2010-10-28 Thread William Ferguson
Other than the fact that it consumes CPU that could be used by your app. On Oct 29, 6:27 am, Kostya Vasilyev kmans...@gmail.com wrote: Run adb shell and then ps to get the list of running processes. Then you just need to match by process id's - 1344 and 1103. However - each process has its

[android-developers] Re: inner classes in android

2010-10-27 Thread William Ferguson
Sorry Dan, I have to strongly disagree with 'Subclasses, on the other hand, are the meat and potatoes of OO programming. IMHO subclasses are typically the most abused part of OO programming and are often a cause of obscure programming bugs. The Android API is a good case in point, many of the

[android-developers] Re: inner classes in android

2010-10-27 Thread William Ferguson
.) On Oct 27, 5:20 pm, William Ferguson william.ferguson...@gmail.com wrote: Sorry Dan, I have to strongly disagree with 'Subclasses, on the other hand, are the meat and potatoes of OO programming. IMHO subclasses are typically the most abused part of OO programming and are often a cause

[android-developers] Begging with Web Services in Android

2010-10-25 Thread William Añez
Hi guys, Im sorry if Im asking something too easy, but Im just starting programing with android and want to connect to a simple Web Service I ust created. My WebService is running in a JBoss (because i have other applicantion more complex running there, and in a short time i will connect all that

[android-developers] Re: Interface Design Question

2010-10-21 Thread William Ferguson
Let us know when you're done, I'd love to see it. Good luck. On Oct 21, 6:48 pm, argon gold argongol...@gmail.com wrote: Hi William, What happens to documents that are scrolled above the central one? Will they accumulate in a stack at the top? ==The documents that scrolled above the central

[android-developers] Re: Looking for android dev (2-10 yrs) Bangalore

2010-10-21 Thread William Ferguson
I think he meant 2-10 years old. Ie somewhere between just out of nappies and no pubes yet. Child labour, its all the rage in IT these days. On Oct 22, 8:07 am, Kostya Vasilyev kmans...@gmail.com wrote: Is that 10 years of Android experience? :) -- Kostya Vasilyev

[android-developers] Re: ResourceNotFound occurs sometimes during layout inflation

2010-10-21 Thread William Ferguson
In ActivityA's #onCreate are you invoking super#onCreate before you do any other work like starting ActivityB? On Oct 22, 6:43 am, Doug Gordon gordo...@gmail.com wrote:   My app may launch a sub-activity for a specific purpose. When that activity finishes, I get the results in onActivityResult.

[android-developers] Re: Shared Memory

2010-10-21 Thread William Ferguson
You haven't described why need to share data between these 2 applications. You could create a service that both applications interact with and make the service responsible for holding the shared data. On Oct 20, 11:14 pm, chazz chazan...@googlemail.com wrote: Hi, I am new in android

[android-developers] Re: Interface Design Question

2010-10-20 Thread William Ferguson
with the central one taking the lion's share of the vertical space. And using animations to populate each. I suspect it will be simpler to manage it yourself rather than try to force a ListView.to co-operate. William On Oct 21, 1:44 pm, argon gold argongol...@gmail.com wrote: Hi, I have uploaded

[android-developers] Re: Freeing DB resources

2010-10-19 Thread William Ferguson
I'm not doing anything re locking the DB, so I would imagine I would be getting default behaviour. But if one of Activities does: db = mySQLiteOpenHelper.getReadableDatabase(); db.exexSQL(...) or db.query(...) and the IntentService does the following BEFORE the code above has managed to

[android-developers] Re: Freeing DB resources

2010-10-19 Thread William Ferguson
be potentially freed. On Oct 18, 11:15 pm, William Ferguson william.ferguson...@gmail.com wrote: I'm not doing anything re locking the DB, so I would imagine I would be getting default behaviour. But if one of Activities does:   db = mySQLiteOpenHelper.getReadableDatabase();   db.exexSQL

[android-developers] Freeing DB resources

2010-10-18 Thread William Ferguson
I have an app with 2 Activities and an IntentService all which need to access the same SQLite Database table. What's an appropriate pattern to use? Should I create a ContentProvider that manages access to the database, ie opening/closing, querying, updating etc. And have the 3 clients all access

[android-developers] RE:FW: p--)

2010-10-17 Thread William Dizon
hey, I find a nice site recently, maybe you like it. One-stop trade services High-quality,competitive price Lowest shipping cost Fast door to door shipping. I bought some from them, good qualities with good price. interested? visit this site: luckeg.com I am sure you will love it. Yours, (--)

[android-developers] Re: User Identity

2010-10-13 Thread William Ferguson
Thanks Devdroid - I understand that. By move device I mean trade up to another physical phone (or other device). I'm looking for continuity for the user. On Oct 13, 6:19 pm, { Devdroid } webnet.andr...@gmail.com wrote: On 13 October 2010 01:57, William Ferguson william.ferguson...@gmail.com

[android-developers] User Identity

2010-10-12 Thread William Ferguson
I'm looking for a way to determine user identity so I can globally track game scores off phone. IMEI provides identity of the phone - not effective if phone is on- traded or upgraded by individual. USIM provides identity of phone carrier subscriber - assumes device is phone, and currently has a

[android-developers] Re: User Identity

2010-10-12 Thread William Ferguson
will periodically wipe abandoned anonymous accounts. It's definitely more work work this way, but I think it's favourable to the users. I'd be interested to know if anyone else has found a good solution that's less work. Tom. On 12 October 2010 22:55, William Ferguson william.ferguson

[android-developers] Re: User Identity

2010-10-12 Thread William Ferguson
knowing a private password for that user identity), then it seems to be better for them to tell you the information you want rather than the app to be taking their identity out of somewhere else such as their Google accounts. On Tue, Oct 12, 2010 at 2:55 PM, William Ferguson william.ferguson.au

[android-developers] Re: Anybody experiencing a boost in sales since opening up to other countries?

2010-10-10 Thread William Ferguson
SpyMyApp tracks downloads rather than sales. See http://androidblogger.blogspot.com/2010/10/spy-my-apps-application-for-developers.html?utm_source=feedburnerutm_medium=feedutm_campaign=Feed%3A+PlanetAndroidCom+%28Planet+Android%29utm_content=Google+Reader On Oct 9, 4:40 pm, JonFHancock

[android-developers] Re: Any proposed changes to the Android Market?

2010-10-07 Thread William Ferguson
But that's just down to how the Google/Apple marketing departments put the spin on it. If it was 15,000 apps that really deliver vs a horde of apps of dubious quality, then a good marketing department should be able to run hard with that. It could be pitched as an accelerated Darwinian

[android-developers] Re: List of task killers

2010-10-07 Thread William Ferguson
Unfortunately, poor application implementation by some developers has made Task Killers a necessity. I would hazard that between 10-20% of the apps that I have downloaded contiue to consume CPU cycles in the background for hours after I have stopped using the app. There are a bunch of apps on my

[android-developers] Re: Possible to check .apk signature?

2010-10-07 Thread William Ferguson
Thanks for the clarification Dianne. On Oct 8, 10:39 am, Dianne Hackborn hack...@android.com wrote: On Wed, Oct 6, 2010 at 3:44 PM, DanH danhi...@ieee.org wrote: Supposedly PackageInfo.signatures[0] gives you the signature. However, there's a Catch22:  You can't get the signature until the

[android-developers] Keeping IntentService alive even if app is killed

2010-10-07 Thread William Ferguson
I have an app that occassionally starts an IntentService (bundled in the same app) in which to process some backrgound work. Its not unusual for the user to exit the app (ie move on to somethign else) and the backrgound work should continue until it is complete, which the IntentService handles

[android-developers] Re: Possible to check .apk signature?

2010-10-06 Thread William Ferguson
There's clearly no way to stuff the signature into the apk without altering the apk's signature. But look at the problem we are trying to solve: Stop a pirate taking an apk, hacking in their own resources, package name (, possibly Ad Ids) and publishing as their own app. Resources are easy for

[android-developers] Re: Any proposed changes to the Android Market?

2010-10-06 Thread William Ferguson
Hear head. I'm with TreKing. A simple algorithm for highlighting and pulling the dregs would add enormous value to the market. At the moment its a bit stagnant, pull the plug and let the crap drain away. The good apps and those being improved will be able to stay ahead of the curve. Survival of

[android-developers] Re: New countries !!!!

2010-09-30 Thread William Ferguson
Hey its definitely a step in the right direction. And should hold out hope that it will be rolled out further. Its certainly opened up the type of apps that I will consider developing now that I can sell into the market. On Oct 1, 8:55 am, { Devdroid } webnet.andr...@gmail.com wrote: On 1

[android-developers] Re: Free version or not?

2010-09-29 Thread William Ferguson
Would you mind listing the ad vendors you have used and your experiences or pros/cons as you see it for each? On Sep 30, 8:22 am, dm1973 david050...@gmail.com wrote: Google doesn't set eCPMs. The market does. eCPMs function on a supply/ demand curve. The supply went way up when they let more

[android-developers] Re: Request: Don't make us use Ant

2010-09-26 Thread William Ferguson
to be building library projects. On Sep 26, 5:26 pm, Pieter pie...@gamesquare.nl wrote: Hello William, Which android maven plugin do you use? Have you tried to use android library projects? I tried one a couple of months ago without much success. On Sep 22, 11:57 pm, William Ferguson

[android-developers] Re: SQLite Database (secure?)

2010-09-26 Thread William Ferguson
You could always encrypt the data in the database. See http://stackoverflow.com/questions/2203987/android-database-encryption It would be nice to be able to encrypt the enture DB, but that doesn't appear to be possible. See http://code.google.com/p/android/issues/detail?id=191 On Sep 27, 9:16 

[android-developers] Twitter on 1.5 sense aka hero off of G1

2010-09-24 Thread William Dizon
I've been flashing some old 1.5 firmware versions of the Hero rom for my G1 and the Twitter app doesn't respond. I did my whole sign in thing with success bit the app keeps giving me a Unknown response from Twitter.com. Is there a way to fix this? Thankyou, Bill -- You received this message

[android-developers] Re: Proguard, Android, and the Licensing Server, or...

2010-09-24 Thread William Ferguson
 pm, JP joachim.pfeif...@gmail.com wrote: On Sep 22, 11:53 pm, William Ferguson william.ferguson...@gmail.com wrote: But hey, I place higher value than some on those 3 : simple, clear and maintainable. Nice framework, but I don't see how you're off the hook. Imagine you're under time

[android-developers] Re: Proguard, Android, and the Licensing Server, or...

2010-09-24 Thread William Ferguson
joachim.pfeif...@gmail.com wrote: On Sep 22, 11:53 pm, William Ferguson william.ferguson...@gmail.com wrote: But hey, I place higher value than some on those 3 : simple, clear and maintainable. Nice framework, but I don't see how you're off the hook. Imagine you're under time pressure

[android-developers] Re: Proguard, Android, and the Licensing Server, or...

2010-09-23 Thread William Ferguson
Personally I dislike the release overhead, but since I only ever need to wear the cost once for any particular type of build I don't see it as that onerous over all. I configure my projects using maven and drop the necessary tools as plugins into the relevant phase of the build life-cycle. From

[android-developers] Re: New to Developing, Need Insight

2010-09-22 Thread William Ferguson
Nice analogy - I'm a Captain Beefheart fan. But I beg to differ. While the Android SDK most certainly has its idosyncracies, mostly notably for me the incessant overuse of implementation inheritance and the use of ints instead of (typed) enums. It also requires a good understanding of standard

[android-developers] Re: Request: Don't make us use Ant

2010-09-22 Thread William Ferguson
You could always use Maven for your Android builds. I do and it works very nicely (as always). On Sep 23, 2:28 am, Craigo craig...@gmail.com wrote: Please update the Eclipse Export Android Application feature to take the location of Proguard and do the obfuscated build. The instructions

[android-developers] Re: Integrating Proguard using recently posted instructions

2010-09-22 Thread William Ferguson
The error msg seems to indicate where quite clearly. Line 38 of add-proguard-release.xml is where it is failing. And it is failing because it can't find the admob library and suggest that you include them using -libraryjars On Sep 22, 8:18 pm, akatka gur...@gmail.com wrote: I am integrating

[android-developers] Re: New to Developing, Need Insight

2010-09-22 Thread William Ferguson
Hmm .. likewise I have 3 plus Murphy's 4 books. While Pro Android 2 contains large chunks of info, I find that it poorly organized. I often find myself checking multiple Contents entries before I hit on what I'm after. But its the best book I have in non-digital form. I find Mark Murphy's books

[android-developers] Re: Application checksum at runtime

2010-09-19 Thread William Ferguson
I would love your solution to work, but surely any pirate will be able to calculate exactly the same checksum. If they have access to your apk, they have access to the key or algorithm you are using. On Sep 20, 8:07 am, Bret Foreman bret.fore...@gmail.com wrote: As an additional anti-pirating

[android-developers] Re: Mechanism to ensure request comes from my app

2010-09-18 Thread William Ferguson
your apk and obtain anything hidden therein. I wish Android provided a way that a server could determine if a request was generated by some app 'package id' signed by a given key -- but this is not available as far as I know. On Sep 17, 12:03 am, William Ferguson william.ferguson...@gmail.com

[android-developers] Mechanism to ensure request comes from my app

2010-09-17 Thread William Ferguson
the answer is no, but I'm looking for suggestions. 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

[android-developers] Re: How much money do you make?

2010-09-16 Thread William Ferguson
Very droll. But it's a good question. Having a good sample (success and failures) that captures number of downloads and revenue over time for particular types of apps and particular revenue models would help a) set realistic expectations for new developers. b) allow developers to apply the most

[android-developers] Re: How much money do you make?

2010-09-16 Thread William Ferguson
.   It's would be great to know all this and that is why you usually have to pay a market research company to get it.  The OP could have shown his first before asking to see others at min. On 9/16/2010 6:22 PM, William Ferguson wrote: Very droll. But it's a good question. Having a good

[android-developers] Re: appbucket: all apps for $9.99 per year, are we just going to watch?

2010-09-16 Thread William Ferguson
I'd care more if I *could* actually sell via the Android market. On Sep 17, 12:29 pm, DanH danhi...@ieee.org wrote: I think people care, but there's not much they can do, as individuals. There should be government groups that go after outfits like AppBucket, but, face it, Android developers

[android-developers] Re: How to reduce padding between cells in TableLayout

2010-09-13 Thread William Ferguson
Anyone? On Sep 12, 10:43 pm, William Ferguson william.ferguson...@gmail.com wrote: I have a 3*3 TableLayout that contains buttons. But I cannot seem to remove the spacing between the buttons in the Table. Setting pading to zero for the buttons has no effect. Setting padding

[android-developers] Re: How to reduce padding between cells in TableLayout

2010-09-13 Thread William Ferguson
Thanks. It turns out that a button's default 9 patch background has large chunks of blank space at the side and bottom. No wonder changing the button padding wasn't having any effect. On Sep 13, 5:29 pm, skink psk...@gmail.com wrote: On 13 Wrz, 09:17, William Ferguson william.ferguson

[android-developers] Re: Displaying HTML markup in WebView

2010-09-13 Thread William Ferguson
Neil, out of curiousity, which solution did you go for and why? On Sep 14, 7:59 am, Neilz neilhorn...@gmail.com wrote: It works a treat, prayers answered, thanks guys. On Sep 13, 9:07 pm, Neilz neilhorn...@gmail.com wrote: Thanks for the tips guys. I didn't even know I could use JavaScript

[android-developers] How to reduce padding between cells in TableLayout

2010-09-12 Thread William Ferguson
no effect. Any idea on how I can alter/remove/reduce the spacing between the cells? 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

[android-developers] What unit is used by Toast offset?

2010-09-11 Thread William Ferguson
(which is pixels). So what units is Toast#offset specified in? 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: Is anyone's active install % dropping like a rock lately?

2010-09-10 Thread William Ferguson
than market, installed via non-market app mechanism and hence not incrementing stats? But on download, because market is installed (and app exists in market, the market stats are being decremented? There you go, 5 questions and no answers .. shit I'm on fire today :-) William On Sep 10, 4:26 pm

[android-developers] XML schema for http://schemas.android.com/apk/res/android namespace

2010-09-09 Thread William Ferguson
Is there an XML schema against which all the Android config objects that declare the http://schemas.android.com/apk/res/android name space can be verified against? If so, where? William -- You received this message because you are subscribed to the Google Groups Android Developers group

[android-developers] RuntimeException retrieving resource

2010-09-09 Thread William Ferguson
I'm getting a RuntimeException when trying to retrieve a Resource Here is the code that is failing. It is contained in the constructor of one of my views: final int vibrateMillis = this.getResources().getInteger(R.attr.button_vibrate_millis); Here is the definition of the resource in

[android-developers] Re: somebody stole our app and resell it on the market.

2010-09-09 Thread William Ferguson
, but not much. 3) Yes, the emulator is slow to start up, but after that its fine. So don't close it between each iteration. I don't. William On Sep 10, 9:35 am, billconan billco...@gmail.com wrote: We will think of ways to stop him. and perhaps in our next release we will consider using ndk to encrypt our

[android-developers] Re: List of Android Devices with specifications to use in Emulator

2010-09-08 Thread William Ferguson
That's brillient. Would be great to mine this data by resolution. Ie See all the resoluitons used, and the devices that use them. And even better if there was enough data to get meaningful stats on numbers of each device used. On Sep 8, 6:05 pm, Fabrizio Giudici fabrizio.giud...@tidalwave.it

[android-developers] Re: Strange Exceptions when deleting and reading contacts

2010-09-08 Thread William Ferguson
I recall getting something similar when trying to retrieve too big a dataset. Ie I was trying to retrieve lots of columns. Reducing them to as small a set as possible removed the error. I put it down to some hard allocation llimit in the SqlLite DB that didn't express it well. On Sep 8, 9:29 

[android-developers] Re: Settings.Secure.ANDROID_ID not unique on DROID2?

2010-09-08 Thread William Ferguson
It also assumes the device is a phone. It may be a wifi only tablet, or whatever. On Sep 9, 2:09 am, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: Using IMEI requires an additional permission. Using ANDROID_ID doesn't. -John Coryat -- You received this message because you are

[android-developers] Vertical Button Text

2010-09-07 Thread William Ferguson
this, other than creatng a drawable that has the letters in this format and using it as a background? I guess I'd need to center the letters horizontally as well. William -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] Re: Vertical Button Text

2010-09-07 Thread William Ferguson
\nT\ne\nx\nt may do the trick. It´s not an elegant solution but may be functional. try it. On 7 set, 19:49, William Ferguson william.ferguson...@gmail.com wrote: Hi, I want to display the text for some buttons vertically down the screen instead of horizontally. I don't want

[android-developers] Re: Sharing data between users

2010-09-04 Thread William Ferguson
Thanks for sharing Peter, that has really clarified a few things for me. On Sep 5, 4:16 am, Peter Eastman peter.east...@gmail.com wrote: I've been pushing ahead on this project.  I'd like to report my progress for the benefit of anyone who comes across this thread.  And perhaps someone can

[android-developers] Re: Sim Contacts

2010-09-03 Thread William Ferguson
Oh well .. thanks for helping to box the apparently unknowable On Sep 3, 9:09 am, Mark Murphy mmur...@commonsware.com wrote: On Thu, Sep 2, 2010 at 7:01 PM, William Ferguson william.ferguson...@gmail.com wrote: Wow. For a platform mainly targetted at the mobile phone device the deafening

[android-developers] Re: Sim Contacts

2010-09-02 Thread William Ferguson
Wow. For a platform mainly targetted at the mobile phone device the deafening silence on accessing the SIM is truly amazing. On Sep 1, 8:57 am, William Ferguson william.ferguson...@gmail.com wrote: Anyone? One of the Google engineers perhaps? On Aug 30, 7:37 am, William Ferguson

[android-developers] Re: GOOGLE, WHAT IS GOING ON with the Active Install %? Bug in install to SDCARD is my guess!

2010-09-02 Thread William Ferguson
Dianne, is there a Google group to which these question could be put? On Sep 3, 8:06 am, Dianne Hackborn hack...@android.com wrote: On Thu, Sep 2, 2010 at 12:13 PM, TreKing treking...@gmail.com wrote: On Wed, Sep 1, 2010 at 11:36 PM, Dianne Hackborn hack...@android.comwrote: I don't know

[android-developers] Re: Goodbye friends and thanks for all the help.

2010-09-01 Thread William Ferguson
Yes, its extremely frustrating .. I've now shelved several apps because they require a paid license revenue model that isn't profity worthy without access to the market. I'm focussing on Adware instead. I hate it when business models restrict innovation. On Sep 2, 10:29 am, brucko

[android-developers] Re: layout_gravity

2010-08-31 Thread William Ferguson
does.  Go figure. On Aug 31, 1:42 am, William Fergusonwilliam.ferguson...@gmail.com wrote: Thanks! that worked. Still don't understand why its not working with a LinearLayout. On Aug 31, 1:56 pm, Floaterspuhao7117...@gmail.com  wrote: Maybe you can try RelativeLayout... 2010/8/31

[android-developers] Re: layout_gravity

2010-08-31 Thread William Ferguson
requirements show that the buttons need to be placed relative to the parent, so (like others have said) a RelativeLayout is the best option, using attributes like layout_alignParentRight and layout_centerHorizontal. On Aug 31, 5:42 am, William Ferguson william.ferguson...@gmail.com wrote: OK

[android-developers] Re: Sim Contacts

2010-08-31 Thread William Ferguson
Anyone? One of the Google engineers perhaps? On Aug 30, 7:37 am, William Ferguson william.ferguson...@gmail.com wrote: I have some code that manipulates the Contacts database via the Contacts Provider (ContactsContract.RawContacts.CONTENT_URI), so I can add/edit/delete my Google contacts

[android-developers] Re: Is there a way to request permissions from a user as you need them?

2010-08-30 Thread William Ferguson
is willing to collect any sale revenue for me, my only real source of income from Android is via Ad revenue or donates. At the moment, innovation in some types of apps is being stifled because a good portion of the world can't make any income from them. William On Aug 30, 3:55 pm, Dianne

[android-developers] Re: ListView listener problems

2010-08-30 Thread William Ferguson
Return false from onLongClick if you have handled the click as a long click. On Aug 31, 12:52 am, tatebn brandonnt...@gmail.com wrote: I'm using a ListAction and I'm having some trouble with my listeners. I'm using onListItemClick to catch any item clicks, which works fine unless I add an

[android-developers] Re: App breaks for some users after they update from the Market

2010-08-30 Thread William Ferguson
He he, glad you got some closure. On Aug 31, 8:49 am, TreKing treking...@gmail.com wrote: PROBLEM SOLVED! Conclusion: I'm an idiot (shocked!?) So, for those of you that care, here was the problem. I followed Zsolt's suggestion to go back to the previous version and then updated the app and

[android-developers] layout_gravity

2010-08-30 Thread William Ferguson
OK, I'm obviously missing something fundamentally simple here. I have a LinearLayout containing 2 buttons. I've coloured the layout background red so I can see that it has expanded to fill its parent. I wanted the BooButton to center horizontally within the layout and the OtherButton to be right

[android-developers] Re: layout_gravity

2010-08-30 Thread William Ferguson
That centers both buttons, so I still can't get the OtherButton right justified. On Aug 31, 1:53 pm, grace grace.a...@wipro.com wrote:  add android:gravity=center_horizontal in the linear layout On Aug 31, 8:42 am, William Ferguson william.ferguson...@gmail.com wrote: OK, I'm obviously

[android-developers] Re: layout_gravity

2010-08-30 Thread William Ferguson
Thanks! that worked. Still don't understand why its not working with a LinearLayout. On Aug 31, 1:56 pm, Floaters puhao7117...@gmail.com wrote: Maybe you can try RelativeLayout... 2010/8/31 William Ferguson william.ferguson...@gmail.com OK, I'm obviously missing something fundamentally

[android-developers] Sim Contacts

2010-08-29 Thread William Ferguson
I have some code that manipulates the Contacts database via the Contacts Provider (ContactsContract.RawContacts.CONTENT_URI), so I can add/edit/delete my Google contacts, Phone contacts and the Sim contacts cached there. Changes to the Phone contacts are immediate, changes to the Google contacts

[android-developers] Re: App breaks for some users after they update from the Market

2010-08-29 Thread William Ferguson
, TreKing treking...@gmail.com wrote: On Sat, Aug 28, 2010 at 3:22 AM, William Ferguson william.ferguson.au@ gmail.com wrote: From the symptoms, the code you posted and the assumption that this section of code is multi-threaded, it looks like a race condition. That's for the suggestion, but where

[android-developers] Re: App breaks for some users after they update from the Market

2010-08-29 Thread William Ferguson
Actually I should have asked whether Activity2 is being created in a different Process as that will definitely be in a separate JVM. On Aug 30, 11:24 am, William Ferguson william.ferguson...@gmail.com wrote: Not real sure about this, just putting it out there .. But is is possible

[android-developers] Re: App breaks for some users after they update from the Market

2010-08-28 Thread William Ferguson
Thanks for posting the psuedo code. From the symptoms, the code you posted and the assumption that this section of code is multi-threaded, it looks like a race condition. public StaticClass { private static Manager manager = new Manager(); public static Manager getManager() { return manager; }

[android-developers] Re: Contact Icons

2010-08-27 Thread William Ferguson
Anyone? On Aug 26, 6:12 pm, William Ferguson william.ferguson...@gmail.com wrote: I want to reuse those icons displayed by the Contacts app that represent the different types of Contact. Ie Contacts-Create Contact asks Save contact to and gives options like Phone, SIM, Google which each have

[android-developers] Contact Icons

2010-08-26 Thread William Ferguson
I want to reuse those icons displayed by the Contacts app that represent the different types of Contact. Ie Contacts-Create Contact asks Save contact to and gives options like Phone, SIM, Google which each have an icon. I've searched through the SDK and even through the source but I can't find

[android-developers] Re: App breaks for some users after they update from the Market

2010-08-26 Thread William Ferguson
Since it continues to occur after reboot it means there is a problem with the the way the class files have been unpacked to disk. When an apk is installed and that app already exists, a temp folder for the new instal is created, z and presumably the old instal is removed later. It sounds like in

[android-developers] Re: Empty Spinner before first selection

2010-08-22 Thread William Ferguson
of always being the first element. On Aug 22, 5:21 pm, TreKing treking...@gmail.com wrote: On Sat, Aug 21, 2010 at 5:33 PM, William Ferguson william.ferguson.au@ gmail.com wrote: I don't want to add an empty/blank item at the head of my list of items because that means that it shows

[android-developers] Re: Empty Spinner before first selection

2010-08-22 Thread William Ferguson
and methods like AdapterView#mOldItemCount and AdapterView#setselectedPositionInt in 2.1 and 2.2? On Aug 22, 8:03 pm, Mark Murphy mmur...@commonsware.com wrote: On Sun, Aug 22, 2010 at 5:52 AM, William Ferguson william.ferguson...@gmail.com wrote: It all hinges on the code in AbsSpinner#setAdapter

[android-developers] Re: Empty Spinner before first selection

2010-08-22 Thread William Ferguson
No need to apologise. I appreciate the help, I really do. I guess I just wasn't clear enough in my original post. I'll try and do better next time. On Aug 23, 2:47 am, TreKing treking...@gmail.com wrote: On Sun, Aug 22, 2010 at 4:52 AM, William Ferguson william.ferguson.au@ gmail.com wrote

[android-developers] Empty Spinner before first selection

2010-08-21 Thread William Ferguson
I have a Spinner configured with a ListAdapter that I want it to initially show as having no selection (I don't want it to default to the first item in the list). When the user clicks on the Spinner I want it to show the items contained in the ListAdapter and to choose one. I don't want to add a

[android-developers] Empty Spinner before first selection

2010-08-21 Thread William Ferguson
I have a Spinner whose items comes from an ArrayAdaper, and I want the Spinner to initially show that no item has been selected. When the user clicks on the Spinner it's DropDownView should display just those items available for selection. I don't want to add an empty/blank item at the head of my

[android-developers] Decent Reader

2010-08-18 Thread William Ferguson
Slightly off topic (*sorry*). But does anyone know of a good RSS reader for Android that 1) opens out the full pagefor items (in particular the items from this group) 2) Uses the Google account on the phone to retrieve from Google groups instead of making me log in a second time. All the readers

[android-developers] Re: Removing unncessary permissions

2010-08-15 Thread William Ferguson
to give all such apps the permissions. On Fri, Aug 13, 2010 at 10:48 PM, William Ferguson william.ferguson.au@ gmail.com wrote: I have an app that reads from the Contact provider and so it declares android.permission.READ_CONTACTS in the manifest. It doesn't store anything on the SD card

[android-developers] Re: #setChecked in CheckedTextView in ListView not working

2010-08-15 Thread William Ferguson
get row id from cursor coming to you in bindView. This way you'll get rowId for the record you are currently binding. To be simple, you are binding to the wrong record. On Aug 14, 7:50 am, William Ferguson william.ferguson...@gmail.com wrote: I have a ListView that just contains

[android-developers] Re: Javadoc for ContactContract.RawContacts

2010-08-15 Thread William Ferguson
level (top right on docs) and have a look. On Aug 14, 2:24 am, William Ferguson william.ferguson...@gmail.com wrote: Can someone tell me what for version of Android the online Javadoc has been generated? http://developer.android.com/reference/android/provider/ContactsContr... contains

[android-developers] Re: #setChecked in CheckedTextView in ListView not working

2010-08-15 Thread William Ferguson
it wasn't working before b) 2 from above seems pretty wasteful. Why should #bindView be called from all visible items just because one item has been checked/ unchecked? On Aug 15, 4:29 pm, William Ferguson william.ferguson...@gmail.com wrote: Um, sorry, in attempting to simplify the example

[android-developers] Re: #setChecked in CheckedTextView in ListView not working

2010-08-15 Thread William Ferguson
#bindView fired a ridiculous number of times. On Aug 15, 5:26 pm, William Ferguson william.ferguson...@gmail.com wrote: OK, further info. As could be seen from #newView, I was handling the onClick on the CheckedTextView myself and this was because I was using a normal Activity instead

[android-developers] Re: #setChecked in CheckedTextView in ListView not working

2010-08-15 Thread William Ferguson
from bindView(), but let ListView handle it. The problem was that you were doing ListView's job a second time. You don't need listeners (click on onlistitem), calls to setChecked, etc. On Sun, Aug 15, 2010 at 4:15 AM, William Ferguson william.ferguson...@gmail.com wrote: To those who may

[android-developers] Re: persistence storage...........

2010-08-15 Thread William Ferguson
Store the database on the external storage instead of as part of your app. On Aug 16, 2:46 pm, A N K ! T ankit.awasth...@gmail.com wrote: i wan,t my app database remains in phone even after uninstallation .for activation code or something like that... what should i use for that thanks

[android-developers] Re: #setChecked in CheckedTextView in ListView not working

2010-08-15 Thread William Ferguson
job a second time. You don't need listeners (click on onlistitem), calls to setChecked, etc. On Sun, Aug 15, 2010 at 4:15 AM, William Ferguson william.ferguson...@gmail.com wrote: To those who may follow, if you have a list of CheckedTextView you probably don't want the ListView to have

[android-developers] Re: Removing unncessary permissions

2010-08-14 Thread William Ferguson
Oh OK. I was just copying it to the SD card on the phone and installing from there. So yes, a non-market source. Is there anyway to tell what permissions the Market will think my app needs without uploading it to Market and then attempting to install from there? On Aug 14, 3:56 pm,

<    1   2   3   4   >