[android-developers] How to successfully “Generate a Notification Key on the Client” with GCM?

2015-02-13 Thread pushbit
I'm following the below instructions, but the response is always HTTP 401 Unauthorized. I have verified that the ID token, registration ID, and project ID (number) are all valid. Unfortunately the response does not provide a detailed reason. https://developer.android.com/google/gcm/notificat

Re: [android-developers] Empty EditText when turning screen on and Screen lock set to 'None'

2012-10-31 Thread pushbit
ndroid App Dining Out (with friends)<https://play.google.com/store/apps/details?id=net.sf.diningout> On Wednesday, 31 October 2012 00:06:32 UTC+1, pushbit wrote: > > Yes, the EditText has an android:id. I've found this problem with a > variety of EditText and AutoCompleteTextView

Re: [android-developers] Empty EditText when turning screen on and Screen lock set to 'None'

2012-10-30 Thread pushbit
id.com/reference/android/view/View.html#attr_android:saveEnabled > > On Tue, Oct 30, 2012 at 3:36 PM, pushbit wrote: > > I'm having a problem where an EditText in landscape/full screen mode > becomes > > empty after turning the screen off and then on when the system Sc

[android-developers] Empty EditText when turning screen on and Screen lock set to 'None'

2012-10-30 Thread pushbit
I'm having a problem where an EditText in landscape/full screen mode becomes empty after turning the screen off and then on when the system Screen lock is set to 'None'. The keyboard remains active, but it doesn't appear to have focus and no text updates are displayed on the screen. If I pres

[android-developers] Re: OnDateChanged broken in ICS. Anyone have a work around?

2012-09-19 Thread pushbit
view.init(year, monthOfYear, dayOfMonth, this); > } > > Once you hit a scroll button it goes to never never land for a few seconds > then crashes. I tried a couple other permutations too with the same result. > > > > On Tuesday, September

[android-developers] Re: My AVD is super slow

2012-09-18 Thread pushbit
For API level 14+, try adding hw.gpu.enabled: yes. If you have a decent video card/chip, it should make the UI, at least, much faster and smoother. pb Open Source Android App Developer Dining Out (with friends) - The History and Future of Your Food

[android-developers] Re: How to use drawable resource in custom XML?

2012-09-18 Thread pushbit
What about getAttributeResourceValue()? I haven't tried this method, but from the docs it appears that it should work. For others (and to note what I just learned today), you can use Resources.getXml to get an XmlResourceParser for your custom xml files (in res/xml/) and in addition to XmlPull

[android-developers] Re: expandable list group view

2012-09-18 Thread pushbit
If a button is covering the list item, then its OnClickListener would likely consume the touch event. If you want the list item to also be clicked, then I think you will have to manually notify the {Group,Child}ClickListeners from your button OnClickListener(s). Or if you can just use an Imag

[android-developers] Re: OnDateChanged broken in ICS. Anyone have a work around?

2012-09-18 Thread pushbit
I noticed that this bug is fixed in JB. But for ICS, I believe you can fix the bug yourself in your DatePickerDialog subclass. Override onDateChanged and after super.onDateChanged() call view.init(year, month, day, this). Unfortunately init will be called twice, but the second time should res