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

Comments: (0)
Nathan <nathan.d.mellor@gmail.com>: Jan 31 08:49PM -0800

On Friday, January 30, 2015 at 8:29:17 PM UTC-8, Russell Cecala wrote:
 
> If there is a finite number of apps I could publish I would have to figure
> out how to pick the ones that would sell best and not publish the less
> popular ones :)
 
Excellent strategy. If you can do that, why not take it a step further and
not develop the less popular apps in the first place?
 
Most of us human developers without infinite time and resources have to do
that anyway.
 
But I will echo comments from TreKing about what difference does it make?
 
I do believe that developer accounts can handle three digits of apps. But
if you were to find out that they are infinite, why would you alter your
strategy?
 
Somehow you can afford to produce thousands of apps, create screenshots,
descriptions, titles, graphics, tech support, marketing, and updates at
zero cost, yet somehow if it came to it, plunking down $25 for another
developer account is a huge burden? Something doesn't add up.
 
I suppose you probably have access to some app generator and you've read an
info product that has told you the way to make big bucks on apps is to make
a gazillion of them. I don't mean to discourage you, just be sure and
report back on how that goes for you. I suspect your account will be
disabled sooner for the "repetitive content" clause below than it will be
for having too many apps.
 
Nathan
 
*Spam and Placement in the Store*
Developers are important partners in maintaining a great user experience on
Google Play.

- Do not post repetitive content.
- Do not use irrelevant, misleading, or excessive keywords in apps
descriptions, titles, or metadata.
- Developers must not attempt to change the placement of any Product in
the Store, or manipulate any product ratings or reviews by unauthorized
means such as fraudulent installs, paid or fake reviews or ratings, or by
offering incentives to rate products.
- Apps that are created by an automated tool or wizard service must not
be submitted to Google Play by the operator of that service on behalf of
other persons.
- Do not post an app where the primary functionality is to:
- Drive affiliate traffic to a website or
- Provide a webview of a website not owned or administered by you
(unless you have permission from the website owner/administrator to do so)
- Do not send SMS, email, or other messages on behalf of the user
without providing the user with the ability to confirm content and intended
recipient.
Russell Cecala <red.cricket.blog@gmail.com>: Jan 31 07:50PM -0800

Hi,
 
I know we can download sales and earning reports from the developer console
from the financial reports page, but how can I download things like google
play link to each of my apps and their store listing information?
 
Thanks
joe131 <joes0451@gmail.com>: Jan 31 12:42PM -0800

Hi All,
 
I noticed that in the 'android' commands 'android create project' and
'android create lib-project' there is a parameter for --gradle (Use Gradle
template).
 
I can't find out anything on this.
 
Could someone reply with a link to an article, or something with more
detailed
information about it?
 
I already know about the --gradle-version (Gradle Android plugin version)
 
Thanks!
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 - 8 updates in 4 topics

Comments: (0)
Russell Cecala <red.cricket.blog@gmail.com>: Jan 29 11:38PM -0800

What is the maximum number of apps one can have in google play?
TreKing <trekingapp@gmail.com>: Jan 30 09:05PM -0600

On Fri, Jan 30, 2015 at 1:38 AM, Russell Cecala <red.cricket.blog@gmail.com>
wrote:
 
> What is the maximum number of apps one can have in google play?
 
 
I'm not sure if that's something that's publicized ... but ... what
difference does it make?
 
-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices
Russell Cecala <red.cricket.blog@gmail.com>: Jan 30 08:23PM -0800

If there is a finite number of apps I could publish I would have to figure
out how to pick the ones that would sell best and not publish the less
popular ones :) Again thanks for the reply TreKing!
 
"C.R." <ned4spd8874@gmail.com>: Jan 30 10:52AM -0800

I fixed my page to display more terminology stating that the material is
copyright their respectful owners. I also fixed the links for the
disclaimer and privacy policy type pages.
 
The developer resubmitted and got this reply "If you or your client are
authorized to utilize this content, please attach verifiable and accepted
proof of permission in your reply.". So, I have been given consent by the
studios to utilize their material. Trouble is I don't have much proof
other than screenshots that I can take of the pages from where I get said
material from. When I registered, I only got the "welcome, you have been
approved" type messages. Do you think a screenshot would be enough?
 
The dev wants to blur the images, but that shouldn't be necessary, I'm
trying to get this figured out without making the preview images
look amateurish.
 
On Tuesday, January 27, 2015 at 9:04:28 AM UTC-6, C.R. wrote:
TreKing <trekingapp@gmail.com>: Jan 30 09:13PM -0600


> When I registered, I only got the "welcome, you have been approved" type
> messages. Do you think a screenshot would be enough?
 
 
You need to talk to a lawyer, not an internet forum frequently mostly by
hobbyist developers.
 
-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices
JackN <jack@jacknorth.com>: Jan 30 10:17AM -0800

I think we will stick with eclipse. It is the open solution. In eclipse we
can do applets, j2ee, c/c++, android and many others.
 
On Wednesday, May 15, 2013 at 10:15:30 PM UTC-7, abhijit wrote:
 
TreKing <trekingapp@gmail.com>: Jan 30 09:10PM -0600


> I think we will stick with eclipse. It is the open solution.
 
And Android Studio is not?
 
-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices
Abhi <abhi007tyagi@gmail.com>: Jan 29 10:33PM -0800

Can someone help me here ??
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 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())
.addConnectionCallbacks(this)
.addOnConnectionFailedListener(this)
.addApi(LocationServices.API)
.build();
 

 
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?
 
Thanks
Red
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.
http://developer.android.com/google/play/licensing/setting-up.html#test-response
 
-------------------------------------------------------------------------------------------------
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>
wrote:
 
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
 
http://www.toptal.com/android/automated-android-crash-reports-with-acra-and-cloudant
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.
 
http://stackoverflow.com/questions/11592820/writing-backwards-compatible-android-code
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
set.
 
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.
 
Thanks!
 
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
deprecated.
 
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
application?
 
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
me?
 
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
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
ActionBar actionBar = getActionBar();
actionBar.setDisplayHomeAsUpEnabled(true); }
 
 
In your case :
 
if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP)
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
values.
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
 
José
https://play.google.com/store/apps/developer?id=Jos%C3%A9+Gonz%C3%A1lez+D%27Amico
 
 
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
class.
 
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.
FileLogger.appendLog(
"uncaughtException",
stackTrace[i].getClassName() + " : "
+ stackTrace[i].getMethodName() + " : "
+ stackTrace[i].getLineNumber());
}
 
androidDefaultUEH.uncaughtException(thread, ex);
}
};
 
 
and call this onCreate of the Application.
 
@Override
public void onCreate() {
// TODO Auto-generated method stub
super.onCreate();
//Here the filelogger is your class where you put the application logs.
FileLogger.appendLog("PalsApplication", "onCreate");
androidDefaultUEH = Thread.getDefaultUncaughtExceptionHandler();
Thread.setDefaultUncaughtExceptionHandler(handler);
}
 
 
 
 
 
 
 
 
 
--
Warm Regards,
*Mukesh Kumar*,
Android Consultant/Freelancer,
India,Hyderabad.
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:
"Hi,
 
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.
 
Regards,
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:
http://www.rottentomatoes.com/copyright/
 
Cheers,
 
Trev
 
 
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

Jonathan,
 
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.
 
Doug
 
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
development"
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
capabilities.
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!
Ron
 
RonoliApps
http://ronoliapps.com
 
 
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
<http://stackoverflow.com/questions/28167480/device-camera-stream-inside-webview-video-tag>
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.

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

Comments: (0)
"André L" <andelphi@gmail.com>: Jan 26 11:02PM -0200

I notice the same and I am trying to find out a solution
pdm-tex <pdmccann@gmail.com>: Jan 26 07:25AM -0800

Jonathan S:
com.dsi.client.lib.UniMagII is class that manages interaction with a Mag
Stripe Reader on the headset jack. The ctor gets an app context from the
client. Please let me know if you have other questions.
 
On Friday, January 23, 2015 at 4:34:28 PM UTC-5, Jonathan S wrote:
Jonathan S <xfsunoles@gmail.com>: Jan 26 01:53PM -0800

Okay, you supposed to get this error if this class is not FOUND by runtime.
 
Check your dependency for that library.
 
On Monday, January 26, 2015 at 10:25:21 AM UTC-5, pdm-tex wrote:
Aaa Ass <testchetu123@gmail.com>: Jan 26 09:01PM +0530

Hi:,
 
you have to import corret R Package for this fixes.
Thanks
 
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 - 1 update in 1 topic

Comments: (0)
BArtWell <bazhanov.artem@gmail.com>: Jan 25 03:59AM -0800

I need to make a widget with size 4x1 cells. Here is my code:
<appwidget-provider xmlns:android=
"http://schemas.android.com/apk/res/android"
 
 
 
 
android:minWidth="250dp"
 
android:minHeight="40dip"
 
android:updatePeriodMillis="0"
 
android:initialLayout="@layout/widget"
 
android:configure="ru.bartwell.myapp.WidgetActivity" />
 
 
I test it on two virtual devices in Genymotion:
 
 
1. Google Nexus 7, 800x1280, Android 4.4.4
2. Samsung Galaxy S5, 1080x1920, Android 4.4.4

And I get different results:
 
When android:minWidth="250dp" and android:minHeight="40dip" (new formula):
 
 
1. Google Nexus 7 - 3x1 cells
2. Samsung Galaxy S5 - 4x1

When android:minWidth="292dp" and android:minHeight="70dip" (old formula):
 
 
1. Google Nexus 7 - 4x1
2. Samsung Galaxy S5 - 4x2

As I see widget size depends of screen resolution. But I just need to get
4x1 widget's size on all devices. How to correctly setup widget size?
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 - 5 updates in 2 topics

Comments: (0)
TreKing <trekingapp@gmail.com>: Jan 24 05:50PM -0600


> I can't see a way to debug the build variants, or even know if I am
> debugging the main or a variant.
 
 
Not entirely sure what you're asking, but there is a Build Variants tool
window that lets you flip the current build variant you're working in (and
hence running / debugging).
Mine's on the lower end of the left window dock. Also accessible by
View->Tool Windows->Build Variants.
 
-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices
Nathan <nathan.d.mellor@gmail.com>: Jan 24 08:31PM -0800

On Saturday, January 24, 2015 at 3:58:36 PM UTC-8, TreKing wrote:
> hence running / debugging).
> Mine's on the lower end of the left window dock. Also accessible by
> View->Tool Windows->Build Variants.
 
That is what I was asking. I don't know my way around Android Studio much
yet. I found the first one since I asked and the second way since your
response.
 
Nathan
Nobu Games <dev.nobu.games@gmail.com>: Jan 24 11:15AM -0800

Thanks for your input!
 
On Friday, January 23, 2015 at 7:39:51 PM UTC-8, Grunthos wrote:
> other projects and fix/check/pray as appropriate. I view it as much the
> same process as incorporating patches from other people. I *assume* this
> what the IntelliJ approach is...please correct me if I am wrong!
 
That's actually a very good point. I would deliberately allow redundancy to
guarantee that a library works within an app project. As soon as the
library is ready for prime time I can merge the changes back to the
original repository and decide later if I need those changes in other app
projects. It just makes the OCD part in me cringe a bit :-D
 
>> number every single time so the local Maven cache gets updated? I have no
>> experience with this. :-/
 
>> Dunno. Don't know Maven, sadly.
 
I'm not sure but I believe this could probably be the ideal solution to
satisfy my "OCD needs". I would have a central development repository for
my library modules and add specific versions of them to my app projects.
With Gradle it's just a matter of adding a dependency statement. That way I
could also guarantee that my apps do not break when I make changes to my
libraries without having to duplicate library code. It's just super
cumbersome when I want to develop locally for a while. So I guess I'd start
out the way you describe and have library modules as part of the app
project. When the library is stable I could merge it back to the
originating repository and create a release build for Maven and add that
build version as a dependency to the app project.
Doug <beafdefx@gmail.com>: Jan 24 01:29PM -0800

You could use a local maven repo, then write yourself a convenience script
that automatically builds and installs everything from wherever you like it
to live.
 
Also, learn the semantics of what having "-SNAPSHOT" in a maven version
string means for referencing build artifacts from a repo.
 
If you are the only one working on your app and all of its libraries, then
just do whatever you want that's most convenient for you and don't worry
about development conventions. Just stick everything in one repo and take
control of it yourself. IMO conventions are mostly for teams that need to
agree how collaborate well together.
 
Doug
 
On Friday, January 23, 2015 at 10:07:58 AM UTC-8, Nobu Games wrote:
Nobu Games <dev.nobu.games@gmail.com>: Jan 24 02:54PM -0800

On Saturday, January 24, 2015 at 1:29:10 PM UTC-8, Doug wrote:
 
> Also, learn the semantics of what having "-SNAPSHOT" in a maven version
> string means for referencing build artifacts from a repo.
 
Thanks for the pointer. That looks like the feature I was looking for.
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 - 5 updates in 3 topics

Comments: (0)
Nobu Games <dev.nobu.games@gmail.com>: Jan 23 10:07AM -0800

I've been pulling out my hair over this in the past two days and searched
the Internet for best practices when it comes to organizing reusable code
in an Android Studio project. Coming from an Eclipse development background
it's not really all that intuitive to understand. This post is a bit
longer, so bear with me.
 
*TL;DR:* *What's your best practice when it comes to module organization
and version control?*
 
The way I organized code so far using Eclipse for development and Apache
Ant for building projects allowed me to easily keep the app project
separate from its library projects. They could reside in different
directories that belong to different version control system repositories.
Now with Android Studio and my limited understanding of Gradle and the new
build process I am basically forced to have all so-called library
*"modules"* arranged as sub-directories of the main app project directory.
In terms of code organization I have the following options:
 
- *I use only a single massive repository *that is basically an Android
Studio project that hosts all my Android app modules and custom library
modules
- This is not going to happen
- I keep app projects in separate repositories and *I import my
custom library modules*
-
*Importing a module creates a copy of the original *
- This means *redundancy* and *code synchronization issues*. I may
forget to merge back changes I've done to one of the library modules
- Unfortunately this is the "official" solution provided by the
IntelliJ IDEA documentation
<https://www.jetbrains.com/idea/help/sharing-android-source-code-and-resources-using-library-projects.html#d806616e254>
- I keep app projects in separate repositories and *check out my
library modules from a separate repository as a Git submodule
<http://git-scm.com/book/en/v2/Git-Tools-Submodules>*
- I *cannot cherry-pick the needed library modules* from the Git
repository. Git submodule checks out the whole library repository
- It does not play nicely with that one level deep project/module
directory structure for Android Studio projects
- I set up a *Maven repository for my library modules* and add the
needed modules as dependencies to my app project
- Very elegant, but...
- Every single tiny change in my library code requires rebuilding and
deploying the module.
- I also fear that I need to increase the version code / build number
every single time so the local Maven cache gets updated? I have no
experience with this. :-/

*Here is what I am currently doing* and I'm not sure if it's good enough or
can be considered a best practice:
 
This is my directory structure for app projects:
\ projects
\ my-android-libs (checked out from library modules repository)
\ module-1
\ module-2
\ ...
\ App-1 (checked out from App-1 repository)
\ app
\ ...
\ App-2 (checked out from App-2 repository)
\ app
\ ...
 
As suggested in this post <http://stackoverflow.com/a/17490233/1473663>, in
any of those app projects I need to alter the settings.gradle file and add
the desired module dependency like this:
 
include ':app'
include ':module-1'
 
project(':module-1').projectDir = new File(settingsDir,
'../my-android-libs/module-1)
 
Then I also need to add to the app module's build.gradle file a "compile
project" statement to the dependencies list:
 
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:21.0.3'
compile project(':module-1')
}
 
This workaround works so far and right now it's the "lesser evil" for me.
However, I'm still totally new to Android Studio, Gradle and Maven and I'd
like to hear if you guys know some best practices when it comes to module
organization, project setup and version control. I'm especially interested
if anyone of you goes with the private Maven repository solution and how
that works for you.
Grunthos <qwerty@rhyme.com.au>: Jan 23 07:39PM -0800

