• Breaking News

    Wednesday, September 9, 2020

    Android Dev - My usb-c charger broke and the one in the mail didn't arrive overnight, hello 2015 macbook

    Android Dev - My usb-c charger broke and the one in the mail didn't arrive overnight, hello 2015 macbook


    My usb-c charger broke and the one in the mail didn't arrive overnight, hello 2015 macbook

    Posted: 09 Sep 2020 07:09 AM PDT

    Rendering Markdown using Jetpack Compose

    Posted: 09 Sep 2020 02:00 AM PDT

    I wrote a post and a sample app for how to render Markdown content using Jetpack Compose.

    Hope you like it!

    https://www.hellsoft.se/rendering-markdown-with-jetpack-compose/

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

    PSA: BuildCompat.isAtLeastR() incompatible with released version of 11/R

    Posted: 09 Sep 2020 04:09 AM PDT

    This is defined as: public static boolean isAtLeastR() { return VERSION.CODENAME.length() == 1 && VERSION.CODENAME.charAt(0) >= 'R' && VERSION.CODENAME.charAt(0) <= 'Z'; } The release version of 11 CODENAME is "REL" so length() > 1 and returns false.

    This is using: implementation 'androidx.core:core:1.3.1' implementation 'androidx.core:core-ktx:1.3.1' The latest stable version (at time of writing).

    Be warned!

    Workaround: Build.VERSION.SDK_INT >= 30 or Build.VERSION.SDK_INT >= Build.VERSION_CODES.R

    Edit: Markdown had italics highlighting by mistake. Forgot = in workaround.

    Additional edit: I now realise that BuildCompat is precisely for targeting pre-release versions of Android. So using it in production code is not intended. Either way it's likely to be fixed with a real version check in future.

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

    Android 11 has arrived

    Posted: 08 Sep 2020 10:11 AM PDT

    Do people still use MPAndroidChart?

    Posted: 09 Sep 2020 04:31 AM PDT

    I was just going to suggest using it for a project and saw the last release was well over a year ago. As well as that, there's ~1700 issues on the repo. Just wondering if people are still actively adding this to projects, and if not, what's the best alternative? I'm looking for something that has a few different graphs, and ideally supports some interaction.

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

    Fragments, single activity etc

    Posted: 09 Sep 2020 07:55 AM PDT

    In scenario where your screens are fragments with nav component and one of your screens has multiple tabs how do you proceed. Do you put child fragments as children of viewpager, or do you use views. What if child entities are relatively complex with need for individual view model each etc. What if every child has some additional subsections that are "fragment" like.

    If I use fragments only for whole screens it seems to me that view model will get very complex and big very soon but if I use child fragments inside screen fragments then lifecycle can probably get out of hand. What are you experiences and thoughts. Thanks in advance

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

    ViewBinding Delegate — one line

    Posted: 09 Sep 2020 04:36 AM PDT

    ShapeableImageView - Material components for android

    Posted: 08 Sep 2020 06:35 PM PDT

    Android 11 Wireless Debugging

    Posted: 09 Sep 2020 02:55 AM PDT

    Here's a video on how to use wireless debugging in Android 11.

    https://www.youtube.com/watch?v=azZPiGY9lFs

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

    How much it would cost to make a similar app to Zombies, Run?

    Posted: 09 Sep 2020 08:38 AM PDT

    Hey, guys!

    I thought this subreddit would be the closest to this question.

    Imagine, that all illustrations are provided. How much it would cost to make the MVP version of the android app that:

    • Has social login
    • Clickable buildings on the map
    • Show list of "missions" that are linked to the building
    • Tracks users GPS and stats from the run/walk
    • Plays audio when you start "a mission"
    • Gives questions after the mission
    • All stats collected for both sides (user and app admin)

    The idea is not to make a replica of Zombies, Run. Just interested in how much it is to make these main functions for the app.

    Thank you!

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

    An 18 month update on Android Discord communities - /r/AndroidDev's server has tripled in size over this period!

    Posted: 09 Sep 2020 08:21 AM PDT

    java.lang.OutOfMemoryError on Amazon Fire TV Stick

    Posted: 09 Sep 2020 07:12 AM PDT

    So I have an Android TV app that I dont want to post right now because it is nsfw.

    The problem is that many people tell me that the TV App crashes on several FireTV Stick.

    In my Crashlytics I see that this error appears on 90% of the Amazon devices:

    Fatal Exception: java.lang.OutOfMemoryError Failed to allocate a 33269260 byte allocation with 4190048 free bytes and 11MB until OOM com.xyz.MainFragment$GridItemPresenter.onBindViewHolder 

    This happens on mostly all Fire TV Sticks and inside all of my fragments.

    My app has a lot of images inside, i thought if my emulator can handle them it should be no problem on a Fire TV Stick. How much memory is available on a Amazon Fire TV Stick that can be used? I have no money to buy me one at the moment and test everything out :(

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

    Freely available apks

    Posted: 09 Sep 2020 07:11 AM PDT

    How do you deal with people pirating your apps (on appgrooves.com, apkcenter.com, etc.). I have a number of apps that are freely available but have inapp content (one time purchasable items, so no harm done I guess).

    I have a number of ideas for which the best business model would be wholesale. How do you go about piracy/copy cats?

    submitted by /u/0xdeadbeefx16
    [link] [comments]

    Does anyone have an idea on how to have in app purchase inside app without paying playstore or appstore ?

    Posted: 09 Sep 2020 07:08 AM PDT

    Working on a app, where users can buy plugins by buying it, trying to figure out how can a commission to the stores can be overcome and what payment options can be good, Users can be all over the world in case needed

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

    Questions about Square Workflow

    Posted: 09 Sep 2020 06:15 AM PDT

    I've seen the video about Square Workflow at Droidcon and tried it out with a dummy project, but I still have a few questions about it and think this is the right place to discuss about it.

    • Do you use it in production ? What is your experience with it ?
    • Does it work well with asynchronous source of data ? I'm thinking about an app that heavily rely on Firestore to write and read data.
    • Does it work well with more complex Android UI Components like ViewPager2 ?
    submitted by /u/CrisalDroid
    [link] [comments]

    Memoji Stickers For Android (Proper Catagories)

    Posted: 09 Sep 2020 06:04 AM PDT

    Switching from Iphone to Android ,users miss one thing while texting, MEMOJIs. So i decided to find a way to use the same memojis of apple on android. Now there are alot of apps already providing you with memojis on android, problem is that they havent catagorized it with a proper plain, or most of them havent catagorized them at all. So , i have grouped the memojis on the basis of proper catagories based on the Hair color, Skin Tone and wearing accessories. The first build has 9 catagories, new catagories will be uploaded every week.

    Question from developers ?

    I need suggestion in code, on how to add tags to each memoji, so that users can choose on the basis of those tags. The tags might include Hair colors, Face Color , Accessories etc

    Google Play Store Link : Memoji stickers for android

    Thank you :)

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

    Getting started and developing an application with Jetpack Compose

    Posted: 09 Sep 2020 05:37 AM PDT

    Trying connecting an Android App to Siemens PLC !?

    Posted: 09 Sep 2020 05:05 AM PDT

    Hello guys

    I am trying to develop an application that helps me control a PLC (Machine), I found a library that help me do such a think called Moka7, but the issue is that the method that help connect to the machine take 3 variables: IP ADDRESS, Rack, Slot! and i want to connect to that IP Address using the host username and a password ?

    is there any method or a way that allow me to do such a thing ?

    thanks

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

    Drawing millions of polygons at 60 FPS in Android

    Posted: 08 Sep 2020 11:56 AM PDT

    Google has released Android 11 for Pixel phones - China manufacturers are following suit

    Posted: 09 Sep 2020 01:17 AM PDT

    Android Studio 4.2 Canary 10 available

    Posted: 08 Sep 2020 10:05 AM PDT

    Android: How to get the default Date format based on device timezone

    Posted: 08 Sep 2020 10:17 PM PDT

    Hi All,

    The SimpleDateFormat() gives the date format as per the user locale.

    Consider the scenarios where the user locale is different than the timezone user is in. Is there any way to get the Date format according to the device timezone rather than locale?

    Thanks.

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

    How to best handle API differences

    Posted: 08 Sep 2020 09:54 PM PDT

    Was using a TimePicker and needed to set its hour and minute. Android Studio told me I should write all this code to support OS differences. How do people handle these situations? Do you extend off the class? Or maybe something else? Would love a general solution I can apply to other android views as I run into similar issues

    if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.M) { binding.timePicker.hour = 4 } else { binding.timePicker.currentHour = 4 } if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.M) { binding.timePicker.minute = 2 } else { binding.timePicker.currentMinute = 2 } 
    submitted by /u/alwaysSearching23
    [link] [comments]

    No comments:

    Post a Comment