[android-developers] market? issue

2013-02-06 Thread Greg Donald
Yesterday I shipped a bug fix update.  The update is a workaround for

http://code.google.com/p/android/issues/detail?id=7189


+import android.view.MotionEvent;

[...]

+add_phone.requestFocus( View.FOCUS_DOWN );
+add_phone.setOnTouchListener( new View.OnTouchListener()
+{
+  @Override
+  public boolean onTouch( final View v, final MotionEvent event )
+  {
+switch( event.getAction() )
+{
+  case MotionEvent.ACTION_DOWN:
+  case MotionEvent.ACTION_UP:
+if( !v.hasFocus() )
+{
+  v.requestFocus();
+}
+break;
+}
+return false;
+  }
+} );
+

With that change users running Android 2.3.x can now get a keyboard
when they click into my WebView form fields, yay!

But then this morning a long time user sent me a screen shot of Google
Play telling him his device is not compatible with my app!

I have reviewed my git commit and nothing changed except a few lines
of Java you can see above, and the version numbers in my
AndroidManifest.xml:

-android:versionCode=55
-android:versionName=1.1.2
+android:versionCode=56
+android:versionName=1.1.3

No permissions changed, no SDK version changes, still at 2.2 just like always.

Any idea how to fix this situation?  We're a SaaS company and via
Google Play I just killed his service because I simply shipped a
workaround for an Android keyboard bug.


--
Greg Donald

-- 
-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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/groups/opt_out.




Re: [android-developers] Oauth2 'Signing In' screen

2012-12-16 Thread Greg Donald
On Sun, Dec 16, 2012 at 10:43 PM, Spiral123 cumis...@gmail.com wrote:
 I'm just in the process of upgrading my apps to use Oauth2 and Google Play
 services.

 All seems to be going well except that after authorizing my app Google Play
 services swaps from the nice white confirmation screen to a full black
 screen saying 'Signing in...  This can take a few minutes'.  I know that
 when you first setup a Google account it is possible to take multiple
 minutes to do the initial sign on but in my testing this screen appears for
 typically less than a second.  Apart from looking ugly it could be a
 disconcerting for a user - especially if you are not expecting it.

 Anyone got any ideas for how I could remove the message or at least
 substitute it with my own indeterminate progress indicator?


I wrote a set of wrapper URLs around OAuth2 so I could more easily
customize my interface and the login process on Android.  You're not
tied to Android just because you want to use OAuth2, it's just a web
service that happens to have some hooks in Android.

Here are a bunch of the URLs I learned from while writing the wrapper code:

http://gregdonald.com/2012/04/25/google-single-sign-on-using-django/


And this was a major help too:

https://developers.google.com/oauthplayground/



-- 
Greg Donald

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Where do I register?

2012-07-02 Thread Greg Donald
On Wed, Jun 27, 2012 at 11:21 PM, Nickolaus Poling nk.p...@gmail.com wrote:
 I'm new to this and trying to find out where to register to publish products
 to google play. I didn't see any on the google play website when I clicked
 on developer.

https://play.google.com/apps/publish/Home


-- 
Greg Donald

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Writing in C++ code ?

2012-06-05 Thread Greg Donald
On Mon, Jun 4, 2012 at 3:06 AM, jeet biswajitco...@gmail.com wrote:
 You can use phone gap or something like that,.,.,


PhoneGap was a little heavy handed, for my use case anyway.


On Android I just use the WebView Javascript Interface:

http://developer.android.com/guide/webapps/webview.html#BindingJavaScript


On iOS I use something very similar to build the Javascript bridge:

https://github.com/marcuswestin/WebViewJavascriptBridge


My jQuery Mobile code ends up being nearly identical for both
platforms.  I just do some extra stuff on iOS to simulate the same
kind of FrameLayout flipping I do in Android.


-- 
Greg Donald

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: google io

2012-03-28 Thread Greg Donald
On Wed, Mar 28, 2012 at 1:31 AM, John Coryat cor...@gmail.com wrote:
 An individual can only purchase one ticket.

That's the dumbest rule ever.  How would it ever be possible for a
single company to purchase two seats for sending two developers?  For
example, yesterday I could not even get a single seat, much less a
second seat for my co-worker.  We had both been approved by our
company to go, budget was there, everything.  Got the door slammed in
our faces 4 times between 7 and 7:29am.

It pissed me off yesterday but today I'm like in don't care mode.  If
Google doesn't care enough to get interested Android developers signed
up ahead of the scalpers then why should I?


-- 
Greg Donald

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: google io

2012-03-28 Thread Greg Donald
On Wed, Mar 28, 2012 at 8:36 PM, Zsolt Vasvari zvasv...@gmail.com wrote:
 Honestly, I think a lot of people are trying to because of the freebies.
 But even if you resell them on eBay for a profit, it's still not cost
 effective by the time you factor in the airfare, hotel, etc.

I certainly don't care to fly for 6 hours just to get a free device,
not my own personal motivation at all.

 So what happens is, people who are actually interested in going because they
 make their livelihood from Android, cannot.

That's what it looks like from where I sit.  And still no one can
explain to me how tickets appeared to be sold out to my browser 4
separate times before the actual sold out banner went up at 7:29.
That's so obviously rigged.

 It's a seriously f-ed up situation, but it is what it is.  As with a lot of
 things related to Android, the ideas are great, but the execution, how
 should I say it, lacks finesse.

I see no reason to ever try again.  Making something extremely
difficult to acquire doesn't make me want it more, quite the opposite
actually.


-- 
Greg Donald

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] google io

2012-03-27 Thread Greg Donald
That's sad when scalpers can get Google IO tickets:

http://www.ebay.com/sch/i.html?_nkw=google%20io_fscr=1


But a full time Android developer like myself only gets to see the No
Tickets Available page from 7 to 7:29am.

How can there be no tickets available at 7:04am, 7:09am, etc, but the
sellout doesn't actually occur until 7:29am?  Why did I have to be
signed in to Google+ account?  For selection purposes?  Seems rigged
as fuck to me.

Thanks for nothing Google.  I won't bother even trying next year.  Keep it.


-- 
Greg Donald

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Is PhoneGap Good Enough?

2012-02-14 Thread Greg Donald
I've found that most any Android functionality PhoneGap has can be
done with Android Javascript binding + jQuery Mobile.

http://developer.android.com/guide/webapps/webview.html#BindingJavaScript

http://jquerymobile.com/


Only downside I've found is the Android Javascript binding is slow,
even on really fast phones.


On Tue, Feb 14, 2012 at 12:34 PM, mduffy215 mduffy...@gmail.com wrote:
 It seems that PhoneGap has evolved to the point where it is now good
 enough to use in an HTML5 project for creating apps for multiple
 platforms.

 Please share your insights on this hypothesis.

 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



-- 
Greg Donald

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Is PhoneGap Good Enough?

2012-02-14 Thread Greg Donald
On Tue, Feb 14, 2012 at 1:56 PM, John Coryat cor...@gmail.com wrote:
 The bottom line on webview apps is they are ok for simple, single screen
 type apps that don't contain a lot of moving elements. Once you start to add
 animations and other fancy things, they get slow and ponderous.

Yeah, anything really complex stands a good chance of making a WebView
die.  And worse, onReceivedError() doesn't get called when the WebView
dying occurs.  onReceivedError() basically only fires for me when
there's a network error.  Could probably benefit from a
yourJsIsMuchTooExoticAndImDyingNow() interface.  I'd really like a way
to flip my FrameLayout contents on anything other than success, but I
don't see where to hook in.  onReceivedError() is not reliable.

I'd also like to be able to load more than one webview at a time.  I
have this one activity where I have two WebViews, I have to stagger my
second request for 200ms or it will sometimes kills the first WebView
request.


-- 
Greg Donald

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Is PhoneGap Good Enough?

2012-02-14 Thread Greg Donald
On Tue, Feb 14, 2012 at 6:48 PM, Greg Donald gdon...@gmail.com wrote:
 I've found that most any Android functionality PhoneGap has can be
 done with Android Javascript binding + jQuery Mobile.

 http://developer.android.com/guide/webapps/webview.html#BindingJavaScript

 http://jquerymobile.com/

The main benefit I found in using jQuery Mobile is that it has the
very reliable vmousedown and vmouseup functions that will bind to
anything in the DOM.  I found vanilla jQuery doesn't reliably bind to
anything but a tags in Android WebKit.


-- 
Greg Donald

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Javascript binding issues

2012-01-30 Thread Greg Donald
On Mon, Jan 30, 2012 at 6:36 AM, John jsp...@gmail.com wrote:
 Greg,

 A couple of things:

 a.) What versions are you seeing this in? Emulator only?

I'm developing mostly on a Samsung Galaxy S II.  I can only imagine
how slow the emulator will be.

 b.) jQuery (in general) is pretty slow on mobile devices. jQuery
 Mobile has come a long way (in the almost 3 years since the project
 started): http://jquerymobile.com/

Yeah, jQuery Mobile seems the way to go.  I'm using vmousedown and
vmouseup now and my css changes work great.

$.each($('tr[class=click]'), function(i, obj) {
$(obj).click(function() {
Android.clickContact($(obj).attr('id'));
$(obj).bind('vmousedown', function() {
$(obj).css(background-color, '#f00');
});
$(obj).bind('vmouseup', function() {
$(obj).css(background-color, 'transparent');
});
});
});

I wish the Javascript binding was faster, but at least now I get some
tap feedback.


 d.) Binding mouseup/down might be problematic with jQuery (due to
 multitouch, trackball, etc).

On this particular project it's outside the market, and fortunately I
have the 5 phones we're targeting.. no trackballs :)

Thanks for the jQuery Mobile suggestion, works great.


-- 
Greg Donald

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Javascript binding issues

2012-01-30 Thread Greg Donald
On Mon, Jan 30, 2012 at 12:15 PM, Greg Donald gdon...@gmail.com wrote:

        $.each($('tr[class=click]'), function(i, obj) {
                $(obj).click(function() {
                        Android.clickContact($(obj).attr('id'));
                        $(obj).bind('vmousedown', function() {
                                $(obj).css(background-color, '#f00');
                        });
                        $(obj).bind('vmouseup', function() {
                                $(obj).css(background-color, 'transparent');
                        });
                });
        });

And that's wrong, should actually be:

$.each($('tr[class=click]'), function(i, obj) {
$(obj).click(function() {
Android.clickContact($(obj).attr('id'));
});
$(obj).bind('vmousedown', function() {
$(obj).css(background-color, '#f00');
});
$(obj).bind('vmouseup', function() {
$(obj).css(background-color, 'transparent');
});
});

Realized it just now when I started seeing some double clicks in Android.


-- 
Greg Donald

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Javascript binding issues

2012-01-29 Thread Greg Donald
I'm working up some new code that uses Javascript binding, described here:

http://developer.android.com/guide/webapps/webview.html#BindingJavaScript


1) Is there any way to speed it up?  There's about a 2-3 second delay
before a click executes my Javascript clickContact() function in my
activity.  I'm attaching to my tr with jQuery, like this:

$.each($('tr[class=contact]'), function(i, obj) {
  $(obj).click(function() {
Android.clickContact($(obj).attr('id'));
  });
});

I tried attached to my a tags, but that's just as slow.


My Android code:

public class ContactsJS
{
  private final Contacts con;
  private final Context c;

  public ContactsJS( final Contacts contacts, final Context context )
  {
con = contacts;
c = context;
  }

  public void clickContact( final String contact_id )
  {
con.clickContact( contact_id );
  }
}


WebView contacts = (WebView) findViewById( R.id.contacts );
contacts.addJavascriptInterface( new ContactsJS( this, this ), Android );


It works, but it's really slow.


2) How can I get WebKit to provide some sort of click feedback?  Since
I have problem #1, described above, I really need to provide some
click/tap feedback.  My jQuery code below works great in Chrome and
Firefox, highlights red like expected, but in the Android browser it
doesn't do anything.  I had some debug code in there, mousedown and
mouseup never fire.

$.each($('a[class=click]'), function(i, obj) {
  $(obj).mousedown(function() {
$(obj).parent().css(background-color, '#f00');
  }).mouseup(function() {
$(obj).parent().css(background-color, 'transparent');
  });
});

I also tried the other mouse events described here:

http://api.jquery.com/category/events/mouse-events/

And I tried attaching to the trs and tds instead of my as, can't
get anything to fire in the Android browser.

How can I provide some click feedback for my slow Javascript binding?


Thanks,


-- 
Greg Donald

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Best way to distribute app outside of Market

2012-01-26 Thread Greg Donald
On Thu, Jan 26, 2012 at 1:03 PM, RLScott fixthatpi...@yahoo.com wrote:
 1. Send an e-mail with the APK file attached.  User taps on the
 attachment and app installs.

That method only works for me if the recipient is using the Gmail app.
 The other mail readers on Android don't seem to know what an apk file
is.

An even larger hurdle is explaining to the user why they have to
change their settings to even install my app.

All in all, distribution outside the Market is fairly painful.


-- 
Greg Donald

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Giving away my book: Genius Android Marketing

2012-01-12 Thread Greg Donald
On Thu, Jan 12, 2012 at 7:37 AM, TreKing treking...@gmail.com wrote:
 Just send me $50 for my book, How to Get People to Send You $50 For Your
 Book, and learn the secrets today!

Don't forget to pick up a copy of the book on how to write books:

http://www.amazon.com/Elements-Style-4th-William-Strunk/dp/0205313426/ref=sr_1_6?ie=UTF8qid=1326391750sr=8-6



-- 
Greg Donald

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: how to be a game developers in android

2012-01-11 Thread Greg Donald
On Wed, Jan 11, 2012 at 8:18 AM, TreKing treking...@gmail.com wrote:
 On Wed, Jan 11, 2012 at 8:15 AM, cellurl gpscru...@gmail.com wrote:

 use appinventor in a few wks when it resurfaces.
 http://info.appinventor.mit.edu/
 I wrote a game in it in 1hr.
 No Java required.

 Would you share? Please. I would love to know what kind of game you can make
 with app inventor in one hour.

No kidding..  where's the game?

If I could go from a couple months to an hour on my next game design,
that would rule!



-- 
Greg Donald

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 revoke google api grants

2011-12-18 Thread Greg Donald
I'm working with some example code here:

http://code.google.com/p/google-api-java-client/source/browse/picasa-android-sample/src/main/java/com/google/api/services/samples/picasa/android/PicasaSample.java?repo=samples

I authorized access in my Android app, but I cannot find where to now
revoke access, so I can run through it again.


I checked the URL where I've been revoking access while building the
web version of my Single Sign On stuff:

https://accounts.google.com/b/0/IssuedAuthSubTokens

But it's not listed there, is there a different URL for Android?

I've searched through the phone menus.. even uninstalled my test app,
but the permissions still persist somewhere, I'm never asked for them
again since the first request.


I searched the google-api tag, found nothing:

http://stackoverflow.com/search?q=%5Bgoogle-api%5D+revoke


Thanks.


-- 
Greg Donald

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Android fragmentation study

2011-10-28 Thread Greg Donald
On Thu, Oct 27, 2011 at 9:32 PM, Zsolt Vasvari zvasv...@gmail.com wrote:
 I don't have a problem with it, and if I did, I'd just develop for
 iOS.

I do, and am.

 I'd suggest you should consider the same instead of whining about
 something you cannot change.

http://news.cnet.com/8301-17938_105-20126706-1/friday-poll-are-android-phones-upgradeable-enough/

Check out the survey results.  Clearly I'm not the only one who thinks
Android fragmentation is a complete mess.


-- 
Greg Donald

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 fragmentation study

2011-10-27 Thread Greg Donald
http://theunderstatement.com/post/11982112928/android-orphans-visualizing-a-sad-history-of-support

Wow.. I knew it was bad, but man.


most app developers will end up targeting an ancient version of the
OS in order to maximize market reach.

I totally agree.. It will literally be years before I will begin to
care about the new 4.0.  I'm still supporting devices running 2.1 and
will be for some time to come.


-- 
Greg Donald

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Android fragmentation study

2011-10-27 Thread Greg Donald
On Thu, Oct 27, 2011 at 11:01 AM, Studio LFP studio@gmail.com wrote:
 If you look at the history of developers, we're already use to having to
 deal with a lot worse fragmentation issues than Android. Anyone that's ever
 developed a website correctly knows that supporting the available web
 browsers is a lot more of a challenge than with Android versions.

I disagree.

!--[if IE 6]

is not challenging whatsoever compared to getting your apps working
well on lots of different Android devices running lots of different
SKD versions and resolutions.


 Windows, Mac OSX, a ton of server technologies, databases, etc., they all
 have tons of different versions available to support. Most companies stick
 with older versions because it is what they have and it is working. When it
 comes to Android, I've been pleasantly surprised at the efforts Google has
 gone through to help manufacturers upgrade.

That's point of the article.  Manufacturers aren't upgrading.  They
ship the device and wash their hands of it.  Users on 2 year upgrade
contracts are using ancient software versions on their phones.  Read
the article.


-- 
Greg Donald

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Android fragmentation study

2011-10-27 Thread Greg Donald
On Thu, Oct 27, 2011 at 11:29 AM, b0b pujos.mich...@gmail.com wrote:
 You can make an app work great on 2.x, 3.x and 4.x taking advantage of each
 version.

Of course you CAN, but that doesn't mean you have the resources to do
so.  It's simply easier to go with the lowest common SDK version.


-- 
Greg Donald

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] BitmapFactory.decodeResource() zero width/height

2011-10-08 Thread Greg Donald
I am loading a bitmap and then creating a new scaled version like this:

Bitmap bm = BitmapFactory.decodeResource( getResources(), R.drawable.grid );
Matrix matrix = new Matrix();
matrix.postScale( (float) getSize() / bm.getWidth(), (float) getSize()
/ bm.getHeight() );
Bitmap b = Bitmap.createBitmap( bm, 0, 0, bm.getWidth(),
bm.getHeight(), matrix, true );

On Android 2.2 bm.getWidth() returns zero sometimes making my
createBitmap() call raise the exception

IllegalArgumentException: width and height must be  0

I am not seeing it on any other Android version, just 2.2.

My R.drawable.grid is a png with an alpha layer.  I was reading about
some problems others were having with Android decoding pngs but I
couldn't find any cases with the width and height returning zero.

Any idea how to fix?


Thanks.


-- 
Greg Donald

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] ACRA clear

2011-09-25 Thread Greg Donald
On Fri, Sep 23, 2011 at 5:37 AM, bob b...@coolgroups.com wrote:
 What is the easiest way to clear out an ACRA report in Google Docs?

I found it was very difficult to use the spreadsheet method.  Too many
columns, too much scrolling.  By the time I would find the column out
to the right, I'd forgotten why I was looking there.  The stack traces
are way too tall and make vertical scrolling fairly useless even on my
largest monitor.

I ended up going the server route.  I put two tables in my database
and split the report into a crash summary with the trace, and then the
rest of the crash data goes into another table.  That way I can get a
count on same traces to fix the bigger issues first.

This is Django/Python, but you can easily adapt it to something else:

class Trace( models.Model ):
app_version_code = models.TextField( null=True, blank=True )
app_version_name = models.TextField( null=True, blank=True )
package_name = models.TextField( null=True, blank=True )
trace = models.TextField( null=True, blank=True )
count = models.IntegerField()

class Crash( models.Model ):
trace = models.ForeignKey( Trace )
phone_model = models.TextField( null=True, blank=True )
brand = models.TextField( null=True, blank=True )
product = models.TextField( null=True, blank=True )
android_version = models.TextField( null=True, blank=True )
build = models.TextField( null=True, blank=True )
total_mem_size = models.TextField( null=True, blank=True )
available_mem_size = models.TextField( null=True, blank=True )
initial_configuration = models.TextField( null=True, blank=True )
crash_configuration = models.TextField( null=True, blank=True )
display = models.TextField( null=True, blank=True )
user_comment = models.TextField( null=True, blank=True )
dumpsys_meminfo = models.TextField( null=True, blank=True )
device_features = models.TextField( null=True, blank=True )
environment = models.TextField( null=True, blank=True )
shared_preferences = models.TextField( null=True, blank=True )
settings_system = models.TextField( null=True, blank=True )
settings_secure = models.TextField( null=True, blank=True )
created = models.DateTimeField()


@csrf_exempt
def crash( request ):
status = -1
if request.method == 'POST':
t = Trace.objects.filter( trace=request.POST['STACK_TRACE'],

app_version_code=request.POST['APP_VERSION_CODE'],

app_version_name=request.POST['APP_VERSION_NAME'],

package_name=request.POST['PACKAGE_NAME'] )[:1]
try:
t = t[ 0 ]
except:
t = None
if t:
t.count += 1
else:
t = Trace( trace=request.POST['STACK_TRACE'],
   app_version_code=request.POST['APP_VERSION_CODE'],
   app_version_name=request.POST['APP_VERSION_NAME'],
   package_name=request.POST['PACKAGE_NAME'],
   count=1 )
t.save()
c = Crash( trace=t, created=datetime.now() )
c.phone_model = request.POST['PHONE_MODEL']
c.brand = request.POST['BRAND']
c.product = request.POST['PRODUCT']
c.android_version = request.POST['ANDROID_VERSION']
c.build = request.POST['BUILD']
c.total_mem_size = request.POST['TOTAL_MEM_SIZE']
c.available_mem_size = request.POST['AVAILABLE_MEM_SIZE']
c.initial_configuration = request.POST['INITIAL_CONFIGURATION']
c.crash_configuration = request.POST['CRASH_CONFIGURATION']
c.display = request.POST['DISPLAY']
c.user_comment = request.POST['USER_COMMENT']
c.dumpsys_meminfo = request.POST['DUMPSYS_MEMINFO']
c.device_features = request.POST['DEVICE_FEATURES']
c.environment = request.POST['ENVIRONMENT']
c.shared_preferences = request.POST['SHARED_PREFERENCES']
c.settings_system = request.POST['SETTINGS_SYSTEM']
c.settings_secure = request.POST['SETTINGS_SECURE']
c.save()
status = 1
return render_to_response( 'm/status.html', { 'status':status } )


When I roll out a new version, I truncate my tables in sql.  Easy, no
spreadsheet sillyness.



-- 
Greg Donald

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] SSL Android

2011-09-25 Thread Greg Donald
That's pretty much what I'm doing.  I have a self-signed certificate
on this one game I built and this method works fine with that.  It
doesn't matter who signed your cert (especially these days) so as long
as you're hitting an https url.  It's the encryption you care about,
not the certificate authority who signed off on it.


On Thu, Sep 22, 2011 at 11:45 AM, Sivaprakash
sivaprakashshanmu...@gmail.com wrote:
 Hi
 I want to do a webservice call from my client app (HTTPs), With this
 following code I am able to connect and get the response successfully but
 want to know what I am doing is the correct one or not? Could some one
 review and tell me is this secured way of connecting ? I have followed steps
 which is explained
 in http://blog.synyx.de/2010/06/android-and-self-signed-ssl-certificates/

         SchemeRegistry schemeRegistry = new SchemeRegistry();
         schemeRegistry.register(new Scheme(http,
 PlainSocketFactory.getSocketFactory(), 80));
         schemeRegistry.register(new Scheme(https, new
 EasySSLSocketFactory(), 443));
         BasicHttpParams params = new BasicHttpParams();
         params.setParameter(ConnManagerPNames.MAX_TOTAL_CONNECTIONS, 30);
         params.setParameter(ConnManagerPNames.MAX_CONNECTIONS_PER_ROUTE, new
 ConnPerRouteBean(30));
         params.setParameter(HttpProtocolParams.USE_EXPECT_CONTINUE, false);
         HttpProtocolParams.setVersion(params, HttpVersion.HTTP_1_1);

         ClientConnectionManager cm = new SingleClientConnManager(params,
 schemeRegistry);
         DefaultHttpClient httpClient = new DefaultHttpClient(cm, params);
         HttpPost request = new HttpPost(URL);



 --
 - Prakash.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en



-- 
Greg Donald

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] android and real time

2011-09-25 Thread Greg Donald
Real time kernel is just a kernel with a particular scheduler
compiled in.  It's not going to make your device faster.  It just
means jobs get executed differently than with other kernel schedulers.
 They get a more fair cpu time slice is all.  This will actually make
long running jobs take longer since there is more context switching
between jobs all the time.


On Sun, Sep 18, 2011 at 3:54 PM, MegaDev maherme...@gmail.com wrote:
 Hi,

 I’m Tunisian student.

 I’m interesting in android.

 I’m asking what can we do add real time concept to android:

 Take a real time Linux OS and manage android layer to match

 Or don’t change the Linux part and work on the android layer and
 manage it to be real time OS

 Or just develop a real time kernel as an application or API and with
 it we can make other real time application or game.

 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



-- 
Greg Donald

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] SSL Android

2011-09-25 Thread Greg Donald
On Sun, Sep 25, 2011 at 8:28 PM, Nikolay Elenkov
nikolay.elen...@gmail.com wrote:
 This, too, is wrong. While I agree that most CAs add little value, because
 they hardly do any verification before issuing your $5 cert (you get what you
 pay for), 'hitting an https url' is not enough. Encryption without
 authentication
 is worthless: who cares if your data stream uses unbreakable 1-bit quantum
 encryption, if you are sending the data to the wrong place?

My Android game is the only client of my self-signed setup.  I do not
need to worry about data going to the wrong place, I do not process
credit cards or interact with anything but the game client.  I'm not
buying into the CA racket for such a non important thing as an Android
game.  Self-signed is fine for this case.  The server and it's streams
to my Android app are just as secure if I had spent the CA money.

And while you're freaking out over me not paying the CA money, I'll
add.. I've worked for several employers who hosted their own in-house
email and such and self-signed certs are very popular in those
instances.  I know of two major health care providers in my town who
use self-signed certs for PHI.

And finally, I have another Android project at my day job.  I use an
actual CA cert for that.  We have client data being passed.  It
matters there, not to mention I don't want to field calls from people
like yourself freaking out over the little browser thingy not glowing
green or whatever the latest CA eye-candy enticements may be this
month.


-- 
Greg Donald

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] RMS article on Android

2011-09-21 Thread Greg Donald
http://www.guardian.co.uk/technology/2011/sep/19/android-free-software-stallman


Fairly interesting article..  I had never heard of Replicant before:

http://replicant.us/about/


-- 
Greg Donald

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Dialog dismiss()

2011-09-13 Thread Greg Donald



On Friday, September 9, 2011 10:44:24 PM UTC-5, TreKing wrote:

 At this point I'm going with

 setRequestedOrientation( ActivityInfo.SCREEN_ORIENTATION_PORTRAIT );

  

 It's a sure thing.


 It's not



Yup, it's not.

I have crash logs (many of them, and for multiple resolutions) with devices 
having width  height when I explicitly call setRequestedOrientation( 
ActivityInfo.SCREEN_ORIENTATION_PORTRAIT ); in my onCreate().   WTF?  How is 
this even possible?

This is a nightmare.


--
Greg Donald

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] OutOfMemory exceptions

2011-09-11 Thread Greg Donald
On Sat, Sep 10, 2011 at 2:31 AM, Michael Banzon mich...@banzon.dk wrote:
 Do you know what causes the OutOfMemoryException?

 My general advise would be to try and avoid that...

Yeah, 'cause apps shouldn't have graphics.


-- 
Greg Donald

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Dialog dismiss()

2011-09-09 Thread Greg Donald
On Thu, Sep 8, 2011 at 2:29 PM, TreKing treking...@gmail.com wrote:
 Or use showDialog() / dismissDialog().

I tried this and it's actually worse now.  It crashes everytime I
rotate, not just occasionally like before.

My pattern looks like this now:

  private static final int DIALOG_GAMES = 0;

  final Runnable updateCurrentGames = new Runnable()
  {
@Override
public void run()
{
  dismissDialog( Games.DIALOG_GAMES );
  updateUi();
}
  };

  private void getCurrentGames()
  {
showDialog( Games.DIALOG_GAMES );

new Thread()
{
  @Override
  public void run()
  {
currentGames();
handler.post( updateCurrentGames );
  }
}.start();
  }

  @Override
  protected Dialog onCreateDialog( final int id )
  {
Dialog dialog = null;

switch( id )
{
  case DIALOG_GAMES:
dialog = ProgressDialog.show( this, Working . . ., Getting
current games.. );
break;
}

return dialog;
  }

  @Override
  protected void onDestroy()
  {
super.onDestroy();
dismissDialog( Splash.DIALOG_SPLASH );
  }


Also tried it without the dismissDialog() call in onDestroy().

The exceptional condition is:

09-09 20:05:12.626: ERROR/AndroidRuntime(3831): Caused by:
java.lang.IllegalArgumentException: no dialog with id 0 was ever shown
via Activity#showDialog


At this point I'm going with

setRequestedOrientation( ActivityInfo.SCREEN_ORIENTATION_PORTRAIT );

It's a sure thing.

Good luck to the next guy..  I can't make it work.



-- 
Greg Donald

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] Dialog dismiss()

2011-09-08 Thread Greg Donald
I keep getting this crash report from my users:

java.lang.IllegalArgumentException: View not attached to window manager
at 
android.view.WindowManagerImpl.findViewLocked(WindowManagerImpl.java:355)
at android.view.WindowManagerImpl.removeView(WindowManagerImpl.java:200)
at android.view.Window$LocalWindowManager.removeView(Window.java:432)
at android.app.Dialog.dismissDialog(Dialog.java:278)
at android.app.Dialog.access$000(Dialog.java:71)
at android.app.Dialog$1.run(Dialog.java:111)
at android.os.Handler.handleCallback(Handler.java:587)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:4627)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
at dalvik.system.NativeStart.main(Native Method)


I don't know if it's any one particular Activity causing the issue,
none of my code appear in the stack trace..  but my typical pattern
looks like this:


private void getCurrentGames()
  {
if( this != null )
{
  progressDialog = ProgressDialog.show( this, Working . . .,
Getting current games.. );
}

new Thread()
{
  @Override
  public void run()
  {
getCurrentGames();
handler.post( updateCurrentGames );

if( this != null  progressDialog != null )
{
  try
  {
progressDialog.dismiss();
  }
  catch( Exception e )
  {
  }
}
  }
}.start();
  }

How can I keep my dismiss() calls from blowing up?  Why doesn't try/catch work?


-- 
Greg Donald

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Dialog dismiss()

2011-09-08 Thread Greg Donald
On Thu, Sep 8, 2011 at 2:29 PM, TreKing treking...@gmail.com wrote:
 On Thu, Sep 8, 2011 at 2:14 PM, Greg Donald gdon...@gmail.com wrote:

 How can I keep my dismiss() calls from blowing up?

 Keep a class-level reference to the dialog and dismiss it if you're being
 destroyed.

Well, I just have the one instance I reuse everywhere already.  And if
what you said below about it being asynchronous is true, then my other
checks to see if it's still around could still pass later.

I don't get why if( this != null ) evaluates to true when the stack
trace seems to imply the Activity is gone already.

 2 - You rotate device while it's still showing.

Exactly what I'm hearing.  Rotate, boom.

  Why doesn't try/catch work?

 I *think* because dismiss is asynchronous - calling dismiss just puts the
 dialog in the queue for cleanup. I think.

Geez..  I'm thinking I might just lock it in to landscape mode and
forgo the grief.


-- 
Greg Donald

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: getOrientation() madness

2011-08-24 Thread Greg Donald
On Wed, Aug 24, 2011 at 3:37 AM, Yahor Paulavets
ypaulav...@agilefusion.com wrote:
 I have investigated and implemented the best way for determination of
 orientation:
 http://softteco.blogspot.com/2011/08/universal-way-to-detect-landscape-mode.html

That's exactly what I ended up doing, comparing height and width,
which should work all the time, even through times of deprecation.

Half of the four orientation values seem useless to me.  All I care
about is if the screen is taller than it is wide or not, that's it.
Not like I'm gonna draw something different if a user holds the device
upside down or not.  And I seriously doubt anyone has four different
views for their app.. most will have one, maybe two.


-- 
Greg Donald

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Server for Android APP

2011-08-23 Thread Greg Donald
On Tue, Aug 23, 2011 at 1:18 PM, Michael Banzon mich...@banzon.dk wrote:
 OT: Did your website just get android-developers'ed or does it 509
 all the time? ;-)

android-developers'ed

Lol.



-- 
Greg Donald

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: getOrientation() madness

2011-08-22 Thread Greg Donald
On Sun, Aug 21, 2011 at 7:48 PM, Dianne Hackborn hack...@android.com wrote:
 Because we are sometimes dumb.  That is why it is deprecated and replaced
 with a method named getRotation() in current versions of the platform.

 A nice person spent a long time harassing me about this change because they
 insistent that we were evil vile losers who didn't understand what app
 developers needed by deprecating the getOrientation() method.  I never
 figured out exactly what was motivating all of that.  But if that person is
 reading: this is why. :)

From where I sit Android is becoming really hard to keep up with.  I
have a ton of 2.1 users still so I need to stay with API version 7.
The current API is 13, that's almost double the version I need to stay
at.  I can't force people to upgrade or buy a new phone.  Meanwhile
the SDK docs show more and more non documentation for API version 7
every day due the continuing deprecation.

What's a developer to do?


-- 
Greg Donald

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: getOrientation() madness

2011-08-21 Thread Greg Donald
On Sun, Aug 21, 2011 at 1:12 AM, Adam Ratana adam.rat...@gmail.com wrote:

 This isn't orientation, though, this is rotation.

I wonder why they named the method getOrientation() then?


-- 
Greg Donald

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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] getOrientation() madness

2011-08-20 Thread Greg Donald
Using API version 7, this code produces the exact opposite results on
my Evo versus my Galaxy Tab:

switch( getWindowManager().getDefaultDisplay().getOrientation() )
{
  case 0:
display_mode = MyApplication.HORIZONTAL;
break;

  case 1:
display_mode = MyApplication.VERTICAL;
break;

  case 2:
display_mode = MyApplication.HORIZONTAL;
break;

  case 3:
display_mode = MyApplication.VERTICAL;
break;
}

log( display_mode:  + ( display_mode == MyApplication.HORIZONTAL
? HORIZONTAL : VERTICAL ) );


I switched to API version 13 to see if the problem was fixed in the
future, and it also tells lies from one device to another.


I have dynamic full screen graphics that cannot be skewed.  I'm having
to write code to compensate for the Galaxy Tab's 48 pixel bar at the
bottom.  getWindowManager().getDefaultDisplay().getHeight() says it's
800 but it's really only 752 due to the bar.  Now I find I cannot even
count on the display orientation being accurate to code up a fix for
the initial problem.


So how do I contend with this mess?

What other devices can I count on to lie about their display and orientation?



-- 
Greg Donald

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Can I use drawable-small, large, xlarge instead of hdpi, mdpi, ldpi?

2011-08-15 Thread Greg Donald
On Sun, Aug 14, 2011 at 11:41 AM, Mark Murphy mmur...@commonsware.com wrote:
 For example, I am typing this on a notebook with a 15.6 notebook with
 a 1080p (1920x108) display. This is a significantly higher screen
 density than typical notebooks. As a result, icons, text, etc. tend to
 come out smaller, since few programmers or Web designers think about
 screen density.

Or the rare 1920x108 display for that matter.


-- 
Greg Donald

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] app issue report utility

2011-08-09 Thread Greg Donald
On Thu, Aug 4, 2011 at 7:48 AM, TreKing treking...@gmail.com wrote:
 ACRA

Thanks.  I was looking for something like this.  I implemented it late
last week, got some crash reports coming in now.. fixing and
re-releasing.  Works great :)

The Market crash reporting is fine if you only release your APK once
every lifetime or so.. ACRA is realtime so I can easily ignore old
fixed bugs.


-- 
Greg Donald

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Android -- the forgotten real fragmentation

2011-08-03 Thread Greg Donald
On Wed, Aug 3, 2011 at 1:53 AM, Zsolt Vasvari zvasv...@gmail.com wrote:
 There is a lot of FUD about Android fragmenation.  The vast majority
 of the issue mentioned can be dealt with with properly following the
 guidelines, but there is one issue that I don't know how to deal with:

 This forgotten issue is the SQLite versioning problem.

I keep important user data on the server by design.  I really only use
sqlite on the device for the convenience of a Cursor and caching
subsets of the server data.  My same sqlite code seems to work on
every phone, never had to create any edge case code with regards to
query syntax.


-- 
Greg Donald

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, 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 run apk remotely

2011-08-03 Thread Greg Donald
Anyone know how to run an apk inside a webpage?  I need my sales guys
to be able to demo our app for potential clients without the trouble
of being onsite or asking them to install the app.  I'd like to be
able to send a url with the apk running in a webpage.  My current best
idea is to remote desktop into a linux server running an emulator, but
it's so slow and unresponsive, that's not gonna work.

Thanks for any suggestions.


-- 
Greg Donald

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Install % not updating?

2011-07-16 Thread Greg Donald
On Sat, Jul 16, 2011 at 10:06 AM, Adam Ratana adam.rat...@gmail.com wrote:
 2. Google checkout seems to be crashing when particular orders are in the
 inbox or archive (for me it's some cancelled ones from Japan)

Glad to hear it's not just me.  My Google Checkout is fubar right now.


-- 
Greg Donald
destiney.com | gregdonald.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] qHD layouts?

2011-07-14 Thread Greg Donald
What do I need to name my layout folders to get a qHD device to notice
them?  I have tried layout-large and layout-large-port but the device
refuses to use them and still uses my layouts from my layout and
layout-port folders.

The device I am working with is the EVO 3D.  The resolution is
960x540, which isn't listed here:

http://developer.android.com/guide/practices/screens_support.html

The device is drawing my app in the top middle of the screen, with
huge black borders around it, even with my layout's height and width
both being set to fill_parent.

How do I support qHD with proper layouts?


-- 
Greg Donald
destiney.com | gregdonald.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


Re: [android-developers] qHD layouts?

2011-07-14 Thread Greg Donald
I'm not targeting anything, I'm trying to fix my app.  I'm trying to
get my app that looks great on Droid, Evo, and Hero to also look great
on Evo 3D.  The specs say Evo 3G has qHD resolution, for whatever
that's worth.  How do I make it not have huge black borders?  My
layout uses fill_parent in both dimensions.  Obviously I need to make
some sort of change or addition to my code or layouts or graphics?


On Thu, Jul 14, 2011 at 1:02 PM, Dianne Hackborn hack...@android.com wrote:
 There is no such thing as a qHD layout.  Just write your layout to adjust to
 the screen size using layout managers and such.
 Worth saying again: do not target specific screen sizes.  You will be
 continually unhappy.

 On Thu, Jul 14, 2011 at 9:59 AM, Greg Donald gdon...@gmail.com wrote:

 What do I need to name my layout folders to get a qHD device to notice
 them?  I have tried layout-large and layout-large-port but the device
 refuses to use them and still uses my layouts from my layout and
 layout-port folders.

 The device I am working with is the EVO 3D.  The resolution is
 960x540, which isn't listed here:

 http://developer.android.com/guide/practices/screens_support.html

 The device is drawing my app in the top middle of the screen, with
 huge black borders around it, even with my layout's height and width
 both being set to fill_parent.

 How do I support qHD with proper layouts?


 --
 Greg Donald
 destiney.com | gregdonald.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



 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  All such
 questions should be posted on public forums, where I and others can see and
 answer them.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en



-- 
Greg Donald
destiney.com | gregdonald.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


Re: [android-developers] qHD layouts?

2011-07-14 Thread Greg Donald
-   uses-sdk android:minSdkVersion=3 /
+   uses-sdk android:minSdkVersion=7 /

This is what fixed it.  Everything is filling the screen again.

Some test code I used:

DisplayMetrics metrics = new DisplayMetrics();
getWindowManager().getDefaultDisplay().getMetrics( metrics );

app.log( heightPixels:  + metrics.heightPixels );
app.log( widthPixels:  + metrics.widthPixels );

Looks like sdk version 3 is hard coded to 320x480, no matter what
phone I run it on.  Good to know.  I guess I'm into sdk version 7 from
here on.


On Thu, Jul 14, 2011 at 1:14 PM, Greg Donald gdon...@gmail.com wrote:
 I'm not targeting anything, I'm trying to fix my app.  I'm trying to
 get my app that looks great on Droid, Evo, and Hero to also look great
 on Evo 3D.  The specs say Evo 3G has qHD resolution, for whatever
 that's worth.  How do I make it not have huge black borders?  My
 layout uses fill_parent in both dimensions.  Obviously I need to make
 some sort of change or addition to my code or layouts or graphics?


 On Thu, Jul 14, 2011 at 1:02 PM, Dianne Hackborn hack...@android.com wrote:
 There is no such thing as a qHD layout.  Just write your layout to adjust to
 the screen size using layout managers and such.
 Worth saying again: do not target specific screen sizes.  You will be
 continually unhappy.

 On Thu, Jul 14, 2011 at 9:59 AM, Greg Donald gdon...@gmail.com wrote:

 What do I need to name my layout folders to get a qHD device to notice
 them?  I have tried layout-large and layout-large-port but the device
 refuses to use them and still uses my layouts from my layout and
 layout-port folders.

 The device I am working with is the EVO 3D.  The resolution is
 960x540, which isn't listed here:

 http://developer.android.com/guide/practices/screens_support.html

 The device is drawing my app in the top middle of the screen, with
 huge black borders around it, even with my layout's height and width
 both being set to fill_parent.

 How do I support qHD with proper layouts?


 --
 Greg Donald
 destiney.com | gregdonald.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



 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  All such
 questions should be posted on public forums, where I and others can see and
 answer them.

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en



 --
 Greg Donald
 destiney.com | gregdonald.com




-- 
Greg Donald
destiney.com | gregdonald.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


Re: [android-developers] are ads worth the effort?

2011-06-30 Thread Greg Donald
On Thu, Jun 30, 2011 at 4:05 PM, Brad Gies rbg...@gmail.com wrote:
 You won't make any money from the ads, but it might be worth having them to
 convince users to purchase a paid version.

I make lots of money from ads.  Greystripe for the win.


-- 
Greg Donald
destiney.com | gregdonald.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


Re: [android-developers] are ads worth the effort?

2011-06-30 Thread Greg Donald
On Thu, Jun 30, 2011 at 3:38 PM, Spooky spooky1...@gmail.com wrote:
 I'm about to release my first app, and would like some opinions
 about adding ads and a $2 donation to remove the
 ads

When you ask someone to give you money in exchange for something, it's
not a donation, it's a sale.  Taxes still apply for example, same
same.

I always build two versions of every app I make.  The free, ad based
versions always net more income.  I don't ask for donations, I just
make one version free and one not free.


-- 
Greg Donald
destiney.com | gregdonald.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


Re: [android-developers] Re: are ads worth the effort?

2011-06-30 Thread Greg Donald
On Thu, Jun 30, 2011 at 9:48 PM, Zsolt Vasvari zvasv...@gmail.com wrote:
 I'd say the apps are only worth it as a money-making venture purely
 from the clicks if you create an app that gets a 10+ thousand
 downloads a day.  But they are a good incentive for people to upgrade,
 in my experience.

Why 10+ thousand?  Revenue generated from 5K downloads/day is not zero
simply because it is not 10+ thousand.

Your thinking reminds me of people who only play the lottery when it
gets up really high.  $10M is more than you have, same as $1M is more
than you have, so what's the difference?  Money is money.


-- 
Greg Donald
destiney.com | gregdonald.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


Re: [android-developers] Card Game Android

2011-06-30 Thread Greg Donald
On Thu, Jun 30, 2011 at 2:42 PM, Diogo Salaberri caxix...@gmail.com wrote:
 I was researching some way to developer a Card Game for Android OS. I saw
 many games, like Spider, and others. This kind of games, uses what kind of
 library to do the graphical interface, can be a Android Native or a third
 library ?

I have several card games on the market.  The library I use to make
the gui is the Android SDK.



-- 
Greg Donald
destiney.com | gregdonald.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


Re: [android-developers] Re: ANNOYING BUY

2011-06-20 Thread Greg Donald
On Mon, Jun 20, 2011 at 8:47 PM, TreKing treking...@gmail.com wrote:
 And then misspell the key word in their post. I was expecting a funny story
 about a bad purchase. I'm disappointed.

Same.


-- 
Greg Donald
destiney.com | gregdonald.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] list view with alpha transparency effect

2011-06-18 Thread Greg Donald
I have a list view using a layout that has a background color of #8000.

When I scroll the list, the list item background color change to a
solid color, in this case black.  Seems it's ignoring the alpha
transparency value on scroll.

Is there a way to make it not do that?


Thanks.


-- 
Greg Donald
destiney.com | gregdonald.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: list view with alpha transparency effect

2011-06-18 Thread Greg Donald
On Sat, Jun 18, 2011 at 12:27 PM, Greg Donald gdon...@gmail.com wrote:
 I have a list view using a layout that has a background color of #8000.

 When I scroll the list, the list item background color change to a
 solid color, in this case black.  Seems it's ignoring the alpha
 transparency value on scroll.

 Is there a way to make it not do that?

Tried this in getView() in my list adapter:

RelativeLayout outer = (RelativeLayout) findViewById( R.id.outer );
int color = Color.argb( 80, 0, 0, 0 );
outer.setBackgroundColor( color );

Still turns black on scroll :(


-- 
Greg Donald
destiney.com | gregdonald.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


Re: [android-developers] list view with alpha transparency effect

2011-06-18 Thread Greg Donald
On Sat, Jun 18, 2011 at 1:48 PM, Dianne Hackborn hack...@android.com wrote:
 Use this:
 http://developer.android.com/reference/android/widget/AbsListView.html#setCacheColorHint(int)
 http://developer.android.com/reference/android/widget/AbsListView.html#attr_android:cacheColorHint

 Note that doing this means that ListView can't use important drawing
 optimizations, so on many devices this will cause scrolling to be noticeably
 less smooth.

The View passed to me in getView() in my CursorAdapter does not appear
to have setCacheColorHint().

Looks like setCacheColorHint() exists for the list view itself but my
problem is with list items, not the list.



-- 
Greg Donald
destiney.com | gregdonald.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


Re: [android-developers] list view with alpha transparency effect

2011-06-18 Thread Greg Donald
On Sat, Jun 18, 2011 at 3:09 PM, Greg Donald gdon...@gmail.com wrote:
 The View passed to me in getView() in my CursorAdapter does not appear
 to have setCacheColorHint().

 Looks like setCacheColorHint() exists for the list view itself but my
 problem is with list items, not the list.

I found something with a similar name but it doesn't work.

int color = Color.argb( 80, 0, 0, 0 );
v.setDrawingCacheBackgroundColor( color );



-- 
Greg Donald
destiney.com | gregdonald.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


Re: [android-developers] list view with alpha transparency effect

2011-06-18 Thread Greg Donald
On Sat, Jun 18, 2011 at 3:46 PM, Romain Guy romain...@android.com wrote:
 You need to call setCacheColorHint() on the ListView itself. You need
 do this only once.

Like this?

list = (ListView) findViewById( R.id.list );
int color = Color.argb( 80, 0, 0, 0 );
list.setCacheColorHint( color );

If that's what you meant, it makes it worse.  My list view items never
even become transparent again after scrolling now.



-- 
Greg Donald
destiney.com | gregdonald.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


Re: [android-developers] list view with alpha transparency effect

2011-06-18 Thread Greg Donald
On Sat, Jun 18, 2011 at 5:49 PM, Romain Guy romain...@android.com wrote:
 You need to set the cache color hint to 0,0,0,0, not 80,0,0,0. And you
 still set the background color of your items the way you want.

Still black when scrolling, only becoming transparent after the
scrolling ends.  And a lot of the time I have to actually touch an
item to get the transparency back.

I'm just gonna go with solid black.  No flicker to worry about.  Thanks anyway.


-- 
Greg Donald
destiney.com | gregdonald.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


Re: [android-developers] Re: Career as an Andoid developer. Is there any point?

2011-05-26 Thread Greg Donald
On Wed, May 25, 2011 at 6:58 PM, Indicator Veritatis mej1...@yahoo.com wrote:
 But quite a few other people have complained -- with no less evidence
 -- that Agile methods have failed to deliver on their promise.

Agile development just means not complaining when the specs change.

It's a mind game managers play with developers to keep them thinking
moving targets are normal and good when in practice they are not.


-- 
Greg Donald
destiney.com | gregdonald.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


Re: [android-developers] Re: Career as an Andoid developer. Is there any point?

2011-05-24 Thread Greg Donald
On Tue, May 24, 2011 at 7:39 PM, DanH danhi...@ieee.org wrote:
 No ulterior motive, just my judgment based on 40+ years in the
 industry.

Given what you said, I doubt anyone here gives a damn how many years
you have in the industry.  Not all old people are wise.

So grow a pair and explain what you said so it can be debated openly..
or be a coward.

Android is making me rich.  Sorry to hear that is not the case in your
own Google Checkout dashboard.


-- 
Greg Donald
destiney.com | gregdonald.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


Re: [android-developers] Re: Is Android Smartphone application development similar to Android Tablet..???

2011-04-01 Thread Greg Donald
On Fri, Apr 1, 2011 at 9:59 AM, Justin Giles jtgi...@gmail.com wrote:
 I thought goto statements were generally frowned upon in Java? :)

 Aside from the fact that there are no goto statements in java...still :)

My java binary is full of of goto statements, in the form of 'jmp' entries :)


-- 
Greg Donald
destiney.com | gregdonald.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


Re: [android-developers] Augmented Reality and Spherical 360º Views

2011-03-27 Thread Greg Donald
On Sat, Mar 26, 2011 at 9:01 PM, miguel miguelp...@gmail.com wrote:
 Do you think they are using openGL?

Have you had a look at how AndEngine does it's AR stuff?  I know the
Qualcom AR SDK uses OpenGL.


-- 
Greg Donald
destiney.com | gregdonald.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


Re: [android-developers] Re: Developers Phone Program

2011-03-23 Thread Greg Donald
On Sat, Mar 19, 2011 at 4:52 AM, Zsolt Vasvari zvasv...@gmail.com wrote:
 What other phone can you buy for $529 that's:
 a) better than a Nexus One

An EVO.

 b) gets updated to the newest version of Android?

It's pretty easy to root your phone and install whatever you want on
it.  ROM Manager prompts me for Cyanogen updates quite often.


-- 
Greg Donald
destiney.com | gregdonald.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


Re: [android-developers] Re: Global Variables

2011-03-14 Thread Greg Donald
On Sun, Mar 13, 2011 at 12:25 PM, Brill Pappin br...@pappin.ca wrote:
 I think Java still has a variant of the GOTO, but I have never seen it
 used once in about 18 years of java development!

Just because you don't see them doesn't mean they are not there.  They
have always been present in every java binary I've ever decompiled.
Even if your JDK doesn't support GOTO, you can bet your JVM does.


-- 
Greg Donald
destiney.com | gregdonald.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


Re: [android-developers] Re: Is it possible to get android device id? (Urgent -- Please)

2011-03-14 Thread Greg Donald
On Mon, Mar 14, 2011 at 12:11 PM, dweebo dwe...@gmail.com wrote:
 Not sure what you need it for but I use the Android device id provided
 by

 String androidId =
 Secure.getString(context.getContentResolver(),Secure.ANDROID_ID);

You almost certainly have to back this up with a plan B as there are
phones out there with the same ANDROID_ID as well as phones with no
ANDROID_ID at all.


-- 
Greg Donald
destiney.com | gregdonald.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


Re: [android-developers] Creating SQLite DB

2011-03-14 Thread Greg Donald
On Mon, Mar 14, 2011 at 12:40 PM, David Williams
dwilli...@dtw-consulting.com wrote:

 Shame that I can't connect to the this DB with Toad for MySQL, but I can live 
 with the
 sqlite3 for now :)

http://code.google.com/p/sqlite-manager/downloads/list


--
Greg Donald
destiney.com | gregdonald.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


Re: [android-developers] Re: Which Mobile Advertising Site?

2011-03-11 Thread Greg Donald
On Fri, Mar 11, 2011 at 7:38 AM, Jake Colman col...@ppllc.com wrote:

 So assuming that the majority of users will simply ignore the ads,
 adding them to an app is not a particularly good way to make any money.

If you write a good app it will be used a lot thereby showing a lot of
ads.  A lot of ads being shown means more chances for clicks.  If
you do not even bother to provide a lot of chances for clicks you
will certainly not get any.  This is the way it works.

 I thought you get paid per ad that is displayed even without a click.

No.  That's the way it was back in 1995, this is now.


-- 
Greg Donald
destiney.com | gregdonald.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


Re: [android-developers] Re: How to share data among different devices

2011-03-10 Thread Greg Donald
On Thu, Mar 10, 2011 at 11:11 AM, ez qzh...@gmail.com wrote:
 We don't have a remote server and are looking for Google Cloud
 solution.

 Any ideas?

Do you just not know the URL?

http://code.google.com/appengine/


-- 
Greg Donald
destiney.com | gregdonald.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


Re: [android-developers] Re: Geocoder IOException

2011-03-10 Thread Greg Donald
On Thu, Mar 10, 2011 at 2:31 PM, Droid rod...@gmail.com wrote:
 One way is to capture the geocoder responses into a collection (over
 time) then write an algoritm to determine the which contents of that
 collection are usable.
 The geocode throws bad results and nulls all thge time. Most of the
 good algorithms are propietary (skyhook), but there is room for
 exploration with your own exciting code.

http://developer.android.com/guide/topics/location/obtaining-user-location.html#BestEstimate

Google's isBetterLocation() works fine for me.


-- 
Greg Donald
destiney.com | gregdonald.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] BroadcastReceiver not working

2011-03-09 Thread Greg Donald
I can't get my BroadcastReceiver to work.  I'm not getting any errors
so I'm not sure what the issue is.

My class looks like this:

public class CallReceiver extends BroadcastReceiver
{
  @Override
  public void onReceive( final Context context, final Intent intent )
  {
Log.i( l, onReceive() );
Log.i( l, context:  + context );
Log.i( l, intent:  + intent );

if( intent.getAction().equals( Intent.ACTION_NEW_OUTGOING_CALL ) )
{
  String number = intent.getExtras().getString( Intent.EXTRA_PHONE_NUMBER );
  Log.i( l, number:  + number );
}
  }
}

I am using the statically publish method.  I have an entry like this
between my application tags in my manifest:

receiver android:enabled=true
android:name=com.example.shared.CallReceiver/receiver

I have the READ_PHONE_STATE permission in my manifest:

uses-permission
android:name=android.permission.READ_PHONE_STATE/uses-permission

To test it I am simply placing an out going call.  The problem is I
never see any of the log messages I am expecting to see.  What am I
missing or doing wrong?


Thanks.


-- 
Greg Donald
destiney.com | gregdonald.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: BroadcastReceiver not working

2011-03-09 Thread Greg Donald
On Wed, Mar 9, 2011 at 2:29 PM, Greg Donald gdon...@gmail.com wrote:
 I can't get my BroadcastReceiver to work.  I'm not getting any errors
 so I'm not sure what the issue is.

 My class looks like this:

 public class CallReceiver extends BroadcastReceiver
 {
  @Override
  public void onReceive( final Context context, final Intent intent )
  {
    Log.i( l, onReceive() );
    Log.i( l, context:  + context );
    Log.i( l, intent:  + intent );

    if( intent.getAction().equals( Intent.ACTION_NEW_OUTGOING_CALL ) )
    {
      String number = intent.getExtras().getString( Intent.EXTRA_PHONE_NUMBER 
 );
      Log.i( l, number:  + number );
    }
  }
 }

 I am using the statically publish method.  I have an entry like this
 between my application tags in my manifest:

 receiver android:enabled=true
 android:name=com.example.shared.CallReceiver/receiver

 I have the READ_PHONE_STATE permission in my manifest:

 uses-permission
 android:name=android.permission.READ_PHONE_STATE/uses-permission

 To test it I am simply placing an out going call.  The problem is I
 never see any of the log messages I am expecting to see.  What am I
 missing or doing wrong?

Since we last spoke, I found I needed to add an intent-filter:

intent-filter
  action 
android:name=android.intent.action.ACTION_NEW_OUTGOING_CALL/action
/intent-filter

But the number is still coming up null when I do this:

String number = intent.getExtras().getString( Intent.EXTRA_PHONE_NUMBER );
Log.i( l, number:  + number );

How can I get the outgoing phone number?


Thanks,

-- 
Greg Donald
destiney.com | gregdonald.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


Re: [android-developers] Re: BroadcastReceiver not working

2011-03-09 Thread Greg Donald
On Wed, Mar 9, 2011 at 2:46 PM, Rick Alther rick.alt...@gmail.com wrote:
 You need to have the PROCESS_OUTGOING_CALLS permission, not
 READ_PHONE_STATE.

Thanks  :)

And I also needed NEW_OUTGOING_CALL in my intent-filter.


-- 
Greg Donald
destiney.com | gregdonald.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] init

2011-03-03 Thread Greg Donald
https://lkml.org/lkml/2011/3/3/214

NAK!  Lol.

Meanwhile..  /me wonders where to get a new userspace from


-- 
Greg Donald
destiney.com | gregdonald.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


Re: [android-developers] Market package name on Xoom?

2011-02-28 Thread Greg Donald
On Mon, Feb 28, 2011 at 4:06 PM, rich friedel rich.frie...@gmail.com wrote:
 she's only the one who makes this OS happen...

I'm pretty sure Linus Torvalds (and 16K kernel hackers) would
disagree, not to mention Dan Bornstein, Andy Rubin, etc.


-- 
Greg Donald
destiney.com | gregdonald.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


Re: [android-developers] Re: Market package name on Xoom?

2011-02-28 Thread Greg Donald
On Mon, Feb 28, 2011 at 4:44 PM, Hari Edo hari@gmail.com wrote:
 Without Dianne's team, Android wouldn't be.

Google bought Android, it would indeed be without her.

http://www.google.com/search?q=google+buys+android


-- 
Greg Donald
destiney.com | gregdonald.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


Re: [android-developers] Market package name on Xoom?

2011-02-28 Thread Greg Donald
On Mon, Feb 28, 2011 at 4:42 PM, rich friedel rich.frie...@gmail.com wrote:
 framework engineers who takes her free time to help people like you and me.

Free time?  You think she's not getting paid?

You did notice the don't email me privately, cause I don't have time
to help you thing in all her emails, right?  She answers questions
when they are convenient to answer, much like everyone else here.


-- 
Greg Donald
destiney.com | gregdonald.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


Re: [android-developers] SDK or some tool to develop a VERY simple Android game?

2011-02-25 Thread Greg Donald
On Thu, Feb 24, 2011 at 4:16 PM, Ryan Stonn ryanst...@ryanstonn.com wrote:
 Oops!
 This got buried in my Inbox, sorry for my late reply.

 Can you give me some links that you think would help since I am coming from
 a plain java background?

I use http://www.andengine.org/ for OpenGL stuff.


-- 
Greg Donald
destiney.com | gregdonald.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


Re: [android-developers] Using Facebook API in Android

2011-02-25 Thread Greg Donald
On Fri, Feb 25, 2011 at 3:26 PM, arif mohammad.arif.f...@gmail.com wrote:
 Please let me know how to do it. Please put the complete code and
 guidelines .

Lol.


-- 
Greg Donald
destiney.com | gregdonald.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] sqlite access

2011-02-24 Thread Greg Donald
Is it possible for an activity and a service to both have simultaneous
access to the same sqlite db?  So far I can't seem to find a way due
to the failed to close() exception I get when I make the second
connection.  I've tried a couple different setups so far, and it seems
my only option may be to have my db stuff live inside the service so I
never need the second connection.  Is my thinking correct or am I
missing something?

Thanks,

-- 
Greg Donald
destiney.com | gregdonald.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


Re: [android-developers] sqlite access

2011-02-24 Thread Greg Donald
On Thu, Feb 24, 2011 at 12:17 PM, Justin Anderson magouyaw...@gmail.com wrote:
 The way I do it is by creating an Application subclass with helper methods
 to access the db.  That way access only happens at one spot and both
 activities and services should be able to access it just fine.

 Another thing I do (which works in my case because db access doesn't happen
 all that often) is open the database before every transaction and close it
 at the end.

So in addition to only being able to have the single db instance, you
also find you have to take precautions (using transactions) to only
give it one query at a time?  Am I understanding correctly?

Thanks for the insight on this.  I've only built games so far, and am
just now getting into my first business app with services and dbs
and what-not.


-- 
Greg Donald
destiney.com | gregdonald.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


Re: [android-developers] sqlite access

2011-02-24 Thread Greg Donald
On Thu, Feb 24, 2011 at 12:17 PM, Justin Anderson magouyaw...@gmail.com wrote:
 The way I do it is by creating an Application subclass with helper methods
 to access the db.  That way access only happens at one spot and both
 activities and services should be able to access it just fine.

Works great, thanks again.


-- 
Greg Donald
destiney.com | gregdonald.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


Re: [android-developers] Map tiles unnecessarily reloading when panning

2011-02-23 Thread Greg Donald
On Wed, Feb 23, 2011 at 10:48 AM, TreKing treking...@gmail.com wrote:
 Yes, also adding stuff to my map activity, also thought I'd screwed
 something up, but my current release version (what's on the Market) also
 shows the behavior.
 Methinks the server end is foo-barred.

Thank goodness..  I thought it was something I did in my own code recently.


-- 
Greg Donald
destiney.com | gregdonald.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


Re: [android-developers] User interaction with Background applications

2011-02-23 Thread Greg Donald
On Wed, Feb 23, 2011 at 4:55 PM, Mark Murphy mmur...@commonsware.com wrote:
 True, but I was hoping the OP would eventually realize that having an
 everlasting service is not the best of ideas. :-)

Even if you're developing an everlasting app?


-- 
Greg Donald
destiney.com | gregdonald.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


Re: [android-developers] User interaction with Background applications

2011-02-23 Thread Greg Donald
On Wed, Feb 23, 2011 at 5:02 PM, TreKing treking...@gmail.com wrote:
 Even if you're developing an everlasting app?

 There's no such thing.

Oh yeah.


-- 
Greg Donald
destiney.com | gregdonald.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


Re: [android-developers] Android Market question: Why there's no related applications shown for my app on the market?

2011-02-01 Thread Greg Donald
On Tue, Feb 1, 2011 at 1:11 PM, TreKing treking...@gmail.com wrote:
 People that know the details behind how the related / similar feature of
 the Market works are not going to answer you.
 This is your best
 bet: http://www.google.com/support/androidmarket/bin/request.py?contact_type=publisher

You got that mapped to a hot key, right?  :)


-- 
Greg Donald
destiney.com | gregdonald.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


Re: [android-developers] What to check into source control?

2011-01-18 Thread Greg Donald
On Tue, Jan 18, 2011 at 7:47 AM, Mattias Svala thebra...@gmail.com wrote:
 The point is that I want it to be as easy as possible to download my project
 and start hacking on it. If you have to know about all these quirks of
 Eclipse, that is an unnecessary hurdle for someone new to Android
 development to contribute to the project. Someone might even decide that it
 not worth the trouble and just give up.
 :.:: mattias

Project - Clean has always worked fine for me.

You can always use the command line if Eclipse doesn't work for you.


-- 
Greg Donald
destiney.com | gregdonald.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


Re: [android-developers] Re: Changing price in the Market

2011-01-13 Thread Greg Donald
On Thu, Jan 13, 2011 at 12:20 PM, Brill Pappin br...@pappin.ca wrote:
 Thanks, thats some helpful info.
 and yes, I know about the setting to free problem :)

Not to mention the unable to delete problem that often appears due to
the setting to free problem.


-- 
Greg Donald
destiney.com | gregdonald.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


Re: [android-developers] reducing android.permission.*

2010-10-29 Thread Greg Donald
On Fri, Oct 29, 2010 at 2:38 PM, sdphil phil.pellouch...@gmail.com wrote:
 In order to reduce the number of permission my application requests,
 it would be handy to have a list of calls that are require a
 permission.

 Does such a list exist anywhere?  Doing a search in the android
 reference doesn't seem to come up with anything...

 ideas?

Remove them all, and test the app.  Only add back what you need to
make it work again.  To me that's way faster than looking everything
up in some reference that doesn't even exist.


-- 
Greg Donald
destiney.com | gregdonald.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


Re: [android-developers] Re: User Identity

2010-10-12 Thread Greg Donald
On Tue, Oct 12, 2010 at 6:37 PM, William Ferguson
william.ferguson...@gmail.com wrote:
 Sounds like we are dealing with exactly the same problem Tom.

Anyone and everyone has this problem.  I use
Settings.Secure.ANDROID_ID.  When it's not present I hash something up
and save it as a preference.

It'd be nice to have something in Android that IS present all the
time, but we have what we have..


-- 
Greg Donald
destiney.com | gregdonald.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] caller id spoofing

2010-10-07 Thread Greg Donald
I've searched and found nothing helpful so I'm now asking for guidance.

I have a client who wishes to spoof the caller id for his phones he
assigns to his sales staff.  He wants the number to appear to be from
his main office to better handle return calls from potential buyers.

Is this possible?  After reading many posts on this list and much time
Google'ng, I'm thinking it's not.  Meanwhile he is pointing to his
internal phone system which does exactly as he described.  All his
office phones appear to dial out from the same number as far as the
receivers caller id is concerned.  How can I pull off the same on
Android?


Thanks,


-- 
Greg Donald
destiney.com | gregdonald.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] market error flood not helpful

2010-10-05 Thread Greg Donald
To whomever just updated the Market Developer Console with a flood of
ancient error messages (from July!?!), thanks.. not helpful at all.

I mean, how do I even begin debug this?

java.lang.NullPointerException:
  at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:487)
  at android.view.View.measure(View.java:7964)
  at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3023)
  at android.widget.FrameLayout.onMeasure(FrameLayout.java:245)
  at android.view.View.measure(View.java:7964)
  at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3023)
  at android.widget.FrameLayout.onMeasure(FrameLayout.java:245)
  at android.view.View.measure(View.java:7964)
  at android.view.ViewRoot.performTraversals(ViewRoot.java:763)
  at android.view.ViewRoot.handleMessage(ViewRoot.java:1633)
  at android.os.Handler.dispatchMessage(Handler.java:99)
  at android.os.Looper.loop(Looper.java:123)
  at android.app.ActivityThread.main(ActivityThread.java:4363)
  at java.lang.reflect.Method.invokeNative(Method.java:-2)
  at java.lang.reflect.Method.invoke(Method.java:521)
  at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
  at dalvik.system.NativeStart.main(NativeStart.java:-2)

There's nothing pointing to my code.  I don't even know which activity
this is for.  Did I mention it's from July, by my estimate at least 4
or 5 releases ago?  Not helpful at all.


-- 
Greg Donald
destiney.com | gregdonald.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


Re: [android-developers] Re: The Market App has a CACHE !

2010-10-04 Thread Greg Donald
On Mon, Oct 4, 2010 at 3:05 PM, Doug beafd...@gmail.com wrote:
 Take a breath, get a cup of coffee (or cut down on the coffee!).
 Everything's going to be all right.  Your situation is the exception,
 not the rule.  :-)

The simplest solution is to not open the Market app before you're
about to update your app.


-- 
Greg Donald
destiney.com | gregdonald.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


Re: [android-developers] PandaBoard Early Adopter Program -- grab a panda!

2010-10-01 Thread Greg Donald
On Fri, Oct 1, 2010 at 2:45 PM, krishna devarapalli
krishna.andr...@gmail.com wrote:
 Thank You,
 Krishna

Hare?


-- 
Greg Donald
destiney.com | gregdonald.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


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

2010-09-30 Thread Greg Donald
On Wed, Sep 29, 2010 at 5:22 PM, 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 developers
 into the program. Hence the eCPM drop. In my experience google pays
 about as well as anyone.

Not for me.  When I first got into the beta program I began making a
lot more than the ad guys I was using before: Greystrip and AdMob.
That huge increase in revenue has since gone away and now I see no
reason to choose AdSense over anyone else.

 And it isn't so much that users don't
 understand about the arrow (that is some of it). It is more that
 developers are no longer getting paid for misclicks.

All my ad integrations were reviewed by Google before launch.  There
was only the tiniest chance of any mis-clicks because my banner
placement was not close to anything else the user would ever click.

 The net is the
 same (you get less money) but it isn't like Google is making more off
 your lower reimbursements. They are making more by cranking up the
 volume of ads they serve. And yeah it sucks as a developer when your
 revenue is cut in 1/3 over 2 days.

I saw a 90% drop in AdSense revenue overall from June and July to now.
 And that's the difference between thinking I could do Android
development fulltime or not.  I can only hope it picks back up before
the holiday season.  It seems more likely that ship has sailed.


-- 
Greg Donald
destiney.com | gregdonald.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


Re: [android-developers] Re: Is anyone's active install % dropping like a rock lately?

2010-09-30 Thread Greg Donald
On Thu, Sep 30, 2010 at 2:12 PM, scott19_68 sw.cop...@gmail.com wrote:
 FYI:  Updated one of my apps that was affected by this issue - active
 install percentage holding steady now, but has not returned to
 anywhere close to 4 weeks ago.  Would like to know if past cases where
 updates were counted as uninstalls are ever going to be corrected...

Surely Google has log files they can use to fix things.


-- 
Greg Donald
destiney.com | gregdonald.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


Re: [android-developers] Anchors aren't working

2010-09-30 Thread Greg Donald
On Thu, Sep 30, 2010 at 2:20 PM, paladin quoti...@gmail.com wrote:
 In an HTML page, I have at one place, a name=updates/a, but in a
 WebView, when I click on a href=#updatesupdates/a, it doesn't
 jump to the correct place. It works fine if I load that page in a
 browser. It does nothing but mark that link as visited in the WebView.
 Is there some setting that I'm not correctly configuring?

You might try using full urls and implement you own shouldOverrideUrlLoading():

public class MyWebViewClient extends WebViewClient
{
  public boolean shouldOverrideUrlLoading( WebView view, String url )
  {
view.loadUrl( url );
return true;
  }
}

I'm guessing it's failing because your hrefs to your named anchors
aren't full urls, or you need to tell your webview to follow your
clicks, or both.


-- 
Greg Donald
destiney.com | gregdonald.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


Re: [android-developers] Re: Is anyone's active install % dropping like a rock lately?

2010-09-30 Thread Greg Donald
On Thu, Sep 30, 2010 at 2:43 PM, Justin Giles jtgi...@gmail.com wrote:
 I updated one of my apps on Tuesday.  I have noticed that the active install
 numbers were accumulating at a higher rate than my download numbers.  So, I
 think as people update the app, it is putting the active installs back to
 normal.  So far I've only gone up 1%, but it's nice to see it seemingly go
 back to normal.
 Justin

Normal?  You mean like all the way back to December when it broke?
Yeah, that'd be nice.


-- 
Greg Donald
destiney.com | gregdonald.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


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

2010-09-29 Thread Greg Donald
On Wed, Sep 29, 2010 at 1:50 PM, Brad Gies rbg...@gmail.com wrote:
  Greg,

 What are the changes that Google Adsense made that affect how much you make?

They changed the banner so only a tiny portion of it is now clickable.
 As a result I get much fewer clicks.  I guess users don't get the
fact that they have to click the tiny little arrow now.

They lowered the eCPM rate so I now make much, much less per click.  I
suppose on this one they looked at their competitors and adjusted
things to be more in line with them.


-- 
Greg Donald
destiney.com | gregdonald.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


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

2010-09-28 Thread Greg Donald
On Tue, Sep 28, 2010 at 3:34 PM, Darrin Smith darri...@gmail.com wrote:
 I have an application that I think is about two weeks or so from being ready
 to ship. I plan to charge for the app because I really believe many people
 will find it of value. The thing is how to go about getting the word out
 about it.

 What do you typically do when releasing a new application? Do you offer a
 slightly crippled free version, go for a full fledged version that has
 nuisance screens that tell people to upgrade, try the fully functional but
 with advertising route, or just release one app for purchase only?

 Thanks.

I always release two version.. a free version with ads, and a paid
version without.

I used to could say I made ALOT more off the free version of my apps
using Google AdSense, but that is no longer the case since Google made
some changes to AdSense recently.  Someone besides me is now getting
rich off my free versions.


-- 
Greg Donald
destiney.com | gregdonald.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


Re: [android-developers] Install to sd and alarms

2010-09-24 Thread Greg Donald
On Fri, Sep 24, 2010 at 3:28 PM, Dianne Hackborn hack...@android.com wrote:
 Apps on SD is mostly intended for
 large applications that are fairly self-contained (read games and stuff like
 that).

An app being small doesn't stop users from screaming Why can't I move
this to my sd card, 1 star!.

God I hate users.


-- 
Greg Donald
destiney.com | gregdonald.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


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

2010-09-23 Thread Greg Donald
On Thu, Sep 23, 2010 at 9:00 PM, Justin Giles jtgi...@gmail.com wrote:
 Xavier stated in another thread that in the next release there will be
 built-in support for proguard in Eclipse.  I can't find a link right now,
 but the last discussion on it was earlier today or yesterday.
 Justin

http://groups.google.com/group/android-developers/msg/2ed43730b7dd6a33

I for one can't wait to see my classes be optimized away!


-- 
Greg Donald
destiney.com | gregdonald.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


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

2010-09-22 Thread Greg Donald
God I hate sales people.

On Wed, Sep 22, 2010 at 3:32 PM, Tim t...@mobiforms.com wrote:
 To get started really quickly with Android you do not need to learn
 Java, download 100s MB software and spend hours configuring and
 learning the Android SDK!!!


-- 
Greg Donald
destiney.com | gregdonald.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


  1   2   3   >