Profile cover photo
Profile photo
Vinay Gaba
184 followers
184 followers
About
Posts

In desperate need of a One Plus Two invite. Need to gift a One Plus Two to someone. Would really appreciate if someone can help me out with this. Willing to buy in the next 24 hours. 

I need a one plus 2 invite to gift it to someone. Would really appreciate if someone could help me with an invite! 

Post has shared content
Don't forget to unregister your listeners - posted by +Boris Farber

Memory leaks, and Activity leaks in particular, are extremely dangerous. Activity holds its layout which in turn holds its views. This which results in a lot of objects in memory. Holding references to unused Activity may quickly drain your app memory, especially on older devices with fragmented heap.

This is the most common leak type I have seen:

public class LeakActivity extends Activity {
// ...
   @Override
   protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      NastyManager.getInstance().addListener(this);
// ...

Why? Because the listener is never unregistered, and as long as the listener is alive, the Activity is alive as well

@Override
public void onDestroy() {
   super.onDestroy();

   NastyManager.getInstance().removeListener(this);
}


What you can do is consider using event buses to decouple senders and listeners. Always unregister listeners and prefer static inner classes over non static classes.

The best way I have found memory leaks was by doing extensive code reviews. Doing code reviews also helps you understand your app structure, in addition consider using tools (MAT ...), and last but not least, add log statements on callbacks.

You can find more here www.api-solutions.com

#BuildBetterApps

Post has attachment
Hi Guys,
I am open sourcing a repository that I have been working on to collect lists of string-arrays that you may find useful when developing an Android app.

We have enough things to worry about as an Android developer and collecting data for common use cases shouldn't be one of them!
Do check it out - https://github.com/vinaygaba/Ultimate-String-Array-List
Hoping to get contributions from this groups!
Photo

Post has attachment
Hi Guys,
I am open sourcing a repository that I have been working on to collect lists of string-arrays that you may find useful when developing an Android app.

We have enough things to worry about as an Android developer and collecting data for common use cases shouldn't be one of them!
Do check it out - https://github.com/vinaygaba/Ultimate-String-Array-List
Hoping to get contributions from this groups!
Photo

I have a table layout which contains a 3 x 3 layout containing buttons. It looks something like this:

|Button 1 | Button 2 | Button 3|

|Button 4 | Button 5 | Button 6|

|Button 7 | Button 8 | Button 9|

I am trying to make a word game so the user will be swiping over the buttons to make a word. What I want to know is how to detect the buttons that my swipe covered in the correct order to be able to know the user input for the word. I have gone through a lot of swipe gesture related tutorials but most of them cover the left swipe/right swipe use case which is not relevant to this scenario. Any kind of help will be really appreciated.

Post has shared content
A presentation aimed at beginners who have heard about RxJava and want to see what all the fuss is about. Kaushik Gopal provides primers on RxJava and RxAndroid, then looks at implementing real-world use cases in Android with RxJava. 

He also imparts this valuable piece of advice, the best way to learn something is to just starting doing it!

Post has shared content
Understanding Cloud Pricing is not an easy task. You often have a tough time trying to estimate the costs for your workload. To help you understand it better, the official GCP Blog has published 3 detailed blog posts:
1) Part 1 - Virtual Compute (http://goo.gl/HiJ6W3
2) Part 2 - Local SSD (http://goo.gl/QuYyYk)
3) Part 3 - Data Warehouses (http://goo.gl/YnTpDS)

Take a look at them.   #GCP   #Pricing  

Post has attachment
CreditCardView is an Android library that allows developers to create the UI which replicates an actual Credit Card.

Would love to hear from you guys and make the library useful to even more developers!

https://github.com/vinaygaba/CreditCardView

Post has shared content
GCPUG India chapters are all set to launch across 4 cities. The inaugural events will be held from July 2 to July 10. 2015, to introduce GCP users and enthusiasts to the community along with technical sessions conducted on #BigQuery  , #Dataflow  , #Firebase  and #Kubernetes

Google Cloud Platform Developer Advocates, +Mandy Waite and +Kazunori Sato will be taking the above technical sessions.

Check out the Event page for more details and registration.  
Wait while more posts are being loaded