• Breaking News

    Sunday, May 8, 2022

    Android Dev - I just spent half an hour scratching my head trying to debug things, just to realise later that Logcat had crashed and wasn't printing anything. Where did "Restart logcat" thing go?

    Android Dev - I just spent half an hour scratching my head trying to debug things, just to realise later that Logcat had crashed and wasn't printing anything. Where did "Restart logcat" thing go?


    I just spent half an hour scratching my head trying to debug things, just to realise later that Logcat had crashed and wasn't printing anything. Where did "Restart logcat" thing go?

    Posted: 07 May 2022 03:14 PM PDT

    I had the filter on to search for values and didn't realise that Logcat was printing nothing. Wasted so much of my time trying to see what was wrong in my code, just to realise after removing the search filter that Logcat was the problem.

    I tried to search for "Restart logcat" option, but it's nowhere to be seen. There is "Restart" option, but it only restarts the whole app, and not logcat. Where did the previous "Clear and Restart Logcat" or something like that option go?

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

    Material-Intro :Sophisticated and cool intro with Material Motion Animations(No more viewpager transformer or Memory leak)

    Posted: 08 May 2022 01:31 AM PDT

    How To Understand Android Documentation?

    Posted: 07 May 2022 11:52 PM PDT

    Hello Android Developers!

    I'm a newbie developer and am eager to learn as much as possible regarding the Android platform and all it has to offer. I am, however, having difficulty getting over the hurdle of understanding the documentation on developer.android.com. Some of it is clear and has accurate examples for us developers to go off of (Firebase for example). But a lot of the other documentation seems to be hard-to-understand gibberish with references to other documentation.

    How do you guys make sense of hard-to-understand documentation? Is there a process? How long does it take you to interpret how to properly create the classes/methods in their intended ways? Any tips/suggestions?

    Thanks.

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

    Python tool for automating bulk interactions with Android devices - including Frida, AndroGuard, and ADB support

    Posted: 08 May 2022 01:56 AM PDT

    Has anyone here bought and read "Building Mobile Apps at Scale: 39 Engineering Challenges" by Gergely Orosz

    Posted: 07 May 2022 04:39 AM PDT

    This is a book that he claims will give you a full walkthrough of enterprise mobile app development. I am still at the early stages of my career but want to learn and get better at designing large-scale mobile apps. The full version is $34 and I am thinking of buying it. Here is the link to it: https://gergelyorosz.gumroad.com/l/IuuuN?variant=Full%20Version

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

    Admob - Metrics very low. Need some insights.

    Posted: 07 May 2022 12:25 PM PDT

    Admob - Metrics very low. Need some insights.

    Hey folks, I integrated Admob in one of my app and i am seeing such poor numbers after a week.
    I have multiple ad units at different different screens in the app. For example, there is screen with some items listed in Recyclerview like a feed and ad is shown 3rd -4th position in the same list.
    I am unable to figure out why are impressions so low given the number of requests.
    Does the placement of ad in app matters?
    Lastly I will really appreciate if you guys can share some of your metrics around Fill rate (Request to impression ratio) of your App. Any additional insight will be appreciated. 😊

    https://preview.redd.it/y1vzw0rfq3y81.png?width=906&format=png&auto=webp&s=ab43142492276ee5ed1bcc882caba4c7dfb318ff

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

    Android emulator on phone

    Posted: 08 May 2022 12:06 AM PDT

    Is there an Android emulator I can use on my Android phone that can feed apps fake data from SIM for testing?

    submitted by /u/O-0111
    [link] [comments]

    How to prepare for a job interview?

    Posted: 07 May 2022 01:56 PM PDT

    I got invited for a job interview as an Android developer, i have never worked professionaly as a developer, i only did it as a hobby.
    Is there something special i should do or prepare before this interview?

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

    Apps without privacy policy

    Posted: 07 May 2022 11:37 AM PDT

    Hello everyone, I'm about to launch my first android game and I have a big question. I saw that a lot of apps with hundred thousands of downloads that don't have any privacy policy to accept, or even any link to it. Is it really necessary to have? Also. I'm from Europe and I read about GDPR, but I don't know what to say about privacy policy. Thank you for response!

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

    Best way to handle config/secrets

    Posted: 07 May 2022 06:52 PM PDT

    I'm building an app that has a few config/secret settings and was wondering what is the best way to store them? I've read a few articles and a lot seem to recommend putting them in a settings resource or gradle properties file and making sure they are not checked into your repo. This makes sense and it is largely what I've done before working with Xamarin/React Native apps but I'm just realising that this doesn't keep your settings 'safe' is someone reverse engineers said app. For my current project that is probably not a huge concern/likely scenario but I'm wondering for all your more experienced Android devs our there is this something you take into consideration? If so, what methods do you use to secure those settings?

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

    How to Prevent Users from Triggering Ad Serving Limit (Google AdMob)?

    Posted: 07 May 2022 03:58 AM PDT

    How to Prevent Users from Triggering Ad Serving Limit (Google AdMob)?

    In my firebase console, I can see that there is a user who is pressing on every single one of my ads, resulting in a high CTR which I'm worried will trigger Googles ad serving limit algorithm (something that has happened to me before).
    I have frequency capping enabled, and I just submitted a report form to AdMob. Beyond that my question was, what can I do to combat users seeking to take advantage of how the Google algorithm works.
    In the attached image see the ratio between ad views/clicks.

    The Audacity

    Thanks in advance for all your helps :)

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

    Desktop AVD in Android Studio

    Posted: 07 May 2022 10:56 AM PDT

    Is React Native preferred choice for beginners to make a local database app with CRUD?

    Posted: 07 May 2022 04:13 PM PDT

    I want to make a farm management app for a friend in which you can specify virtual grids on a farm field, add information to each grid cell (such as what kind of fruit grows in a particular field, when was it planted, when the pesticide was sprayed and so on) and also get weekly/ monthly/ yearly reports along with reminders & notifications.

    I am an adept programmer who has worked with C#, C++, Python, Java & JavaScript, but quite new to the app development, and was wondering whether React Native will be a fast, efficient and feature-rich way to make the above mentioned app quickly compared to learning Android Studio to do the job. I did went through some tutorials for native Android Development, but found that to be a bit un-intuitive and boilerplate-ish, in which you have to write so much code to do a simple task. Is React Native more intuitive, offering faster prototyping or is it the same as learning Android Studio?

    What do you guys recommend? I want to deliver the app to my friend as soon as possible.

    Thanks!

    submitted by /u/DL-Z_ftw
    [link] [comments]

    what technologies lie behind a face makeup app like this one

    Posted: 07 May 2022 04:32 AM PDT

    Hello, I'm an Android developer and I want to know which techniques and tools can help me to create an app that help the user to make up a face picture. Here is an example of such app. https://imgur.com/a/SkDW1nZ

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

    Imposter syndrome among developers

    Posted: 07 May 2022 04:12 AM PDT

    I'm doing some research for an assignment on imposter syndrome among developers, to figure out how developers deal with this.

    I've created a survey, and greatly appreciate anyone who wants to participate: https://forms.gle/THu6NV5BPqZy1rqH8

    It's for an academic assignment, and completely anonymous 😊

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

    How to convert Unit8Array to playable audio in Android

    Posted: 07 May 2022 09:06 AM PDT

    I am trying to accomplish the same question asked here: https://stackoverflow.com/questions/71976424/how-to-convert-unit8array-to-playable-audio-in-android

    Basically, if raw audio data is returned by an API, how would we play it in an Android app?

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

    "Received a --sdk argument, but this argument is deprecated...." .... "Warning: failed to apply patch" ----------------> Does "python3 <script> install matplotlib" conflict with the standard buildozer installations I did earlier? <---------------------

    Posted: 07 May 2022 11:57 AM PDT

    EDIT: Solved?

    In my buildozer file, the package name had a "." in it. I took the "." out and it worked.

    https://buildozer.readthedocs.io/en/latest/specifications.html

    package.name: String, package name.

    The Package name is one word with only ASCII characters and/or numbers. It should not contain any special characters. For example, if your application is named Flat Jewels, the package name can be flatjewels.

    -__-- - - -- - - --- - - -- - -- ---- - - -- - - -- - -

    Windows 10, python3?, WSL/Ubuntu20

    -- -- -- - - -- - - - --- - - - --- - - - - - - - - -- - -

    Trying to create a .apk and deploy it to phone.

    Earlier, I successfully created a .apk file. But when opening it on phone, it didn't load. So I debugged it: i)connected phone to computer through USB ii) entered the following command in WSL/Ubuntu: adp logcat | grep python iii) tapped the icon on phone.

    In WSL/Ubuntu, a wall of text appeared and finally this error showed: KeyError: 'kivy.garden.matplotlib To debug this, in Ubuntu/WSL I entered: python3 /home/jojo/.local/bin/garden install matplotlib

    Then, I tried to create a completely new .apk file. A new error popped up ---Received a --sdk argument, but this argument is deprecated.... This is before doing debug with the android phone, before the .apk got created. The .apk has failed to be created!

    I'm wondering if identifying python3 in the previous command, python3 /home/jojo/.local/bin/garden install matplotlib, created a conflict of python versions because of previous standard buildozer installations in WSL/Ubuntu:

    sudo apt update

    sudo apt install -y git zip unzip openjdk-13-jdk python3-pip autoconf libtool pkg-config zlib1g-dev libncurses5-dev libncursesw5-dev libtinfo5 cmake libffi-dev libssl-dev

    pip3 install --user --upgrade Cython==0.29.19 virtualenv # the --user should be removed if you do this in a venv # add the following line at the end of your ~/.bashrc file

    export PATH=$PATH:~/.local/bin/

    If it's not a conflict of python versions, then what is the problem??

    = = == = = === = == = = = = = == = == = =

    -- - -- - - --- - - --- - - - -- - - - - - - - - -

    [WARNING]: ERROR: /mnt/c/Users/15124/OneDrive/nutcal1/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/dists/nutrical1.3/gradlew failed!

    WARNING: Received a --sdk argument, but this argument is deprecated and does nothing.

    No setup.py/pyproject.toml used, copying full private data into .apk.

    Applying Java source code patches...

    Applying patch: src/patches/SDLActivity.java.patch

    Warning: failed to apply patch (exit code 1), assuming it is already applied: src/patches/SDLActivity.java.patch

    # Command failed: /usr/bin/python3 -m pythonforandroid.toolchain apk --bootstrap sdl2 --dist_name nutrical1.3 --name 'Nutrient Calculator 1.3' --version 0.1 --package org.test.nutrical1.3 --minsdk 21 --ndk-api 21 --private /mnt/c/Users/15124/OneDrive/nutcal1/.buildozer/android/app --android-entrypoint org.kivy.android.PythonActivity --android-apptheme u/android:style/Theme.NoTitleBar --orientation portrait --window --copy-libs --arch arm64-v8a --arch armeabi-v7a --color=always --storage-dir="/mnt/c/Users/15124/OneDrive/nutcal1/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a" --ndk-api=21 --ignore-setup-py --debug

    # ENVIRONMENT:

    # SHELL = '/bin/bash'

    # WSL_DISTRO_NAME = 'Ubuntu-20.04'

    # NAME = 'DESKTOP-QQT2PO0'

    # PWD = '/mnt/c/Users/15124/OneDrive/nutcal1'

    # LOGNAME = 'jojo'

    # MOTD_SHOWN = 'update-motd'

    # HOME = '/home/jojo'

    # LANG = 'C.UTF-8'

    # WSL_INTEROP = '/run/WSL/885_interop'

    # LS_COLORS = 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:'

    # LESSCLOSE = '/usr/bin/lesspipe %s %s'

    # TERM = 'xterm-256color'

    # LESSOPEN = '| /usr/bin/lesspipe %s'

    # USER = 'jojo'

    # SHLVL = '1'

    # WSLENV = ''

    # XDG_DATA_DIRS = '/usr/local/share:/usr/share:/var/lib/snapd/desktop'

    # PATH = ('/home/jojo/.buildozer/android/platform/apache-ant-1.9.4/bin:/home/jojo/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Program '

    'Files/WindowsApps/CanonicalGroupLimited.Ubuntu20.04LTS_2004.4.5.0_x64__79rhkp1fndgsc:/mnt/c/Windows/system32:/mnt/c/Windows:/mnt/c/Windows/System32/Wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0/:/mnt/c/Windows/System32/OpenSSH/:/mnt/c/Program '

    'Files/Dell/Dell Data Protection/Access/Advanced/Wave/Gemalto/Access '

    'Client/v5/:/mnt/c/Program Files (x86)/Security Innovation/SI '

    'TSS/bin/:/mnt/c/Users/15124/AppData/Local/Programs/Python/Python39/Scripts/:/mnt/c/Users/15124/AppData/Local/Programs/Python/Python39/:/mnt/c/Users/15124/AppData/Local/Programs/Python/Python310/Scripts/:/mnt/c/Users/15124/AppData/Local/Programs/Python/Python310/:/mnt/c/Users/15124/AppData/Local/Microsoft/WindowsApps:/snap/bin')

    # HOSTTYPE = 'x86_64'

    # OLDPWD = '/mnt/c/Users/15124/OneDrive'

    # _ = '/home/jojo/.local/bin/buildozer'

    # PACKAGES_PATH = '/home/jojo/.buildozer/android/packages'

    # ANDROIDSDK = '/home/jojo/.buildozer/android/platform/android-sdk'

    # ANDROIDNDK = '/home/jojo/.buildozer/android/platform/android-ndk-r19c'

    # ANDROIDAPI = '27'

    # ANDROIDMINAPI = '21'

    #

    # Buildozer failed to execute the last command

    # The error might be hidden in the log above this error

    # Please read the full log, and search for it before

    # raising an issue with buildozer itself.

    # In case of a bug report, please add a full log with log_level = 2

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

    what to do next after linking your app in admob

    Posted: 07 May 2022 01:11 AM PDT

    I have added my first app on admob by linking to the app store , what do i have to do now will it start showing the ads after the review or is there anything else left to do in admob ,right now it is showing 'Getting ready'

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

    Keyboard Handling In Jetpack Compose — All You Need To Know

    Posted: 07 May 2022 12:25 AM PDT

    Hi guys, we published an article to learn Keyboard Handling In Jetpack Compose.

    Please have a look and share your valuable suggestions and feedback.

    https://blog.canopas.com/keyboard-handling-in-jetpack-compose-all-you-need-to-know-3e6fddd30d9a

    If you think we missed something, let us know. We will update it to make it more meaningful for other android devs out there.

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

    Room, Repositories and Coroutines

    Posted: 07 May 2022 03:15 AM PDT

    I've working on my first Kotlin app and a lot of the articles I've read have mentioned that it's recommended to have a repository class between your viewmodel and dao. I kinda get why but it still doesn't help with the fact that I'm just writing boilerplate for the sake of it. One thing that I thought could be useful is I could have the repository wrap all the insert/update/delete stuff in Coroutines so that I don't have to that in the viewmodel every time I want to use one. So instead of doing something like this:

    suspend fun update(items: List<Items>) { itemDao.updateRange(items) } 

    I do this:

    fun update(items: List<Item>){ CoroutineScope(Dispatchers.IO).launch { itemDao.updateRange(items) } 

    }

    Is that a good idea or not? Would it be better to also return the Job like so:

    fun update(games: List<Game>): Job { return CoroutineScope(Dispatchers.IO).launch { gameDao.updateRange(games) } 

    }

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

    Is going back to previous fragment good design when going to another fragment from navigation drawer menu?

    Posted: 07 May 2022 02:52 AM PDT

    In apps like Gmail app, when we go different pages from side navigation drawer menu the app exists when back is pressed and doesn't go back to previous fragment as they can be accessed by side navigation menu. I am working on a shopping app which has both bottom navigation menu & side navigation drawer. All main pages like home page, products list, details, orders etc are fragments within home activity. The project manager wants nav drawer to be visible throughout the pages & he wants to go back to previous fragment when I have navigated to another fragment from navigation drawer. The problem here is that it keeps adding another instance of same fragments one after the other. But he says not going back to previous fragments is not good ux. So in his opinion even apps like Gmail are not having good ux.

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

    detect beats in mp3 song.. If I want to detect let's say the drums in a song in a mp3, played using mediaplayer.. how does one detect volume out? i want it to still work if the speaker have been silenced.

    Posted: 07 May 2022 01:56 AM PDT

    Material CalendarView for displaying events

    Posted: 06 May 2022 08:20 PM PDT

    Is there a first party library for Android shows calendar with events? Third party libraries are also welcome if actively maintain and can support Material theme. Thanks.

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

    No comments:

    Post a Comment