• Breaking News

    [Android][timeline][#f39c12]

    Friday, February 7, 2020

    Weekly "anything goes" thread! Android Dev

    Weekly "anything goes" thread! Android Dev


    Weekly "anything goes" thread!

    Posted: 07 Feb 2020 04:40 AM PST

    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]

    This is my fault. Somehow.

    Posted: 07 Feb 2020 07:20 AM PST

    Android 11 will add a new App Compatibility feature to ease testing

    Posted: 07 Feb 2020 01:12 AM PST

    Critical Bluetooth Vulnerability in Android (CVE-2020-0022)

    Posted: 07 Feb 2020 09:09 AM PST

    Help me with my Kotlin Flow hangups

    Posted: 07 Feb 2020 02:46 PM PST

    Or more precisely (but less catchy as a title) my Cold vs Hot sequence hangups.

    First of all, it seems like 3 rather distinct concepts are associated with Hot vs. Cold, maybe because they're not as distinct as I think they are:

    1. Whether the Observable is generating items when no subscriber is listening (Hot), or whether it waits until there is a subscriber before generating items (Cold)
    2. Whether the Observable can be back-pressured (Cold) or not (Hot)
    3. Whether the Observable broadcasts its events to all subscribers (Hot) or whether an Observable generates new items for each subscriber (Cold) -- i.e. whether the Observable is shared.

    I can definitely see how they are related. Perhaps these concepts go together because they just make sense together. Anyway, that's not my question.

    It seems that A LOT of events in mobile app dev (user input, data updates pushed from the back end, etc.) are inherently Hot. You don't have any control over when they happen. You generally want to broadcast/share them. You could try to adopt a back-pressure strategy (e.g. buffer) but you can't back-pressure the event itself.

    Notable exception of course is I/O, e.g. unary network calls, or file I/O. These can be "Single-like" in nature, or maybe you have a paginated network API or you're reading individual lines from a file, which would involve multiple events and is "Flowable-like" in nature. These seem Cold to me.

    I could also imagine having a Presenter in which you've subscribed to Flowable<ViewState> and you request 1 item at a time because there's no sense in processing multiple ViewStates each frame.

    So I see a use for both, but the Kotlin language designers don't seem to be feeling the love for Hot channels. Channels are still experimental, and many of their (seemingly useful!) operators are being deprecated (with instructions to use Flow instead). I definitely understand their limitations, but they seem necessary.

    So my question is, should we be minimizing the use of Hot sequences? Should we be converting them to Cold sequences with some sort of Back-Pressure Strategy as immediately as possible? Should the frame timing of our UI generally be the tick rate at which we calculate new app state, with "Hot" events buffered somehow until the next tick?

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

    Changing minSdkVersion from 21 to 23?

    Posted: 07 Feb 2020 04:02 AM PST

    What is your minSdkVersion? Right now in our apps it's mostly API 21, but we are considering to move to API 23, no specific reason except some code optimization and possibly APK size reduction.

    According to analytics 13% of our users are on API level 21, but here is the catch, 69% of them are from India and Mexico and those countries tend to have very low eCPM and are not very profitable.
    What are your thoughts?
    What is your minSdkVersion?

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

    Nitrogen release date

    Posted: 07 Feb 2020 08:47 AM PST

    This is my first post here and I'm fairly new to the subreddit too, tell me if i get anything wrong.

    I can't seem to find any information about google's Project Nitrogen's release date. In I/O 2018 and Android Dev Summit 2018 they said it would be released in 2019, but I didn't find any article about it dated 2019/2020, only 2018.

    Does anybody know anything about it? Has it already been integrated with AndroidStudio and I just didn't notice? It seems unlikely that they abandoned it, but apart from a few reddit comments i couldn't find anything about it.

    Any help is appreciated.

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

    Best tutorial to learn recycler view in Kotlin?

    Posted: 07 Feb 2020 04:21 PM PST

    Hi, I am looking for the most beginner friendly tutorial to learn recyclerview in Kotlin.

    I have watched and coded along with a few such as:

    https://www.youtube.com/watch?v=Jo6Mtq7zkkg

    https://www.youtube.com/watch?v=lLQWJS-WPo4

    but they are not very good in my opinion as they don't explain enough or well enough. It is basically just typing the code out + some really hand waving type arguments.

    For whatever reason it is not clicking for me at all.

    Do you guys have any suggestions of where I can learn better? I am very new to mobile dev and kotlin to be honest but would love to learn this!

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

    Generate kotlin documentation

    Posted: 07 Feb 2020 08:37 AM PST

    Hi. Long story short I am writing this Kotlin Library for Android, and I would like to generate some documentation to go with it. I tried Dokka, but the output is really.... spartan xD. Can you recommend some other free to use tool, so I can generate simple documentation? Would be lovely if it would include search.
    Thanks!

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

    View Binding: Merge

    Posted: 07 Feb 2020 08:18 AM PST

    A career in Android development

    Posted: 07 Feb 2020 06:31 AM PST

    Hi all.

    I've just moved to London and on the back of a degree in Software Development, I'm considering a career in Android development. However, I just got a call from a recruiter about a Salesforce Developer opportunity. Salesforce is a massive company that is still growing and it sounds like it's a good company to work for. What are your recommendations? Which field do you think is more attractive - Android development or Salesforce development?

    P.S. I plan on moving back to Australia in the distant future.

    Thanks for any advice.

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

    All-in-One — Android TabLayout and TabItem

    Posted: 07 Feb 2020 04:13 AM PST

    I'm getting a "Cannot recover key" error when generating my signed APK

    Posted: 07 Feb 2020 01:15 PM PST

    I'm getting the below error when generating my signed APK:

     Caused by: java.lang.RuntimeException: com.android.ide.common.signing.KeytoolException: Failed to read key key0 from store "/Users/zorgan/Desktop/keystore": Cannot recover key Caused by: java.security.UnrecoverableKeyException: Cannot recover key at sun.security.provider.KeyProtector.recover(KeyProtector.java:315) at sun.security.provider.JavaKeyStore.engineGetKey(JavaKeyStore.java:141) at sun.security.provider.JavaKeyStore$JKS.engineGetKey(JavaKeyStore.java:56) at java.security.KeyStoreSpi.engineGetEntry(KeyStoreSpi.java:473) at sun.security.provider.KeyStoreDelegator.engineGetEntry(KeyStoreDelegator.java:172) at sun.security.provider.JavaKeyStore$DualFormatJKS.engineGetEntry(JavaKeyStore.java:70) at java.security.KeyStore.getEntry(KeyStore.java:1521) at com.android.ide.common.signing.KeystoreHelper.getCertificateInfo(KeystoreHelper.java:191) ... 32 more 

    I have checked my executionHistory.bin file and confirmed both the Keystore password and Key password are correct and are both the same password:

    https://i.stack.imgur.com/fA75q.png

    signingConfig.keyAliasÖkey0ösigningConfig.keyPasswordí**mypassword**úsigningConfig.storePasswordí**mypassword**òsigningConfig 

    https://i.stack.imgur.com/CVGwy.png

    What could be the problem?

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

    No rebuild the app

    Posted: 07 Feb 2020 01:13 PM PST

    I am getting this error when try to rebuild the app

    \res\values\values.xml:57:5-88:25: AAPT: error: resource android:attr/ttcIndex not found.

    Any help I will apreciate

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

    [DEV] Star Launcher �� - Themes, Wallpapers, Widgets. Your opinion is required. Need your help :3

    Posted: 07 Feb 2020 01:00 PM PST

    Hello everyone, I have an application in the play market:
    https://play.google.com/store/apps/details?id=com.hypergdev.starlauncher

    I would like to know your opinion about the application, as well as what needs to be added.

    The other day I updated the screenshots (at your request) and also added a function to hide applications and the background of the dock bar.
    There is advertising in the application, but it is only in the application settings!I am also developing a button to turn off advertising.

    Features of Star Launcher:

    • - Notification dots 📨
      · Star Launcher will show you which applications have active notifications without having to download an external plugin. This makes the function more stable and reliable.
    • - Smart Search 🔎
      · The Star Launcher search bar allows you to quickly find contacts and applications or perform actions such as searching on the Internet, you can also choose your provider: Google, Bing, DuckDuckGo, Yandex.
    • - New look of the phone 📱
      · Choose different themes (light, dark, transparent).
      · Set background hotset and customize color search bars.
      · Personalize applications with a custom icon pack and use responsive icons to make their appearance consistent.
      · Resize and mesh icons
    • - Protect your apps 🔒
      · You can hide applications, as well as hide the name of applications in the menu and on the desktop.
    • - Gesture settings 👆
      · You can configure gestures to lock the phone with a double tap on the screen, open the application panel by swiping up the screen, etc.
    • - Built-in calendar widget 📆
      · The built-in widget has been redesigned to display information such as the next event and weather.

    please put UPVOTE

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

    Best high-level Camera API?

    Posted: 07 Feb 2020 05:46 AM PST

    I was super excited about Camerakit, but it looks like development or support has stopped for that library.

    Are there any comparable camera APIs like this that I can incorporate into my project relatively painlessly?

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

    How to Localize Indie Games for Non-Latin Alphabets

    Posted: 07 Feb 2020 11:11 AM PST

    [VIDEO] Top App Bar - Exploring Jetpack Compose

    Posted: 07 Feb 2020 07:22 AM PST

    How can I know what's new in android development?

    Posted: 07 Feb 2020 10:55 AM PST

    I've been away from android development for more than a year now. I have an interview coming up for a junior android development role next week and I want to make sure I'm up with the latest things. What is the best way to know what changes in SDK and releases has been done in the past year or so?

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

    Navigation components Login screen

    Posted: 07 Feb 2020 10:55 AM PST

    Hey guys,

    I'm developing an app with Firebase Auth. I'm currently using navigation components where I have MainActivity which holds other fragments. I have to implement a login screen but I'mapproach not sure what aproach to choose. I was thinking if I should create a login screen in a LoginFragment which would be a start destination and when the user authinticate app navigates to HomeFragment which becomes root position. Or to use LoginActivity which on user authentication starts MainActivity which holds other fragments. What do you guys think the best approach would be? Or what are some best practices for it.

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

    Implementing Scoped Storage in Android 10

    Posted: 06 Feb 2020 09:13 PM PST

    Android/IOS application application for runners as efficient as a gps watch.

    Posted: 07 Feb 2020 09:58 AM PST

    Can a mobile application give an accurate reading of a runner's top speed, average speed and real time speed? Also can the application make sure that the person is actually running and not using a car or bicycle. Is it possible to build a mobile application (android/ios) that is capable of doing the above as accurately as a gps watch.

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

    Interesting report

    Posted: 07 Feb 2020 09:33 AM PST

    Is Google Codelabs a good platform to learn basics of Android Development?

    Posted: 07 Feb 2020 09:11 AM PST

    I've started learning android (kotlin) on Google Codelabs (https://codelabs.developers.google.com/android-kotlin-fundamentals/) . I am enjoying it so far. I just wanted to know if it's a good platform to learn android for free... or there are any better options available out there?

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

    Looking for a project to use as a guideline.

    Posted: 07 Feb 2020 08:48 AM PST

    Hi, I am in a bind. I just started developing my own app and I've arrived at the part where I'd like to make a user profile by grabbing the user information for an SQL database. When I youtube'd and googled it I was being directed to using Firebase tutorials, but I don't know if that is the best option. I'd like to find a good clean beginner example to use as a guidepost. I currently have a Registration and Login page which pull from a database. Is that enough information to wing it and attempt to make the profile page from scratch? This is the code for the dbhelper I made using youtube tutorials:

    package com.example.practice; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import java.sql.SQLInput; import androidx.annotation.Nullable; public class DatabaseHelper extends SQLiteOpenHelper { public static final String DATABASE_NAME = "adventurers.db"; public static final String TABLE_NAME = "adventurer_table"; public static final String COL_ID = "ID"; public static final String COL_USER = "USERNAME"; public static final String COL_EMAIL = "EMAIL"; public static final String COL_PASS = "PASSWORD"; public DatabaseHelper(@Nullable Context context) { super(context, DATABASE_NAME, null, 1); } @Override public void onCreate(SQLiteDatabase db) { db.execSQL("CREATE TABLE " + TABLE_NAME + " (ID INTEGER PRIMARY KEY AUTOINCREMENT, USERNAME TEXT, EMAIL TEXT, PASSWORD TEXT)"); } @Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { db.execSQL("DROP TABLE IF EXISTS " + TABLE_NAME ); onCreate(db); } public long addUser( String email, String password){ SQLiteDatabase db = this.getWritableDatabase(); ContentValues contentValues = new ContentValues(); //contentValues.put(COL_USER, user); contentValues.put(COL_EMAIL, email); contentValues.put(COL_PASS, password); long res = db.insert(TABLE_NAME, null, contentValues); db.close(); return res; } public boolean checkUser(String email , String password){ String [] columns = {COL_ID}; SQLiteDatabase db = getReadableDatabase(); String selection = COL_EMAIL + "=?" + " and " + COL_PASS + "=?"; String [] selectionArgs = {email, password}; Cursor cursor = db.query(TABLE_NAME, columns, selection, selectionArgs, null,null, null); int count = cursor.getCount(); cursor.close(); db.close(); if(count > 0) { return true; } else { return false; } } public boolean checkUser(String name, String email , String password){ String [] columns = {COL_ID}; SQLiteDatabase db = getReadableDatabase(); String selection = COL_USER + "=?" +" and " + COL_EMAIL + "=?" + " and " + COL_PASS + "=?"; String [] selectionArgs = {name, email, password}; Cursor cursor = db.query(TABLE_NAME, columns, selection, selectionArgs, null,null, null); int count = cursor.getCount(); db.close(); if (count > 0) { return true; } else { return false; } } 

    }

    PS. Is Firebase the wave? Is it optimal to learn that?

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

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel