• Breaking News

    Thursday, May 7, 2020

    Android Dev - GeckoView for Android

    Android Dev - GeckoView for Android


    GeckoView for Android

    Posted: 07 May 2020 08:13 AM PDT

    Circular Determinate Progress View - A highly customizable progress view with built in animations, gradient support and more

    Posted: 06 May 2020 05:25 PM PDT

    Implementing Dark Theme in Android

    Posted: 07 May 2020 05:11 AM PDT

    Android 11 beta is coming up. Are you forcing SAF usage for your app on all Android 11 devices NOW, or waiting until it's forced with next years API increment?

    Posted: 07 May 2020 08:19 AM PDT

    Use of SAF negatively effects my apps (Mainly due to very slow performance when I need to open 100's of files in real time), but I think I should force the use of SAF for all Android 11 devices now, even on API 29.

    Trying to explain to users next year why the app is suddenly objectively worse after the API update next year will be extremely difficult.

    Another question I have: Is it OK to provide users with an APK with a lower API than what's on Google Play (Only to those who ask and obviously not advertised on the Google Play store in any way)?

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

    Quick UI Android tests: Espresso Test Recorder + common modifications

    Posted: 07 May 2020 09:47 AM PDT

    Is it good practice to hardcoding width and height in ImageView?

    Posted: 07 May 2020 02:46 AM PDT

    Is it good practice to hardcoding width and height in ImageView?

    Like max/minWidth and max/minHeight not working in my case.

    <androidx.appcompat.widget.AppCompatImageView
    android:id="@+id/imv_icon"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:adjustViewBounds="true"
    android:background="@drawable/background"
    android:maxWidth="143dp"
    android:maxHeight="143dp"
    android:minWidth="143dp"
    android:minHeight="143dp"
    android:scaleType="fitXY"
    tools:srcCompat="@drawable/icon" />

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

    Gradle 6.4 Released

    Posted: 06 May 2020 01:26 PM PDT

    Looking for help with Covid-19 application

    Posted: 07 May 2020 07:13 AM PDT

    I'm a student and a software developer working on a team that's creating an app to help people get through the coronavirus pandemic. The app's name is JoinTogether.

    Its basic function is to serve as a bridge providing easy access to certain resources users might need in order to give or receive help For example, a person looking for digital volunteering opportunities might be connected to the American Red Cross, and a person looking for food might be shown Feeding America's list of local foodbanks. Those two people can even be the same person.

    Right now, we have a full UI flow and much of the programming done for the iOS version. However, the project is in need of assistance if the app is to be released in a timely manner. We need help with developing an Android version of the app (we currently have an iOS version). I posted here before, but there has been progress since. We have a Github repository and a dedicated discord server for development. We want to expedite the process so we can get to release.

    If you are interested in joining the team, please contact [kkanhai2021@mka.org](mailto:kkanhai2021@mka.org). Also, please reach out if you have feedback or ideas. We really believe in the project and its potential to do good. We would love to have your support in this charitable effort.

    submitted by /u/CO-mmunitydev
    [link] [comments]

    Firestore query where only one conditional statement has to be true?

    Posted: 07 May 2020 02:11 AM PDT

    my query looks like this: db.collection(CONVERSATION_REFERENCE).whereEqualTo(firstUser, myUserId).whereEqualTo(secondUser, myUserId).get(). However my query only needs for one of the fields to be equal. Can you somehow do that in firebase without using 2 queries?

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

    Noob question: Do I need a "real" app to get a simple widget?

    Posted: 07 May 2020 01:03 AM PDT

    Hi folks

    I'm not into android/mobile development, so sorry if this is extremely basic.

    I want to get a widget on my screen that displays a couple of values retrieved by polling a specific URL every X minutes. There's nothing more than that really, except some formatting.

    Question: whats the easiest way for me to accomplish this? I don't really want/need to get too much into android development, and this widget is just for my personal use so no problems with code quality, security, etc.

    Thanks in advance for any advice!

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

    Convert my website to android

    Posted: 07 May 2020 01:00 AM PDT

    Hello devs, I own a website which is on wordpress. I am well versed in core Java and have basic understanding of Android development (took some android studio java course back in 2017).

    I want to develop an Android app of my website so that anybody can access it, even if they are offline. And new articles should be fetched when the user is connected to internet.

    Can you please guide me on how to start with this project? Thank you, any help is much appreciated

    Edit: Forgot to mention that I am already aware of webView but don't want to use those, as they are just a container for displaying web content and google also discourage from using them in the apps

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

    What are some interesting soft skill non coding books that people can recommend?

    Posted: 06 May 2020 02:49 PM PDT

    I'm referring to books you could read away from the computer like on a bus or while you're not paying attention to your Zoom call. Books like interview questions, design theory, sales tactics for mobile apps. Things of that nature. Obviously Mobile Dev related preferred, but I know some books are for all types.

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

    How to prevent CompositeDisposable causing HTTP FAILED: java.net.SocketException?

    Posted: 07 May 2020 12:24 AM PDT

    I am using Retrofit + RxJava2 and I am following starting practice: Calling CompositeDisposable in OnStop and adding CompositeDisposable.add() in onStart. Even though I use MVVM and create CompositeDisposable in ViewModel I still need to do it manually.

    t prevents possibility to initiate network request from background, because if that happens I can possibly get an exception, due to the fact that Android does not permits calling network requests in background (try for example enabling battery saver and you will see how all network requests fail)

    The problem is that if I innate network request when app is in foreground and quickly go back to background, then CompositeDisposable.clear() occurs and my network request is terminated with HTTP FAILED: java.net.SocketException...

    How should I handle such behaviour?

    Here is my polling network request, which can still be running in onStop, when CompositeDisposable calls clear()
    https://gist.github.com/wellbranding/40866861bdc749389a981ea1c51836ea

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

    Now in Android #17

    Posted: 06 May 2020 04:41 PM PDT

    addmob test ads not displaying anymore

    Posted: 06 May 2020 03:22 PM PDT

    Hello. I made a game with unity for android and I'm having problems wirh admob.When I first set the AdMob It was working fine.But now, it's not showing banner and when I request interstitial, the app directly closes.

    When I run the code in Unity, it works fine. I can see the following in the console:

    Created DummyClient
    Dummy CreateBannerView
    Dummy LoadAd

    When I compile the code for android, I can't get past the initializing.

    MobileAds.Initialize(initStatus => { });

    *******************************************************************************
    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    using GoogleMobileAds.Api;
    using UnityEngine.UI;

    public class reklamlar : MonoBehaviour
    {

    private BannerView bannerView;
    string adUnitId = "ca-app-pub-3940256099942544/6300978111";

    void Start()
    {

    MobileAds.Initialize(initStatus => { });

    this.RequestBanner();
    ShowBannerAd();
    }

    public void RequestBanner()
    {
    this.bannerView = new BannerView(adUnitId, AdSize.SmartBanner, AdPosition.Top);
    Debug.Log("banner Request");

    }

    public void ShowBannerAd()
    {
    AdRequest request = new AdRequest.Builder().Build();
    this.bannerView.LoadAd(request);
    Debug.Log("banner Show");

    }

    // Update is called once per frame
    void Update()
    {

    }
    }

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

    Android 11: Beta Plans

    Posted: 06 May 2020 12:23 PM PDT

    Android Tabs

    Posted: 06 May 2020 09:43 PM PDT

    Is the Basic Activity with Fragments the standard new basic activity?

    Posted: 06 May 2020 02:43 PM PDT

    As I'm going through Android tutorials, I'm seeing a lot of 'make a new basic activity.' The basic activity shown in Android Studio has a button on it and that's what I'm seeing in the tutorials, but when I make a new basic activity I get one with fragments. It always has fragment_first.xml and fragment_second.xml. None of the tutorials I've seen have had any fragments in their new basic activities.

    I've spent several days trying to figure this out. I haven't been able to find a single resource on it except this one. I even got in contact with one of the tutorial creators who told me he didn't see what I was seeing. I've verified that I am indeed clicking on "Basic Activity." I'm not sure if I have a setting changed or what.

    Can anyone help me figure out what's going on? I feel like I'm going crazy. I'm using Android Studio 3.6.3 and everything is completely up to date.

    Edit: I figured it out. My father happened to have Android Studio 3.5 on his PC and when we created a "Basic Activity" it had just the activity_main and content files. When we updated his Android Studio to 3.6.3, new basic activities started having two fragment files. It must be something with the update.

    submitted by /u/mojo-j0j0
    [link] [comments]

    Android Programming Certificate

    Posted: 06 May 2020 04:54 PM PDT

    Hi there, I am a program manager for this Android Programming Certificate and I would like some advice from all of you Android developers. I am looking to revamp this program to better serve the needs of the students and I can propose an entirely new version of this program including different or new courses and condensed version. Could you please give me some of your thoughts on how I can make this program better? What types of programs have helped you? What types of programs you wish were out there? Also, what is your experience level in Android dev or programming. Thank you in advanced! :-)

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

    No comments:

    Post a Comment