Instagram now available for Android

Elimentals

Honorary Master
Joined
Dec 11, 2010
Messages
10,819
Mine is simple its my nick without the s, although I am not much of a user, just wanted to see how it compared to the iOS version.
 

Vulk

Senior Member
Joined
Oct 7, 2005
Messages
615
I could not give a rats ass about Memory.... its CPU and Data resources that does not get closed. ala onPause vs onStop/finish() calls.

Okay, fair enough. But - and I'm genuinely curious to know the answer here - isn't this true of every app that runs in the background to provide notifications?
 

Elimentals

Honorary Master
Joined
Dec 11, 2010
Messages
10,819
Okay, fair enough. But - and I'm genuinely curious to know the answer here - isn't this true of every app that runs in the background to provide notifications?

OK let me explain the different states that Android apps can be in. In the order that the OS will kill when it is on search for extra resources.

Installed: and noting in memory
Not running or in memory so 1st time you start it it loads into memory then run. Nothing to kill or remove
You exit with onDestroy

Memory: Nothing running, Default [back] button behavior.
Loaded in memory but with no services running so will not get notifications. This is the default state a program returns to when you exit properly with a finish() call and is the 1st Android kills off when it needs memory.

Memory: with a service running
This state is used for Applications that use push notifications and developers normally use a onStop call for the back button press and a onStart function call to tell the app what to do when you "Open" it again. Great for using services like push notification, background copy, play music or other tasks. Developer called onStop instead of using the default finnish() function when the users exited with [back] button

Memory: services can activate the app <--- default call when you just press [Home]
This is the default mode if the home button is pressed ie: onPause unless you specify otherwise in your code. Normally used to keep the apps in the background and can be kept fully active with service calls, for example Launchers or SwipePad. Its this suckers that chew your battery and normally gets closed last when Android is looking for resources.

Foreground:
Well, its actively running and the OS will not kill this, ever.(Well unless the app dies.

You probably would understand it better if presented with:

activity_lifecycle.png
 
Last edited:

Vulk

Senior Member
Joined
Oct 7, 2005
Messages
615
So, if I'm understanding you correctly, your complaint with Instagram is that it uses the "onPause" behaviour when you exit to the homescreen, where as it should be using the "onStop" behaviour in order to minimise CPU and battery usage?
 

Elimentals

Honorary Master
Joined
Dec 11, 2010
Messages
10,819
So, if I'm understanding you correctly, your complaint with Instagram is that it uses the "onPause" behaviour when you exit to the homescreen, where as it should be using the "onStop" behaviour in order to minimise CPU and battery usage?

Its 2 fold.

a. The main problem is that it continues to open new activities without closing the old ones.
b. I could have overlooked a. if the home button used onDestroye or better if there was an exit button that called this command.

Simply put its a perfect example of how not to code.
 

Elimentals

Honorary Master
Joined
Dec 11, 2010
Messages
10,819
Just found another cool application that is almost like instragram, well minus the Sharing part as it shares to other networks instead of its own. Also originally from iOS

https://play.google.com/store/apps/details?id=air.net.daum.pix

I like the fact that you can mix and match the effects yourself. Only problem I have is for some reason it doesn't want to load images from my gallery, oh and its nasty on resources so dont try this on a old phone. :)
 

Tsepz_GP

Expert Member
Joined
Aug 2, 2008
Messages
4,717

milomak

Honorary Master
Joined
May 23, 2007
Messages
12,571
i must be about the only person who didn't know about instagram

can i create more than 1 account?
 
Top