Questions Thread - June 05, 2016 |
- Questions Thread - June 05, 2016
- my fellow Canadian developers, how do you file taxes from your Play Store earnings?
- Potential Impact of Google Play store on Chromebooks / Chrome OS
- Material Design Dimens: Default colors and dimens per Material Design guidelines
- Will converting my views to Java make them faster?
- Android Studio Login and Register tutorial with MYSQL database
- Homing device for Kit
- Should I get back into Android dev? How should I do so?
- HorizontalWheelView - interactive alternative to SeekBar
- What you don't know about top android app testing challenges may shock you
- Implementing Google Material Motion guidline
- How do YOU figure out performance bottlenecks in your app?
- Requesting Feedback for Android Developer Tool I am Making
- Android Vector Drawable Example using AppCompat Support Library
- send Arraylist between two fragments
Questions Thread - June 05, 2016 Posted: 05 Jun 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:
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! [link] [comments] |
my fellow Canadian developers, how do you file taxes from your Play Store earnings? Posted: 05 Jun 2016 04:51 PM PDT I have an app that I would like to start selling. Before that o want to understand the tax implications. I am in Ontario Canada. Some of the questions that keep me confused are:
[link] [comments] |
Potential Impact of Google Play store on Chromebooks / Chrome OS Posted: 05 Jun 2016 07:23 PM PDT |
Material Design Dimens: Default colors and dimens per Material Design guidelines Posted: 05 Jun 2016 01:20 AM PDT |
Will converting my views to Java make them faster? Posted: 05 Jun 2016 04:40 AM PDT Wasn't there a library post the other day saying how views from code were significantly faster than XML? 'Anko' something library. Not all views, just where it matters the most. Like in a grid or recyclerview, where you have to instantiate dozens of them, if not hundreds or thousands. I'm going to benchmark it right now, but is this like a common thing? (thing= instead of using xml layouts, instantiating views in java and setting the attributes programmatically) *Found this benchmark, seems like Java is ~40% faster than XML. **Reason I started digging around was my gridView that had tons of bitmaps was slow as hell. I profiled the shit out of everything. XML View inflation averaged around 0.5ms (with recycling), and Java around 0.45ms. I.e, it was not even worth the time I spent doing it. And my bitmap creation process was taking up to 30ms. By simply reusing the Paint object I got it down to ~25ms, orders of magnitude more speed up than view inflation (XML or java) could have ever given me. Then I figured out a way to minimize bitmap allocations, fixed some overdraw, used an object pool and a LRU cache for some data that the bitmaps needed to be created, offloaded some work to elsewhere etc. I'm now under the 16ms line. TL;DR: Know what to fix before fixing it. [link] [comments] |
Android Studio Login and Register tutorial with MYSQL database Posted: 05 Jun 2016 11:29 AM PDT Hello androiddev, I just finished making a new Login and Register tutorial using a MYSQL database. It covers a ton of material (it's a 6 video playlist :P). For you beginners out there, by the end of it you will know how to: 1) Purchase your own domain (It's super cheap - about $4.00/month) 2) How to create tables and users for your MYSQL database (no previous MYSQL knowledge needed!) 3) How to write some basic PHP to connect/access the data stored on your MYSQL database (No previous PHP knowledge needed!) 4) How to build an Android Application that can send and receive data from your MYSQL database. Tell me what you think. Youtube link: https://www.youtube.com/watch?v=FMp_bkzlx1g [link] [comments] |
Posted: 05 Jun 2016 08:34 PM PDT Hi guys, A local team of volunteers here in New Zealand, is looking an Android Wear watch to develop a navigation application for a blind person, Kit. Also, possibly for more general use for the visually impaired. Kit likes swimming in the sea, but has difficulty finding his way up the beach back to the entrance of a track that leads to his house. So we are considering using a watch to help him navigate, initially via GPS and magnetometer (so that he can orient in the right direction), then using a BLE proximity beacon for the last part of the journey (as it needs higher accuracy than GPS to find the start of the track). Ironically Kit, who was a renown sound engineer on many NZ films, uses hearing aids, which he can't take in the water, so is also effectively deaf when he emerges! We have never programmed a watch before so have some fundamental questions: Is what we want to do achievable using Android Wear? In other words is it possible to develop significant applications that access watch resources including GPS, vibrator, buttons, BLE, magnetometer? Is there likely to be sufficient rom/ram to implement a program that does location and compass calculations to guide kit between a series of waypoints? Clearly it depends, but it could be quite a complex programming with floating point calculations. Will we effectively be able to take over the user interface to use just keys and tactile feedback from a vibrator? Clearly the screen will be fairly useless to Kit, and his hearing problem means that tones won't help! Will we be able to programme the Bluetooth (smart) functionality for proximity beacon detection? Has anything like this been done already? If so, references and contacts would be really helpful. The watch requires: Waterproof, as Kit will be wearing it whilst swimming. Accurate GPS, for initial navigation between waypoints. Magnetometer, for orientation and course corrections. Vibration patterns, to communicate with Kit Key controls, preferable to touch screen (although very coarse touch screen controls might also be useful) Gyroscope, ideally, for gesture control Bluetooth (smart), for beacon scanning and proximity detection, for last part of journey (this is critical) Other comments / views on what we are wanting to achieve would be very much appreciated. Best wishes, Ron. [link] [comments] |
Should I get back into Android dev? How should I do so? Posted: 05 Jun 2016 11:12 AM PDT The last time I developed for Android was 2014. I believe Lollipop was just coming out (or the preview). I'm sure so much has changed since then. I'm now a full-time college student, so time is limited. That said, I have found that app development and programming as extracurriculars have been very rewarding so far (e.g. programming experience, portfolio builder, conversation starters, networking, interviews, etc.). It's something I want to get back into. For the past 1-2 years I have dabbled in iOS, publishing two apps to the App Store. These netted me ~$500, minus another $198 (x2 $99 yearly iTunes Connect fee), for a total of ~$300 in profit. This is definitely not survivable income. I have published over 10 Android apps and made a measly ~$120 from those. However, I have learned and matured much since then. I'm looking at taking another serious stab at app development. Worst case, I could build up my portfolio/resume even more, either leading to a job or starting my own dev shop. There are certain things I like and dislike about both Android and iOS. Here are my main points about each: Android:
iOS:
tl;dr Hesitant at choosing a platform while wanting to get back into mobile development. Convince me. [link] [comments] |
HorizontalWheelView - interactive alternative to SeekBar Posted: 05 Jun 2016 01:13 AM PDT |
What you don't know about top android app testing challenges may shock you Posted: 05 Jun 2016 09:53 PM PDT |
Implementing Google Material Motion guidline Posted: 05 Jun 2016 12:32 AM PDT Hey guys, i tried to implement 2 animations from Google Motion Guidline as samples for new CircularReveal library update. But i had some troubles with implementing little things like sequential square & circle dots appearing due to high speed of animation i didn't recognized what's going on under the hood, can someone see what's changing in this animation? :) [link] [comments] |
How do YOU figure out performance bottlenecks in your app? Posted: 05 Jun 2016 01:30 AM PDT |
Requesting Feedback for Android Developer Tool I am Making Posted: 05 Jun 2016 07:56 AM PDT I am building a real-time custom object and crash analytics data logger for Android. I have been frustrated by the current options on the market (such as Loggly) which severely limit me in the type of data I can upload and by absurd costs for high data volume. The first half of the product is an API, which allows you do easily log json serializable objects filled with useful data, or log call stack data from caught exceptions. Furthermore, there is a flag which can configure the API to automatically send call stack data from uncaught exceptions. It handles all the nasty stuff like batch uploading, caching, etc. The second half of the product is a middle layer server which ideally will be able to be provisioned in house, or on Azure/AWS. This layer is what directly listens for packets from the device. It exposes a front end which allows the user to configure it to stop receiving data from certain logs, change sampling rates, and configure data forwarding to Elasticsearch, Splunk, Redshift or a custom HTTPS endpoint for further data analysis. The Elasticsearch/Kibana stack is easy to provision, and is very powerful for data analysis. I have a high amount of motivation to build this for my own usage. However, I believe this can help others in gaining useful insights from their users, as well as useful information to fix their bugs, without being bottlenecked by data volume. I am looking to get information from potential users, thus I am wondering if you would find this product useful, or anything else you would like to share. Thanks, looking forward to your responses. Feel free to talk to me via pm as well. [link] [comments] |
Android Vector Drawable Example using AppCompat Support Library Posted: 05 Jun 2016 08:52 AM PDT Fed Up of creating separate images for different size image for mdpi, hdpi,xhdpi and etc. Now there is no need to design different size image for mdpi, hdpi,xhdpi and etc. With Vector Drawable you need to create image only once as an xml file and you can scale it for all dpi and for different devices. This also not save space but also simplifies maintenance. DOWNLOAD SOURCE CODE or Explore on GITHUB . #android #android_developer #developer_android #appcompat #android_theme #support_library #library #android_support_library #material_design #android_tutorial #android_code http://www.androidtutorialshub.com/android-vector-drawable-example-using-appcompat-support-library/ [link] [comments] |
send Arraylist between two fragments Posted: 05 Jun 2016 04:20 AM PDT |
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 |