Android Dev - Weekly Questions Thread - August 03, 2021 |
- Weekly Questions Thread - August 03, 2021
- AppSweep, mobile application scanning for developers
- How to make a custom SeekBar?
- What does it mean for apps like reddit to have nearby device permission?
- Accessing chrome content provider
- Emulator on Android Studio crashes me and opens crash report but does not show the error
- Android Studio arctic fox blurry preview in XML
- Android Integrated Softphone
- Viewmodels, delays and lifecycle problems
- WorkManager setExpedited (new method instead of foreground service)
- Can someone walk me through how emojicompat works and its implementation?
- ViewModel and Fragment
- Question on optimizing recyclerview/viewpager2 that loads image performance.
- Where to go from here?
- Looking for a bit of guidance on architecture of a project.
- Ffmpeg Library
- Am I too slow on Jetpack Compose codelabs?
Weekly Questions Thread - August 03, 2021 Posted: 03 Aug 2021 06:00 AM PDT This thread is for simple questions that don't warrant their own thread (although we suggest checking the sidebar, the wiki, our Discord, or Stack Overflow before posting). Examples of questions:
Large code snippets don't read well on reddit and take up a lot of space, so please don't paste them in your comments. Consider linking Gists instead. Have a question about the subreddit or otherwise for /r/androiddev mods? We welcome your mod mail! Also, please don't link to Play Store pages or ask for feedback on this thread. Save those for the App Feedback threads we host on Saturdays. Looking for all the Questions threads? Want an easy way to locate this week's thread? Click this link! [link] [comments] | ||
AppSweep, mobile application scanning for developers Posted: 03 Aug 2021 05:29 AM PDT
| ||
Posted: 03 Aug 2021 05:50 AM PDT
| ||
What does it mean for apps like reddit to have nearby device permission? Posted: 02 Aug 2021 12:22 PM PDT
| ||
Accessing chrome content provider Posted: 03 Aug 2021 06:46 AM PDT Im trying to access the browsing history of my mobile browser (Chrome) via adb shell.The command i'm using is: content query --uri content://com.android.chrome/org.chromium.chrome.browser.provider.ChromeBrowserProvider Please correct if i'm wrong, but the string "com.android.chrome" is the name of Content Provider of the Chrome app, and the string "org.chromium.chrome.browser.provider.ChromeBrowserProvider" is a reference to the database table that i'm presuming contains data related to my browsing history. When i run this command i get a "No results found" message in the shell terminal so obviously there's something i'm missing here.Am i going about this the right way? Is my content uri structured correctly? Can anyone provide me some sort of link that can help me out with accessing data specifically from the Chrome content provider via adb shell? If it makes any difference i'm using powershell on windows 10 and my phone is android 10 [link] [comments] | ||
Emulator on Android Studio crashes me and opens crash report but does not show the error Posted: 03 Aug 2021 09:00 AM PDT Can anyone help me with this? I'm now stuck assuming its hardware, but wouldn't make too much sense as it used to work before, and just stopped out of nowhere. Yesterday the whole day, when trying to open emulator on any device, in any api, in any app (including opening just the emulator by itself), I get This crash message. I've tried uninstalling and installing android studio, and didn't work. I ended up fully formatting my pc, and installing AS again. The error persisted in the first 3 runs, and after creating a device running api 28, it shows This error (that I have had before). When I used to see it, I would still be able to run the app, but now it was just a black screen. I found out that even though I installed the latest recommended version of AS, it didn't come with abd.exe. I downloaded the plstform-tools.zip, and when adding everything inside my sdk folder, avd stopped working. I decided to only add instead, the abd.exe file. Avd opened again, but the screen still stayed black. I'm running amd Radeon 7500, so I decided to try an emulator running ARM64. The emulator just loads forever, but never opens up. Right now, when I try to run api 29 or 30, instead of getting the same crash message as usual, I will just get a pop up saying the emulator was terminated, and shows in console log "error while waiting for the device: emulator proccess for avd was killed" I'm at a lost... This is the only pc I can use android studio on. The professor gave us 5 apps due this sunday, and a final exam next week To add: for some random reason, all my installations today and yesterday, did not include an uninstall.exe [link] [comments] | ||
Android Studio arctic fox blurry preview in XML Posted: 02 Aug 2021 08:27 PM PDT | ||
Posted: 03 Aug 2021 05:08 AM PDT Hello all, I have been using zoiper for a while, but it is quite expensive and I don't even use 1/3 of my total devices I'm wondering if there's any native / integrated softphone already in android Thanks for any help you can give [link] [comments] | ||
Viewmodels, delays and lifecycle problems Posted: 03 Aug 2021 04:40 AM PDT I am animating a view in a fragment. I would like to pause the animation when it goes to background and restart it again when it returns to foreground. I also need to show a button with 10 seconds delay in the same screen. How can I achieve it on ViewModel ? We can get the fragment to inform ViewModel about the lifecycle changes like onResume() or onPause() by calling some methods in ViewModel. Or we can use LifecycleObserver. Is there any other way to do this ? Which option would be better for my scenario ? To show button with 10 second delay, we can use Handler in ViewModel. Or use coroutines which would still use Handler internally. I also need to cancel the delay if app goes to background. Is there any other way to handle this ? [link] [comments] | ||
WorkManager setExpedited (new method instead of foreground service) Posted: 02 Aug 2021 01:22 PM PDT Hi all, I want to integrate to my app this new method instead of foreground service because of https://developer.android.com/about/versions/12/foreground-services Android 12 foreground service restrictions. Did you try new setExpedited method for background tasks. Because I tried to use it as suggested. But it throws exception when work manager is triggered. [link] [comments] | ||
Can someone walk me through how emojicompat works and its implementation? Posted: 02 Aug 2021 11:04 PM PDT I've spent about 2 weeks looking at different articles and the little information I can find on youtube but I have no idea what to do or how to implement it. There must be a code already made or something. If there is, I can't find it. [link] [comments] | ||
Posted: 03 Aug 2021 01:12 AM PDT I have a couple of questions regarding viewmodel and fragment as I couldn't find my answers online. Let's assume we have a fragment and inside of it we do: As I understood, here we use the extension method And in Fragment I have:
[link] [comments] | ||
Question on optimizing recyclerview/viewpager2 that loads image performance. Posted: 02 Aug 2021 11:30 PM PDT Hi. I'm looking for ideas as to how I could improve the performance of my code. I need to populate my recyclerviews with data that includes image data, and the loading of images take time. I implemented viewbinding bindingadapters in my recyclerview item layout. Currently in my fragment, I call submitList to my adapter only after receiving all of my data from the server, and even loading 5 profiles takes up to 8 secs on this. I believe I can optimized the recycle view by decoupling the loading of the image from the rest of the data, but I'm not sure how to bind the image if I'm loading it later because with my current implementation I submit the list in the fragment which includes the image bytes data. Can anyone please help me through this? [link] [comments] | ||
Posted: 02 Aug 2021 06:28 PM PDT Hi guys I've been taking computer engineering in college and I'm in my 5th semester last semester I took mobile programming in android studio since then I've been dead set on getting a job in the field I enjoy it very much I'm just gonna finish my degree since it's a 6 semester program but so far in android I've made tons of apps and I'm comfortable using rest apis getting them using okhttp, fragments or activities, json parsing and some material design aspects also I'm a java programmer is kotlin that much different? What should I try to learn next to make myself a better programmer? [link] [comments] | ||
Looking for a bit of guidance on architecture of a project. Posted: 02 Aug 2021 01:33 PM PDT Hi all, hope this isn't breaking rule 2. I'm just looking for a bit of architecture guidance. I have a decent amount of experience in front/backend web dev and this is my first forray into the android world. I am looking to develop an IOT application that records video and then performs a bit of computer vision analysis on the video as it records. The results of recording would be logged into a local database/webserver which should be remotely accessible. Eg, bird appears to the camera at 1:00:00 gets written into the database. I can then remotely access the android device thru it's IP to review database results (as to prevent constant data transfer over the network.) In an ideal world I'd just run two docker containers on the device but obviously that isn't possible and I'm having a bit of trouble wrapping my head on what the Android OS will allow me to accomplish. Is it going to be better architecturally to try to jam these into a single APK or can I get away with two background processes? Can I set a cron or systemd process in android? These applications would need to run 24/7/365. Any guidance is appreciated. [link] [comments] | ||
Posted: 02 Aug 2021 09:49 AM PDT Is there anybody who has worked with android Ffmpeg library I've been searching a lot on internet but cannot find a good also my job depend on this task so please if u can help I'll be very greatful to u. [link] [comments] | ||
Am I too slow on Jetpack Compose codelabs? Posted: 02 Aug 2021 09:46 AM PDT I have been learning Jetpack Compose using the android developers Jetpack Compose codelabs for a few days now and it seems like there is no way I can match the remaining time at the upper corner of each tutorial. I Just want to know if I am way to slow on learning those new stuff and something is wrong with my learning curve (might be getting old for these stuff?) or is there something wrong with the 'remaining time estimation'. I just can't keep up with the estimated time remaining. All comments will be highly appreciated, including those that will say that they finished those codelabs before the time estimation. [link] [comments] |
You are subscribed to email updates from Developing Android Apps. To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google, 1600 Amphitheatre Parkway, Mountain View, CA 94043, United States |
No comments:
Post a Comment