• Breaking News

    [Android][timeline][#f39c12]

    Saturday, June 1, 2019

    App Feedback Thread - June 01, 2019 Android Dev

    App Feedback Thread - June 01, 2019 Android Dev


    App Feedback Thread - June 01, 2019

    Posted: 01 Jun 2019 05:29 AM PDT

    This thread is for getting feedback on your own apps.

    Developers:

    • must provide feedback for others
    • must include Play Store, GitHub, or BitBucket link
    • must make top level comment
    • must make effort to respond to questions and feedback from commenters
    • may be open or closed source

    Commenters:

    • must give constructive feedback in replies to top level comments
    • must not include links to other apps

    To cut down on spam, accounts who are too young or do not have enough karma to post will be removed. Please make an effort to contribute to the community before asking for feedback.

    As always, the mod team is only a small group of people, and we rely on the readers to help us maintain this subreddit. Please report any rule breakers. Thank you.

    - Da Mods

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

    Does anyone know if this exists already?

    Posted: 01 Jun 2019 08:18 AM PDT

    Hey all,

    I am considering building an app for personal use, but would open source and share the code. But before I get going I want to make sure I'm not duplicating other work or am out of my mind. Basically I want something that could essentially house a hymn book of scanned images (public domain, nothing copyrighted) but would have a spot on the side where I could type in the number and it would jump to that image/page. I want to use my tablet in worship (I'm a pastor) and be able to quickly maneuver the pages. I would really love to add a media player to play a mp3 or midi file associated with the hymn displayed, but that may be asking too much, lol. Any thoughts, concerns, ideas, guidance, etc. is greatly appreciated. Thanks in advance!!

    Pastor Michael

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

    Department of Justice reportedly preparing Google antitrust investigation [CNET]

    Posted: 01 Jun 2019 07:23 AM PDT

    https://www.cnet.com/news/department-of-justice-reportedly-preparing-google-antitrust-investigation/

    The move by the Justice Department comes as Google and other Silicon Valley giants face renewed antitrust scrutiny in the United States. Sen. Elizabeth Warren, a Democratic 2020 presidential candidate, has made it a key part of her platform to break up the big tech companies, including Google, Facebook and Amazon. Earlier this month, Chris Hughes, a Facebook co-founder, also called for the breakup of the company he helped create.

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

    Easy Augmentation with Decorators in Kotlin

    Posted: 01 Jun 2019 02:04 AM PDT

    Room Persistence Library New Version Released

    Posted: 01 Jun 2019 09:35 AM PDT

    [Library] Introducing Aircon, a remote config management library

    Posted: 01 Jun 2019 07:50 AM PDT

    Reverse-engineering Cordova Android games with Apktool

    Posted: 01 Jun 2019 03:56 PM PDT

    setDataSource failed with RuntimeException on Android P

    Posted: 01 Jun 2019 11:25 AM PDT

    Can anyone help with this ?

    fis = new FileInputStream ( file );

    fd = fis.getFD ( );

    myMediaMetadataRetriever.setDataSource ( fd ); <-= causes "java.lang.RuntimeException: setDataSource failed: status = 0x80000000"

    And this code works except for videos in the Download - folder. I am at this the past two days and have exhausted all google searches.

    - I know that I have the proper absolute path to a proper video file.

    - I also know that other apps can open and play this file.

    - Likewise this works on older Android versions.

    - I can open video files from other folders just fine.

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

    How to correctly update field of class in Livedata?

    Posted: 01 Jun 2019 10:08 AM PDT

    Hello, I am refactoring our codebase and I don't like to have 10-15 livedata objects inside of our ViewModel just to save date of the form validation...

    I have created a class, which has 12 fields, and that class is put inside of a singleLiveData field.

    However, every time I need to change a single value of class to trigger Livedata to notify a fragment, I need to tediously get previous value of a class stored in LiveData and then change a value in that class, and than update whole LiveData.. How can I ensure that after updating a single field in class, I would update whole LiveData object? Perhaps my idea was wrong? How to implement that?

    I looked here:https://stackoverflow.com/questions/48020377/livedata-update-on-object-field-change, but I think therre should be better architecture decisions.

    I think that Kotlin extensions can actually solve this very nicely!

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

    Build a Modular Android App Architecture (Google I/O'19)

    Posted: 01 Jun 2019 11:25 AM PDT

    Opinion on React Native?

    Posted: 01 Jun 2019 10:39 AM PDT

    Hello, I'm a beginner on android development. Mainly use Kotlin, and just scrape the surface of Firebase database. What are your opinion on React Native as development program? What does it do differently than Kotlin? Should I learn React Native instead of Kotlin? Thank you for your answers

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

    [Question] If a Google Play Developer Account Get Banned, What's about the Credit Card? It Get Banned Too?

    Posted: 01 Jun 2019 03:52 PM PDT

    So I wanna register a new Google Play developer account with my friend's credit card and my question is: If my account get banned. What about the credit card, does it get banned too. Can he use it in the future if wanted to register his account. Does The ban get generalized to all Google services (Youtube...etc). Can he use a new credit Card share the old one with his name. I want info about this topic.

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

    Pending publication

    Posted: 01 Jun 2019 02:42 PM PDT

    Hello,I have submited two apps to play console, one of the apps has been pending for over 2 days and second one for more than 24 hours. Is this normal ? And the support they are giving no answer

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

    An Extensive Kotlinx Serializer Library For Serialization

    Posted: 01 Jun 2019 10:11 AM PDT

    Is there a 1:1 way to clone an Android instance from a physical device to an emulator?

    Posted: 01 Jun 2019 01:42 PM PDT

    I have a very specific setup Android device that I want to see if I can 1:1 copy.

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

    Introducing androidtool: A better version of the command-line "android" tool with a more intuitive command-line interface.

    Posted: 01 Jun 2019 12:26 AM PDT

    https://github.com/ashishb/androidtool - a small wrapper around "android" I wrote for fun to build a more intuitive CLI.

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

    Just Another Sorting Algorithm Exercise in Kotlin

    Posted: 01 Jun 2019 09:41 AM PDT

    I'm brushing up a little bit on my algorithm skills and playing around with several sorting algorithms. I've written a simple program on this Github link to test Kotlin's (or Java's) built-in sort library against my Kotlin translation of the Merge, Bubble, Insertion and QuickSort. The program can repeat several tests and will shuffle the order of testing in every cycle. I've find this process very useful in building up my logic skills and hope you find it useful too. Please feel free to commit any enhancements.

    As expected, for a large array (n=10000) with random numbers, the Built-in and QuickSort performed the best. Their time complexity is the best for random elements. Here's the output for test of 1 cycle and 10 cycles.

    One Cycle Test

    Test #1= [InsertionSort, QuickSort, MergeSort, BuiltInSort, BubbleSort] 3982095ns for QuickSort, 0% slower. Output equal to built-in sort= true 5637512ns for BuiltInSort, 41% slower. Output equal to built-in sort= true 22709648ns for InsertionSort, 470% slower. Output equal to built-in sort= true 35061969ns for MergeSort, 780% slower. Output equal to built-in sort= true 178440848ns for BubbleSort, 4381% slower. Output equal to built-in sort= true 

    Ten Cycle Test

    Test #1= [BubbleSort, MergeSort, QuickSort, BuiltInSort, InsertionSort] Test #2= [BuiltInSort, MergeSort, InsertionSort, BubbleSort, QuickSort] Test #3= [BuiltInSort, QuickSort, MergeSort, InsertionSort, BubbleSort] Test #4= [QuickSort, BuiltInSort, InsertionSort, BubbleSort, MergeSort] Test #5= [InsertionSort, QuickSort, MergeSort, BuiltInSort, BubbleSort] Test #6= [MergeSort, InsertionSort, QuickSort, BubbleSort, BuiltInSort] Test #7= [BubbleSort, QuickSort, MergeSort, BuiltInSort, InsertionSort] Test #8= [BubbleSort, InsertionSort, BuiltInSort, MergeSort, QuickSort] Test #9= [BubbleSort, InsertionSort, BuiltInSort, MergeSort, QuickSort] Test #10= [InsertionSort, MergeSort, BuiltInSort, BubbleSort, QuickSort] 698447ns for BuiltInSort, 0% slower. Output equal to built-in sort= true 838949ns for QuickSort, 20% slower. Output equal to built-in sort= true 1614026ns for MergeSort, 131% slower. Output equal to built-in sort= true 12991271ns for InsertionSort, 1760% slower. Output equal to built-in sort= true 150876014ns for BubbleSort, 21501% slower. Output equal to built-in sort= true 

    I find it interesting that for every single test, QuickSort is always faster than the Built-In sort by at least ~30% . Once I start cycling the test, by around the 5 cycle mark, especially more (say 50x), Built-In sort is clearly faster by at least ~20% in every tests I've run. I wonder if there's any optimization going on that makes the Built-In sort run faster as it gets repeated more.

    GitHub Link

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

    Layout margin not scaling as expected

    Posted: 01 Jun 2019 08:41 AM PDT

    Code for my Recycler View (refer to the margins in the card view):

    <androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="8dp" android:layout_marginTop="8dp" android:layout_marginLeft="8dp" app:cardElevation="30dp"> <androidx.constraintlayout.widget.ConstraintLayout android:layout_width="match_parent" android:layout_height="match_parent" android:clickable="false" android:focusable="false" android:foreground="?android:attr/selectableItemBackground"> <ImageView android:id="@+id/itemPic" android:layout_width="165dp" android:layout_height="124dp" android:scaleType="fitXY" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintHorizontal_bias="1.0" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" tools:srcCompat="@drawable/underwater"/> <TextView android:id="@+id/itemText" android:layout_width="0dp" android:layout_height="wrap_content" android:background="#00838f" android:textColor="#e0e0e0" android:gravity="center" android:text="Text" android:textSize="24sp" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="@+id/itemPic" app:layout_constraintStart_toStartOf="@+id/itemPic" app:layout_constraintTop_toBottomOf="@+id/itemPic" app:layout_constraintVertical_bias="1.0"/> </androidx.constraintlayout.widget.ConstraintLayout> </androidx.cardview.widget.CardView> 

    In the card view I set margins for some spacing between the screen border and my views which works fine on my device. Thing is, when I switch to a larger device using the emulator the margins don't seem to scale correctly. I was under the impression that dp will scale with device sizes but that seems to not be the case here. What am I doing wrong?

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

    SamuraiView

    Posted: 01 Jun 2019 02:02 PM PDT

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel