[android-developers] Re: close on minimise application

2013-08-15 Thread passer
But how activity knows if user already authenticated. if I use static variable isAuthenticated. Value of this variable will true after application minimized. and the problem remains. I think alone way to do this is handle of minimizing. среда, 14 августа 2013 г., 13:51:25 UTC+5 пользователь

[android-developers] Re: close on minimise application

2013-08-15 Thread Johan Appelgren
You could have a timestamp set in onPause that you check in onCreate/onResume. If it has been too long redirect to your login activity. On Thursday, August 15, 2013 1:29:55 PM UTC+2, passer wrote: But how activity knows if user already authenticated. if I use static variable isAuthenticated.

[android-developers] Re: Why the memory usiage is kept on raising when running an application on Android Emulator with GPU support

2013-08-15 Thread kowalski
Have you profiled your code? See if it's optimized? Any O(n^2) code parts that are eating up CPU time? Beyond that, check these if you haven't already. 1. Analyzing the memory usage of your Android applicationhttp://kohlerm.blogspot.in/2009/04/analyzing-memory-usage-off-your-android.html

Re: [android-developers] Abridged summary of android-developers@googlegroups.com - 16 Messages in 12 Topics

2013-08-15 Thread Ashish Kr
Also, this might help: http://stackoverflow.com/questions/15490770/android-emulator-memory-usage-keeps-increasing On Thu, Aug 15, 2013 at 11:44 AM, android-developers@googlegroups.comwrote: Today's Topic Summary Group: http://groups.google.com/group/android-developers/topics - any

[android-developers] Which niche of Android app generates the most revenue or is likely to generate the most revenue in the future?

2013-08-15 Thread navanshu
-- 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

[android-developers] How to animate a bar which grows in height

2013-08-15 Thread Daniel Rindt
Hello, i try to let grow a bar which actually is a simple View with a color in hight for animating a voting display. My code looks like this: ScaleAnimation anim = new ScaleAnimation(1, 1, 0, 1, 0, 0); anim.setDuration(5000); anim.setFillEnabled(true);

[android-developers] Re: How to animate a bar which grows in height

2013-08-15 Thread Nobu Games
Hi Daniel, can you post the layout in which these bars are embedded? You may be able to solve it with some bottom gravity setting in the parent container layout On Thursday, August 15, 2013 9:53:29 AM UTC-5, Daniel Rindt wrote: Hello, i try to let grow a bar which actually is a simple View

Re: [android-developers] Re: How to animate a bar which grows in height

2013-08-15 Thread Daniel Rindt
2013/8/15 Nobu Games dev.nobu.ga...@gmail.com Hi Daniel, can you post the layout in which these bars are embedded? You may be able to solve it with some bottom gravity setting in the parent container layout Hey, cool thats what i haven't played with. Here is the layout: RelativeLayout

Re: [android-developers] Re: How to animate a bar which grows in height

2013-08-15 Thread Nobu Games
I'm not sure if that really works properly with animations, since I'm not sure how and if they trigger re-layouts. But in theory you could try android:gravity=bottom in your RelativeLayout or use android:alignParentBottom=true in your bar child views. If this doesn't work, you may have to

Re: [android-developers] Re: How to animate a bar which grows in height

2013-08-15 Thread Nobu Games
Shoot! I just saw that you're using alignParentBottom... so that may answer my doubts about Animations and re-layouts. It probably doesn't work. At least not with that attribute :-/ On Thursday, August 15, 2013 1:24:48 PM UTC-5, Nobu Games wrote: I'm not sure if that really works properly

[android-developers] Re: How to animate a bar which grows in height

2013-08-15 Thread Nobu Games
Shoot! I just saw that you're using alignParentBottom... Maybe you can just tweak the ScaleAnimation and feed it with negative values or flip the from / to values On Thursday, August 15, 2013 9:53:29 AM UTC-5, Daniel Rindt wrote: Hello, i try to let grow a bar which actually is a simple

Re: [android-developers] Re: When to close db connection on android?

2013-08-15 Thread Sayooj valsan
But what if you need to close the connection and you don't want to put it in the onDestroy, coz the onDestroy gets called when you change the orientation. We don't need to keep closing and opening the connection when ever the activity gets recreated. Also we need it such a way that the

[android-developers] Using EasyTracker with SherlockFragmentActivity

2013-08-15 Thread igor ganapolsky
I am having a hard time using Google Analytics EasyTracker in my Activities that extend SherlockFragmentActivity. When I try to use EasyTracker.getInstance().activityStart(this);in onStart, the compiler doesn't complain but the app crashes with:

Re: [android-developers] Using EasyTracker with SherlockFragmentActivity

2013-08-15 Thread TreKing
On Thu, Aug 15, 2013 at 2:42 PM, igor ganapolsky eazy...@gmail.com wrote: I am having a hard time using Google Analytics EasyTracker in my Activities that extend SherlockFragmentActivity. Are you saying that this works otherwise?