Re: [android-developers] How to get more reviews/comments when my app runs mainly in background?

2014-04-14 Thread Gustavo Oliveira
I believe the "Rate Us" dialog is a good idea. Also, I would add
interesting information in that dialog, like some tips, usage statistics,
just like some free apps do (e.g. antivirus and protection software
normally tell how many threats were blocked).

Best,
Gus

On Mon, Apr 14, 2014 at 5:24 PM, Fabien Demangeat  wrote:

> Okay thanks for the suggestion. I will think about it, I know that I have
> to be careful with low-value notifications...
> Cheers!
>
> On Saturday, April 12, 2014 6:49:48 PM UTC+1, TreKing wrote:
>>
>>
>> On Fri, Apr 11, 2014 at 3:30 AM, Fabien Demangeat 
>> wrote:
>>
>>> Do you have guys any other idea on how to get more reviews with these
>>> constraints
>>
>>
>> Many apps add a "Rate Us" dialog or something that is shown after X
>> number of days or uses. For your case, you could present a notification
>> after a certain number of days that is shown once and only once to not
>> annoy the user, or give them an option in that initial configuration screen
>> to not see the notification at all.
>>
>> 
>> -
>> TreKing  - Chicago
>> transit tracking app for Android-powered devices
>>
>  --
> 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/d/optout.
>

-- 
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/d/optout.


Re: [android-developers] android {create,update} project

2014-12-17 Thread Gustavo Oliveira
Hello,

I think you need to use custom_rules.xml file.

Check
http://playaprogrammer.blogspot.com.br/2013/01/android-build-configuration-tutorial.html

Regards,
Gustavo

On Wed, Dec 17, 2014 at 12:20 PM, pedr0  wrote:
>
> Hi everyone,
>
> I am working using the
>
> android android update project
>
> which, if I am not mistaking, creates the build.xml file which actually
> builds my project,  as a part of the build process I do need to call
> another script before let ant compiling, this script copies a couple of .so
> file from another directory to my library/armebi folder.
>
> Right now I am doing this by hand everytime. I could modify the build.xml
> file and let it copies those files but before starting (I know little about
> ant) I am questioning if I will to lose all my job everytime I execute an
>
> android android update project
>
> command, which overwrites the build.xml, can I instruct the android tool
> to "attach" a script and execute it before compiling ?
>
>  --
> 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/d/optout.
>

-- 
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/d/optout.


Re: [android-developers] Manifest android:process field

2015-08-11 Thread Gustavo Oliveira
I think Justin has answered your question. The documentation states that a
fresh new process will be created only when it's needed.

So it all points out to System.exit() probably not terminating your
process. It just calls Runtime.exit(), which states in its doc: "This
method is unlikely to be useful to an Android application."

Try calling Process.destroy() if you haven't already, or some other way to
kill your process (see ActivityManager), and make sure you have the needed
permissions.

Remember: that kind of thing should *never* be done by regular apps, only
by those aimed at testing/measuring/debugging. If this is not the case,
most likely you shouldn't be doing that. Normal apps should let the
platform handle the resources by itself.

Cheers,
Gus

On Tue, Aug 11, 2015 at 12:36 PM, Justin Anderson 
wrote:

