• Breaking News

    [Android][timeline][#f39c12]

    Friday, June 29, 2018

    Weekly "anything goes" thread! Android Dev

    Weekly "anything goes" thread! Android Dev


    Weekly "anything goes" thread!

    Posted: 29 Jun 2018 05:41 AM PDT

    Here's your chance to talk about whatever!

    Although if you're thinking about getting feedback on an app, you should wait until tomorrow's App Feedback thread.

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

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

    Every Android device is susceptible to a hardware vulnerability called RAMpage

    Posted: 29 Jun 2018 01:40 PM PDT

    Android Developers Blog: A New Universal Music Player

    Posted: 29 Jun 2018 11:19 AM PDT

    Answer from Play Store about recent significant new user loss

    Posted: 28 Jun 2018 11:49 PM PDT

    What are some common mistakes that new Android developers make?

    Posted: 29 Jun 2018 05:52 AM PDT

    Hey /r/androiddev,

    I saw this post titled "Django Newbie Mistakes" over on Hacker News and wondered what is the equivalent in the Android world. I'd love to start a discussion going. I'll start:

    • Hardcoding strings in layouts instead of using string resources.
    • Using framework components instead of their Support Library counterparts (Activity vs AppCompatActivity).
    • Forgetting to add a new Activity to the AndroidManifest.xml.
    submitted by /u/Plastix
    [link] [comments]

    Looking for code reviews on my first open source application

    Posted: 29 Jun 2018 09:35 AM PDT

    Hello everyone,

    I decided to start developing applications using my real name and to begin this journey I am open sourcing my very first Android app, originally released in late 2016.

    I rewrote the whole application from scratch starting on June 16, 2018.

    This application is created following Google's Guide to App Architecture.

    It follows the MVVM pattern, and relies on just LiveDatas to pass data between layers (without RxJava etc). Its backend is Firebase and it uses the Firestore DB. As a further step of experimentation I utilised some of Arrow's datatypes for error handling.

    The app seems to work fine and I have not identified any bugs yet.

    I'd really appreciate suggestions, criticism and links to resources/articles that can improve my coding style and/or understanding of programming concepts. I've been doing this as a hobby for a few years now, but I learn something new and exciting everyday.

    In particular, I'm looking for some comments on the separation of concerns (specifically in the View-ViewModel interaction) and threads usage or lack thereof.

    Feel free to suggest new features, but please understand that I won't be able to work on them just yet.

    Here is the link to my GitHub repository: https://github.com/emilioschepis/QRSync

    Thank you very much in advance.

    Emilio

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

    What to do when back is pressed?

    Posted: 29 Jun 2018 11:13 AM PDT

    I have received multiple different opinions on this topic and need help deciding. Currently, when the back button is pressed during my game, it closes (more like minimizes) the app and take the user to their phones home screen. When i am on the home screen of my game, this makes sense. Does it make sense to still do that during a game? Should i pop up a menu asking if they want to end the game and send them to the game home page? What is the preferred way from a user standpoint? Just looking for opinions. Thanks!

    FYI: my game is a fast paced game that usually only lasts a minute or two and minimizing it pauses it automatically and it resumes upon reopening.

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

    FastList - a library for dynamic RecyclerView lists without adapters or viewHolders.

    Posted: 29 Jun 2018 03:57 AM PDT

    New Android library to transform Firebase Cloud Firestore documents, queries, and collections into LiveData

    Posted: 29 Jun 2018 08:24 AM PDT

    Trying to make ethernet work on a Pixel 2

    Posted: 29 Jun 2018 08:28 AM PDT

    The Pixel 2 doesn't seem to like ethernet adapters! From searching the web, it seems like nobody has gotten ethernet to work, even though it seems to work for the Pixel 2 XL and both Pixel devices.

    I'm using some Pixel 2s in an installation and would much rather use ethernet than wifi for stability, so I started hacking around. I noticed that ifconfig shows that eth0 is present when an ethernet adapter is plugged into the USB-C port! Next, I rooted the phone (easy, thanks Google) and installed a terminal so I can configure the device (su; ifconfig eth0 192.168.2.40 ; ifconfig eth0 up).

    Then I can ping the adapter from a laptop! But other things don't work... like using nc / telnet with either the phone or my laptop listening. And the Android GUI tools still have no idea that an ethernet adapter is present. Settings > Connected Devices > USB is greyed out.

    My suspicion is that the kernel has some very basic support for the device, but there's no driver for full support in Android. Bummer. Does anybody have any suggestions or ideas?

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

    [HELP] Dynamic clickable images through code

    Posted: 29 Jun 2018 02:44 PM PDT

    I'm trying to make a very simple game, ATM I just have a single activity and a fragment.

    My question is: How do I "paint" an image once I've created a fragment depending on what level the user is at? So if a user is at level 3 I want to paint 3 stars instead of 2.

    Any help is appreciated! Even pointing to the right direction!

    EDIT:

    More specific information - A user starts at the MainActivity, presses a button and a new fragment is created with x amount of images that is directly correlated to the players current stage. These images should also be clickable, so it's basically a button but an image at the same time. (Not necessarily a star)

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

    Firebase Remote Config | Complete Android Tutorials with Sample App - How you can force android app users to update the App using Firebase Remote Config

    Posted: 29 Jun 2018 02:38 PM PDT

    Have you guys noticed a decrease in AdMob impression after adding the Consent form?

    Posted: 29 Jun 2018 10:22 AM PDT

    Hey, from the last two the weeks I am facing quite a huge decrease in my AdMob ad impression. The app that was generating around 20K daily impression is now making hardly 10K. Is it just with me or you guys also facing the same?

    Thanks

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

    Play Store vitals, what is bottom and what is top?

    Posted: 29 Jun 2018 10:19 AM PDT

    I have some vital numbers where I am bottom % and top %, but I have no idea which one is worse. I realize this is a dumb question, I'm probably just reading something wrong or something, but it is just not clear to me. Thanks.

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

    How can I make an Android VM "think" in on device X?

    Posted: 29 Jun 2018 11:46 AM PDT

    Like could I make it so that the OS/apps think it's running on a pixel for example, rather than VirtualBox?

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

    Assistance with BLE

    Posted: 29 Jun 2018 10:09 AM PDT

    Assistance with BLE

    Here is my code.

    I am working on an app that can connect to an adafruit flora BLE device to receive information from it. I want the app to display the list of found devices and when an item in the list view is clicked the connection is made and data can be received. Ultimately I want to take said data over to another activity to graph in realtime (if possible). There are a few things going on that i dont understand and I hope someone can shed light on.

    1. When it is scanning for devices the list view shows them but there are multiples of each.
    2. For some reason the onPause and onResume make the list view glitchy (displays devices and then removes them)
    3. How do I know when there is a connection?
    4. when I have getRemoteDevice in my code I get a runtime error ( Attempt to invoke virtual method 'android.bluetooth.BluetoothDevice android.bluetooth.BluetoothAdapter.getRemoteDevice(java.lang.String)' on a null object reference)
    5. When I try and use filters and settings in the startScan method I get nothing in my list, Ive also tried null filters w/ settings and still nothing.

    The above code is the second activity in my app, in the first bluetooth is initialized and what-not. The above code works but I dont receive any data from the device and am not sure its truly connected. from the logs shown in the code I get:

    https://i.redd.it/obertiqr2z611.png

    https://i.redd.it/vw99imdt2z611.png

    Resources im using:

    https://github.com/NordicSemiconductor/Android-Scanner-Compat-Library

    https://learn.adafruit.com/introducing-the-adafruit-bluefruit-le-uart-friend/uart-service

    http://nilhcem.com/android-things/bluetooth-low-energy

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

    Databinding GoogleMap InfoWindow

    Posted: 29 Jun 2018 09:35 AM PDT

    i tried to use databinding to do some late binding of some data to an GoogleMap infowindow. but that doesn't look like it will work. Is there any other work around to update an infowindow after it is showing?

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

    How has the Google Play Store algorithm change affected the newly released apps visibility?

    Posted: 29 Jun 2018 09:16 AM PDT

    Hi indie devs,

    You all might be familiar with the Google's new strategy to make big companies happier and killing the indie developer community.

    Getting initial downloads is already a hard task. For indie's with minimal to no budget its even harder and now this?! It feels like hell...

    So , I have recently released an app in open beta, in hope to get some organic traffic and test it out before releasing it to production. I was shocked to find that, it literally has got no organic store listing visits, unlike other apps that used to get atleast some organic store listing visits. Maybe market is very competitive, it need better ASO etc. etc. or maybe its just bad timing..

    Wanted to know if anyone else is having trouble getting there new app discoverable or its just me? Any suggestion to make the app more visible?!

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

    Easiest Way to Have Ads/Crash Reporting in My App?

    Posted: 29 Jun 2018 03:45 PM PDT

    I'm almost done with my third app. This is my first "real" app (I'm trying to generate revenue).

    What is the simplest way to get ads into my app, preferably with some sort of targeting feature?

    Also, what is the simplest way to have crash reporting. I know in my previous apps the Google Play Console automatically reported crashes, but considering I only got 13 or so crash reports for a few hundred thousand downloads, I suspect something wasn't working and all the crashes were not getting reported.

    Right now, I'm planning to use Firebase for crash reports. Is that the easiest way?

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

    How do I make an app that connects to a bluetooth camera that shows live feed and also lets you go back and see the playback of the video feed?

    Posted: 29 Jun 2018 03:22 PM PDT

    Im trying to make an app that lets me connect to a bluetooth camera and lets me see video feed from before while it is connected.

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

    How much does Google maps api cost for apps?

    Posted: 29 Jun 2018 10:53 AM PDT

    Use Variables for Versions of Dependencies on Multi Module Android Projects, Please. ~ Story of Automation

    Posted: 29 Jun 2018 04:03 AM PDT

    Maintainable Architecture – Repository

    Posted: 29 Jun 2018 04:13 AM PDT

    Hmmmm should I implement powerups?

    Posted: 29 Jun 2018 01:33 PM PDT

    I have had a couple suggestions about my game and would like more feeback on complexity and solutions. The suggestion was to have powerups somehow in the game so i came up with two strategies for that. Strategy 1: every 100 points a player gets, give them a power up to use that game. Strategy 2: every 100 points in a game is equal to a coin. Coins can be used to purchase power ups with a limit of 3 at a time. They can be used in any game. FYI: my game is made on unity and is free to download on android and ios so app purchasing would have to be done on both platforms. I can provide the link to the game if requested but I dont want to self promote. Thanks errbody!

    Questions: 1.Should I add powerups? 2.Which do you guys think is better? 3.How hard is it to allow in app purchases to allow players to purchase coins?

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

    Create and return Objects, JSONbjects or return Strings?

    Posted: 29 Jun 2018 12:14 PM PDT

    So I'm creating an app that accesses a web API, and at the moment i have it getting the JSON values from it, creating an object, and then displaying on screen. So my question is it better practice to create objects (they all have multiple fields) manually ie. basic constructor and use a toString(), use the JSONObject class, or to plainly return a string. The retorfit tutorials use Strings, and objects, but the Udacity android courses use Jsonobjects, what is more pratcal/ better/cleaner code?

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

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel