• Breaking News

    Saturday, November 20, 2021

    Android Dev - Does anyone else hate recyclerviews and how android handles lists.

    Android Dev - Does anyone else hate recyclerviews and how android handles lists.


    Does anyone else hate recyclerviews and how android handles lists.

    Posted: 20 Nov 2021 02:26 AM PST

    I'm just gonna say it. I hate recyclerviews with all my guts. why cant we do for loops like literary anyone else. why do i have to write adapters and then resource files for the adapters and so on and so on.

    submitted by /u/Status-Novel-8272
    [link] [comments]

    How did you guys learn Android dev? I'm struggling with basic things.

    Posted: 20 Nov 2021 05:30 AM PST

    I learnt basic things such as creating buttons, texts, modifying them based on the user inputs. Making http requests to a server, I used volley library and I still don't know why that weird syntax, like adding a response listeners to it.

    Then I wanted to create a simple news app, which takes in json data and shows them like basic news apps. I looked at tutorials and came across recycler views. I didn't understand the implementation, what's an adapter, layout manager then combining these two. It's so complex.

    I also faced problems with singleton for volley. How do I come across this? Documentation provided by Google always goes over my head.

    Even creating a new thread looks complex for me. I took a oops through java course in my uni and has decent experience working with c++, stl, and python. I don't know man, how should I learn android dev.

    I really want to learn this and I don't know any good sites. Please provide some guidance to me. Any help would be appreciated thanks.

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

    How much have you made on your self-made apps, what generates the most revenue, ads? IAP?

    Posted: 20 Nov 2021 10:39 AM PST

    Developers who only published their app for the Android market, how successful was your app?

    Posted: 20 Nov 2021 10:22 AM PST

    So here's the deal: since August 2020 I've been working on an Android app that's close to being ready for production (I'm a sole developer). I've worked on this app part-time mainly because I'm a university student and now I'm on a 16-month internship that started in May 2021. So, the only days I really commit full time to the app are weekends, days off, or holidays.

    It's been my dream for many years to start an app business and when I started making this app it couldn't have come at a better time. It was during the first few months of the pandemic where practically everything was shut down, no vaccines, no idea when the pandemic would come to an end, so I figured if I'm going to be inside all day, might as well make great use of my time. What I didn't anticipate was the amount of work involved in creating a production-ready Android app because holy shit...I knew the learning curve was steep but my fuck me: MVP/MVVM, RecyclerView, Retrofit, Coroutines, the list goes on forever. I really want to publish the first version of my app somewhere in September 2022, but I feel like I would only have the Android version of my app ready for production. I still need to create the app landing page for my app, but that shouldn't be too bad. And do other business-related shit for my app. But working on this Android app has made me realize the amount of work and dedication needed for building even for a simple mobile app. My app is honestly not that complicated, anyone can code what I created. I don't know if I can commit to an iOS version of my app because I would have to start from absolute scratch since I have no experience with iOS dev. I'm also pretty exhausted from this app and as much as I have loved that time I've spent making this app, I do want to move on to other things and just put this app out for other people to use. Of course, I'm going to maintain it, but at this point, I just want to get it out for the world to see already.

    So my question is for those that have only published a version of their app on the Android market, how successful was it? My goal is to reach 100,000 installs and if I can get that with my Android app I'd be the happiest motherfucker alive. But I don't know if my app will be successful just on the Android market. I've heard of apps that have only been published on the iOS market and not the Android market becoming very successful, but I've never heard it the other way around. Love to hear some stories from my fellow Android developers!

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

    Is 65K yearly gross good for Android Dev in Berlín?

    Posted: 20 Nov 2021 09:02 AM PST

    Would you consider relocation and change your job for that? Germany has 40% in taxes aprox, so, after taxes/insurance etc it's only like ~ 40K EU for expend in food, flat, Internet, phone, etc. (Single person) Senior Android Dev

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

    Learn Custom ROM development.

    Posted: 19 Nov 2021 07:23 PM PST

    Where did you learn Custom ROM development? Are there any good modern resources relevant to building unofficial ROMs?

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

    Is java worth it anymore for someone trying to get into android dev? Should you learn Kotlin moving forward?

    Posted: 20 Nov 2021 05:14 AM PST

    So recently, I was trying to get java code working to capture an image, display it in an activity in portrait mode and also in landscape. The problem was that I would lose the image when the screen rotates. I ultimately managed to get it to work as desired but I came to realise how difficult it was to find a working solution in java that is also up to date. There was a great code lab which would have saved so much time but it was only in Kotlin.

    I understand that Kotlin is now the official language but so many courses and apps still use java. I don't understand why all the code labs (which is the best way to learn) are mostly in Kotlin. It is annoyingly tough to interpret kotlin code and try to convert it to Java. This makes you go down a rabbit hole to Google and hopefully find some answered question which is in java. Code labs are pretty much making it seem java is not worth learning for android anymore.

    How do you go about making projects and learning using java when tasks are taking much longer to complete simply because you can't find solutions as easily as in something like Kotlin?

    Even the documentation only explains what the functions do but there is not much on how to connect everything to get something working.

    Is this just android development in general?

    Excuse me if I seem naive since I am just a graduate with no proper android dev experience.

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

    You're currently unable to receive payouts because there's a hold on your payments account.

    Posted: 20 Nov 2021 08:15 AM PST

    Anyone has any ideas why and how to get it resolved? I haven't got any email from them and have been receiving payments for months.

    Has anyone encountered something similar? How to get it resolved?

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

    Have you guys got some workaround for collapsing the Status Bar programmatically as some apis are removed/deprecated from Android 12?

    Posted: 19 Nov 2021 07:38 PM PST

    Consuming polymorphic JSON with Gson & Retrofit

    Posted: 19 Nov 2021 10:55 PM PST

    Hey guys! Hope you are having a nice day.

    Okay, here we go

    The problem is, when the app starts, the following request is sent to retrieve the current screen:

    { "user_id": "user_id", "command": "get_current_screen", } which returns a response like:

    { "result": "success", "code": 200, "status": "ok", "screen": "main_screen", // Different types of screen types are known. "next_screen": "", "message": "Successful", "data": { // `data` is always a json object but the object could contain anything depending on the `screen` type. } }

    So, how do I make this data class combine all other data classes? One ugly approach is to add all the fields from different data classes here and use this one only

    data class SplashScreenData( // Fields. ) I found about the RuntimeTypeAdapterFactory for polymorphic cases but am not sure how to make it work when there's no "type" like field within the data object (screen is unique but it's outside the data object).

    It would be very helpful if someone has a solution or could point me in a direction. More details here on SO: https://stackoverflow.com/questions/70043792/consuming-polymorphic-json-data-put-anything-here-with-gson-retrofit

    I'll be happy to edit my question if needed

    thoughts?

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

    org.mockito.exceptions.misusing.NotAMockException: Argument should be a mock, but is: class java.lang.Class

    Posted: 20 Nov 2021 04:37 AM PST

    I know this has been asked before but my case seems quite unique,

    I just upgraded to JDK 11 on one of my android projects, as a result, had to update Mockito and PowermMockito as well. Since then I'm facing this problem.

    Argument should be a mock, but is: class java.lang.Class org.mockito.exceptions.misusing.NotAMockException: Argument should be a mock, but is: class java.lang.Class at com.practo.fabric.core.utils.LogUtils.logException([LogUtils.java:84](https://LogUtils.java:84)) at com.practo.fabric.notification.utils.PushNotificationUtilsTest.setUp(PushNotificationUtilsTest.kt:23) at org.junit.internal.runners.MethodRoadie.runBefores([MethodRoadie.java:133](https://MethodRoadie.java:133)) at org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters([MethodRoadie.java:96](https://MethodRoadie.java:96)) at org.junit.internal.runners.MethodRoadie.runTest([MethodRoadie.java:87](https://MethodRoadie.java:87)) at [org.junit.internal.runners.MethodRoadie.run](https://org.junit.internal.runners.MethodRoadie.run)([MethodRoadie.java:50](https://MethodRoadie.java:50)) at org.junit.internal.runners.ClassRoadie.runUnprotected([ClassRoadie.java:34](https://ClassRoadie.java:34)) at org.junit.internal.runners.ClassRoadie.runProtected([ClassRoadie.java:44](https://ClassRoadie.java:44)) at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.runTestClass([JUnitTestClassExecutor.java:110](https://JUnitTestClassExecutor.java:110)) at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.execute([JUnitTestClassExecutor.java:58](https://JUnitTestClassExecutor.java:58)) at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.execute([JUnitTestClassExecutor.java:38](https://JUnitTestClassExecutor.java:38)) at org.gradle.api.internal.tasks.testing.junit.AbstractJUnitTestClassProcessor.processTestClass([AbstractJUnitTestClassProcessor.java:62](https://AbstractJUnitTestClassProcessor.java:62)) at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass([SuiteTestClassProcessor.java:51](https://SuiteTestClassProcessor.java:51)) at org.gradle.internal.dispatch.ReflectionDispatch.dispatch([ReflectionDispatch.java:36](https://ReflectionDispatch.java:36)) at org.gradle.internal.dispatch.ReflectionDispatch.dispatch([ReflectionDispatch.java:24](https://ReflectionDispatch.java:24)) at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch([ContextClassLoaderDispatch.java:33](https://ContextClassLoaderDispatch.java:33)) at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke([ProxyDispatchAdapter.java:94](https://ProxyDispatchAdapter.java:94)) at org.gradle.api.internal.tasks.testing.worker.TestWorker.processTestClass([TestWorker.java:121](https://TestWorker.java:121)) at org.gradle.internal.dispatch.ReflectionDispatch.dispatch([ReflectionDispatch.java:36](https://ReflectionDispatch.java:36)) at org.gradle.internal.dispatch.ReflectionDispatch.dispatch([ReflectionDispatch.java:24](https://ReflectionDispatch.java:24)) at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch([MessageHubBackedObjectConnection.java:182](https://MessageHubBackedObjectConnection.java:182)) at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch([MessageHubBackedObjectConnection.java:164](https://MessageHubBackedObjectConnection.java:164)) at [org.gradle.internal.remote.internal.hub.MessageHub$Handler.run](https://org.gradle.internal.remote.internal.hub.MessageHub$Handler.run)([MessageHub.java:414](https://MessageHub.java:414)) at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute([ExecutorPolicy.java:64](https://ExecutorPolicy.java:64)) at [org.gradle.internal.concurrent.ManagedExecutorImpl$1.run](https://org.gradle.internal.concurrent.ManagedExecutorImpl$1.run)([ManagedExecutorImpl.java:48](https://ManagedExecutorImpl.java:48)) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker([ThreadPoolExecutor.java:1128](https://ThreadPoolExecutor.java:1128)) at java.base/java.util.concurrent.ThreadPoolExecutor$[Worker.run](https://Worker.run)([ThreadPoolExecutor.java:628](https://ThreadPoolExecutor.java:628)) at [org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run](https://org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run)([ThreadFactoryImpl.java:56](https://ThreadFactoryImpl.java:56)) at java.base/java.lang.Thread.run([Thread.java:834](https://Thread.java:834)) 

    Here's the StackOverflow link: https://stackoverflow.com/questions/69991579/org-mockito-exceptions-misusing-notamockexception-argument-should-be-a-mock-bu

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

    Scalable Navigation in multi-module projects

    Posted: 20 Nov 2021 04:35 AM PST

    SurfaceView still Outperform Jetpack Compose in Rendering

    Posted: 19 Nov 2021 07:41 PM PST

    Expandable outlined bottom navigation bar

    Posted: 19 Nov 2021 03:54 PM PST

    Expandable outlined bottom navigation bar

    See source on github

    sample

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

    How do I read/write files from another activity?

    Posted: 19 Nov 2021 11:43 PM PST

    Still a beginner with kotlin but am having difficulties reading and writings file in another activity away from the MainActivity. I want this file to be reachable by every activity in the application but am having trouble getting the the MainActivity context from a different activity.

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

    Display webpage through WiFi tethering in react native

    Posted: 20 Nov 2021 01:12 AM PST

    So, I want people to be able to open the app start the hotspot and display the ip and if necessary the port. Any one connected to that network can view the web page through their browser. What is the most optimal way of accomplishing it using react native? Thank you for your time, kind people.

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

    ads getting clicked on my "under review" app on google play

    Posted: 19 Nov 2021 11:18 PM PST

    After a week of no luck in admob still getting the error Ad serving is limited. I tried adding Unity ads and Applovin in my admob mediation. Ad loads fine, but what I'm confused is that even though my app is still under review in google play, my applovin dashboard is showing clicks. Anyone know why and how this happening?

    submitted by /u/Individual-Squirrel1
    [link] [comments]

    No comments:

    Post a Comment