• Breaking News

    Thursday, January 27, 2022

    Android Dev - Apple silicon support officially marked as fixed!

    Android Dev - Apple silicon support officially marked as fixed!


    Apple silicon support officially marked as fixed!

    Posted: 26 Jan 2022 04:25 PM PST

    m1 mac support came to AS a few releases ago, but you still needed rosetta for adb and other platform tools.

    With this update (it seems) like you can use AS on a laptop without rosetta!

    https://issuetracker.google.com/issues/160004878

    to install, "check for updates" in AS and it should prompt you for 32.0.0

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

    Is there a way to generate SQLite file from iOS platform, which is compatible with Android Room database library?

    Posted: 27 Jan 2022 12:27 AM PST

    We have an Android app, which is using read/ write data using Android Room database library, and then download/ upload to cloud storage.

    Now, we are developing an iOS app, which is suppose able to read/ write the data.

    There is no issue for our iOS app to read SQLite file written by Android Room database, because we are the one who define database schema.

    However, there are issue, for iOS app to write an Android Room database library compatible SQLite file. We notice Android Room database library is expecting the following 3 additional tables.

    CREATE TABLE room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT); CREATE TABLE android_metadata (locale TEXT); CREATE TABLE sqlite_sequence(name,seq); 

    The sample data contain in the 3 additional tables are as follow.

    INSERT INTO "main"."room_master_table" ("id", "identity_hash") VALUES ('42', '5471e2f102feee2750d42986836b0c42'); INSERT INTO "main"."android_metadata" ("locale") VALUES ('en_US'); INSERT INTO "main"."sqlite_sequence" ("name", "seq") VALUES ('plain_note', '62'); INSERT INTO "main"."sqlite_sequence" ("name", "seq") VALUES ('attachment', '6'); INSERT INTO "main"."sqlite_sequence" ("name", "seq") VALUES ('tab_info', '5'); 

    I think I am able to generate data for android_metadata & sqlite_sequence manually.

    But, I am clueless in generating data for room_master_table.

    I tested a SQLite file without room_master_table, it will cause the following error during reading via Android Room.

    Caused by: java.lang.IllegalStateException: Room cannot verify the data integrity. Looks like you've changed schema but forgot to update the version number. You can simply fix this by increasing the version number.

    I was wondering, is there a way to generate SQLite file from iOS platform, which is compatible with Android Room database library? Or, it is simply not possible?

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

    Do you use 3rd library to handle network responses (some links in description) or do you have your own wrappers to handle it?

    Posted: 27 Jan 2022 07:31 AM PST

    Where to start ?!?!

    Posted: 27 Jan 2022 03:23 AM PST

    I am interested in changing my career path and would like to learn Kotlin and pursue the android dev route.. can anyone please tell me where to start? Any recommendations of learning platform that won't break the bank? Thank you :)

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

    Tips

    Posted: 27 Jan 2022 06:09 AM PST

    I have started preparing for my next Job. I have 2yr experience in Java and Kotlin. Any good tips or suggestions to prepare for my next job?

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

    Relationship between Firebase - Google Play Store

    Posted: 27 Jan 2022 02:21 AM PST

    For several months I've been using Firebase App Distribution successfully. I'd manually build application on my local computer and upload APK file manually to Firebase App Distribution so it's accessible to testers via App Tester application.

    I would like to use recommended AAB instead of APK and for that, I need Google Play Store. I created dev account and have access to GPS.

    I have trouble understanding following things:

    1. I have two Firebase projects (test + production), this means each Firebase project has its own mobile app that has different package ID (I build them with flavors with different Firebase configuration files). "test" project is only used for development and testing, the "production" project is for releases. Do I need to set up my test app in GPS as well? I only want to do it for test version of my app so I can do AAB builds.
    2. How do I connect Firebase Android App with GPS? I can't seem to find any kind of set up in GPS where it'd ask me for package ID.

    Maybe I'm misunderstanding Google Play Store Console, perhaps it's only used for release apps? Thank you.

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

    SocketException: java.net.SocketException: socket is closed release build

    Posted: 27 Jan 2022 03:48 AM PST

    We are having problems with Android network requests, to be more exact receiving random

    SocketException: java.net.SocketException: socket is closed at com.android.org.conscrypt.ConscryptFileDescriptorSocket$SSLInputStream.read(ConscryptFileDescriptorSocket.java:551) 

    The request does not seem to time out, the exception is thrown very quickly and it seems to be ONlY in release mode, our guess is that it might be related to ProGuard.

    We're using Retrofit, Moshi, and RxAndroid for our network requests. Has anyone experienced such issues?

    Our dependencies and their versions:

    implementation 'io.reactivex.rxjava2:rxandroid:2.1.1' implementation 'io.reactivex.rxjava2:rxjava:2.2.9' implementation 'com.squareup.retrofit2:adapter-rxjava2:2.5.0' //Moshi def moshiVersion = "1.12.0" implementation "com.squareup.moshi:moshi:$moshiVersion" kapt "com.squareup.moshi:moshi-kotlin-codegen:$moshiVersion" implementation "com.squareup.retrofit2:converter-moshi:2.9.0" implementation "com.squareup.moshi:moshi-kotlin:1.8.0" //Networking implementation 'com.squareup.okhttp3:logging-interceptor:3.12.1' implementation 'com.squareup.retrofit2:retrofit:2.6.4' implementation 'com.squareup.retrofit2:converter-scalars:2.1.0' 

    All of our models are annotated with @Keep annotations:

    @Keep class ModelDTO( @field:Json(name = "field1") var field1: String? = null, @field:Json(name = "field2") var field2: List<String>? = null ) HttpClient + Retrofit: val client = OkHttpClient.Builder() .connectTimeout(300, TimeUnit.SECONDS) .writeTimeout(300, TimeUnit.SECONDS) .readTimeout(300, TimeUnit.SECONDS) client.retryOnConnectionFailure(true) .addNetworkInterceptor { chain -> val request = chain.request().newBuilder().addHeader("Connection", "close").build() chain.proceed(request) } val moshi = Moshi.Builder() .add(KotlinJsonAdapterFactory()) .build() val retrofitBuilder = Retrofit.Builder() retrofitBuilder.baseUrl(BuildConfig.BASE_URL) retrofitBuilder.client(client) .addCallAdapterFactory(RxJava2CallAdapterFactory.create()) .addConverterFactory(MoshiConverterFactory.create(moshi).asLenient()) .addCallAdapterFactory( RxJava2CallAdapterFactory.createWithScheduler(Schedulers.io()) ) 

    Our Gradle settings:

     release { debuggable false minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' consumerProguardFiles 'proguard-rules.pro' } 
    submitted by /u/androideris
    [link] [comments]

    Gson migration made easy!

    Posted: 27 Jan 2022 01:06 AM PST

    Do you have trouble with updating your app? (Long verification delays)

    Posted: 26 Jan 2022 04:17 PM PST

    Hi guys. The newest update of one of my app took like 5 days for now and it's not even published now. In the weeks before it was like that updates for verified and published at the same or next day. Anyone else having that issue?

    View Poll

    submitted by /u/Stock-Veterinarian51
    [link] [comments]

    PSA: If you use Jetbrains toolbox to install Chipmunk Beta 1 it will install Canary 1 instead

    Posted: 26 Jan 2022 05:15 PM PST

    Apparently it's a known issue. This messed me up for a while because I didn't realize that I had canary1 installed which was pretty different from canary7/beta1. Cheers

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

    CameraX Video and Extensions API survey

    Posted: 26 Jan 2022 04:33 PM PST

    App Timer (Java)

    Posted: 26 Jan 2022 02:07 PM PST

    how to monitor other apps on the phone and their usage

    and how to before i open ie facebook an activity of a pattern or a pin shows up and requires a password to access the app i want to open

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

    StackOverflow or try to take code from github(and try to make it compatible?)

    Posted: 26 Jan 2022 12:42 PM PST

    what you guys do? you try take stuff from github profiles or take ready code from github but its kind of never compatible and try make it work?

    submitted by /u/No-Sleep-9475
    [link] [comments]

    Cheezam: Find cheeses from pictures and screenshot thanks to AI

    Posted: 26 Jan 2022 12:14 PM PST

    Hi ! :D

    I've made an Android app nammed Cheezam which is an application to help you finding cheeses information from pictures or screenshot using cheezam.fr and Flutter.

    The code is right here : https://github.com/KikiManjaro/Cheezam and I would really like to have some feedback on the app :)

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

    Jetpack compose with two Navigation Host, hot to go back without without recompose?

    Posted: 26 Jan 2022 12:14 PM PST

    Basically, I've set a navhost for bottomNavigationBar inside composable scaffold. All the screen with bottom navigation are placed inside that navhost.

    from one of the screen i want to navigate to sign up screen that is outside of the main screen with the bottomNavigationBar . When i press back from the sign up screen the main screen recomposed and all the data resets again. There's a way to prevent it from recomposed?

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

    No comments:

    Post a Comment