• Breaking News

    Tuesday, April 7, 2020

    Android Dev - I just finished my first full-size MVVM app - Upcoming Games. Can I get a code review?

    Android Dev - I just finished my first full-size MVVM app - Upcoming Games. Can I get a code review?


    I just finished my first full-size MVVM app - Upcoming Games. Can I get a code review?

    Posted: 07 Apr 2020 04:20 AM PDT

    https://github.com/gavingt/upcoming-games

    https://youtu.be/RS_684kyOEk

    The app lets you view release dates and other info for every video game ever made. It allows you to easily track your favorite and most anticipated games. Contains full sorting and search capabilities. The database is updated periodically using WorkManager.

    This is my first time using several modern Android libraries, so I'm sure I've made some mistakes along the way. Any feedback would be appreciated.

    Also, what more do I need to learn to become hireable?

    Thanks!

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

    Xiaomi says Google is forcing OEMs to mention Google apps support on retail boxes

    Posted: 07 Apr 2020 06:57 AM PDT

    Migrating Duolingo’s Android app to 100% Kotlin

    Posted: 06 Apr 2020 11:32 AM PDT

    Is libGdx the best framework for Java 2d game development?

    Posted: 07 Apr 2020 03:25 AM PDT

    Hello, I'm new to the Java & Android development screen and nearly done with my first full app. When I finish that I'd like to try making a simple 2d game and was wondering if anyone here has experience with libGdx?

    I'd prefer to stick to a Java framework, because I'm still learning Java and Android, and would rather not try adding learning an engine at the same time.

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

    Playstore App Publication process when you push put multiple updates

    Posted: 07 Apr 2020 02:40 AM PDT

    I published a new update for my app on Playstore on 3rd April. However I found an bug in the latest code and published a fix for that on 5th April. Since my 3rd April update wasn't rolled out, what happens now ? Will my latest update be rolled out first or it will happen sequentially , i.e. 3rd April one first and then 5th April one ?

    I've been unable to find anything regarding this in the documentation, so any info would be helpful.

    Thanks

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

    Should i memorize codes?

    Posted: 07 Apr 2020 04:02 AM PDT

    Okay so im a learning Android Development. I learned kotlin as well as java. These language are really easy to remember for me at least. But when i get to the actual development there are more codes that i have to write in Android studio. So should i memorize these code. For example there are lots of codes in recycler view. Should i memorize all of em. I keep notes of everything. So when i start developing apps i can look at them when i forget the codes. I hope my post makes sense. Would appreciate help from fellow developers. Thabks in advance

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

    Now in Android: 14 - Android 11 Developer Preview 2, Android X releases, game development, and more!

    Posted: 07 Apr 2020 07:34 AM PDT

    Upload image file using retrofit

    Posted: 07 Apr 2020 07:26 AM PDT

    I'm trying to upload an image using retrofit, but I'm getting FileNotFoundException every time I try to upload the file (BTW permission is granted), here's my code:

    val intent = Intent(Intent.ACTION_GET_CONTENT,MediaStore.Images.Media.EXTERNAL_CONTENT_URI).apply {this.type = "image/*"}

    val path = data?.data.path

    val file = File(path ?: "")

    viewModel.updatePhoto(file)

    fun updatePhoto(file: File) {

    viewModelScope.launch {

    val body = file.asRequestBody("image/*".toMediaTypeOrNull())

    val mp = MultipartBody.Part.createFormData("img", file.name, body)

    userRepository.updatePhoto(token!!, mp)

    }

    }

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

    Introducing androidx.dev

    Posted: 07 Apr 2020 07:16 AM PDT

    Introducing android.dev

    https://androidx.dev/ is a new service that makes it easy to use bleeding edge builds of AndroidX packages and Jetpack Compose.

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

    Genymotion Desktop 3.1.0, cross-platform Android emulator has been released

    Posted: 07 Apr 2020 07:06 AM PDT

    A step-by-step guide to creating an IoT based Flutter app that interacts with any home electrical equipment.

    Posted: 07 Apr 2020 05:19 AM PDT

    Unable to "interact(?)" with buttons etc... outside of the MainAcitivty

    Posted: 07 Apr 2020 03:59 AM PDT

    Title. ( And please see the comment in LoginActivity.kt) Here are the codes:

    MainActivity.kt

    package com.andrycoder.kotlinmessages import android.content.Intent import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.util.Log import kotlinx.android.synthetic.main.activity_main.* class MainActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_main) register_button_register.setOnClickListener { val email = email_edittext_register.text.toString() val password = password_edittext_register.text.toString() Log.d("MainActivity Activity", "The email is: \"$email\".") Log.d("MainActivity Activity", "The password is: \"$password\".") } login_button_register.setOnClickListener { Log.d("MainActivity Activity", "Login button clicked, try to show login activity.") val intent = Intent(this, LoginActivity::class.java) startActivity(intent) Log.d("LoginActivity", "LoginActivity has been opened") } } } 

    activity_main.xml

    <?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.widget.ConstraintLayout 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:id="@+id/editText" android:layout_width="match_parent" android:layout_height="match_parent" android:background="#FFFFFF" android:scrollbarSize="24dp" tools:context=".MainActivity"> <TextView android:id="@+id/textView2" android:layout_width="363dp" android:layout_height="36dp" android:layout_marginTop="104dp" android:gravity="center" android:text="@string/kotlinmessages" android:textColor="@color/colorAccent" android:textSize="24sp" android:textStyle="bold" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" /> <EditText android:id="@+id/username_edittext_register" android:layout_width="363dp" android:layout_height="wrap_content" android:layout_marginTop="94dp" android:ems="10" android:hint="@string/username" android:inputType="textPersonName" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@+id/textView2" android:autofillHints="" /> <EditText android:id="@+id/email_edittext_register" android:layout_width="363dp" android:layout_height="wrap_content" android:layout_marginTop="16dp" android:ems="10" android:hint="@string/email" android:inputType="textPersonName" app:layout_constraintEnd_toEndOf="@+id/username_edittext_register" app:layout_constraintStart_toStartOf="@+id/username_edittext_register" app:layout_constraintTop_toBottomOf="@+id/username_edittext_register" android:autofillHints="" /> <EditText android:id="@+id/password_edittext_register" android:layout_width="363dp" android:layout_height="wrap_content" android:layout_marginTop="16dp" android:ems="10" android:hint="@string/password" android:inputType="textPassword" app:layout_constraintEnd_toEndOf="@+id/email_edittext_register" app:layout_constraintStart_toStartOf="@+id/email_edittext_register" app:layout_constraintTop_toBottomOf="@+id/email_edittext_register" android:autofillHints="" /> <Button android:id="@+id/register_button_register" android:layout_width="363dp" android:layout_height="wrap_content" android:layout_marginTop="64dp" android:background="@color/colorPrimary" android:text="@string/register" android:textColor="#FFFFFF" app:layout_constraintEnd_toEndOf="@+id/password_edittext_register" app:layout_constraintHorizontal_bias="1.0" app:layout_constraintStart_toStartOf="@+id/password_edittext_register" app:layout_constraintTop_toBottomOf="@+id/password_edittext_register" /> <Button android:id="@+id/login_button_register" android:layout_width="92dp" android:layout_height="32dp" android:layout_marginTop="8dp" android:background="#00FFFFFF" android:gravity="center" android:text="@string/login" android:textColor="#A1A1A1" android:textSize="14sp" app:layout_constraintEnd_toEndOf="@+id/register_button_register" app:layout_constraintStart_toStartOf="@+id/register_button_register" app:layout_constraintTop_toBottomOf="@+id/register_button_register" /> </androidx.constraintlayout.widget.ConstraintLayout> 

    LoginActivity.kt

    package com.andrycoder.kotlinmessages import android.content.BroadcastReceiver import android.content.Intent import android.os.Bundle import android.util.Log import androidx.appcompat.* import kotlinx.android.synthetic.main.activity_login.* import androidx.appcompat.app.AppCompatActivity class LoginActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_login) Log.d("MainActivity Activity", "LoginActivity opened.") } // from here I cannot do stuff like "button.onClickSetListener {}..." } 

    activity_login.xml

    package com.andrycoder.kotlinmessages import android.content.BroadcastReceiver import android.content.Intent import android.os.Bundle import android.util.Log import androidx.appcompat.* import androidx.appcompat.app.AppCompatActivity class LoginActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_login) Log.d("MainActivity Activity", "LoginActivity opened.") } // from here I cannot do stuff like "button.onClickSetListener {}..." } 

    AndroidManifest.xml

    <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.andrycoder.kotlinmessages"> <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true" android:theme="@style/AppTheme"> <activity android:name=".MainActivity"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <activity android:name=".LoginActivity" /> </application> </manifest> 
    submitted by /u/Andry60351
    [link] [comments]

    google play account suspended, my clients are very angry

    Posted: 06 Apr 2020 03:30 PM PDT

    I develop online stores for small shops, websites and apps that show a webview of the store, the first app I uploaded was suspended because they thought I was an affiliate who's trying to make money from other people's content, but when I appealed the suspension with documents proving that I own the domain name, the suspension was lifted

    many successful app uploads and approvals later, about a week ago, I submitted 3 applications at the same time, they all got flagged for the same issue that my first app was flagged for, and automatically my account was suspended because of "Multiple Violations", even though, had I been given the time to prove the ownership, I would have done so, but I wasn't, now all the apps I uploaded for all my clients are off the store and I have very angry clients

    what's the best way to prove the ownership and get my account and apps back as soon as possible?

    it's really hurting my living and I can't take this hit, barely making it

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

    Mobile application security testing methodology and key mobile vulnerabilities

    Posted: 07 Apr 2020 03:13 AM PDT

    Decompiling system APK's and modify'ing them to save battery

    Posted: 07 Apr 2020 02:44 AM PDT

    Has anyone gone to this extend to save battery? If so, what did you do, how much battery did it save, and what advice do you have for me? My battery lasts about a day default, arround 2 days with a few tweaks i made, and i think i can get it to 2,5 to 3 days now. Any tips to save even more battery?

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

    What update is coming in the mobile technology constructive mode in 2020?

    Posted: 07 Apr 2020 02:42 AM PDT

    A custom test suit for Android Espresso/Instrumented test using annotations

    Posted: 07 Apr 2020 02:17 AM PDT

    Scoped storage redux

    Posted: 06 Apr 2020 08:07 PM PDT

    After the temporary reprieve following Android Dev Summit last year we seem to be back into the needing to take this seriously stage again.

    Our use case is that we have large savegame files, and some settings files, that don't fit in the GPG save game environment, and we don't necessarily want users to remove these files on uninstall (as a lot of issues are fixed by reinstall). We normally save to a directory in Documents folder for this at the moment.

    SAF has terrible performance.

    Anyone in a similar boat and any plans?

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

    Is there any library with this kind of progress circle?

    Posted: 07 Apr 2020 12:43 AM PDT

    My article on writing a simple compiler plugin is finally out!

    Posted: 06 Apr 2020 12:33 PM PDT

    This is for those who don't have enough hardware in their laptop to run AVD

    Posted: 06 Apr 2020 11:15 PM PDT

    Storage location Saved instance state v/s Persistent storage

    Posted: 06 Apr 2020 10:02 PM PDT

    Storage location Saved instance state v/s Persistent storage

    Can some one explain the difference

    serialized to disk v/s on disk or network

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

    How accurate can one expect GPS coordinates to be?

    Posted: 06 Apr 2020 09:52 PM PDT

    Title says it all really

    Got 2 phones that will randomly "hop" 5m apart or closer. Not sure if this is a normal feature or simply a side effect of the fact that one phone has no network provider and is relying for the most part 100% on wi-fi for any given data it receives

    Does anybody have data on how much drift is normal with or without active phone plans providing supplementary data?

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

    Not read data from firestore

    Posted: 06 Apr 2020 08:47 PM PDT

    I want read data from firestore All are done But its show empty string

    How i solve it

    This is my code code

    This is my model class model class

    This is my adapter class adapter code

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

    No comments:

    Post a Comment