Questions Thread - September 15, 2016 |
- Questions Thread - September 15, 2016
- FYI - Firebase crash reporting causing ANR.
- How we design a beautiful animation - Jeremie Martinez
- I just spent the last 15 minutes rerunning my app to see changes while fixing an issue. Then I disabled Instant Run. Then after a > 2min build, I saw my changes.
- Is there any way to make Android Studio's system bar match the Darcula theme in Windows 10?
- Heads up on a new LinkifyCompat that brings the fixes brought in API 24
- Synchronously Animate Toolbar/TabLayout/Status Bar/etc. Background Colors
- The new permission system introduced in Android 6.0 is incredibly confusing and I have no idea how to program for it (and other issues)
- Second Android interview next week. What questions should I expect?
- My FAB brings all the boys in the yard, damn right
- Need feedback on my simple app, best practices, code structure etc.
- Testing beta versions of Android on non-Nexus devices
- HELP: Looking for good device stands for testing multiple devices at once
- I made a dev tool for those one-time text transformation tasks
- Is here someone who in the pas used MVP but now moved to Google Data Binding and is happy with it?
- I need to consume a RESTful service in an Android app.
- Espresso and some work done in thread
- Help needed: icons for Google Play Store
Questions Thread - September 15, 2016 Posted: 15 Sep 2016 05:05 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:
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! [link] [comments] |
FYI - Firebase crash reporting causing ANR. Posted: 15 Sep 2016 03:09 PM PDT |
How we design a beautiful animation - Jeremie Martinez Posted: 15 Sep 2016 10:07 PM PDT |
Posted: 15 Sep 2016 09:53 AM PDT Has anyone similarly given up on this very I'm on the Canary Channel, btw. I just want to know I'm not alone in this. [link] [comments] |
Is there any way to make Android Studio's system bar match the Darcula theme in Windows 10? Posted: 15 Sep 2016 07:09 PM PDT Ideally just for Android Studio, I don't want to change the whole OS's theme. [link] [comments] |
Heads up on a new LinkifyCompat that brings the fixes brought in API 24 Posted: 15 Sep 2016 02:02 PM PDT |
Synchronously Animate Toolbar/TabLayout/Status Bar/etc. Background Colors Posted: 15 Sep 2016 05:46 AM PDT |
Posted: 15 Sep 2016 08:21 PM PDT Hey, sorry about my rage, but I just started developing on Android a few days ago and it all seems so overwhelming. I've been programming for about a year, but man, this is by far the most difficult and frustrating thing I have ever worked with. In short, I'm complaining because the barrier to entry is so incredibly high and all the documentation seems to be outdated. These are some of the problems I've faced and I guess I just need to vent. Has anyone had the same kind of problems or am I just really incompetent? First off, SO much of the documentation and the official tutorials on Android's own development page is outdated. Many of the things they do are deprecated, some things don't even work and everything is just a mess. Do they never update it? Also, I spent 8 hours trying to debug my app because it didn't allow me to see my location on the map. No matter what I did. Turns out that in Android 6.0, it's suddenly required to write 50 lines of code with switch cases and string arrays and calling other methods and so on every single time I want to use anything that requires permission. Nobody told me that. It doesn't really say that anywhere. All the tutorials and code samples and so on are outdated and don't require the runtime permission checks, even in the official guide. And it just seems so ridiculously complicated. Why isn't there a more.. clean / neat way to do it? I mean, why not just implement a permission manager and let it handle everything? Why can't Android Development Studio just auto generate that complicated chunk of code for the permissions? Why do I have to manually put stuff into a string array and check if some constant int is 1 or 0 and write switch cases and so on every single time? I found a few examples of how to do it, but only with one permission. I need two permissions. I still haven't got it to work. Some of the most essential things - for example putting a button on the action bar or simply getting a users location with the GPS - is incredibly difficult. It takes me many hours just to figure out what to do, and especially because many of the guides, official as well as unofficial, use deprecated code or simply just don't work anymore. I wanted to put a button on my action bar, but apparently I need to use a toolbar instead, but if I do that, I just have two bars at the top. And then if I just want to delete one of them, the default action bar disappears from all views, and if I just delete the RelativeLayout on one of my views to get rid of it, then it suddenly has more than one root now and.. yeah.. It just sees so inefficient and all over the place. It should be possible to just with one or two lines of code, enable buttons on the action bar or hide it or something. https://developer.android.com/training/appbar/actions.html I tried following that guide. They never explain what the link to the namespace "app" is. When I implement the code, there are no buttons. It's just an empty bar. Aaah I tried making an app where you have to log in with Facebook in order to see your location on a map, but all the damn App IDs and API keys and so on were just so confusing. Even when everything seemed to work and no matter how many times I rebuilt my project from scratch and made new Facebook App IDs and API keys, I kept getting an error telling me that the App ID ************ doesn't match any App IDs on my Facebook developer account. I have NO idea where my app gets that App ID from and why it displays that exact same App ID every time I totally rebuild my app from scratch. I have never seen it before and it just wanted to use exactly THAT App ID even though the one I actually created on the Facebook Developer page for my app is completely different. The only way to fix it was to just add that App ID that my app so desperately wanted to use. Do I really have to spend 5 minutes uninstalling the app and then build and compile it every time I want to run it on my phone? Why can't it just update the files that have been changed and just update the app while it's still installed? It's really annoying that I have to uninstall the app and then spend 5 minutes with my computer screaming in pain every time I want to test a little change in the code. When tutorials say "Add this to your repositories" and I'm just like.. Which of the build.gradle files is it? The Project one or the App Module? When I accidentally refer to a drawable that doesn't exist, why doesn't it just tell me instead of telling me that my R.java is syntactically incorrect and needs ;'s and }'s and that there are unexpected tokens in it? When I make a new project and I say that I'll be using the API level 19, then why does the project include colors.xml in the values folder when that was introduced in API 23? Why does Android Development Studio keep having problems so I have to clean the project or even use the "Invalidate Caches / Restart" button just to get it working again? I really don't know how people get into this and enjoy it. To me it just seems so incredibly inefficient, all over the place, complex and very, very poorly documented :( [link] [comments] |
Second Android interview next week. What questions should I expect? Posted: 15 Sep 2016 02:28 PM PDT Hi all, I'm very excited at the fact that I was one of the few selected to move on from the phone interview to the in house interview. Now, my concern is for the type of questions they're going to ask...
I feel very confident about this interview, but there's always that voice in the back of my head that's keeping me worried. Any tips would be appreciated. [link] [comments] |
My FAB brings all the boys in the yard, damn right Posted: 15 Sep 2016 12:11 PM PDT |
Need feedback on my simple app, best practices, code structure etc. Posted: 15 Sep 2016 05:05 AM PDT |
Testing beta versions of Android on non-Nexus devices Posted: 15 Sep 2016 03:09 PM PDT I spent some time this summer making sure my company's app would work with Android Nougat. Testing is limited to Nexus devices though, and our most commonly used devices are not Nexus devices. So, do companies like Samsung offer beta versions of their updates of the OS like Google does? Is that a necessary test if I've already fixed issues on Nexus devices? [link] [comments] |
HELP: Looking for good device stands for testing multiple devices at once Posted: 15 Sep 2016 11:44 AM PDT Hi! Currently developing an app, and doing some automated tests against multiple devices at once. Trying to find a good stand or sets of stands that would allow me to hook up/prop multiple devices for an optimal viewing/tapping angle while the tests are running. [link] [comments] |
I made a dev tool for those one-time text transformation tasks Posted: 15 Sep 2016 06:21 AM PDT |
Is here someone who in the pas used MVP but now moved to Google Data Binding and is happy with it? Posted: 15 Sep 2016 08:00 AM PDT |
I need to consume a RESTful service in an Android app. Posted: 15 Sep 2016 07:37 AM PDT I see the following ways to do so: ResultReceiver and IntentService Are there others? Which do you like best? [link] [comments] |
Espresso and some work done in thread Posted: 15 Sep 2016 01:59 AM PDT I'm trying to figure out how espresso works with stuff done in background. It is said in documentation that with custom threading I should use IdlingResource. But it looks like simple thread is handled the same way as AsyncTask. And both examples (async task and thread) fail when I sleep for 60 seconds or more. When should I use Idling resource? is it only for Services? please see the sourcecode here: https://github.com/pbochenski/espresso-samples/blob/master/app/src/main/java/com/siili/test/Example7.java https://github.com/pbochenski/espresso-samples/blob/master/app/src/androidTest/java/com/siili/test/Example7Test.java p.s. I know this example leaks memory, but I want to keep it as simple as possible. [link] [comments] |
Help needed: icons for Google Play Store Posted: 15 Sep 2016 09:31 AM PDT So i want to upload my first app to Google Play Store and one of the last steps in finishing it is to create the icon(s). I cant find a simple and clear guideline telling me how many icons I should produce and what sizes or other features they should have. It is pretty frustrating. I just find long guides talking about the best features to make a cool icon, material design and all of that jazz... But I just want to make a quick simple icon wich follows GPS rules and publish the app for fun. So, does anyone knows what size of icon(s) or other features I have to take as mandatory when producing my icon? [link] [comments] |
You are subscribed to email updates from Developing Android Apps. To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google Inc., 1600 Amphitheatre Parkway, Mountain View, CA 94043, United States |
Note: only a member of this blog may post a comment.