Questions Thread - May 24, 2016

Questions Thread - May 24, 2016


Questions Thread - May 24, 2016

Posted: 24 May 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!

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

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

Reddit app collaborators

Posted: 24 May 2016 10:20 AM PDT

Hey guys, I'm the author of Redgram, a Reddit client. I posted on here before and got really good response from the community. I was trying to get people aboard and make this app collaborative. I went ahead and created a slack account with dedicated channels for GitHub changes and Travis build messages, and opened issues instead of a to-do list in order to commit code against them.

So far we are 3 developers, 2 active and it's still me who can digest major changes or new features since I understand the code the most. The open issues are self-explanatory and can be easily picked.

The reason I started this thread before is because I worked on it for a year or so, became slacking and was missing the discussion or support factor from developers/users. I'm asking the same thing again now.

FYI, this is going to be the second open source ad-free Reddit client in the market. If anyone is considering to help, then you are either in it for the experience, helping using your expertise or both.

Add your email to https://github.com/Redgram/redgram-for-reddit/issues/10 and I will make sure I will add you to both the organization and slack.

Thank you!

P.S: Also willing to listen to anything negative you have to say!

Edit: Some of the Github accounts that are requesting to help had no activity in them at all. You might need the experience but this app assumes you already have some.

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

How can I get realtime data stream from Windows PC to Android phone using USB cable?

Posted: 24 May 2016 09:33 PM PDT

I want to stream real time data from my Windows laptop to my Android phone via my app with USB cable.

The case is that I want to make a simple car central computer (Windows) that can stream data wired into a connected Android device.

What is the best way to achieve this?

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

Constraints - A sample app using the new ConstraintLayout

Posted: 24 May 2016 06:31 AM PDT

How much would it cost to get a marketing app?

Posted: 24 May 2016 05:26 PM PDT

I work for a real-estate investment company that has a large shopping complex (82 stores and 36 dining establishments). How much would an app cost for initial build and maintenance for the complex? Just need it to post updates from individual stores and photos of events. Thanks for the help!

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

Fragmented Podcast - YAGNI (You Aren't Gonna Need It)

Posted: 24 May 2016 09:21 AM PDT

Need to expose API; new to Android and could use advice!

Posted: 24 May 2016 02:13 PM PDT

Hi all, I am an intern this summer and it is my job to research how to expose our API so that other devs can use some of app's functionality in their apps. But, I do not know a lick of mobile development. Would bound services extending the Binder class be a good way to implement this? Open to any suggestion/help!

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

Redux-ing UI bugs: Borrowing the Best of Web to Make Native Android Better

Posted: 24 May 2016 08:27 AM PDT

Random Musings on the N Developer Preview 3 - The CommonsBlog

Posted: 24 May 2016 07:10 AM PDT

I need to create an app that can take information from a Linux computer (temperature, ram usage, etc). What is the fastest way to do this?

Posted: 24 May 2016 06:47 PM PDT

My initial idea is to use either Unity or Ionic for the interface. However, if there are better ways please let me know.

And, I still do not know on how to take data from the Linux computer.

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

Is there a way to kill the com.android.phone process from code?

Posted: 24 May 2016 06:40 PM PDT

First of all, you may ask why do I want to kill a system process on my phone. The answer is that I'm using ASUS Fonepad (ME175CG) and after the recent lollipop upgrade (v6.3.9) it has got this pathetic bug in the above process whereby the battery drains continuously and empties in a matter of few hours.

I've verified this by checking the battery stats where the Telephony Service app eats the biggest chunk of battery life. Also, when I deactivate the Sim card, the battery drain stops happening, but only when I click yes on a dialog that comes up saying that the com.android.phone process process needs to be killed as it has stopped responding.

Now, I'm not inclined to use drastic measures like rooting my tab and installing firmware. Instead, what I want to do is create my own app with a service that listens to this process and if running, just kills it in order to save battery life. My question is how do I do that? I know the basics of Activity, Intent, Service, etc. and I can also handle Android Studio. But I couldn't find any documentation on how to kill a system service from within my App's service. Can you point me to the right direction?

edit

You may also ask why don't I just disable the Sim card on my tab and keep it that way? The answer is that I don't use the tab for making or receiving calls, but I do use the data plan for Internet. Hence, I just want the phone service to be stopped, but data plan to be active.

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

DebugRank - MVP, Dagger2, Retrofit2, Realm, RxJava and Espresso

Posted: 24 May 2016 06:54 AM PDT

Is it just me or is the udacity "Developing Android Apps" course really hard to follow?

Posted: 24 May 2016 02:11 PM PDT

Im not a really newbie in Android development. I just wanted to learn more. But the course is going very fast and the teachers are not explaining everything. You often find a Code snippet and ask yourself "where the f*ck is this coming from". No explanation at all...

Should I grab a book instead? I know the basics but I maybe want to get a job as an Android dev in the future.

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

What is an example of UX you've implemented or seen that stood out to you?

Posted: 24 May 2016 02:34 AM PDT

Inspired by this post, I'm curious what other little features make a big difference. Things that not enough apps do, or that are easy to skip over.

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

Publishing Android App for Someone Else

Posted: 24 May 2016 01:43 PM PDT

Some of you have more android dev contracts completed than I do. When you upload an android apk for a client no matter if its public on Google play or Private on Google Play via the Biz/GOv/enterprise channels what are some best practices to follow to prevent foul ups?

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

[Open Source] MDX - Material Design Explorer

Posted: 24 May 2016 01:57 AM PDT

Hi everyone. I built an app to explore material design (colors and icons for now) for designers and developers. It is completely open source on https://github.com/erdemorman/mdx

You can get it from Google Play Store or you can download the latest APK from Github releases.

Here are the screenshots of the app.

Libraries used:

Any feedback is appreciated.

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

Navigation bar with integrated FAB like button

Posted: 24 May 2016 07:02 AM PDT

I am curious as to whether or not this is easily implementable. In the linked picture, the right most picture shows the navigation bar with the center button.

http://phandroid.s3.amazonaws.com/wp-content/uploads/2016/03/Google-Spaces-group-messaging-2.jpg

submitted by /u/1800k001
[link] [comments]

Strategy to optimize test coverage and overcome Android Fragmentation

Posted: 24 May 2016 07:20 AM PDT

Google I/O ’16 — Year of The Android

Posted: 24 May 2016 09:11 AM PDT

Is Eclipse still a viable IDE for building Android apps?

Posted: 24 May 2016 10:57 AM PDT

I'm well-versed in Java but still have 0 experience with android. I know Android Studio is the best option but it's not available in my region and my slow internet connection hasn't been much help when I tried to find a workaround.

Can I still use AS tutorials on Eclipse?

One more thing, I had a look at the wiki and it says I need to know XML. Is is enough to know the basics (like syntax and DTD rules) or do I need to go deeper?

I'm asking because I was offered a position on a development team based on my coding experience and was given a couple weeks to prepare a simple app as a test/discussion topic for the interview.

Thanks.

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

Someone tried the Parallella Computer for parallel builds on Jenkins or something?

Posted: 24 May 2016 09:40 AM PDT

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