> How is it not an answer?
>
> On Tue, Aug 4, 2015, 9:49 AM pedr0  wrote:
>
>> This is not quite an answer ... is it ?
>>
>>
>> On Tuesday, August 4, 2015 at 3:40:53 PM UTC+1, MagouyaWare wrote:
>>
>>> The documentation does not state that each time the activity is created
>>> it will also create a new process. From your email, the documentation
>>> states:
>>>
>>> "If the name assigned to this attribute begins with a colon (':'), a new
>>> process, private to the application, is created when it's needed and the
>>> activity runs in that process"
>>>
>>> The way I read this (maybe I'm wrong, but I don't think so), it means
>>> the activity with the process name will have a process separate from other
>>> activities in your app. If it needs to create a new process it will...
>>> "when it's needed." If it can reuse that same process that it created
>>> before, which is separate from all other activities in your app, it will do
>>> that because it doesn't NEED to create a new one.
>>>
>>>
>>>
>>> *"Anyway that gives me some troubles since, for no good reasons, a
>>> System.exit(0) is called at the end of the onDestroy() thus terminating the
>>> whole VM and preventing the activity from being created and restarted
>>> again, such bit was commented out during the tests I have made to make it
>>> possible for me to gather the traces and debug the issue."*
>>> Ummm. why in the world are you doing this? You should NEVER need to
>>> call System.exit() in an Android app. That is the sign of a poorly designed
>>> app.
>>>
>> On Tue, Aug 4, 2015 at 4:12 AM pedr0  wrote:
>>>
>> Hi all,

 I am using such field in the AndroidManifest file to unsure that an
 activity it's started as a separate process each time, I am using it in
 this way :


 >>>   android:process=":testprocess"
 ...
 />

 Following the Android documentation the colon ":" should mean the
 activity will be started in a new private process each time, or at least it
 will not share the process with anybody else, quoting from the Android
 website:

 "If the name assigned to this attribute begins with a colon (':'), a
 new process, private to the application, is created when it's needed and
 the activity runs in that process"

 What I see is that this is not happening all the time, actually it
 looks like the process is recycled to recreate the same activity, what I
 have done is to add a print right at the top of pretty much every on*
 activity's methods:

 I am printing the object id and the process id obtained through

 android.os.process.myPid();

 Yes, I did not need it since the process id is printed out each time
 but I've realized it just now :-)


 [...]
 I/user  ( 9428): onCreate 9428 Object Activity@41b5da18
 I/user  ( 9428): onStart 9428 Object Activity@41b5da18
 I/user  ( 9428): onResume 9428 Object Activity@41b5da18
 I/user  ( 9428): onStop 9428 Object Activity@41b5da18
 I/user  ( 9428): onStart 9428 Object Activity@41b5da18
 I/user  ( 9428): onResume 9428 Object Activity@41b5da18
 I/user  ( 9428): onStop 9428 Object Activity@41b5da18
 I/user  ( 9428): onStart 9428 Object Activity@41b5da18
 I/user  ( 9428): onResume 9428 Object Activity@41b5da18
 I/user  ( 9428): onStop 9428 Object Activity@41b5da18
 I/user  ( 9428): onStart 9428 Object Activity@41b5da18
 I/user  ( 9428): onResume 9428 Object Activity@41b5da18
 I/user  ( 9428): onStop 9428 Object Activity@41b5da18
 I/user  ( 9428): onStart 9428 Object Activity@41b5da18
 I/user  ( 9428): onResume 9428 Object Activity@41b5da18
 I/user  ( 9428): onStop 9428 Object Activity@41b5da18
 I/user  ( 9428): onStart 9428 Object Activity@41b5da18
 I/user  ( 9428): onResume 9428 Object Activity@41b5da18
 I/user  ( 9428): onStop 9428 Object Activity@41b5da18
 I/user  ( 9428): onDestroy 9428 Object Activity@41b5da18
 I/user  ( 9428): onCreate 9428 Object Activity@41b5cad8 <-- New
 activity created using the old process
 I/user  ( 9428): onStart 9428 Object Activity@41b5cad8
 

Re: [android-developers] Re: Activity with new BarcodeDetector API from Google Play Services 7.8

2015-08-21 Thread Gustavo Oliveira
Activity.finish() should be called from the UI thread. Try doing that and
post the result.

Cheers,
Gus

On Fri, Aug 21, 2015 at 10:24 AM, gc  wrote:

> Just updating, if anyone can help it would be appreciated.  If you need
> more information please ask.
>
> I think this should be similar if you're using an Activity and showing
> video but not sure, how do you programmatically shut it down so the finish
> can occur and return to the prior Activity.
>
> Thank you for any help.
>
>
> On Monday, August 17, 2015 at 4:29:38 PM UTC-5, gc wrote:
>>
>> I'm implementing an Activity that uses a CameraSource and SurfaceView(to
>> show the camera's view) along with the new BarcodeDetector API and after
>> detection I'm trying to perform a finish() but it doesn't go back to the
>> prior Activity it just keeps running this one.
>>
>> Here is a code snippet from my onCreate Activity, as you can see once I
>> detect a barcode I attempt to call finish but it doesn't seem to do
>> anything.
>> Is there something I have to shutdown prior to this?
>>
>> I'm testing on a real device using Android 4.4.4
>>
>> barcodeDetector = new BarcodeDetector.Builder(context).build();
>> barcodeDetector.setProcessor(new
>> FocusingProcessor(barcodeDetector, new Tracker()) {
>>
>> @Override
>> public void receiveDetections(Detections detections) {
>> if(detections != null) {
>> SparseArray barcodes = detections.getDetectedItems();
>> if(barcodes != null && barcodes.size() > 0) {
>> int key = barcodes.keyAt(0);
>> Barcode bc = barcodes.get(key);
>> if(bc != null) {
>> barcode = bc.rawValue;
>> Intent resultData = new Intent();
>> resultData.putExtra("BARCODE", barcode);
>> setResult(Activity.RESULT_OK, resultData);
>> curActivity.finish();
>> }
>> }
>> }
>> }
>> }
>>
>> @Override
>> public void release() {
>> super.release();
>> }
>>
>> @Override
>> public int selectFocus(Detections arg0) {
>> return 0;
>> }
>> });
>> mCameraSource = new CameraSource.Builder(context, barcodeDetector)
>> .setFacing(CameraSource.CAMERA_FACING_BACK)
>> .build();
>>
>>
>> --
> 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/d/optout.
>

-- 
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/d/optout.


Re: [android-developers] app size build with android studio much bigger than made with Eclipse

2015-09-30 Thread Gustavo Oliveira
Maybe you have external libs being packaged into your apk by Android Studio.

On Wed, Sep 30, 2015 at 5:45 PM, Justin Anderson 
wrote:

> Have you tried looking at the contents of the .apk and comparing it with
> one of your older .apk files built from eclipse?
>
> On Wed, Sep 30, 2015 at 11:22 AM Faust Nijhuis 
> wrote:
>
>> I imported all my apps from Eclipse to Android studio and all of them are
>> much bigger (5 to 7 times)
>>
>> I use proguard and minify and Zip Align Enabled
>> (I use only the default proguard rules)
>>
>> How is it possible that apps build with Android studio are so much bigger
>> ?
>>
>> build.gradle:
>>
>> apply plugin: 'com.android.application'
>>
>> android {
>> compileSdkVersion 23
>> buildToolsVersion "23.0.0"
>>
>> defaultConfig {
>> applicationId "mwave.led_resistor"
>> minSdkVersion 14
>> targetSdkVersion 18
>>
>> }
>> buildTypes {
>> release {
>> minifyEnabled true
>> proguardFiles getDefaultProguardFile('proguard-android.txt'), 
>> 'proguard-rules.pro'
>> }
>> debug {
>> minifyEnabled false
>> }
>> }
>> }
>>
>> dependencies {
>> compile fileTree(dir: 'libs', include: ['*.jar'])
>> compile 'com.google.android.gms:play-services-ads:+'
>> compile 'com.android.support:support-annotations:23.0.1'
>> }
>>
>>
>>
>> --
>> 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/d/optout.
>>
> --
> 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/d/optout.
>

-- 
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/d/optout.


Re: [android-developers] Get the DNS details when the Device is connected to Data connection.

2015-10-01 Thread Gustavo Oliveira
Doesn't that work on Lollipop as well?

On Thu, Oct 1, 2015 at 2:28 PM, 'Robert Greenwalt' via Android Developers <
android-developers@googlegroups.com> wrote:

> On M you can use
> ConnectivityManager.getLinkProperties(ConnectivityManager.getActiveNetwork()).getDnsServers()
>
> On Thu, Oct 1, 2015 at 3:16 AM, Gunjan Pathak 
> wrote:
>
>> Hey everyone ,
>>
>> I am new to android development dont know much in details i want to get
>> the details of the DNS when my device is connected to DATA COnnection . I
>> know it is possible when i am connected to WIFI connection but i want it
>> during the DATA CONNECTION . Please do guide me .
>>
>> Thank you .
>>
>> --
>> 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/d/optout.
>>
>
> --
> 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/d/optout.
>

-- 
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/d/optout.


Re: [android-developers] app size build with android studio much bigger than made with Eclipse

2015-10-02 Thread Gustavo Oliveira
Follow the steps for Android Studio:


On Fri, Oct 2, 2015 at 4:54 AM, Faust Nijhuis 
wrote:

> I made two apk files:
>
> 1) without  com.google.android.gms
>app size = 598 kb
>Size after install is 864 Kb
> 2) with com.google.android.gms (for ads)
> app size = 1.1 Mb
> Size after install is 5.39 Mb
>
> I looked in the apk's and the difference is in the classed.dex and
> resources.arsc
>
> classed.dex 27.6 kib versus 617 kib
> resources.arsc 35.4 kib versus 267kib
>
> I think it's due to the com.google.android.gms lib, but how can I changed
> this?
>
>
>
>
> 2015-09-30 22:45 GMT+02:00 Justin Anderson :
>
>> Have you tried looking at the contents of the .apk and comparing it with
>> one of your older .apk files built from eclipse?
>>
>> On Wed, Sep 30, 2015 at 11:22 AM Faust Nijhuis 
>> wrote:
>>
>>> I imported all my apps from Eclipse to Android studio and all of them
>>> are much bigger (5 to 7 times)
>>>
>>> I use proguard and minify and Zip Align Enabled
>>> (I use only the default proguard rules)
>>>
>>> How is it possible that apps build with Android studio are so much
>>> bigger ?
>>>
>>> build.gradle:
>>>
>>> apply plugin: 'com.android.application'
>>>
>>> android {
>>> compileSdkVersion 23
>>> buildToolsVersion "23.0.0"
>>>
>>> defaultConfig {
>>> applicationId "mwave.led_resistor"
>>> minSdkVersion 14
>>> targetSdkVersion 18
>>>
>>> }
>>> buildTypes {
>>> release {
>>> minifyEnabled true
>>> proguardFiles getDefaultProguardFile('proguard-android.txt'), 
>>> 'proguard-rules.pro'
>>> }
>>> debug {
>>> minifyEnabled false
>>> }
>>> }
>>> }
>>>
>>> dependencies {
>>> compile fileTree(dir: 'libs', include: ['*.jar'])
>>> compile 'com.google.android.gms:play-services-ads:+'
>>> compile 'com.android.support:support-annotations:23.0.1'
>>> }
>>>
>>>
>>>
>>> --
>>> 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/d/optout.
>>>
>> --
>> 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/d/optout.
>>
>
> --
> 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/d/optout.
>

-- 
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/d/optout.


Re: [android-developers] app size build with android studio much bigger than made with Eclipse

2015-10-02 Thread Gustavo Oliveira
Follow the steps for Android Studio:

https://developers.google.com/android/guides/setup

If you have the libs folder in your project (as stated in the "Other" tab
of that link), remove it.

Looks like when migrating from Eclipse to Android Studio, the libs folder
was kept. Eclipse is smart enough not to package it (you can tell it do so
if you want it to though).

Cheers,
Gus


On Fri, Oct 2, 2015 at 9:51 AM, Gustavo Oliveira  wrote:

> Follow the steps for Android Studio:
>
>
> On Fri, Oct 2, 2015 at 4:54 AM, Faust Nijhuis 
> wrote:
>
>> I made two apk files:
>>
>> 1) without  com.google.android.gms
>>app size = 598 kb
>>Size after install is 864 Kb
>> 2) with com.google.android.gms (for ads)
>> app size = 1.1 Mb
>> Size after install is 5.39 Mb
>>
>> I looked in the apk's and the difference is in the classed.dex and
>> resources.arsc
>>
>> classed.dex 27.6 kib versus 617 kib
>> resources.arsc 35.4 kib versus 267kib
>>
>> I think it's due to the com.google.android.gms lib, but how can I changed
>> this?
>>
>>
>>
>>
>> 2015-09-30 22:45 GMT+02:00 Justin Anderson :
>>
>>> Have you tried looking at the contents of the .apk and comparing it with
>>> one of your older .apk files built from eclipse?
>>>
>>> On Wed, Sep 30, 2015 at 11:22 AM Faust Nijhuis 
>>> wrote:
>>>
>>>> I imported all my apps from Eclipse to Android studio and all of them
>>>> are much bigger (5 to 7 times)
>>>>
>>>> I use proguard and minify and Zip Align Enabled
>>>> (I use only the default proguard rules)
>>>>
>>>> How is it possible that apps build with Android studio are so much
>>>> bigger ?
>>>>
>>>> build.gradle:
>>>>
>>>> apply plugin: 'com.android.application'
>>>>
>>>> android {
>>>> compileSdkVersion 23
>>>> buildToolsVersion "23.0.0"
>>>>
>>>> defaultConfig {
>>>> applicationId "mwave.led_resistor"
>>>> minSdkVersion 14
>>>> targetSdkVersion 18
>>>>
>>>> }
>>>> buildTypes {
>>>> release {
>>>> minifyEnabled true
>>>> proguardFiles getDefaultProguardFile('proguard-android.txt'), 
>>>> 'proguard-rules.pro'
>>>> }
>>>> debug {
>>>> minifyEnabled false
>>>> }
>>>> }
>>>> }
>>>>
>>>> dependencies {
>>>> compile fileTree(dir: 'libs', include: ['*.jar'])
>>>> compile 'com.google.android.gms:play-services-ads:+'
>>>> compile 'com.android.support:support-annotations:23.0.1'
>>>> }
>>>>
>>>>
>>>>
>>>> --
>>>> 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/d/optout.
>>>>
>>> --
>>> 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-deve

Re: [android-developers] Re: adb can not find my device.

2015-10-14 Thread Gustavo Oliveira
Has it worked before? Looks like a driver issue. Try reinstalling the
driver.


On Sun, Oct 11, 2015 at 5:19 AM, Ray Tayek  wrote:

> i added a galaxy tab s. and put both into developer mode
> .
>
> adb list now see the galaxy, but not the nexus.
>
> thanks
>
>
> On Sunday, October 11, 2015 at 12:50:35 AM UTC-7, Ray Tayek wrote:
>>
>> i have a nexus 7 (2012).
>>
>>  device manager in win 8.1 recognizes it as am android device and says
>> it's an adb device.
>>
>> it uses the ClockworkMod driver 7.0.0.1.
>>
>> adb devices does not find anything.
>>
>> android device monitor does not find anything.
>>
>> how do i get to use it?
>>
>> 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
> ---
> 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/d/optout.
>

-- 
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/d/optout.


Re: [android-developers] Google AppInvites beta cause MissingTranslation Lint error compiling in Android

2015-10-21 Thread Gustavo Oliveira
This is a group for Android app developers (using the SDK, not developing
it). You can ask if anyone here has found the same problem and how to work
around it.

Now if you want to file a bug report, the right place to do it is
https://code.google.com/p/android/issues

Cheers,
Gus

On Wed, Oct 21, 2015 at 11:13 AM, Daniele Segato 
wrote:

> This is a bug report. Couldn't find a better place to file this too, if
> you have a reference to the right forum/bug tracking I'll happily use it.
>
> I wanted to try out Google AppInvites beta.
>
> Not sure if this is a tool (gradle) bug or a Google Play Service bug.
>
> I followed the steps here:
> https://developers.google.com/app-invites/android/guides/app
>
> When I launch my release build lint fail with a MissingTranslation on a
> generated values string file
>
> The two strings causing the issue are:
>
> 
> [censured]
> [censured]
> 
>
>
> :app:lintVitalRelease
> [censured]
> ~~
>
> [censured]/app/build/generated/res/google-services/release/values/values.xml
> Error:(3) Error: "gcm_defaultSenderId" is not translated in "it" (Italian)
> [MissingTranslation]
> Error:(4) Error: "google_app_id" is not translated in "it" (Italian)
> [MissingTranslation]
> [censured]
> 
>Explanation for issues of type "MissingTranslation":
>If an application has more than one locale, then all the strings
> declared
>in one language should also be translated in all other languages.
>If the string should not be translated, you can add the attribute
>translatable="false" on the  element, or you can define all your
>non-translatable strings in a resource file called donottranslate.xml.
> Or,
>you can ignore the issue with a tools:ignore="MissingTranslation"
>attribute.
>By default this detector allows regions of a language to just provide a
>subset of the strings and fall back to the standard language strings.
> You
>can require all regions to provide a full translation by setting the
>environment variable ANDROID_LINT_COMPLETE_REGIONS.
>You can tell lint (and other tools) which language is the default
> language
>in your res/values/ folder by specifying tools:locale="languageCode" for
>the root  element in your resource file. (The tools prefix
>refers to the namespace declaration http://schemas.android.com/tools.)
> 2 errors, 0 warnings
>
>
> In my build.gradle file I've set:
>
> resConfigs "it"
>
> The only way I found to build for release has been to set
>
> lintOptions {
> // google services plugin is causing missing translation issue
> abortOnError false
> }
>
> still pretty annoying.
>
> Please makes this bug report reach the right persons in Google or tell me
> how I can reach them properly.
>
> regards,
> Daniele
>
> --
> 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/d/optout.
>

-- 
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/d/optout.


Re: [android-developers] Google AppInvites beta cause MissingTranslation Lint error compiling in Android

2015-10-22 Thread Gustavo Oliveira
Ok, that's related to Google Services API.

Not sure if you found it, but there's an issue open for that:
https://code.google.com/p/analytics-issues/issues/detail?id=733

No fix, but there are workarounds in the comments. I think it would help to
add your error there.



On Thu, Oct 22, 2015 at 5:22 AM, Daniele Segato 
wrote:

> Nope, that's not the right place too.
>
> https://code.google.com/p/android/issues/detail?id=189782
>
> quoting:
>
> "Sorry, this tracker is for issues with the Android OS only. Please use
> https://support.google.com/ to obtain support for Google products or
> services."
>
>
> of course the support link have no trace of any bug tracker for app
> invision / play services or anything that look like it.
>
>
>
> On Wednesday, October 21, 2015 at 11:15:10 PM UTC+2, Gus wrote:
>>
>> This is a group for Android app developers (using the SDK, not developing
>> it). You can ask if anyone here has found the same problem and how to work
>> around it.
>>
>> Now if you want to file a bug report, the right place to do it is
>> https://code.google.com/p/android/issues
>>
>> Cheers,
>> Gus
>>
>> On Wed, Oct 21, 2015 at 11:13 AM, Daniele Segato 
>> wrote:
>>
>>> This is a bug report. Couldn't find a better place to file this too, if
>>> you have a reference to the right forum/bug tracking I'll happily use it.
>>>
>>> I wanted to try out Google AppInvites beta.
>>>
>>> Not sure if this is a tool (gradle) bug or a Google Play Service bug.
>>>
>>> I followed the steps here:
>>> https://developers.google.com/app-invites/android/guides/app
>>>
>>> When I launch my release build lint fail with a MissingTranslation on a
>>> generated values string file
>>>
>>> The two strings causing the issue are:
>>>
>>> 
>>> [censured]
>>> [censured]
>>> 
>>>
>>>
>>> :app:lintVitalRelease
>>> [censured]
>>> ~~
>>>
>>> [censured]/app/build/generated/res/google-services/release/values/values.xml
>>> Error:(3) Error: "gcm_defaultSenderId" is not translated in "it"
>>> (Italian) [MissingTranslation]
>>> Error:(4) Error: "google_app_id" is not translated in "it" (Italian)
>>> [MissingTranslation]
>>> [censured]
>>> 
>>>Explanation for issues of type "MissingTranslation":
>>>If an application has more than one locale, then all the strings
>>> declared
>>>in one language should also be translated in all other languages.
>>>If the string should not be translated, you can add the attribute
>>>translatable="false" on the  element, or you can define all
>>> your
>>>non-translatable strings in a resource file called
>>> donottranslate.xml. Or,
>>>you can ignore the issue with a tools:ignore="MissingTranslation"
>>>attribute.
>>>By default this detector allows regions of a language to just provide
>>> a
>>>subset of the strings and fall back to the standard language strings.
>>> You
>>>can require all regions to provide a full translation by setting the
>>>environment variable ANDROID_LINT_COMPLETE_REGIONS.
>>>You can tell lint (and other tools) which language is the default
>>> language
>>>in your res/values/ folder by specifying tools:locale="languageCode"
>>> for
>>>the root  element in your resource file. (The tools prefix
>>>refers to the namespace declaration http://schemas.android.com/tools
>>> .)
>>> 2 errors, 0 warnings
>>>
>>>
>>> In my build.gradle file I've set:
>>>
>>> resConfigs "it"
>>>
>>> The only way I found to build for release has been to set
>>>
>>> lintOptions {
>>> // google services plugin is causing missing translation issue
>>> abortOnError false
>>> }
>>>
>>> still pretty annoying.
>>>
>>> Please makes this bug report reach the right persons in Google or tell
>>> me how I can reach them properly.
>>>
>>> regards,
>>> Daniele
>>>
>> --
> 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/d/optout.
>

-- 
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 

Re: [android-developers] Create effect of solid blue "curtain" being slowly pulled across a white screen

2016-01-08 Thread Gustavo Oliveira
Take a look at Animation
http://developer.android.com/reference/android/view/animation/Animation.html

I would suggest you rework your layout, putting your background image as a
separate element and making it slide using a TranslateAnimation (or stretch
with ScaleAnimation).

On Fri, Jan 8, 2016 at 4:18 PM, Chris Wilson  wrote:

> I am a longtime java developer but I have little experiences creating
> graphics or animations and I don't know where to start here.  This is the
> issue:
>
> I have an image with a transparent hole in the middle.  The starting
> background color of this image is white.  But I need to create an effect
> much like a blue "curtain" being dragged over the previously white
> background.  I'm not looking for a gradient.  I want the blue to move from
> left to right, overtaking the previous white background, so that at the
> beginning, the background color is white, and in the end it is blue.
>
> This is my current layout which is being set to the content view of the
> activity, but I am totally open to changing anything as needs be:
>
>  xmlns:android="http://schemas.android.com/apk/res/android";
> android:layout_width="match_parent"
> android:layout_height="match_parent"
> android:background="@color/white"
> android:foreground="@drawable/loading_page_4"
> android:id="@+id/splash_color_layout"
> >
>
>
> 
>
> --
> 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.
> To post to this group, send email to android-developers@googlegroups.com.
> Visit this group at https://groups.google.com/group/android-developers.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/android-developers/e6bed457-879e-4173-aa7b-e318102bdc26%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/CAH_FNZyQu8ELV5BATwrNdOw%2Beyn43E8ucsRcsWzT%2BzcV302sZw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.