• Breaking News

    Saturday, February 1, 2020

    Android Dev - App Feedback Thread - February 01, 2020

    Android Dev - App Feedback Thread - February 01, 2020


    App Feedback Thread - February 01, 2020

    Posted: 01 Feb 2020 04:28 AM PST

    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]

    Tired of asking about specific method signature during job interview

    Posted: 01 Feb 2020 03:06 AM PST

    Android job interview became truly ridiculous there days!

    Android SDK is so huge and is getting bigger, add old school Java (one day I stepped upon a vipers nest "job opportunity" - the very 1st question was "what are all methods of java.lang.Object.java" and I immediately run away from those freaks), new school Kotlin maddness, add Android BLE quirks, backward compatibility here, forward compatiblity there and you get insane.

    Next time I get the feeling that the person I'm talking with is trying to be a smart-ass I want to tell him "listen, Android SDK is X milions of lines of code and you're trying to ask me about one of it, are you feeling ok?"

    Can you people tell me what is X?

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

    Is the AMD Hypervisor better than Windows Hypervisor?

    Posted: 01 Feb 2020 02:27 AM PST

    I'm using Windows Subsystem for Linux 2 (WSL 2) and it uses Hyper-V. The AMD Hypervisor is not able to work at the same time with it, but the WHPX can.

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

    Localizing my app to Brazilian Portuguese & German

    Posted: 01 Feb 2020 01:42 AM PST

    My app has a fair share of user base from Brazil & Germany. I'm considering translating my app to Brazilian Portuguese & German. Right now the app is available in English only. Is it worth doing the translation? How popular is English in these countries? What is the primary language in their mobile phones in these countries? Anybody from these countries can chime in? Thanks in advance.

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

    App not listed in App drawer after installing using USB and Android Studio

    Posted: 01 Feb 2020 05:18 AM PST

    Hello everyone,

    I test and debug an app I currently work on, on my mobile phone. To install it, I connected it with an USB cable with the PC, enabled the USB debugging settings on my phone and installed it using Android Studio.

    However, for some reason, it does get installed, works and runs completely fine, but doesn't appear in the App drawer where all Apps are usually listed. Any idea why this is the case?

    If you need any technical information, like settings on my mobile phone or source code, tell me! :) Thanks for any help!

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

    Is there any cloud service supporting the SAF's ACTION_OPEN_DOCUMENT_TREE ?

    Posted: 01 Feb 2020 02:53 AM PST

    In particular, and to my dismay, Google Drive does not support ACTION_OPEN_DOCUMENT_TREE, thus you cannot pick a folder on Google Drive (for example for saving a file in it). That's incomprehensible since you can open a file with Google Drive with the SAF using ACTION_OPEN_DOCUMENT. So you cannot save a file to Google Drive with the SAF (unless I missed something) but you can open files from it. Makes total sense... Is there any cloud provider (or anything else than local storage) that has implemented ACTION_OPEN_DOCUMENT_TREE ?

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

    I'm in a Scoped Storage Holding Pattern

    Posted: 31 Jan 2020 04:57 PM PST

    I am waiting for Android R Beta release in a month or two so I can see what direction they took with the scoped storage. So I am not targetting Android Q yet and haven't implemented any of those scoped storage changes. I wonder how many other apps are doing the same

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

    Compilation for x86 question

    Posted: 01 Feb 2020 06:08 AM PST

    I asked this on an /r/emulation thread but never got an answer.

    I'm not familiar with Android development. Are most apps runnable on x86 Android "for free" (a la a simple Java JAR for printing Hello World will run on any platform as long as there's a JVM), or do the devs need to carry out extra steps?

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

    React Native local database like room

    Posted: 01 Feb 2020 06:46 AM PST

    What is equivalent of Room db (with something like livedata) i react native?

    Is there such a thing in react native? I want create some simple app for android where view layer* is bigger problem than backend and I would try something else that gives me something more than usual elements that gives you android.

    I think web developing is giving more "elements" and custom overlapping/sliding elements would be easier in something like react. (However I not advanced in react atm)

    • good way to represent something.
    submitted by /u/r4zenas
    [link] [comments]

    What is an Android Dev related hill you are willing to die on?

    Posted: 31 Jan 2020 09:38 AM PST

    Most people have at least one opinion they will fight tooth and nail to defend, what's yours?

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

    Tabs with Jetpack Compose

    Posted: 01 Feb 2020 08:03 AM PST

    How would someone create kernel sources for a device if they aren't released?

    Posted: 01 Feb 2020 03:07 AM PST

    android hangouts

    Posted: 01 Feb 2020 04:37 AM PST

    Dear friends,

    Can you give some advices/ideas about how&where to get fast response for easy questions or to hangout for those of us that are learning android by themselves, that are not in school anymore or doesn't have programmers colleagues.

    I'm trying to learn Kotlin for android by myself and I'll like to join some real-time chat communities like irc or something like that.

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

    Google Messages Toolbar

    Posted: 31 Jan 2020 06:25 PM PST

    The Messages app from Google has a Toolbar effect where the toolbar has no elevation until the content is scrolled. Also, the Toolbar and status bar becomes semi transparent and the recycler view content scrolls under them.

    How can one achieve that effect?

    Here are some screenshots: https://ibb.co/x7GbX6v https://ibb.co/FX6g18K

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

    CTRL + PgUp/PgDn shortcut for cycling between tabs feels broken (when Preview is open in xml tabs)

    Posted: 31 Jan 2020 08:25 PM PST

    I do android dev occasionally and recently started a project. When cycling between tabs using the CTRL + PgUp/PgDn shortcut, it breaks the flow sometimes. Let's say I have 2 java tabs open and an xml tab open with preview enabled. That shortcut will take me from xml to java when when I press it again, it shifts context to the Project window and changes project overview mode (Android, Project, Pacakage, etc). I don't want it to change context and send my shortcut to the Project pane. Just send it to the tabs I have opened and ignore all other panes.

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

    Release easily an android/apk ... with your python+html/js skills !

    Posted: 01 Feb 2020 01:16 AM PST

    Fabric Answers Daily Email Alternative

    Posted: 31 Jan 2020 02:30 PM PST

    I've been getting Fabric.io daily Answers emails to see stats on all my apps. With Fabric being sunsetted, does anyone know of a way to replicate these emails with Firebase Analytics? Or will the emails continue? I haven't been able to find anything.

    Thanks in advance!

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

    Are there any open source ad mediation solution?

    Posted: 31 Jan 2020 06:03 PM PST

    I had been trying different ad mediation solutions such as appodeal / admob / ironsrc etc, but I find them not very good and I am forced to use their base network.

    Are there any open source solutions?

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

    Retrofit & Gson (Kotlin) - Not a primitive type: 'L'

    Posted: 31 Jan 2020 01:13 PM PST

    Hi all,

    EDIT:

    Resolved!! For some reason, after cleaning the project, it would no longer build. This lead me to an error where I needed to add further statements into my build.gradle file, the below is what I had to add for anyone else that gets this error:

     compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } 

    Retrofit and android is driving me insane at the moment, so I hope someone might be able to assist me in understanding what is going on. I've tried everything I can think of, but nothing changes the error.

    A bit of history, I'm a C# developer (10+ years experience) coming to Java & Android. So far, it's been a pretty easy transition, but this one issue has just had me stuck for a few days now, and without it working, I can't really move on with the development of the application I'm working on.

    Anyone understand what's going on here? "Not a primitive type: 'L'"? Where does "L" come from?

    The Current Output

    The current version of code, as seen below, makes a connection to the API with the correct "username" and "password" value. Therefore, it successfully decodes the AuthRequest object and turns it into JSON and submitts to the URL.

    The request is successful - as I can see this in the API logs, and I can see the output as follows:

    { "authKey": "key", "authKeyExpiry": 120, "refreshKey": "key2" } 

    However - the following error is thrown and the android app crashes:

    A/zygote: thread.cc:2090] No pending exception expected: java.lang.NoClassDefFoundError: Not a primitive type: 'L' A/zygote: thread.cc:2090] at void retrofit2.DefaultCallAdapterFactory$ExecutorCallbackCall$1.onResponse(retrofit2.Call, retrofit2.Response) (DefaultCallAdapterFactory.java:76) A/zygote: thread.cc:2090] at void retrofit2.OkHttpCall$1.onResponse(okhttp3.Call, okhttp3.Response) (OkHttpCall.java:129) A/zygote: thread.cc:2090] at void okhttp3.RealCall$AsyncCall.run() (RealCall.kt:140) A/zygote: thread.cc:2090] at void java.util.concurrent.ThreadPoolExecutor.runWorker(java.util.concurrent.ThreadPoolExecutor$Worker) (ThreadPoolExecutor.java:1162) A/zygote: thread.cc:2090] at void java.util.concurrent.ThreadPoolExecutor$Worker.run() (ThreadPoolExecutor.java:636) A/zygote: thread.cc:2090] at void java.lang.Thread.run() (Thread.java:764) 

    EDIT: Gradle file as below:

    app

    apply plugin: 'com.android.application' apply plugin: 'com.google.gms.google-services' apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' android { compileSdkVersion 29 buildToolsVersion "29.0.2" defaultConfig { applicationId "appid" minSdkVersion 23 targetSdkVersion 29 versionCode 1 versionName "1.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } } dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" implementation 'androidx.appcompat:appcompat:1.1.0' implementation 'androidx.core:core-ktx:1.1.0' implementation 'androidx.constraintlayout:constraintlayout:1.1.3' testImplementation 'junit:junit:4.12' androidTestImplementation 'androidx.test.ext:junit:1.1.1' androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' implementation 'com.google.code.gson:gson:2.8.6' implementation 'com.android.support:recyclerview-v7:28.0.0' implementation 'com.squareup.retrofit2:retrofit:2.7.1' implementation 'com.squareup.retrofit2:converter-gson:2.7.1' implementation 'com.squareup.okhttp3:okhttp:4.3.1' implementation 'org.conscrypt:conscrypt-android:2.2.1' } 

    The Code

    The following code has been added, I've been following a tutorial, however, I've had to adjust things for my API. My aim was to keep it simple.

    Model/AuthRequest

    data class AuthRequest ( val username: String, val password: String ) 

    Model/Auth

    data class Auth ( @SerializedName("authKey") val authKey : String?, @SerializedName("authKeyExpiry") val authKeyExpiry : Int?, @SerializedName("refreshKey") val refreshKey : String? ) 

    Api

    public object Api { private lateinit var retroFit: Retrofit private var api: ApiInterface? = null private lateinit var gson: Gson private var baseUrl: String = "https://webserviceurl/" private var authKey: String = "" private var authTimeout: Int = 0 private var refreshToken: String = "" fun getApi() : ApiInterface { if (api == null) { var client = OkHttpClient.Builder().build() gson = GsonBuilder().create() retroFit = Retrofit.Builder() .baseUrl(baseUrl) .client(client) .addConverterFactory(GsonConverterFactory.create(gson)) .build() api = retroFit.create(ApiInterface::class.java) } return api!! } fun getGson() : Gson { return gson } } 

    ApiInterface

    public interface ApiInterface { @POST("Login") fun login(@Body request: AuthRequest): Call<Auth> } 

    The code that calls this function, is currently just put in a login activity, the code for this activity can be seen below:

    activities/LoginActivity (login function)

    class LoginActivity : AppCompatActivity() { private lateinit var txtUsername: EditText private lateinit var txtPassword: EditText override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_login) txtUsername = findViewById(R.id.txtUsername) txtPassword = findViewById(R.id.txtPassword) } fun handleLogin(view: View) { val username = txtUsername.text.toString() val password = txtPassword.text.toString() val callback = object : Callback<Auth> { override fun onResponse( call: Call<Auth>?, response: Response<Auth>? ) { showNotification("It worked?") } override fun onFailure(call: Call<Auth>?, t: Throwable) { Log.e("Test", t.message, t) showNotification("It failed?") } } Api.getApi() .login(AuthRequest(username, password)) .enqueue(callback) } } 
    submitted by /u/andercode
    [link] [comments]

    Purpose of categories for implicit intents

    Posted: 31 Jan 2020 04:20 PM PST

    I don't quite get the point of categories. The action tag specifies the type of action. Why is there a need for a category attribute?

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

    Which is the faster and lightest emulator(or method to run Android apps) on PC for development?

    Posted: 31 Jan 2020 02:30 PM PST

    Recently I have tested AndBox on Ubuntu, but I expected more for a method "native" to run apps. I got more performance with GenyMotion, but this doubt arose.

    Regardless of the OS you are using, which one is the best?

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

    No comments:

    Post a Comment