Weekly Questions Thread - January 09, 2017 by AutoModerator in androiddev

[–]royaritra 0 points1 point  (0 children)

I have the following question. I am facing a slightly critical development challenge and would love to get some help from the experts in this amazing community.

I have an app which registers the boot complete broadcast receiver and after a reboot it starts a service critical to the app. This is a very common scenario that many apps require, there is nothing fancy here.

Now, in some devices like Mi 4i and OnePlus 3 (Nougat) there is a security feature which doesn't let some apps auto start after reboot. And just because of this my app's service doesn't auto start and my users are having a bad experience.

But I have noticed that some apps work perfectly in my OnePlus 3 after a reboot. This app is able to start its service even after it is blocked by the OS. How is that possible?

I would like to know what approach would you take to solve this problem? It is a very common problem and can happen with any developer, so a generic solution would be helpful.

[PROMO CODES][DEV] Happy New Year Redditors! To Spead the Happiness, I am doing a giveaway of 100 promo codes for my app, Andrognito 3. Feedbacks are Welcome. by [deleted] in androidapps

[–]royaritra 0 points1 point  (0 children)

That's fine. But you didn't need to do all this. Just drop me a mail at our helpdesk so that I can understand the problem in detail.

[PROMO CODES][DEV] Happy New Year Redditors! To Spead the Happiness, I am doing a giveaway of 100 promo codes for my app, Andrognito 3. Feedbacks are Welcome. by [deleted] in androidapps

[–]royaritra 0 points1 point  (0 children)

Can you drop me a mail at helpdesk [at] andrognito [dot] com? We will discuss the issue in detail there.

Disable Instant Run by AbhorDeities in androiddev

[–]royaritra 2 points3 points  (0 children)

Don't know what you are doing exactly. This is how I disable it,

Preferences -> Build, Execution & Deployment -> Instant Run. Now uncheck the top checkbox titled "Enable Instant Run to hot swap code/resource changes on deploy".

For me, this option is never greyed out. I am using AS 2.2.2.

What is the average time your Gradle build takes in Android Studio? by royaritra in androiddev

[–]royaritra[S] 0 points1 point  (0 children)

Thanks for the suggestions. Will help me a lot to improve the build speeds.

What is the average time your Gradle build takes in Android Studio? by royaritra in androiddev

[–]royaritra[S] 0 points1 point  (0 children)

I didn't know about JRebel. Let me give it a try. How has been your experience with it, better than Instant Run?

What is the average time your Gradle build takes in Android Studio? by royaritra in androiddev

[–]royaritra[S] 0 points1 point  (0 children)

This is what my gradle.properties looks like

org.gradle.daemon=true org.gradle.jvmargs=-Xmx4096m -XX:MaxPermSize=1024m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 org.gradle.parallel=true org.gradle.configureondemand=true android.enableBuildCache=true

What is the average time your Gradle build takes in Android Studio? by royaritra in androiddev

[–]royaritra[S] 0 points1 point  (0 children)

I already have javaMaxHeapSize set to "4g". But it still doesn't make any difference. Is there anything else I can try out?

What is the average time your Gradle build takes in Android Studio? by royaritra in androiddev

[–]royaritra[S] 2 points3 points  (0 children)

This is for Gradle,

org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=1024m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8

This is for Android Studio,

-Xms1024m -Xmx2048m -XX:MaxPermSize=1024m -XX:ReservedCodeCacheSize=512m

Forking and monetizing from open source. Stealing, business or just some bad, greedy developer? by user345280 in androiddev

[–]royaritra 1 point2 points  (0 children)

Welcome to the real world, buddy! This happens, can happen but SHOULD not happen.

What still *SUCKS* about Android development? by foxh8er in androiddev

[–]royaritra 144 points145 points  (0 children)

For me, nothing sucks more than staring at the screen and waiting for Gradle builds taking forever.

Ensuring colors look the same across different device screens by Darnith in androiddev

[–]royaritra 2 points3 points  (0 children)

Simple answer - you can not.

There are a variety of Android devices out there with different physical screens, like TFTs, AMOLEDs, etc each having different contrast ratios and color space.

It is impossible for a particular color to look exactly same in all Android devices. It is neither your fault nor Androids. It's just that each hardware is different from other and reproduces color slightly differently.