• Breaking News

    [Android][timeline][#f39c12]

    Friday, May 31, 2019

    Weekly "anything goes" thread! Android Dev

    Weekly "anything goes" thread! Android Dev


    Weekly "anything goes" thread!

    Posted: 31 May 2019 05:41 AM PDT

    Here's your chance to talk about whatever!

    Although if you're thinking about getting feedback on an app, you should wait until tomorrow's App Feedback thread.

    Remember that while you can talk about any topic, being a jerk is still not allowed.

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

    [UPDATE] Apps being rejected from Designed for Families even though I haven't enrolled in this program Play Store

    Posted: 31 May 2019 02:42 PM PDT

    Previous post: https://www.reddit.com/r/androiddev/comments/burp87/apps_being_rejected_from_designed_for_families/ .

    Since then I have appealed for reinstatement and have received this:

    Thanks for contacting the Google Play Team.

    Good news - I see your app,<app name>, was resubmitted earlier and has been approved.

    Thanks for working with us to fix the policy issues and for your support of Google Play.

    However it's still marked as "Update rejected". When I asked why this is, that's what I received:

    Thanks again for contacting Google Play Developer Support.

    As much as I'd like to help, I'm not able to provide any more information or a better answer to your question. In our previous email, I made sure to include all the information available to me.

    If you think your app is in compliance, please submit your app for another review.

    I'm taken aback by this. Firstly they remove the app because they can't install it (everyone else, ~15k people can) which I suspect is because it's a Wear OS app, not for phones. Then they approve but not really and then pretend like this never happened.

    I've had similar experience with my other Wear OS app which I gave up on but now they are removing my existing apps with 10k active users...

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

    Kotlin Multiplatform starts to rock (Android & iOS)

    Posted: 31 May 2019 02:42 AM PDT

    Kotlin multiplatform starts to rock! 🤘🏻I bring you an app for both platforms (Android & iOS) that shares all the business logic written in Kotlin. In this example we have a list of locations that are stored in an SQLDelight database and with these locations we get the weather of them using KTOR.

    Libraries used in this project:

    - KTOR: https://github.com/ktorio/ktor

    - Serialization: https://github.com/Kotlin/kotlinx.serialization

    - SQLDelight: https://github.com/square/sqldelight

    If you are curious take a look on GitHub and if you want to contribute don't dude on contacting me:

    https://github.com/jarroyoesp/KotlinMultiPlatform

    Note: If you want to try out the iOSApp you have to checkout the iOSApp branch. The reason is that you need to use Android Studio 3.5 to launch this version on Android and maybe you don't have this version.

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

    Interview Question

    Posted: 31 May 2019 10:52 AM PDT

    Just got off the phone with a recruiter that walked me through the interview process at his company, the general hacker rank, then technical interview blah blah. It is for a mobile developer position that builds SDKs for other developer to implement. But he said the 3rd round would be a systems test, where I would get parameters and create a system. I have no clue what this means and he said he had to be vague to not give it away. Does any one have any clue what this means/entails?

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

    Emulator CI: Docker Scripts for Linux Emulator

    Posted: 31 May 2019 03:06 PM PDT

    Dialogs in Android: Practical Guide

    Posted: 31 May 2019 12:17 PM PDT

    Material Design 2 is live on Play Store - Looks nice and refreshing !!!

    Posted: 30 May 2019 09:32 PM PDT

    What are some clear distinct advantages of Firebase authentication, compared with Google sign-in, Facebook login, ...

    Posted: 31 May 2019 02:06 PM PDT

    Hi,

    We plan to build a custom cloud storage solution, for our note taking app.

    We plan to use the following authentication methods.

    1. Google sign in
    2. Facebook login
    3. Our very own custom email + password registration system. We don't know how to implement such yet.

    We are pretty comfortable in implementing Google sign in (storing authentication at client side, silent sign in at client side, verification at cloud storage server side using the received access token)

    However, we are facing road block in Facebook login, as we don't know how to perform silent sign for Facebook, in case the access token is expired after 2 months - https://www.reddit.com/r/androiddev/comments/bv9xqx/does_anyone_know_to_perform_silent_sign_in_using/

    A programmer fellow suggests me to look into Firebase Authentication - https://firebase.google.com/docs/auth

    I look at it but quite confusing. May I know, what are some advantage using Firebase authentication, compared to using Google sign in, Facebook login API directly?

    We're still hesitate to jump into Firebase solution, unless there are clear distinct advantage of doing so.

    We saw the trend for Google deprecates/ retires API every few years and we have been bitten many times. (Google Android Drive API, Google Drive REST API, Google Analytics, and the most recent https://www.reddit.com/r/androiddev/comments/buzb9w/last_year_of_google_drive_access/)

    We compare Google sign in API and Firebase authentication. We have a feeling that, Google sign in API will be less likely to be retired compared to Firebase's.

    Have any here experienced Firebase authentication before? May I know, what are advantages of Firebase authentication, compared with Google sign-in, Facebook login, ...

    Thanks.

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

    [from Netflix] Making our Android Studio Apps Reactive with UI Components & Redux

    Posted: 31 May 2019 01:49 PM PDT

    Material Components 1.1.0-alpha07 released - TabLayoutMediator (for ViewPager2), BadgeDrawable in TabLayout, styling for ListPopupWindow and more!

    Posted: 30 May 2019 11:58 PM PDT

    Problem with File editors on Android Q

    Posted: 31 May 2019 08:11 PM PDT

    I just saw the news that Android Q forces developers to use SAF (Storage Access Framework) which means an app can only access it's own files.

    But I have a Graphic Optimizer app that the main purpose is to edit a file inside a certain game's data folder in just a single click. It doesn't even require the user to manually walk the app through the game's data file directory.

    Does that mean such apps should not support Q anymore or is there anyway around it that doesn't require root or more work for the end user?

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

    Android app responsiveness

    Posted: 31 May 2019 07:57 PM PDT

    I want to test my android app on various screen resolutions like width(240,360..). Is it possible to change my phone's resolution to all these numbers just to test my app's responsiveness?

    submitted by /u/not-sological
    [link] [comments]

    Are there any frameworks I can use that would help speed up the development of an Android application with Uber/Lyft functionalities?

    Posted: 31 May 2019 07:42 PM PDT

    Career advice: Should I pursue Mobile Development or Software Development?

    Posted: 31 May 2019 07:05 PM PDT

    EDIT: I should clarify my question to whether I should pursue Android development or software development that ISN'T Android development.

    Hello,

    For the majority of my time in school, I've been pretty convinced that I'd pursue a career in software development. However I recently got interested in mobile development and it's honestly a lot of fun. I have some conflicting ideas about which path to follow. I will be graduating from school in about 1.5 years, and although I have a bit of time to figure this out, I need some help processing it all.

    • At the moment, Android development interests me more and I'm really looking forward to getting good at it. There are people in this subreddit who report working for great companies with great salaries and peace of mind, but I see more people who are actually really stressed and unhappy. This scares me and bums me out.

    • Software development will always be a relatively stable career, but I don't really know if I'd enjoy it as much as mobile development. I don't mean this in a "deep down I know I won't" kind of way, but rather a "I don't know yet, but I can see myself possibly enjoying it somehow" kind of way.

    I'm also considering the possibility of switching careers down the line if needed, but I don't know which transition would be easier: mobile to software or software to mobile. Any advice would be greatly appreciated, because I want to utilize my free time in the summer to build upon the path I choose.

    Thank you!

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

    What shell commands would you use to dump information about the system?

    Posted: 31 May 2019 01:04 PM PDT

    Hey everyone

    We all probably know about dumpstate/dumpsys and getprop to display system info, but what other shell commands are really useful for collecting basic system state information? I'm talking about what kind of device/hardware we have, Android versions, package info (pm, aapt), network state, and that sort of thing.

    I'm writing a script I can run to capture as much info as possible when working on a device. I already run a dumpstate but I realized it wasn't getting everything I needed.

    I'm specifically interested in shell commands which would be run over something like adb or ssh as root.

    So far I've got: 'uname -a', 'lsmod', 'ps auxw', 'lsusb -vv', 'netstat -anp', 'netstat -rn', 'arp -an', 'ifconfig -a', 'ip addr', 'ip route', 'ip route show table local', 'mount', 'df -ah', 'df -i', 'lsblk', 'blkid', 'ss -anep', 'ss -s', 'free', 'cat /proc/meminfo', 'cat /proc/vmstat', 'cat /proc/cpuinfo', 'uptime', 'cat /proc/net/dev', 'iostat', 'cat /proc/partitions'

    I realize not all of those commands will be available on all devices. That's okay. I'll just log a "X not found" message.

    Platform-specific commands would be useful too, such as tools specific to Samsung, HTC, or Sony devices, or Soc manufactures like QCA, MediaTek, or Samsung's Exynos. Or any other command which might not be universal across all devices would be cool too.

    For example, on Amazon devices, you can do a "idme print" to dump the IDME info (MAC/BT addresses, serial number,...). I'm not actually sure if this a MediaTek thing or Amazon thing.

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

    How do Android's Styles really work?

    Posted: 31 May 2019 08:07 AM PDT

    Hey guys,

    I can't seem to wrap my head around Android styles and especially Material's Theming.

    Let's say I have a TextView, that should use the TextAppearance.MaterialComponents.Subtitle1 style. I will have to add that like this:

    <TextView ... style="@style/TextAppearance.MaterialComponents.Subtitle1" /> 

    Let's say I now want to use my own font. This will have to be done in styles.xml like this (as per the official documentation)

    <style name="MySubtitle1" parent="TextAppearance.MaterialComponents.Subtitle1"> <item name="android:fontFamily">@font/my_font</item> 

    </style>

    <style name="MyAppTheme" parent="Theme.MaterialComponents.NoActionBar"> ... <item name="textAppearanceSubtitle1">@style/MySubtitle1</item> ... </style> 

    Now this is where I get lost:

    How do I tell my TextView now, that it is supposed to be a Subtitle1? I could use @style/MySubtitle1, but that doesn't scale at all (for instance if user can choose theme e.g.: Dark/Light)

    Edit: Additional Question: How to I get colorPrimary to propagate to my substyles? Because if I overwrite Theme.Design.BottomSheetDialog, I will have to set colorPrimary again!

    Any help appreciated!

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

    Emulator 29.0.12 Canary

    Posted: 31 May 2019 08:06 AM PDT

    Having issue with signing app bundle

    Posted: 31 May 2019 03:30 PM PDT

    I recently started experiencing issue with generating a signed app bundle when I tried to upload a new update of my app on the Play store.

    I figured out that building an apk correctly gets signed however I can't seem to figure out why the generated app bundle doesn't get signed by gradle.

    I'm using android studio 3.4.1 and gradle 5.1.1

    Can anyone help me find the solution?

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

    Emulate 9.0 Pie (arm64-v8a)?

    Posted: 31 May 2019 11:03 AM PDT

    Is it possible to emulate it on Windows?

    I can't find any system images for this type.

    Thanks.

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

    RecyclerView Taking Up Entire Linear Layout

    Posted: 31 May 2019 01:52 PM PDT

    This is the starting activity xml file:

    <?xml version="1.0" encoding="utf-8"?> <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".CrimeActivity"> <TextView style="?android:listSeparatorTextViewStyle" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="@string/crime_title_label"/> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/fragment_container" android:layout_width="match_parent" android:layout_height="match_parent" /> </android.support.constraint.ConstraintLayout> 

    I have a RecyclerView that uses the Linear Layout as a container:

    fm.beginTransaction() //This starts running a fragment on the fragment manager. .add(R.id.fragment_container, fragment) //Note that the R.id links to the LinearLayout. .commit(); 

    I am trying to find a way to insert another RecyclerView for a split screen, so I added a TextView above the Linear Layout to see if that would be an appropriate place to put it. Unfortunately, the TextView simply goes OVER the RecyclerView and not in the order of placement.

    Can anyone tell me how to arrange this so my RecyclerView can make room for other items? (like that TextView, or another RecyclerView.)

    Also! Here is the fragment that goes in the Linear Layout container:

    <?xml version="1.0" encoding="utf-8"?> <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"> <android.support.v7.widget.RecyclerView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/crime_recycler_view" android:layout_width="match_parent" android:layout_height="match_parent"/> </android.support.constraint.ConstraintLayout> 

    Thanks!

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

    How do you guys feel about the Flutter API compared to Android's?

    Posted: 31 May 2019 03:59 AM PDT

    I'm considering learning it so I can develop for iOS too so I wanted to know, how is it like working with it compared to working with Android?

    Also how big is the learning curve of switching to Flutter from Android?

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

    Does anyone know to perform silent sign in using Facebook login?

    Posted: 31 May 2019 09:48 AM PDT

    Hi all,

    Currently, we are in the process of developing our very own cloud storage solution with Android app as front end.

    The authentication method we plan to use are

    • Google sign in
    • Facebook login

    One of the requirement is, we need "silent sign in". That's mean, user just need to deal with sign-in UI dialog box once. After that, the app will perform auto sign to cloud storage, using background process, without requiring user to deal with sign-in UI dialog box again.

    Google sign in does provides silent sign in out of the box. So, not much issue right here.

    What we get stuck is, we do not know how to deal with Facebook login. As, per Facebook's document, its login access token, will expire in 60 days.

    We post our technical detailed here - https://stackoverflow.com/questions/56395329/is-facebook-login-suitable-for-use-case-which-requires-silent-sign-in

    Wish to hear some technical suggestion/input, from those who are experienced in Facebook login API.

    Thank you.

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

    [ADB] How to install-existing on Android 6.0 or lower?

    Posted: 31 May 2019 12:59 PM PDT

    I already asked this here some time ago. But since this is a Android Dev subreddit, you might be better with ADB than the other subreddits.

    So basically I have uninstalled a system app with this command.

    pm uninstall --user 0 <name of package>

    I want to reinstall it for the current user. This is the command how I can do this on Android 7+.

    adb shell cmd package install-existing <name of package>

    But this doesn't work on Android 6 or lower. So how can I do this?

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

    Abmob Interstitials Closing automatically - Issue

    Posted: 31 May 2019 08:25 AM PDT

    We noticed that our admob interstitial revenue decreased from beginning of the this week. On checking, it appears some admob interstitials are automatically closing on launch on several devices (our app not updated in 6 months).

    Has anyone else noticed this issue? Has anyone seen decreased revenue for interstitials (Particularly for US) this week?

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

    I just updated Android Studio and it hangs more the longer it is open.

    Posted: 31 May 2019 10:13 AM PDT

    I have 6 GB RAM and it slowly gets fully consumed. But Android Studio only shows to be using around 1.1 GB. Is it leaking memory?

    I know 6 GB is low but it meets the requirement and I wasnt having this problem before.

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

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel