Questions Thread - September 11, 2016

Questions Thread - September 11, 2016


Questions Thread - September 11, 2016

Posted: 11 Sep 2016 05:06 AM PDT

This thread is for simple questions that don't warrant their own thread (although we suggest checking the sidebar, the wiki, or Stack Overflow before posting). Examples of questions:

  • How do I pass data between my Activities?
  • Does anyone have a link to the source for the AOSP messaging app?
  • Is it possible to programmatically change the color of the status bar without targeting API 21?

Important: Downvotes are strongly discouraged in this thread. Sorting by new is strongly encouraged.

Large code snippets don't read well on reddit and take up a lot of space, so please don't paste them in your comments. Consider linking Gists instead.

Have a question about the subreddit or otherwise for /r/androiddev mods? We welcome your mod mail!

Also, please don't link to Play Store pages or ask for feedback on this thread. Save those for the App Feedback threads we host on Saturdays.

Looking for all the Questions threads? Want an easy way to locate today's thread? Click this link!

submitted by /u/AutoModerator
[link] [comments]

A rant on toxic developers breaking Google Play policies and its consequences

Posted: 11 Sep 2016 10:53 AM PDT

Today, when I've opened Google Play on my phone, I've realized that the Top New Free and Top New Paid categories have been removed from the Top Charts.

This is just one more of the small changes that are transforming Google Play into a curated editor-based store (just like Apple's AppStore) and moving away from the neutral algorithm based that it used to be which hurts small or unknown studios.

I know, Google is a business and as such wants to maximize revenue but it is on Google's core brand identity and values to use algorithms for just everything so deleting these charts for not being able to automatically filter the trash apps out is actually a defeat for them.

In my opinion it's the small group of toxic developers that keep trying to exploit Google Play and systematically break its policies the ones to blame.

I think the abusers should have a hard time getting away with it, it seems the built-in Report App functionality is not working. This is why I'll use this post just to publicly report one particular case.

Disclaimer: I'm the developer of Dash till Puff! and Dash till Puff 2, the search results for the term "Geometry Dash" have an impact on my games visibility. This is why I've been able to discover this specific case but there are many like it.

Here's a list of the same game with different skins that breaks almost every single Google Play policy on Spam, Deception and Intellectual Property and that has been so lazily published (copy & paste) that it's obvious it has been done by the same person using separate accounts.

  • Angry Geometry Meltdown Rush
  • Geometry Iron Dash
  • Geometry Pokémon Jump Rush
  • Geometry US Edition Dash
  • Geometry Angry Jump Rush

Google Play search results screenshot

They appear on the 5th, 6th, 7th, 8th and 13the position for the search "Geometry Dash", they have been around for at least 2 months and they very probably have a total of more than 1M downloads combined.

I'm hoping more similar cases are made public and the community of developers that we try to comply with the rules (a mistake is understandable) helps keeping Google Play cleaner and make these behaviors less worth it.

TL;DR Google Play is moving towards an editor curated model due to specific developers exploiting the system. Let's make their life a bit harder.

submitted by /u/rifterninja
[link] [comments]

Material Design Dimens: Default colors and dimens per Material Design guidelines

Posted: 11 Sep 2016 08:28 AM PDT

How do you update your app when there's a change in database or Retrofit request param?

Posted: 11 Sep 2016 09:20 PM PDT

Hi, first of all, please excuse me if this is a noobie question.

I use PHP/SQL to access MYSQL through REST APIs. Let's say i make a change to a retrieveData.php by now having it receive a GET param. This will obviously cause the users who already have the app not able to properly access retrieveData.php because their retrofit didn't take in a parameter.

How do people deal with this problem? Do you make them force update? When you make changes to these files, do you host it in a different server so people who have the app access the old server and it still works? I've been wondering for a while now. Thank you.

=)

submitted by /u/cocomoco1
[link] [comments]

The Google Play Revenue

Posted: 11 Sep 2016 04:10 PM PDT

As a 19 year old guy who's just starting out learning how to code, i searched everywhere but didn't get a very clear answer for my question, that's why i came here and decided to post this.

 

Now i first made this decision to become an Android Developer two months ago. First i taught myself Java and Object Oriented Programming, Then i went on and learned how to implement my knowledge into making applications using Android Studio. A made a nice little useful app for myself, but the thing is when i wanted to upload my app to Google Play Store i discovered that i need to have 25$ in my credit card. And its quite funny cause all this time i never thought about how i would get the income after i get my app on the store for people to download, didn't quite care much at first to be honest. i just like creating stuff but now i don't know what to do :|

 

You see i don't know how creating a bank account and a credit card is in other countries, But in mine well you'd have to have 600$ in yours plus other charges for the account and the card and stuff. I've been saving up some money and i have the amount but my question is, is it worth it?

 

Credit cards are not used at all where i live. And i want to know how much income i will be getting if any of you could explain it would mean the world to me :)

 

I know that 600$ isn't much for some of you but for me it is. I don't want to blindly follow my passion, the thing that i love doing and in return it backfiring on me. Thank you all.

submitted by /u/KARD0
[link] [comments]

Need advice on Fragments vs Conductor

Posted: 11 Sep 2016 04:17 PM PDT

Edit: Yeah, y'all are right. I need to focus on understanding/improving/fixing what I've already got. Fragments may not be perfect, but don't blame the tool, blame the dev using the tool. Especially as a beginner.

Hopefully this warrants its own post as I thought it might be too long for the questions thread.

I'm kind of torn over if I should convert my app from Fragments to Conductor.

I've read so many good things about Conductor, and I've read a lot recently about why Fragments are supposedly terrible. I'm a new dev and although I've downloaded the Conductor demo/github files, I am absolutely and completely lost with it. I have an app that I've spent about 5 months working on that utilizes a bunch of nested Fragments. It's been a giant pain in the ass so if there is an alternative I'm interested.

But is it worth it for me to try to convert over 5 months of fragment work to a new library? I know that's a question that can really only be personally answered but I'd love to hear some thoughts from you guys.

My code, although it works, looks like a trainwreck. I'm not even sure how/why my nested Fragments work...the lifecycles and callbacks and Contexts are just crazy. I just got them working through trial and error really.

submitted by /u/DreamHouseJohn
[link] [comments]

Webapp lags only on Android, not iOS or Desktop.

Posted: 11 Sep 2016 05:46 AM PDT

I recently launched this project: senpai.co/discover/2016.4

and received a lot of complaint about lag on Android devices. It works fine on iOS and all desktop browser so it's definitely a problem with Android specifically.

Does anybody have any insight on this?

submitted by /u/senpaico
[link] [comments]

Want to start Freelancing

Posted: 11 Sep 2016 02:04 AM PDT

Hey guys I want to start freelancing. How can I start doing this. I don't have any contacts to any companies.

submitted by /u/freshbanks3131
[link] [comments]

IS there a way to visualise DAG created by Dagger2?

Posted: 11 Sep 2016 04:05 AM PDT

What made RxJava 'click' for you?

Posted: 11 Sep 2016 09:50 AM PDT

It doesn't seem to be happening for me..

submitted by /u/weirdShitAccount96
[link] [comments]

Let's Learn Kotlin - Part 2 - Strings, Data Classes and Nullable Types

Posted: 11 Sep 2016 04:28 AM PDT

Top 5 Mobile Application Monetization Strategies Every Developer Needs to Know

Posted: 11 Sep 2016 11:33 AM PDT

`Rxify` — a simple spell for complex RxJava operators (Part -4)

Posted: 11 Sep 2016 10:22 AM PDT

Thanks for reading my news about Questions Thread - September 11, 2016 at my blog Custom Droid Rom if you want too share this article, please put the resource, and if you think this article is very usefully dont forget to bookmark this site with CTRL + D on your keyboard to web browser.

New and Hot Article's :

Note: only a member of this blog may post a comment.