• Breaking News

    Wednesday, December 25, 2019

    Android Dev - What do you think is the best possible way to manage two apps' (almost same) codebase?

    Android Dev - What do you think is the best possible way to manage two apps' (almost same) codebase?


    What do you think is the best possible way to manage two apps' (almost same) codebase?

    Posted: 25 Dec 2019 05:17 AM PST

    I am offering a paid and free version of my app separately, but I waste a lot of time doing copy-paste whenever a new release is made from one app codebase to others. Is there any way to reduce that effort? I am aware of build-flavors but the differences of both apps are confusing. How can I provide separate app icons for both etc? Please share your method of handling this thing.

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

    �� Revisited — �� A Guide on Splash Screen in Android in 2020

    Posted: 25 Dec 2019 06:15 AM PST

    The fault in the stars of Kotlin and Gson

    Posted: 25 Dec 2019 01:43 AM PST

    Is Flutter good to start with it my Android developer carrier? What are pros and cons?

    Posted: 25 Dec 2019 07:42 AM PST

    Why no error : Only the original thread that created a view hierarchy can touch its views.

    Posted: 25 Dec 2019 12:33 AM PST

    public class MainActivity extends AppCompatActivity {
    private TextView texty;

    u/Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    texty= findViewById(R.id.textView);
    Log.e("THREAD NAME ","ONE "+Thread.currentThread().getName());
    ThreadStart threadStart= new ThreadStart();
    threadStart.start();
    }

    private class ThreadStart extends Thread {
    u/Override
    public void run() {
    super.run();
    change();
    }
    }

    private void change() {
    Log.e("THREAD NAME","TWO "+Thread.currentThread().getName());
    texty.setText("kvm");
    }
    }

    LOGS

    E/THREAD NAME: ONE main

    E/THREAD NAME: TWO Thread-2

    It suns smoothly without errors.

    Why no such error : Only the original thread that created a view hierarchy can touch its views.

    Please no guesses

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

    What are some components of an Android app that will impress employers?

    Posted: 24 Dec 2019 11:45 PM PST

    I'm a CS college freshman.

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

    Question: can a Guideline have constraints to be in the middle of another view?

    Posted: 25 Dec 2019 01:40 AM PST

    This is a simple yes/no question.

    In ConstraintLayout, it is possible to have a Guideline that is constraint so that it's in the center of another view?

    For example I want a horizontal guideline in the center of some ImageView.

    I tried like this:

    <androidx.constraintlayout.widget.Guideline app:layout\_constraintGuide\_percent="0.5" android:orientation="horizontal"android:id="@+id/guideline" android:layout\_width="match\_parent" android:layout\_height="0px"app:layout\_constraintBottom\_toBottomOf="@id/imageView" app:layout\_constraintTop\_toTopOf="@id/imageView" />

    At first I thought it worked, but when I made the content larger, I saw that it's just in the center of everything and not of the target view.

    Or maybe I should use a simple View to have the constraints, and that Guideline is more "fixed" than other views?

    submitted by /u/AD-LB
    [link] [comments]

    Guidance/help Setting up an AVD?

    Posted: 24 Dec 2019 05:43 PM PST

    Hello, r/androiddev! I'm new to this subreddit, so if this isn't the right place to ask this question, please redirect me! In a nutshell, I purchased an app which keeps crashing after doing an OTA system update, and the developer is not responding to support requests, but I think setting up an AVD in which to run the app could allow me to bypass the problem. I'll give the details, if you guys could tell me if it's worth trying and provide a wee bit of guidance, I would be in your debt. So the app is a game called Batman: The Enemy Within, and after initially having no problems with gameplay, after performing a OTA system update, the game immediately crashes 2 seconds into a cutscene. Clearing app data and cache do not help, nor does completely removing and reinstalling it. I have a galaxy s9 running android version 9, so it's not that my hardware isn't up to the task, but I have run out of ideas for how to make the app playable on my phone. My thinking is if I use android Studio to set up an AVD mimicking a device which CAN run the app without issue, I might be able to use that to play the game so I will not have wasted my money on an unplayable piece of software. Is this worth attempting, in your educated opinions? If I have trouble doing so, would this be an appropriate subreddit to seek advice? Any general guidance on what specs I should choose for the AVD to maximize my odds of success? I have played around with Android Studio a very small amount when it first came out, but lost motivation and would love to get more involved in app development-- I think this would be a fun and interesting project to get me reacquainted with android studio and a good prelude to beginning to develop apps of my own as I have a clear goal and am motivated to achieve it. Again, if this is not the right place to ask the question, please suggest a better venue! Thank you in advance for your help...

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

    BottomNavigationView with Fragments (ViewPager, ViewPager2, FrameLayout)

    Posted: 24 Dec 2019 09:26 AM PST

    BottomNavigationView with Fragments (ViewPager, ViewPager2, FrameLayout)

    Just been update library that allow implement BottomNavigationView logic as the YouTube app. Added examples for ViewPager, ViewPager2 and the FrameLayout

    Example of navigating in the opposite direction

    You can read the story on Medium about it or download demo app to check it out

    Maybe you find it useful, what do you think? And yes, you can and will help me improve it on GitHub

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

    Android Emulator appears in strange UI

    Posted: 24 Dec 2019 03:18 PM PST

    Android Emulator appears in strange UI

    I am trying to create and run an AVD from command line using Android's Command line tools.

    This means I used the sdkmanager to download the following modules:

    • platform-tools
    • emulator
    • build-tools;29.0.2
    • platforms;android-29
    • system-images;android-29;default;x86_64

    Afterwards I created an AVD using call avdmanager create avd --name android29 --package "system-images;android-29;default;x86_64" where I selected no for Do you wish to create a custom hardware profile? [no].

    When launching the AVD using emulator @android29 and booting it up afterwards I get an old-fashioned bootscreen followed by an old-fashioned homescreen. The settings page however shows that Android 10 is in use.

    What is the meaning or the reason of the old-fashioned looking UI?

    Screenshot Bootscreen

    Screenshot Homescreen

    Screenshot Android Version

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

    How to Turn Off “Auto-Play Videos” in the Google Play Store on Android

    Posted: 24 Dec 2019 09:38 PM PST

    Update a shared variable

    Posted: 24 Dec 2019 09:33 AM PST

    I need to implement a feature in my app but i have no idea how to do it. UI will be as follows: one button and one counter displayed above the button. Each time the user presses the button, the counter will get incremented.

    Simple right?

    Now here's the catch:

    The same app will be on my friend's phone. Each time I press the button, his counter gets incremented and each time he presses the button, my counter gets incremented.

    I'm having a hard time getting past the ideation phase. Any and all help will be appreciated.

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

    Can't update Android Studio on Catalina

    Posted: 24 Dec 2019 12:02 PM PST

    How to create a Google Maps project in android

    Posted: 24 Dec 2019 05:41 PM PST

    Android Jetpack #android #androiddev #jetpack

    Posted: 24 Dec 2019 07:15 PM PST

    No comments:

    Post a Comment