Questions Thread - August 30, 2016

Questions Thread - August 30, 2016


Questions Thread - August 30, 2016

Posted: 30 Aug 2016 05:07 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]

Ten Kotlin Features To Boost Android Development - Ivan Kušt

Posted: 30 Aug 2016 12:32 PM PDT

Analytics Events Naming Conventions

Posted: 30 Aug 2016 10:41 PM PDT

When wiring up analytics for platforms such as Answers, Flurry, MixPanel and Google Analytics, what naming conventions do you use for your Analytics Events? Is there some kind of format that works well across multiple Analytics platforms?

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

Let's play a game - what are your Dagger2 scopes?

Posted: 30 Aug 2016 07:49 AM PDT

Because there are very few production quality Dagger2 scoping examples out there, let's play name your Dagger2 scopes. Here are mine, starting from the top

  • @ApiScope - Retrofit services and POJOs related my app's server API. No business logic is here, just the straight up wiring to the network.
  • @NetworkScope - business logic wrapper layer for the network. One example on how I use this - if a poorly designed API requires two network requests to execute a single task, I can merge the two retrofit service calls here. This is what I mock out to make tests more hermetic.
  • @DataScope - my persistence layer.
  • @AppScope - because my data scope is a gradle module shared by multiple android apps, this just wraps it. provides nothing unique at the moment, but maybe one day? Scoped to the Application
  • @ConfigScope - a scope for a configuration change, or the current activity. This is constructed before view inflation (.setContentView()) so I can finish the activity if its the wrong configuration without paying the view inflation penalty.
  • @ActivityScopecontains the root Controller.
  • @ControllerScope - any Controller that's added on top of the root (would be the equivalent of a @FragmentScope
  • @NestedControllerScope - equivalent of a @ChildFragmentScope

Excited to hear yours!

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

Build and Run Android from AOSP Source Code to a Nexus 7

Posted: 30 Aug 2016 06:10 AM PDT

Questions for making an icon pack.

Posted: 30 Aug 2016 06:48 PM PDT

I'm probably stupid for asking what may be an obvious question but I can't find any information on this.

  • Do I need to make separate icons for every screen size or do I just make a big version and the OS will scale it to what ever size it needs?

  • Will the pack work between versions or do I need to make updates every version?

  • Will the icon pack work between different versions between manufacturers, like Blackberry phones or Samsungs or Motorola phones or do I need to make a different version again.

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

Advantages of using Apigee and Usergrid for making apps

Posted: 31 Aug 2016 12:17 AM PDT

I am new to this, and these are the advantages I felt were important:

teks.co.in/site/blog/10-reasons-to-use-apigee-and-usergrid-for-your-next-mobile-apps/

Is there anything else?

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

Android's ConstraintLayout: Align One View's Edge to Another View's Center - Wolfram Rittmeyer

Posted: 30 Aug 2016 09:46 AM PDT

Approaching Outside-in TDD on Android (II) - panavtec

Posted: 30 Aug 2016 02:33 PM PDT

Android Studio Templates for Ribot's MVP

Posted: 30 Aug 2016 03:07 AM PDT

Hey guys,

There are already several templates for MVP, but because community still doesn't have exact answer on how MVP should looks like, I created Android Studio template which generate boilerplate code which match MVP proposed by Ribot company.

Feel free to use and please share with me if something wrong with it.

https://github.com/kidinov/ads_mvp_templates

Thank you.

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

Question regarding up front payments

Posted: 30 Aug 2016 02:28 PM PDT

Hi!

I'm a new budding mobile developer and I have a question for all the seasoned freelance developers.

For those of you who charge a specified amount, as opposed to hourly, do you ask for a down payment?

For example, if you're charging someone $5000 to make their app, do you ever ask for some of that up front? Like, 15-20%? Or all of it even?

If not, how do you usually charge your clients?

Thanks.

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

Breaking Up (an Artifact) Is (Not That) Hard To Do - The CommonsBlog

Posted: 30 Aug 2016 09:47 AM PDT

Check out my new android progress lib for taking bites out of images! :-)

Posted: 30 Aug 2016 02:20 AM PDT

Do devs have to support by email?

Posted: 30 Aug 2016 05:26 AM PDT

On Google Play, can devs support by phone only (free app) and therefore set up an auto reply to any emails sent to the address we provide telling them to call us? Or would we be in breach of the terms & conditions if we don't support via the email address? Thanks.

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

Cross platform architecture - Novoda

Posted: 30 Aug 2016 12:30 PM PDT

Realm and Clean architecture?

Posted: 30 Aug 2016 06:10 PM PDT

At work, I've been slowly refactoring our Android application from vanilla MVP to the clean architecture.

Has anyone found a good way to use Realm with this architecture? Before I began introducing the domain layer, our presenters would interact with Realm directly (more or less). With clean, it seems like the only way to decouple Realm from our domain models would be write the same model class twice, with the only difference between the two being that one extends RealmObject. Then we would "map" between those.

I really like Realm but it seems like more work than it's worth to keep using it here. Thoughts?

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

Getting "Install Blocked" dialog when installing apk from Android Studio

Posted: 30 Aug 2016 02:22 PM PDT

Lately I've been getting this dialog each time I push my dev app to device. I'm not sure what's causing this, and I'd really like to avoid publishing to Google Play until I figure it out. I haven't added any new libraries in this release, and the work being done isn't anything nefarious (sports app for big client). Has anyone seen this before?

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

I wrote an Android/Java library for the Open Movie Database API and would love comments or feedback.

Posted: 30 Aug 2016 05:35 PM PDT

I created an app (open source), and thought it would be cool to monetize it and donate all proceeds to charity. Want to help?

Posted: 30 Aug 2016 10:53 AM PDT

The app is super basic right now. It's basically just an idea that I thought of about two weeks ago and decided to throw a basic proof of concept version together. Anyways, it's called Perspective, and currently just provides some estimated values for events that have happened around the world since the time the app was installed. I was thinking that every 10th card could be an advertisement or something. Here's the link on play store if you want to check it out:

https://play.google.com/store/apps/details?id=com.cmk.perspective&hl=en

And here is the link to the repo:

https://bitbucket.org/cmklein20/perspective

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

Using accessibility options to cheat at Candy Crush

Posted: 30 Aug 2016 08:26 AM PDT

Thanks for reading my news about Questions Thread - August 30, 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.