• Breaking News

    Sunday, April 12, 2020

    Android Dev - Featured videos on app listing page now plays within the PS app instead of opening the YT app

    Android Dev - Featured videos on app listing page now plays within the PS app instead of opening the YT app


    Featured videos on app listing page now plays within the PS app instead of opening the YT app

    Posted: 12 Apr 2020 02:52 AM PDT

    Adventures in Compose - The Doom fire effect

    Posted: 12 Apr 2020 04:41 AM PDT

    These coding games could definitely improve your programming skills

    Posted: 11 Apr 2020 03:04 PM PDT

    How do you initialize/use Viewbinding views in a loop?

    Posted: 12 Apr 2020 07:47 AM PDT

    I can already do this with getResources.getIdentifier method but was wondering if it's possible to do it with Viewbinding?

    Say, I have more Textviews than you think in a compound view and would like to initialize them in a loop, is it possible?

    for(int i=0:i<25:i++){

    mBinding.textview"i".settext("NULL");

    }

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

    I'm developing a 2D autochess game for android with libgdx. Here is some early footage.

    Posted: 12 Apr 2020 07:17 AM PDT

    CS student looking for a free android course

    Posted: 12 Apr 2020 12:07 AM PDT

    Hello, I'm a CS student and I'm looking for a free course that teaches the Android Development using Android Studio. I know how to code (especially in Java) but I don't know how to build a decent/good android app.

    I don't even know where to search, I tried udemy and youtube and I haven't found something that convinced me....

    I found a bunch of 5 year old courses, should they still be good? Also, is it a standard to use the Kotlin language (when creating the project, as it is the default) ? Or is Java still good?

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

    ViewBinding thing you probably don't know about

    Posted: 12 Apr 2020 05:50 AM PDT

    If you need to, you can add custom layout for you main layout while using ViewBinding.

    Initialize you custom layout just like you initializing your main fragment/activity layout:

    // MainLayout ViewBinding variables

    private var mBinding : FragmentRegistrationFirstBinding? = null

    private val mainBinding get() = mBinding!!

    // CustomLayout ViewBinding variables

    private var mapsBinding :RegistrationGoogleMapsLayoutBinding? = null

    private val addressBinding get() = mapsBinding!!

    // Main Layout ViewBinding initialization
    mBinding = FragmentRegistrationFirstBinding.inflate(inflater, container, false)

    // CustomLayout ViewBinding initialization
    mapsBinding = RegistrationGoogleMapsLayoutBinding.inflate(inflater, container, false)

    And then just add it to MainLayout ViewBinding, just like you do with a simple view, or remove it:

    // For adding

    mainBinding.mainLayout.addView(addressBinding.root)

    //For removing

    mainBinding.mainLayout.removeView(addressBinding.root)

    where mainLayout is one of layouts in your MainLayout ViewBinding

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

    How to get a working ViewModel in an Activity like the dev guide example?

    Posted: 12 Apr 2020 01:30 AM PDT

    I'm struggling through the ViewModel tutorial. Google's example code says to do this:

    class MyActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { // Create a ViewModel the first time the system calls an activity's onCreate() method. // Re-created activities receive the same MyViewModel instance created by the first activity. // Use the 'by viewModels()' Kotlin property delegate val model: MyViewModel by viewModels() model.getUsers().observe(this, Observer<List<User>>{ users -> // update UI }) } } 

    However, this causes the following compiler error that I don't understand:

    Unresolved reference. None of the following candidates is applicable because of receiver type mismatch:

    MainThread public inline fun <reified VM : ViewModel> Fragment.viewModels(noinline ownerProducer: () -> ViewModelStoreOwner = ..., noinline factoryProducer: (() -> ViewModelProvider.Factory)? = ...): Lazy<MyViewModel> defined in androidx.fragment.app

    So, the Google example is different to the docs, where by viewModels() delegate is scoped to a Fragment instead of an activity. I don't know if this is significant, because ... well, the documentation is pretty far removed from the reality I encounter when trying to reproduce something that remotely works like their example.

    Is their example even valid and would it actually work?

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

    Is it okay to ask for donations in a medium outside the Play Store

    Posted: 12 Apr 2020 04:37 AM PDT

    I've got apps I don't plan on ever charging money for. However, I'd like to offer fans of these apps the opportunity to give me money if they wish to show appreciation in that way.

    My question is: Would Google consider that (for instance, in the form of a "support me" link in an "About" fragment) an attempt at circumventing the App Store Payment system, or are they okay with kinda-sorta-noncommercial content like this?

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

    Dualshock2 dpad problem

    Posted: 12 Apr 2020 04:26 AM PDT

    So I'm using an original dualshock2 with a usb converter and a otg adapter on my android phone and I can't get the dpad to work I've tried countless remapping/gamepad controller apps but it seems like my phone doesn't recive any inputs from dpad presses but they work I use em on the PS2 console do you guys have any idea how to fix this (Sorry if this is against the rules I'm new here)

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

    I would love some assistance

    Posted: 12 Apr 2020 03:47 AM PDT

    Noob HS student here trying to go about with my first app, so please go easy on me.

    I finally figured out how to start Alpha testing so I grabbed a bunch of my friends mails and started it. It says 'full rollout' in the App releases (closed tracks) but the status of the application is 'Pending Publication'. I thought Pending Publication is only for if you are putting your app on google Play, which I am not. Also, my friends haven't really received any mail so far (Ik this as I put my normal mail account also a tester).

    Have I done something wrong somewhere? Did I press some wrong buttons by mistake? Any help will be much appreciated! Thanks.

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

    Records and Sealed Types in Java

    Posted: 12 Apr 2020 03:38 AM PDT

    Make selection rect extract image, video portion

    Posted: 12 Apr 2020 02:52 AM PDT

    does Internal Release needs a working app?

    Posted: 12 Apr 2020 02:19 AM PDT

    Hello, I'm doing my first app and I tough releasing an closed "internal" release would facilitate having to transfer my app to diferent devices manually instead of just updating from the appstore.

    but it says its on review process.. and the joystick and buttons arent working.. I mean I fixed it now but.. will it have a negative impact?

    I think I should just delete the app and create a new release but im worried I mess up some algoritm..or something..

    I thoug internal releases didn't have to be approved/reviewed... I feel i'm screwed..

    Also it appears I cant upload another release..I uploaded two times,, but I can't seem to find a way to upload a "working" internal release :/

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

    Apk size over 100mb, can I use APK Expansion Files on private store ?

    Posted: 12 Apr 2020 02:10 AM PDT

    Hi !

    I have a problem with apk size, because I need to import two heavy libraries for certain users (the server decides which user need the libraries).

    The final apk is is published on the play store but also on a private company store.

    Initially I thought to resolve this problem using the app bundles and feature, but this solution creates problem on private store, because I can't publish and app bundles on private store (or i'm wrong ? I will be happy in case)

    Now I think to apk extension, I could put in the extension the heavie libraries and download it only if the user need the library ? But the most important question is: can I upload the apk extension also on private store ?

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

    Looking for cross platform application development software

    Posted: 12 Apr 2020 01:45 AM PDT

    I am looking for a software to develop applications without going too low level. Ideally, I would like the equivalent of Unity 3d but for app dev.

    Has anyone of you worked with stuff like xamarin and have feedbacks? Thank you

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

    Can I evade the Play Store cut?

    Posted: 12 Apr 2020 01:40 AM PDT

    Hello, About my app, I want to make 2 versions of it one free for the consumer and another one subscription based (business version) for the retailer.

    I dont have problem with the google fee but in my country there's several issues with USD transactions and almost 90% of people cant put their credit card on the play store and my app is mented to be used on my country only, so taking that in consideration here are some solutions that might work:

    1.- Make the business app closed testing forever and that way I can charge people to enter or not

    2.- Make the business app also free but charge for a "mandatory" crm addon so people can update the data easily

    2.1.- Not make a business app at all and just charge for the crm access, then flag the users with these access and open more options inside the app for them

    3.- Maybe sell google gift card codes to my users manually?

    What do you guys think?

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

    why my game is not available in chartboost?

    Posted: 11 Apr 2020 11:17 PM PDT

    why my game is not available in chartboost?

    I had created app in chartboost for getting app id and signature like 7 days ago. The same day I uploaded my app in playstore but because of corona everywhere google took 7 days to publish the app. Now I went to chartboost to create ad campaign but it's not showing the existence of my app!

    https://preview.redd.it/zsx9wkioxbs41.jpg?width=1882&format=pjpg&auto=webp&s=83fdd76210686cee7db62fa87aebc5baa157e265

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

    which would you chose app dev or game dev?

    Posted: 11 Apr 2020 03:39 PM PDT

    hi I'm studying intro to computer science and after it, I can pick 2 paths either game development or app development.
    well I plan to work as an independent developer. Ok I know what it takes to make a small indie game and I feel it is harder than making apps and I feel too that it's more difficult because making a game is just not coding, it involves also working on the art, sound, and design. And I feel like I would have more success If I get into app development. So what do you guys think?

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

    Does anyone have locale change code working on android 6 and 7 with androidx.appcombat.1.1.0

    Posted: 11 Apr 2020 11:06 PM PDT

    Horizontal LinearLayouts could also incur double taxation?

    Posted: 11 Apr 2020 10:47 AM PDT

    The Performance and view hierarchy section states that

    A LinearLayout view could result in a double layout-and-measure pass if you make it horizontal

    Does anyone know what the exact condition is? Or is the condition just using orientation:horizontal will incur double taxation?

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

    Version Distribution Stats in Android Studio

    Posted: 11 Apr 2020 09:59 AM PDT

    What do I need to import to get the `by viewModels()` delegate working?

    Posted: 11 Apr 2020 01:17 PM PDT

    Code example comes from the android dev guide didn't include any imports, and Android Studio 3.6.3 draws a blank when I try to import by Alt+Enter.

     // Use the 'by viewModels()' Kotlin property delegate 

    // from the activity-ktx artifact val model: MyViewModel by viewModels()

    Where am I supposed to import viewModels from? I am using the latest stable SDK and I've tried import androidx.fragment.app.viewModels as per the docs, after upgrading my build.gradle dependencies section with implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0' as suggested here. Not working! Anyone know what I'm doing wrong?

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

    Scrollable Textview works but incredibly poorly. Why can I only scroll like 1 mm at a time?

    Posted: 11 Apr 2020 03:15 PM PDT

    I have a vertically scrollable textview inside a recycler view. Everything technically works but it takes like 200 tries to scroll through what I want. Either i touch it and it doesn't scroll or it scrolls and stops very fast. Any ideas appreciated.

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

    No comments:

    Post a Comment