• Breaking News

    [Android][timeline][#f39c12]

    Thursday, December 2, 2021

    Compose Multiplatform 1.0 released Android Dev

    Compose Multiplatform 1.0 released Android Dev


    Compose Multiplatform 1.0 released

    Posted: 02 Dec 2021 05:39 AM PST

    !hooked, a technical magazine about the practical side of mobile app security

    Posted: 02 Dec 2021 05:54 AM PST

    My play store account has been closed.....please help.

    Posted: 02 Dec 2021 12:31 AM PST

    Today I finally finished my app and I happily want to upload my app. But after I logged in to my account I only found:

    Status: Account closed

    Closed: 20 Oct 2021, 05:49

    Details: This developer account has been closed due to inactivity, and can't be reactivated.

    We've sent more information to the account owner's email address.

    I was shocked as I didn't know what is going on. I opened gmail and search if I can find any email that has any information related. I did find it.... but.. there are just too many emails everyday and I could not notice it... It was just 1 and half months ago....

    The worse thing is that the money is not refundable. I am wondering if this can be reactivated....if I had seen it I would have of course tried to keep it.....

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

    Local Push notifications

    Posted: 02 Dec 2021 04:59 AM PST

    Hi everyone,

    So I have a bit of problem figuring how to do this idea : I want to prompt user to pick a time and days so I can send 'push notifications' . say the user picks Mon-Fri , 8:15 PM ; that means the app will send pushnotifications ( just like duolingo does for the reminders) .

    The thing is , I don't want to store the selected time and date in my database (aws amplify) , nor am I using any cloud service to send the notifications/alarm, I want to do it all locally.

    Has anyone done something like this before? I've read on the AlarmManager library but I'm not sure how to exactly save the date time for a specific user .

    Any pointers would be greatly appreciated,

    Thanks.

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

    Technical documentation as single, giant PDF

    Posted: 02 Dec 2021 02:10 AM PST

    My organization requires that we submit tech docs in one PDF file. Kotlin is used in the project so I used dokka to generate html and gfm docs.

    Now, for what I didn't realize to be the harder part: how to convert all these into one PDF?

    I have tried using Pandoc and some batch commands to recursively convert individual html files into their corresponding PDFs, but I have no idea how to stitch this small PDFs into a large one where the linking is preserved. When I click on one PDF's link to another function/package/class, it just goes to the original HTML file, obviously. Pandoc cannot edit those links to also point to the PDF counterparts.

    At this point, I am starting to think that I may be asking the wrong question. So here are some new ones:

    Can dokka be configured to output just one, single, giant file? Hopefully one huge markdown file that can be easily converted to pdf by any other software out there?

    Are there other documentation engines for Kotlin that you know that allow single-file outputs?

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

    how long it takes for mastering android development

    Posted: 02 Dec 2021 07:58 AM PST

    I'm trying to learn advanced topic in android and it cuz mr headaches 😩 , i know basics but i aim to get a job but road is very hard

    submitted by /u/saram-
    [link] [comments]

    "1 app needs your attention" message appears for no reason

    Posted: 02 Dec 2021 07:52 AM PST

    "1 app needs your attention" message appears for no reason

    Hi, I'm seeing the "1 app needs your attention" message in the Google Play Console mobile app ONLY.

    • I don't have any issue with any app.
    • I didn't receive an email from Google Play as well.

    https://preview.redd.it/qamz7jbwh5381.png?width=404&format=png&auto=webp&s=0e4fd030719cf981d3b8623de65fd0961cb98120

    Likewise, I've contacted Google Play support, they said, I don't have any issue with any app, but they don't know why I'm still seeing this message.

    Does anyone have the same issue?

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

    Regarding Tax on In-App purchase

    Posted: 01 Dec 2021 08:59 PM PST

    Hey, Could anyone please help me So, My app is running in UK and I'm getting some in app purchases from UK. But I'm from India so should I have to pay the Tax on my income as google also deduct some fees and taxes. Please help me if anyone know about that

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

    Android Developer Roadmap 2022

    Posted: 01 Dec 2021 04:59 AM PST

    Description update without app update on api 29 after November 2021.

    Posted: 02 Dec 2021 04:55 AM PST

    Hello,

    I received notification from google about metadata in my app on api 29. I know from november all apps update should be on api 30+ , but I wanted update apps with new safety form, policy privacy etc. in next year till april one time. My question is I have to send an new apk with api 30+ or If I only changed destription to fix this notification it will be fine without updating app?

    If someone knows , will be nice :)

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

    Jetpack compose button action onClick leak

    Posted: 02 Dec 2021 03:53 AM PST

    We've encountered a problem with Jetpack Compose button actions leaking. We provide a class with resources (e.g strings, colors, and BUTTON ACTIONS):

    data class CameraOnBoardingComposeViewResources(val title: String, val buttonTitle: String, val buttonAction: () -> Unit) 

    This data class is created in the fragment like so:

    val resources = CameraOnBoardingComposeViewResources( "Title", "ButtonTitle" ) { navigate() } 

    And in our composable we use those resources like so:

    @Composable fun composeOnBoardingView(resources: CameraOnBoardingComposeViewResources) { Surface( shape = RoundedCornerShape(4.dp), color = colorResource(R.color.idenfyMainColorV2), modifier = Modifier .height(42.dp) .padding(start = 16.dp, end = 16.dp) .clickable(onClick = resources.buttonAction) .fillMaxWidth() ) } 

    The problem is that buttonAction leaks. How can we avoid this leak, should we somehow dispose of it, or do we need to change this architecture a bit?

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

    Android Studio is super slow on my 16gb machine with SSD.

    Posted: 02 Dec 2021 03:38 AM PST

    Android Studio is so slow. I have never encountered this. It take 10 seconds to load autocompletes. While printing characters are displayed with delays. I have disabled a lot of plugins and the maximum heap size is set to 12gb. But still no effect.

    Any idea how can I fix this?

    submitted by /u/karen--g
    [link] [comments]

    CashApp + Gradle – A Journey in Android Developer Productivity w/ John R. & Rooz M.

    Posted: 01 Dec 2021 12:43 PM PST

    Recommendations for making native app for a person coming from web apps

    Posted: 01 Dec 2021 11:11 PM PST

    Hello all,

    I am building a web application using React and I would like to have an Android app as well. I know there is React Native and stuff like that but I want to give the native way an opportunity. Long time ago I knew Java and I know C++ so I think it would not be that difficult. I have seen Kotlin is the most modern way to make Android apps, is that right?

    My biggest worry, is that at least, in the past you had to place your UI stuff in xml files as far as I remember. Now I am used to React where you place your UI and your logic more or less in the same file. What is the best way to have the same? I have heard about Jetpack Compose, is this the correct answer?

    Thank you in advance for any hints and regards

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

    Room table DB with multiple languages

    Posted: 02 Dec 2021 02:52 AM PST

    I have tasks table which has translatable columns like priority which is constants values inside DB.

    I'm thinking to make a separate table for priority to be the structure like:

    data class Task( val taskId: Long, val priorityId: Long ) 

    data class Priority( val id: Long, val priorityEn: String, val priorityAr: String, ) 

    here I have some questions:

    1- How to query tasks data with the proper language from two different tables, knowing that I have priorityId in Task class, not priortyName that I need to show readable info to the user?

    2- How to tell the DB that I need En or Ar priority instance?

    3- What is your opinion on the solution? do you have another perspective to approach this?

    Thanks in advance :)

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

    How to use java.time in my App?

    Posted: 01 Dec 2021 09:49 PM PST

    I want to use the new java.time apis in my app which is minSdk 26.

    I know java8 desugaring is a thing, but the setup according to the docs involves a couple of steps https://developer.android.com/studio/write/java8-support#library-desugaring

    Namely

    compileOptions {// Flag to enable support for the new language APIs coreLibraryDesugaringEnabled = true}} 

    and

    dependencies { coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:1.1.5") 

    On a whim, I just started using java.time apis, and everything worked fine WITHOUT adding any of the lines above. The docs don't state that the steps above are optional, and so now Im worried and getting a bit anxious about shipping my app with java.time apis (im afraid i might start crashing all over the place after launching to prod)

    Anyone have a good answer of whether or not I need the above if im minSdk 26 using java.time apis?

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

    A resource to learn about Enterprise admin application

    Posted: 01 Dec 2021 11:25 PM PST

    Hi, I am an android developer with about 2 years of experience. I am looking for a complete guide on how to develop, release an admin enterprise application. I could not find any good documentation on this.

    Any resource on this?

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

    Backingup Packet Capture files with ADB

    Posted: 01 Dec 2021 06:01 PM PST

    Have some valuable data I captured on the Packet Capture app that I don't want to loose before sending my device in for repair.

    I used "adb backup app.greyshirts.sslcapture -f C:\Downloads\backup.ab".

    Will this backup everything including all the captures or just the app itself? Thanks in advance.

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

    iTextPDF in Android Q and above

    Posted: 01 Dec 2021 11:43 AM PST

    As getExternalStorageDirectory is deprecated and we require legacy storage access, anyone can suggest work around to create PDF and store in document directory? I am stuck, any lead will be appreciated.

    I read MediaStore, contentResolver and Uri but not sure how to implement it. Thank you.

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

    The RxJava Threading Mistake You Are Probably Making

    Posted: 01 Dec 2021 02:53 PM PST

    How to use view binding on customview and call its functions?

    Posted: 01 Dec 2021 11:59 AM PST

    Hi guys,
    I'm having some problem declaring a custom view which extends ConstraintLayout.
    First, should I declare the root as "<merge>" in the custom view layout?
    If I do so, when I try to call the CustomViewBinding.inflate() method, I can't set the "attach to parent" boolean, and I have a crash.

    This is my customview code:

    class ClassItemCustomView(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0) :
    ConstraintLayout(context, attrs, defStyleAttr) {
    private var binding : ClassItemCustomViewBinding
    private var classNameColor : ColorStateList? = null
    private var classCategoryColor : ColorStateList? = null
    init {
    binding = ClassItemCustomViewBinding.inflate(LayoutInflater.from(context), this)
    addView(binding.root)

    initUI(attrs)
    }

    And this is my xml:

    <?xml version="1.0" encoding="utf-8"?>
    <merge 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:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:padding="5dp">

    <TextView
    android:id="@+id/classNameTextView"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toTopOf="parent"
    android:textSize="18sp"
    tools:text="Full Body Intermediate" />

    <TextView
    android:id="@+id/classCategoryTextView"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:maxLines="1"
    android:ellipsize="end"
    app:layout_constraintTop_toBottomOf="@id/classNameTextView"
    app:layout_constraintStart_toStartOf="parent"
    tools:text="Category test"/>

    </merge>

    Also, In my adapter, I would like to get the current item and call a function of my customview, but If I declare the root as a ConstraintLayout and I try to do (holder.item as ClassItemCustomView).myFunction() it crashes and it says that it can not cast ConstraintLayout to ClassItemCustomView. How do I get the current view as a ClassItemCustomView?

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

    Anyone knows how to show proper notification on Samsung Galaxy Z Flip 3?

    Posted: 01 Dec 2021 04:26 AM PST

    Anyone knows how to show proper notification on Samsung Galaxy Z Flip 3?

    I have a dialer app that handles calls and I follow guideline on showing call notifications.

    However, according to user feedback, call notifications from it does not seem to show on this phone's cover/widget screen shown below.

    https://preview.redd.it/wzs5e1glbx281.png?width=313&format=png&auto=webp&s=df89aa00a5f3d6fee0024083a29283c481dd81f4

    Since device is way expensive to buy just to test such issue, I have asked a few users to test other apps. WhatsApp, Telegram, Signal and all seems to work fine but many others don't

    I have asked Samsung Developers team and was told that there is no API.

    I have checked Android Foldable documentation at https://developer.android.com/guide/topics/large-screens/learn-about-foldables but there is no mention of such screen from above.

    All this tells me that Samsung must have some sort of whitelist for popular apps to show their notifications on above screen.

    Anyone has more information about it?

    Thanks.

    submitted by /u/NLL-APPS
    [link] [comments]

    Lag on scroll - Recyclerview Android

    Posted: 01 Dec 2021 11:23 AM PST

    Hello, I have a strange issue with Recyclerview. I was using recyclerview inside a nested scrollview but the ram keeps increasing because Recyclerview didn't recycle items-views. In nested scrollview I didn't have issues with lag on scroll, only the ram was increasing on new appended items.

    So, I created the recyclerview outside of nested scrollview. The ram usage is as normal (Recyclerview recycles views now) but I have lag on scroll. Any ideas?

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

    Android Telematics App SDK Integration

    Posted: 01 Dec 2021 09:32 AM PST

    Hey devs, wondering if there is someone out here who has worked on/developed telematics apps and can integrate an open-source SDK tracking and safe-driving app to collect location, driving style, driving behaviors, driving patterns, lifestyle patterns, vehicle data, and monitor car crashes.

    Please contact me if you can, experienced, interested and have a portofolio to that effect. OR point me to someone or people... :-)

    Thanks guys.

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

    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel