Questions Thread - June 10, 2016

Questions Thread - June 10, 2016


Questions Thread - June 10, 2016

Posted: 10 Jun 2016 05:09 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!

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

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

Android Dialogs: Effie Barak: ExoPlayer

Posted: 10 Jun 2016 01:52 PM PDT

Understanding the RxJava switchMap operator

Posted: 10 Jun 2016 09:46 AM PDT

Anyone know any alternatives to Google for using Google's In-App Billing?

Posted: 10 Jun 2016 06:45 PM PDT

Google's docs are bad and their tutorial (seen here) is absolutely trash and baffles me how they could even remotely think that that is a good representative video of their services. The docs (and the vid) say to add about 60 lines worth of code to use In-App Billing (for one item) but based off of what others have said and code that I've seen, that is not right.

All I want to do is add an In-App purchase for a page but no one seems to cover the same things, they all give different instructions and none of them seem to go all the way through.

Any suggestions or help? Thanks!

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

Zomato's Android Image Processing PhotoFilters library is now Open Source, which uses independent RGB color transformation to create amazing image filters.

Posted: 10 Jun 2016 07:04 AM PDT

video tutorial: getting started with (the new) Firebase on Android

Posted: 10 Jun 2016 03:23 AM PDT

Use Android Studio Like a Pro!

Posted: 10 Jun 2016 08:36 AM PDT

How come I still get OOMs on a device with 4GB RAM?

Posted: 10 Jun 2016 10:42 PM PDT

Over 3GB RAM is free, my app goes upto just 70-80 MB and I get an OOM crash.

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

How to find an image that eats RAM in Android app

Posted: 10 Jun 2016 05:38 AM PDT

Writing Android Tests with Espresso Test Recorder

Posted: 10 Jun 2016 02:31 AM PDT

Having trouble coding this flow

Posted: 10 Jun 2016 09:44 PM PDT

I'm having trouble figuring out how to code this simple flow. I have an app with a single button on it. When the activity is started, it attempts to set up the google api client and sets itself for the connection callbacks. When the button is pressed, it starts a permission request and sets itself for the permission request result callback.

What i want to do is show a new activity when both the google api client and the permission request finish, but i am having trouble figuring out how due to the two separate callbacks. Any recommendations? Here is some code with a bunch of TODO comments because I am struggling to understand how this scenario will work:

https://gist.github.com/smoak/409732af62c6021c82aa21e4306b6953

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

[Lib] YouTubeExtractor - Extract the metadata, including streaming video Urls from a YouTube video

Posted: 10 Jun 2016 09:34 AM PDT

Hello again!

Here is a library that helps with pulling the streaming URL from a YouTube video, given its YouTube video id (which is the end part of a YouTube video URL)

https://github.com/Commit451/YouTubeExtractor

Under the hood, it uses Retrofit and parses some ugly HTML to extract the URLs. The sample shows how you can then use the streaming url to display the video to the user. Enjoy!

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

Anyone have a good alternative to io.card that is smaller for credit card scanning?

Posted: 10 Jun 2016 09:39 AM PDT

We use this library but it comes in at a whopping 13 megs. All we want to do is scan credit cards and not any of the other features that are included with this library. Our app is 27.3 megabytes with the library and a much smaller 14.7 megabytes without it. The library has a meh rate of success for scanning credit cards and is just really big. A lot of the size comes in from .so objects for different architectures.

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

Is there a global version of Hugo's @DebugLog

Posted: 10 Jun 2016 10:04 AM PDT

Within my code, I want to know every method that was called in any class, any activity, service- everywhere (excluding all libraries and Android API methods)

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

Security "Crypto" provider deprecated in Android N

Posted: 10 Jun 2016 02:11 AM PDT

Is Xamarin a viable choice to start development as a beginner?

Posted: 10 Jun 2016 10:46 AM PDT

I've been seeing a lot of people moving towards cross platform development tools,is this something i should also learn to start off as a developer.

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

[Guidance/Advice] I've got programming basics down, but I feel stuck as to where to go next

Posted: 10 Jun 2016 04:22 PM PDT

Hey guys.

I struggle with the semantics of programming. Concepts like variables, arrays, API data manipulation, function calling, etc are all easy enough for me. It's understanding where to put the missing semicolon, or where to use brackets vs. where to use parentheses, that trips me up. Linguistic details.

I would love to make a simple app. I've worked with Javascript and have the basic concepts down. I've read through and tweaked a bit of Java, and have several small web projects that I coded from scratch. I get the basic file layout of an Android app, with assets, the manifest, etc. I even have a working prototype of what I want to do, done in Tasker (lots of variables, API calls, and even a basic UI).

I've messed around in Android Studio and poked through some Github Android projects, and it all just seems really overwhelming.

Where is the bridge between basic scripting, and writing your first app? Should I go through a lynda.com tutorial, or keep reading through Github projects, or what next? I have a clear vision of what I want to do, I'm just struggling with where to go next.

Many thanks.

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

Need to make a searchable dictionary-like app

Posted: 10 Jun 2016 10:02 AM PDT

I am looking to make a searchable (offline) dictionary of sign language videos (or possibly gif images).

The problem is that I am not a programmer, I know HTML and CSS, but that is it. Is there any software that will allow me to do this?

I've searched google and can't find any user friendly app makers that allow a search feature.

submitted by /u/19mindonhiatus
[link] [comments]

Android NDK r12 has been released!

Posted: 10 Jun 2016 01:39 AM PDT

Weekly "anything goes" thread!

Posted: 10 Jun 2016 06:07 AM PDT

Here's your chance to talk about whatever!

Remember that while you can talk about any topic, being a jerk is still not allowed.

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

Uber opens RUSH API to everyone

Posted: 10 Jun 2016 12:06 AM PDT

Security "Crypto" provider deprecated in Android N

Posted: 10 Jun 2016 02:49 AM PDT

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