• Breaking News

    Friday, January 3, 2020

    Android Dev - Weekly "anything goes" thread!

    Android Dev - Weekly "anything goes" thread!


    Weekly "anything goes" thread!

    Posted: 03 Jan 2020 04:40 AM PST

    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]

    I have created a tutorial for Recycler View Animation using Custom Layout Manager in Kotlin.

    Posted: 03 Jan 2020 01:43 AM PST

    What are some use-cases for EncryptedSharedPreferences?

    Posted: 03 Jan 2020 07:46 AM PST

    EncryptedSharedPreferences

    What are some practical use-cases for EncryptedSharedPreferences? I originally wanted to use it to store some user credit card information, but there aren't many discussions surrounding if/why this is a good/bad idea.

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

    What's in your cart?

    Posted: 03 Jan 2020 08:14 AM PST

    I'm collecting opinions on how to implement a shopping cart. In this scenario, the user can only shop from one store at a time, which makes the shopping cart very dynamic and disposable. Therefore, should I store this cart online or have it saved offline, for example using a shared preference?

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

    What are the best resources to get back into Android development?

    Posted: 03 Jan 2020 07:58 AM PST

    A few years (pre-Kotlin and Fragments were the new kid on the block) ago I developed a couple Android apps and I would like to get back into it, but a lot has changed since then.

    Can anyone recommend some resources to get familiar with the best practices and what previous patterns need to be avoided?

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

    Is it normal that mobile games tend to be performing on one platform?

    Posted: 03 Jan 2020 01:48 AM PST

    Hey fellow android devs,

    I have a weird problem. I released two games of mine quite a while ago the first one was Flat Fat Cat Bounce a physic based cat puzzle. I released it on PlayStore and AppStore at almost the same time with some what the same store descriptions, trailer, images etc. Today I have about 81% Android and 19% iOS for that game so far so good.

    But now the weird part I made a second game Space Unicorns, which is actually just a reskinning of Flat Fat Cat Bounce, instead of having cats we have unicorns with the same mechanics and game play. I also released that one on PlayStore and AppStore and the weird thing is for this game I have 91,2% iOS and only 8,8% Android.

    I can't really explain why that is so different and if it is just random or what ever. May be you encountered something similiar? Or is just normal?

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

    Does anyone have English version of this repository?

    Posted: 03 Jan 2020 07:40 AM PST

    Considering to disable app serving in India

    Posted: 03 Jan 2020 12:05 AM PST

    So here is the deal, our app rating has been steady declining for a while now, from 4.2 to 3.9 atm, obviously this is bad. So we went to analyze our reviews and installs and earnings.

    Turns out, 922 out of 957 1 star reviews are from India or Pakistani, but at the same time, 36% of installs are from India.
    Our eCPM in India is 0.87$(pathetic) so we are considering to disable app serving in India.

    Earnings are not that significant, despite the huge number of installs coming from India due to low eCPM.
    Those 1 star reviews are not constructive or helpful, most of them go by: "Not good", "Very Bad","I didn't like"
    But on the other hand, reviews from other countries are positive and well liked. There are some negative reviews but they are actual reviews saying what they don't like about app and they look like they are written by someone with IQ higher than room temperature.

    Pros:
    Less negative reviews, more actual positive and constructive reviews
    Less people who demand that our app bring them coffee in bed
    Less low quality traffic and installs
    Cons:
    Less overall installs
    Minor revenue loss which we hope to regain once rating starts increasing

    So what do you think? Do you think that this is a smart move? We are afraid that if we unlist India, it will affect our ranking in other countries.

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

    What are some good projects in Android studio i should do in order to get better and attract job offers/internships?

    Posted: 02 Jan 2020 10:45 PM PST

    Android studio image filters

    Posted: 03 Jan 2020 07:07 AM PST

    I tried some libraries for image Filters, but all of them caused my app to lag and/or crash, how can I use filters which don't lag? I already tried multi thread but that was just semi good working, eg. the app crashed on some pictures, but I couldn't find why these pictures caused the app to crash, thanks in advance for any Help :)

    EDIT: I tried this library https://github.com/mukeshsolanki/photofilter and this is also currently the library I use in my code, there isnt really a stacktrace, it just times out, its an issue with the memory, this is the code I currently use:

    https://throwbin.io/K1vtEop 

    Then a button starts the thread, this works good for small pictures, but when I use photos from the actuall camera, which takes larger pictures, it wont filter anymore, so how can I achieve that also photos can be used?

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

    Emulator 29.3.3 Canary

    Posted: 02 Jan 2020 06:03 PM PST

    Website for app translation

    Posted: 03 Jan 2020 12:42 AM PST

    Hi, i have seen some apps in which their developers adds an option for "translate for us"

    They upload their string resources to some website and user can download and translate their strings from that website.

    I don't know about that website can you suggest a good one?

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

    Lessons learned with a personal application

    Posted: 02 Jan 2020 02:42 PM PST

    Resources for designing and building dark mode apps

    Posted: 02 Jan 2020 08:05 PM PST

    Now live!

    https://darkmodedesign.xyz is a small site I built that lists the best resources for designing and building dark mode experiences for mobile, web and desktop apps. — I hope you find it helpful 🙏

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

    I need help you guys

    Posted: 03 Jan 2020 05:16 AM PST

    Recently i started developing an app for play store, which is basically a game. And i wanted to upload it to the play store. Now it turns out you need to pay 25 dollars for a developer account. So, i asked my parents to buy the developer account for me but theu refused to do so. they told me to study and not waste time on making apps. im 15 btw and really interested in app development. Ive written this post to ask for help from you guys, does anyone have a developer account which could be lent to me or something? Or can i publish my app through your account? Thanks in advance.

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

    New Google Play Algorithm - Deleted reviews remain

    Posted: 02 Jan 2020 10:37 AM PST

    I just learned from Google Support that deleted reviews are not removed from the new calculation used to calculate Google plays new rating. Figured you all might like to know. This seems absolutely wrong and unintuitive to me.

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

    Build Native Apps on both Android and iOS with Flutter

    Posted: 03 Jan 2020 06:42 AM PST

    which version of Android Studio do i use?

    Posted: 03 Jan 2020 03:29 AM PST

    i'm currently going through the book "Android programming: The big nerd ranch 3rd edition", im not sure which version of android studio to use since this book is of 2017-18, and im not sure if it would support the new features and i might throw myself into hours of finding out the code in the book is not compatible or something. Any help is appreciated (im in chapter 7 starting the criminal intent app thanks)

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

    Recycler View Not Deselecting When View Is Hidden. Help?

    Posted: 02 Jan 2020 09:34 PM PST

    I have a recycler view that displays four numbers. 1,2,3,4. When I select any of those numbers, everything seems fine. The problem is when I Horizontally scroll while one of those four numbers are selected and the other numbers populate my screen: 4,5,6,7. If I click 7 and then horizontally scroll back to 1, both 7 and 1 are selected. I'm stuck help please? More info: https://stackoverflow.com/questions/59553123/recycler-view-not-deselecting-when-view-is-hidden

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

    I'm looking for a coder to make an app that could classify woods in 2 categories based on recorded knocking sound by user (hard or soft wood)

    Posted: 02 Jan 2020 05:46 PM PST

    While the app is running in the foreground, it would detect the knock and classify it as hard or soft. Let me know if you are interested and how much it would cost me. Kotlin would be better but Java is ok.

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

    Database Application

    Posted: 02 Jan 2020 06:15 PM PST

    I am new to Java and Android Development. During the learning process I am working on an application that helps Police out in the field with drug information. The Officer will search a drug by name and the search will return a picture with the drug information and charging language. I have been learning about SQLite and wanted to see if there is another option. I will need to enter manually a couple hundred custom fields and pictures.

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

    How to send data from a service to a Fragment?

    Posted: 02 Jan 2020 11:39 AM PST

    I'm using Firebase Cloud Messaging to receive data in my app:

    class CustomFirebaseMessagingService : FirebaseMessagingService() { override fun onMessageReceived(msg: RemoteMessage?) { val data = msg?.data ?: return val name = data["name"] as String val age = data["age"]?.toIntOrNull() ?: return val bio = data["bio"] as String val img1 = data["img1"] as String val match = Profile(name, age, bio, img1, null, null) Log.d(TAG, "onMessageReceived(): $name is $age") val fcmViewModel = ViewModelProviders.of(this).get(FcmViewModel::class.java) // .of() only takes a fragment/activity FcmViewModel().match.postValue(match) Log.d(TAG, "Value: " + FcmViewModel().match.value.toString()) // null super.onMessageReceived(msg) } 

    When I receive the FCM, I want to pass it to my Fragment. I've tried to use LiveData + ViewModel, but unfortunately, postValue() isn't actually changing the data in the ViewModel from the service because I can't instantiate a reference to the ViewModel from a service.

    class FcmViewModel : ViewModel() { val match: MutableLiveData<Profile> by lazy { MutableLiveData<Profile>() } } class MapFragment : Fragment() { override fun onViewCreated(view: View, savedInstanceState: Bundle?) { fcmViewModel.match.observe(this, Observer<Profile> { profile -> log("${profile.name} is ${profile.age}") // doesn't print }) } } 

    Is there a better way to pass data from FirebaseMessagingService() to my fragment or a way to post data to FcmViewModel() within the FirebaseMessagingService()?

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

    Should I use a Company Name for my indie games?

    Posted: 02 Jan 2020 05:26 PM PST

    I'm looking into uploading my own small indie games to the google play store in the near future and while likely silly to focus on, I'm not sure what sorta alias I should go for if one at all.

    It's not a massive concern but I was just wondering what would be the best and recommended approach? Should I just upload my apps through my own personal account and use my online username that I use for Twitter, Youtube, Gaming, etc? Or should I create a completely new alias to put my games under?

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

    Google Admob is Biased.

    Posted: 03 Jan 2020 01:35 AM PST

    Different views in a layout

    Posted: 02 Jan 2020 10:52 AM PST

    How do I switch between different views in 1 layout? I'm trying to make an event application where the views will switch depending on the user's group status.

    For example, I have a fragment that displays events. By default, there is only a "Join" and "Create" button in the layout. Once the user successfully joins an event, the layout will change to show details of that event (textviews, images, buttons, etc). The Join and Create buttons are no longer there. Once the user leaves the group, the default layout will be shown.

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

    No comments:

    Post a Comment