[android-developers] Digest for android-developers@googlegroups.com - 9 updates in 5 topics

Comments: (0)
Igor Ganapolsky <eazyigz@gmail.com>: Jan 29 01:25PM -0800

I am getting this error:
> android.content.Context.getMainLooper()' on a null object reference
When calling
new GoogleApiClient.Builder(getApplication())

On Tuesday, February 8, 2011 at 10:54:05 AM UTC-5, nate wrote:
Russell Cecala <red.cricket.blog@gmail.com>: Jan 29 09:48AM -0800

I went to the Google Play Developer console and clicked on the "settings"
gear icon.
I enter in the email I have my android phone logged with in the "Gmail
accounts with testing access" field. Then on my phone I open the play
store app and try to install one of my apps that cost "$0.99". I was
expecting that I would not have to actually pay for my own app, but google
play still charges $0.99 to my credit card to install my app. I guess I do
not understand what the testing access means or how to use it. Can anyone
help me enlighten me?
TreKing <trekingapp@gmail.com>: Jan 29 01:37PM -0600

On Thu, Jan 29, 2015 at 11:48 AM, Russell Cecala <red.cricket.blog@gmail.com
> wrote:
> I guess I do not understand what the testing access means or how to use
> it. Can anyone help me enlighten me?
Small text above that box:
"In addition to the owner of this console the following users will get the
License test response from the application."
This is for testing Licensing.
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices
Russell Cecala <red.cricket.blog@gmail.com>: Jan 29 01:05PM -0800

Thanks TreKing. I changed the License Test Response pulldown to LICENSED
... but I still get prompted from my credit card? Does it take some time
for the change to propagate or am I still misunderstanding something?
Steve Gabrilowitz <steveg1701@gmail.com>: Jan 29 04:11PM -0500

You are still misunderstanding. The license feature applies only to in-app
purchases, not the initial purchase. And apps that implement IAP are
generally free for the initial download ;-)
On Jan 29, 2015 4:06 PM, "Russell Cecala" <red.cricket.blog@gmail.com>
drac94 <vampirockero@gmail.com>: Jan 29 07:35AM -0800

You should take a look at solutions for crash reporting like ACRA, I use it for all my apps and it's very easy to configure and manage
MathieuB <blanchmh@gmail.com>: Jan 29 06:09AM -0800

You shouldn't set a max sdk. You can set minSdk to 18, and targetSdk to 21.
If you set a max, that means if there's a new android version, people won't
be able to download your app, you'll have to make an update.
As for the error you get, it's mainly a lint error. If the code is in an if
statement like you showed, there's no reason someone with API 18 enters
into this if statement. You'll just have to add @SuppressLint("NewApi")
before your method.
Have a look at this stackoverflow page, it'll help.
Tony Pitman <tony@shatalmic.com>: Jan 29 06:40AM -0800

My mistake in choosing words. I didn't set a max, it is the target that I
The IDE also suggests putting the suppress tag on the method, but I have
never been a fan of suppressing warnings or errors. If this is the accepted
way to do it, however, then I will follow it.
On Thursday, January 29, 2015 at 7:09:08 AM UTC-7, MathieuB wrote:
Grunthos <qwerty@rhyme.com.au>: Jan 29 03:25AM -0800

Don't suppose anyone has insights for just one of these questions?
#4 would be pretty useful.
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to android-developers+unsubscribe@googlegroups.com.

[android-developers] Digest for android-developers@googlegroups.com - 6 updates in 3 topics

Comments: (0)
Tony Pitman <tony@shatalmic.com>: Jan 28 08:53AM -0800

I have an app that currently supports bluetooth low energy on pre-lollipop.
I am using things like startLeScan to do the central role.
I noticed that Lollipop introduces new apis and that the old ones are
I am having one problem in particular that may be related. When I call
startLeScan with no UUIDs it finds my devices. If I pass in the UUID of the
same device that it found it doesn't work.
This works fine on a pre-lollipop device.
Could this be that the api is deprecated and I need to use the new
startScan on lollipop? If that is the case how do I do this in the same
When I browse to the documentation on the web site for startScan it warns
me that it is only available in SDK 21. Does this mean if I use it then my
app won't work on pre- SDK 21 devices or does the sdk take care of that for
Sorry to seem like a noob, but this is the first time I have encountered
something like this.
MathieuB <blanchmh@gmail.com>: Jan 28 05:58PM -0800

According to the official documentation :
You can use Android 5.0 APIs while also supporting older versions by adding
> Different Platform Versions
> <https://developer.android.com/training/basics/supporting-devices/platforms.html>
> .
Example with honeycomb :
// Make sure we're running on Honeycomb or higher to use ActionBar APIs
ActionBar actionBar = getActionBar();
actionBar.setDisplayHomeAsUpEnabled(true); }
In your case :
Tony Pitman <tony@shatalmic.com>: Jan 28 07:51PM -0800

Thank you for the quick reply.
I am running into a problem with the bluetooth le stuff specically,
however. I tried this:
if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
mBluetoothLeScanner = mBluetoothAdapter.getBluetoothLeScanner();
I have the min version for my application set to 18 and the max to 21. On
the getBluetoothLeScanner call I get an error that my min sdk version is
only 18 and needs to be 21. This is my whole problem how do I support < 21
bluetooth and >= 21 bluetooth calls at the same time?
On Wednesday, January 28, 2015 at 6:58:10 PM UTC-7, MathieuB wrote:
Jose_GD <jose.gonzalez.d@gmail.com>: Jan 28 06:16PM -0800

You will get often different results given the same minWidth and minHeight
With all that wild world of different screen sizes and densities and 3rd
party launchers, it's very difficult to get consistent result with home
screen widgets.
I wonder why Google opted to specify sizes with dps, doing it directly with
number of cells would be much better...
The best you can do is:
- don't use the old formula, that was used in the "dark ages" of appwidgets
- feel free to try different minWidth and minHeight values according to the
device specifications, i.e. experiment using different values in xml /
xml-sw600dp / xml-sw720dp etc. if you really want to achieve an specific
number of cells
- just live with the fact that some obscure launcher will do the math
according to its own criteria and will decide that your perfectly crafted
4x1 widget is a 3x1 one (I'm looking at you Google Now Launcher)
(I'm serious about Google Now Launcher, my widget comes in two sizes, 3x2
and 4x3, this Google-owned launcher presents them as 2x2 and 3x3. And the
minWidth and minHeight values are perfectly set to Google's specifications)
Good luck
El domingo, 25 de enero de 2015, 8:59:20 (UTC-3), BArtWell escribió:
Stefan Alder <twigbranch@gmail.com>: Jan 27 11:49PM -0800

I need to get logcat output from our app is which appears to be crashing on
load for a beta tester. I have not been able to replicate the issue myself.
Is there an easy way a beta tester (who is not a developer and doesn't have
adb) to capture logcat output?
Mukesh Srivastav <mukichamps@gmail.com>: Jan 28 04:33PM +0530

Hi Stefan,
Here it is , if you are talking about Crash/FC that needs to be capture at
the class level/function level and the which line it fails,then you need to
handle it UncaughtExceptionHandler exception.
here is the code for you which needs to be included in the Application
private Thread.UncaughtExceptionHandler androidDefaultUEH;
private Thread.UncaughtExceptionHandler handler = new
Thread.UncaughtExceptionHandler() {
public void uncaughtException(Thread thread, Throwable ex) {
StackTraceElement[] stackTrace = ex.getStackTrace();
FileLogger.appendLog("uncaughtException", ex.toString());
for (int i = 0; i < stackTrace.length; i++) {
//Here the filelogger is your class where you put the application logs and
here, I am logging the crash in the file logger.
stackTrace[i].getClassName() + " : "
+ stackTrace[i].getMethodName() + " : "
+ stackTrace[i].getLineNumber());
androidDefaultUEH.uncaughtException(thread, ex);
and call this onCreate of the Application.
public void onCreate() {
// TODO Auto-generated method stub
//Here the filelogger is your class where you put the application logs.
FileLogger.appendLog("PalsApplication", "onCreate");
androidDefaultUEH = Thread.getDefaultUncaughtExceptionHandler();
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to android-developers+unsubscribe@googlegroups.com.

[android-developers] Digest for android-developers@googlegroups.com - 9 updates in 4 topics

Comments: (0)
"C.R." <ned4spd8874@gmail.com>: Jan 27 07:04AM -0800

I run a website called "What's After The Credits?" at AfterCredits.com;
which has been around for about six years now. I've been working with a
developer to create a simple app to go along with my site. This is
something that I've been working on for nearly 3 years, but finally found
someone who would be willing to work sort of pro-bono, meaning I won't get
the ad revenue from the app, but the app links to my site. Also about
85-90% of my visitors come via mobile devices.
So, he made the app and submitted it to Google but they first removed it
because "Intellectual property and impersonation or deceptive behavior".
So I wrote up a letter on company letterhead stating that I was working
with the developer and that I give him full permission to use my
"intellectual property" and link to my site for the purposes of this app.
But then Google just got back to him stating:
Thank you for reaching out to the Google Play team.
After further review, we are unable to reinstate your application. You can
find out more information under Reason for Removal in the initial removal
notification from Google Play. If your account is still in good standing
and the nature of your app allows for republishing, you may consider
releasing a new, policy compliant version of your app to Google Play under
a new package name.
If you do choose to re-publish a new, policy-compliant version of your app,
please make sure to review the Content Policy
<https://play.google.com/about/developer-content-policy.html> and visit the Policy
Help Center
<https://support.google.com/googleplay/android-developer/answer/113474?hl=en> for
additional guidance to ensure your next app is compliant with the policy.
Due to the volume of appeals, we will be unable to respond to follow-up
queries where we have no new information to share.
The Google Play Team"
So, what's going on here? Can anyone clarify why Google keeps denying this
app? I give him full permission to use my site and it's property, why do
they keep denying it? Oh, and the app is called "After Credits" since
that's what I use everywhere on social media as well as being the URL of my
site (e.g. aftercredits.com, facebook.com/aftercredits,
twitter.com/aftercredits, etc.).
Thanks in advance for any help and/or suggestions with this issue.
Trevor Page <trevg60@gmail.com>: Jan 27 03:35PM

In my layman's point of view, what strikes me immediately about your site
is that after spending a few minutes looking around, I could not find any
acknowledgement whatsoever regarding the intellectual property rights of
the owners of the media or text you're placing on your website.
From what I gather from reading of various persons' problems with Google's
review process, it does seem that the process is very formulaic without
much chance of recourse or discretion. I can only imagine that the reviewer
has looked at your app and probably followed some kind of checkbox process
that says: Does the app use or reference the IP of others either in the app
or an external reference? Yes. OK, are those IP property rights
acknowledged (or whatever)? A quick scan over it says... nope. Therefore
hit the reject button.
As I say, this is purely a layman's point of view. I know little more than
the average person about IP about copyright. But it does surprise me to
find no disclaimer or acknowledgement on your site, similar to for example
what you find on other sites related to films, such as this for example:
JackN <jack@jacknorth.com>: Jan 27 07:46AM -0800

I haven't seen the app, but from looking at you website, you have plenty of
other's IP.

Probably fair use, but google probably ain't gonna recogize that without a
trip to the courthouse.

On Tuesday, January 27, 2015 at 7:04:28 AM UTC-8, C.R. wrote:
"C.R." <ned4spd8874@gmail.com>: Jan 27 07:50AM -0800

I have been given permission from the studios to post the IP that I have.
Also, it's no different than IMDb or any other movie related website.
It's either fair use or like I said, I've been given permission.
On Tuesday, January 27, 2015 at 9:46:42 AM UTC-6, JackN wrote:
"C.R." <ned4spd8874@gmail.com>: Jan 27 07:54AM -0800

Ah, I just re-designed the site about a month ago and didn't realize the
links to those pages are missing. These are the two pages that I have and
will fix tonight when I am at
home: http://aftercredits.com/general-disclaimer/
and http://aftercredits.com/privacy-policy/.
Do you think that will help?
On Tuesday, January 27, 2015 at 9:48:12 AM UTC-6, Trevor wrote:
JackN <jack@jacknorth.com>: Jan 27 02:35PM -0800

You say "and that I give him full permission to use my "intellectual
property" and "

That ain't your IP, so your letter probably only made them double down.
perhaps that is the impersonation part??

On Tuesday, January 27, 2015 at 7:04:28 AM UTC-8, C.R. wrote:
pdm-tex <pdmccann@gmail.com>: Jan 27 06:35AM -0800

Thanks for your help. I was not too clear I am afraid. My test app is
able to create an object that is defined in the library, so I am thinking
this dependency is OK. The crazy thing is that inside the library, one
method makeas a class to a library method and gets the no class found
error. Is there something obvious I am missing? Once again, thanks.
On Monday, January 26, 2015 at 4:53:10 PM UTC-5, Jonathan S wrote:
Ronoli <javatyro@gmail.com>: Jan 27 04:47AM -0800

Hi All,
I had to take a quick break from working with Android Studio 1.0.2 to find
the right place to praise it. This seem to be that place.
Before taking the plunge from Eclipse, I did a lot of searching to compare
what others were saying about Android Studio.
Most of the chatter out there sounded like a bunch of Eclipse old-schoolers
pushing back against change. But most of the
criticism was fair albeit undoubtedly related to the immaturity (bugs and
missing functionality) of this new IDE in its earliest stages.
So I put off the dreaded thought of losing Eclipse until I saw this
statement on developer.android.com:
"Android Studio is the official IDE for Android application
That pretty much did it for me... So from "Sorry Eclipse my old friend" to
struggling and frustrated in a strange new environment,
to WOW!!! took me about 2 weeks. I'm not full time nor am I an expert so I
find this "WOW" factor to be kind of hard to explain.
You can read about "what's new" all you want, and I definitely recommend
it. But most of that just scared me and left me wondering
what the hell is Gradle? All I can say is that *almost* every single thing
I do in Android Studio presents me with a pleasant surprise!
Note: I am not part of a development team so I can't speak to it's team
Some highlights from my perspective:
- Incredible code editing environment with so many tips, code completion,
suggestions, warnings, shortcuts etc!
- Different views available of your project structure which can flatten out
all those pesky density specific drawable and layout folders,
- Sweet GUI designer.
- Gradle makes external library dependencies a snap!
- Nice Maven repository integration/easy access to those external libraries.
- Nice version control integration.
- Built-in image viewer.
- No import/export of Android projects needed to move to another pc. Just
copy the folder here and paste it there! Walah all configurations
move with you. If the SDK is in a different location from pc to pc,
Android Studio prompts you with a fix on start up.
- Installation couldn't be easier.
- So many little improvements that it is literally impossible to explain.
See, already nothing but a futile attempt to convince.
My main objectives here though were to:
A) Encourage anyone who is afraid to take this plunge to jump as fast as
you can, it won't disappoint and especially...
B) Thank every one at Google and JetBrains for all their hard work on this
awesome new environment.
Thank you, thank you, thank you!
On Thursday, May 16, 2013 at 1:15:30 AM UTC-4, abhijit wrote:
Abhi <abhi007tyagi@gmail.com>: Jan 27 03:19AM -0800

I want to access phone camera stream inside webview.
I have HTML pages which are working absolutely fine on Chrome for android
I want the same features inside webview now.
Right now I see dark thumbnail only and no camera permission alert is
getting invoked.
On browser as soon as I open the page, I am asked for Audio,Camera
Permission and once approved
I am able to see my camera stream inside <video> tag
This is not happening in webview.
Please check my stackoverflow
question for the same
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to android-developers+unsubscribe@googlegroups.com.