Interesting post, I find myself in a similar posiion re libraries and, more
generally, in trying to find realistic "best practice" guides.
 
On Saturday, January 24, 2015 at 5:07:58 AM UTC+11, Nobu Games wrote:
> - Unfortunately this is the "official" solution provided by the
> IntelliJ IDEA documentation
> <https://www.jetbrains.com/idea/help/sharing-android-source-code-and-resources-using-library-projects.html#d806616e254>
 
Is this really so bad, or am I missing something?
 
In eclipse I import library projects in their own tree and make changes
relating to different projects in different trees. When I view one set of
changes is valid/correct/complete, I comit them and import them into my
other projects and fix/check/pray as appropriate. I view it as much the
same process as incorporating patches from other people. I *assume* this
what the IntelliJ approach is...please correct me if I am wrong!
 

 
> repository. Git submodule checks out the whole library repository
> - It does not play nicely with that one level deep project/module
> directory structure for Android Studio projects
 
I've never been very fond of the git submodule approach, so yes: I agree.
In Eclipse when I use a library I typically create tags in case I need to
restore the exact version as built.

 
pdm-tex <pdmccann@gmail.com>: Jan 23 12:13PM -0800

01-23 14:42:07.381: E/AndroidRuntime(21462): FATAL EXCEPTION: Librarian
01-23 14:42:07.381: E/AndroidRuntime(21462): java.lang.RuntimeException: An error occured while executing doInBackground()
01-23 14:42:07.381: E/AndroidRuntime(21462): at android.os.AsyncTask$3.done(AsyncTask.java:299)
01-23 14:42:07.381: E/AndroidRuntime(21462): at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:352)
01-23 14:42:07.381: E/AndroidRuntime(21462): at java.util.concurrent.FutureTask.setException(FutureTask.java:219)
01-23 14:42:07.381: E/AndroidRuntime(21462): at java.util.concurrent.FutureTask.run(FutureTask.java:239)
01-23 14:42:07.381: E/AndroidRuntime(21462): at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:230)
01-23 14:42:07.381: E/AndroidRuntime(21462): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
01-23 14:42:07.381: E/AndroidRuntime(21462): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
01-23 14:42:07.381: E/AndroidRuntime(21462): at java.lang.Thread.run(Thread.java:856)
01-23 14:42:07.381: E/AndroidRuntime(21462): Caused by: java.lang.NoClassDefFoundError: com.dsi.client.lib.UniMagII
01-23 14:42:07.381: E/AndroidRuntime(21462): at com.dsi.client.lib.ClientActivity.processTransaction(ClientActivity.java:139)
01-23 14:42:07.381: E/AndroidRuntime(21462): at com.dsi.winwardsample.WWActivity$Librarian.doInBackground(WWActivity.java:71)
01-23 14:42:07.381: E/AndroidRuntime(21462): at com.dsi.winwardsample.WWActivity$Librarian.doInBackground(WWActivity.java:1)
01-23 14:42:07.381: E/AndroidRuntime(21462): at android.os.AsyncTask$2.call(AsyncTask.java:287)
01-23 14:42:07.381: E/AndroidRuntime(21462): at java.util.concurrent.FutureTask.run(FutureTask.java:234)
Jonathan S <xfsunoles@gmail.com>: Jan 23 01:34PM -0800

What is com.dsi.client.lib.UniMagII for?
 
On Friday, January 23, 2015 at 3:13:30 PM UTC-5, pdm-tex wrote:
Jose_GD <jose.gonzalez.d@gmail.com>: Jan 23 03:35AM -0800

I recall the following people writing good blog posts about Android UI:
- Mark Allison
- Cyril Mottier
(don't remember their sites, I follow them on Twitter and they post there
links to their blog posts)
 
Also I recommend suscribing to Android Weekly, it has a lot of amazing
Android stuff every Sunday, obviously with many UI design tips
 
HTH,
 
José
https://play.google.com/store/apps/developer?id=Jos%C3%A9+Gonz%C3%A1lez+D%27Amico
 
El viernes, 23 de enero de 2015, 1:06:11 (UTC-3), Joe Seeley escribió:
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.