• Breaking News

    Friday, February 14, 2020

    Android Dev - Weekly "anything goes" thread!

    Android Dev - Weekly "anything goes" thread!


    Weekly "anything goes" thread!

    Posted: 14 Feb 2020 04:40 AM PST

    Here's your chance to talk about whatever!

    Although if you're thinking about getting feedback on an app, you should wait until tomorrow's App Feedback thread.

    Remember that while you can talk about any topic, being a jerk is still not allowed.

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

    RxJava 3.0.0 final is now officially out and available on Github

    Posted: 14 Feb 2020 07:09 AM PST

    Does Google Play Pre-launch report impact discoverability?

    Posted: 14 Feb 2020 01:10 AM PST

    I've recently noticed my app crashes in a few scenarios tested in Google's pre-launch report. I did fix that crash, and have quite a few warning related to accessibility. I'm now wondering - Does this report generate a hidden metric which impacts how google promotes my app in suggestions, search results etc?

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

    Issues in Android documentation. How to contribute?

    Posted: 13 Feb 2020 08:55 PM PST

    Hi everyone 👋

    I found few issues in commands in documentation to battery historian: https://developer.android.com/topic/performance/power/setup-battery-historian

    Does anyone know is there a way to report them somewhere or to someone?

    The issues are:

    1) In the last steps there is command:

    docker --run -p port_number:9999 gcr.io/android-battery-historian:2.1 --port 9999

    Which a) uses 2.1 version, when in the beginning it shows 3.0 b) uses "--run", which won't work, as just "run" needed.

    As a workaround need to ignore this line and use:

    docker run -p port_number:9999 gcr.io/android-battery-historian/stable:3.0 --port 9999

    2) Dump battery stats seems redundant

    adb shell dumpsys batterystats > [path/]batterystats.txt

    It for sure was used in old times, but from the doc we now should use adb bugreport, and resulting batterystats.txt seems not used. I'd either remove that or added explanation on why it is needed

    3) Getting bugreport in 7.0 or higher is written as:

    adb bugreport > [path/]bugreport.zip

    It is incorrect. One would expect to get bugreport into bugreport.zip, but actually what you'll get is bugreport zip file with autogenerated name and result of executing command in your bugreport.zip (which will be corrupted as it is not really a zip). Correct command is without >

    adb bugreport [path/]bugreport.zip

    This is if you want to provide file name. But easier to use just:

    adb bugreport

    And name will be generated automatically and unambiguously.

    It would be great to have some PR system for docs (if Android team can't keep them fresh), because such a number of issues on one page is embarrassing.

    But at least maybe there is some channel where we can communicate issues for them to be reviewed and fixed?

    PS: many years ago there was a python script which was processing batterystats.txt into html. Now one have to setup docker (instead of this to be integrated e.g. into Android Studio), sigh

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

    Why did we move away from Navigation Component?

    Posted: 14 Feb 2020 05:23 AM PST

    Written an article on Kotlin Bytecode. Suggestions, feedbacks and edits welcome!

    Posted: 14 Feb 2020 06:32 AM PST

    I just can't anymore need help with ryzen

    Posted: 14 Feb 2020 04:57 AM PST

    I just can't anymore need help with ryzen

    I been troubleshooting my pc i tried everything it keeps telling me to install intel haxm but i can't please anyone help me

    https://preview.redd.it/37djejr10wg41.png?width=357&format=png&auto=webp&s=8038ba48eac03a47f454136502e43b16ad2951d5

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

    Microsoft begins charming developers into supporting its dual-screen vision

    Posted: 13 Feb 2020 12:26 PM PST

    Strategies for using Paging Library with offline cache while providing different sorting options?

    Posted: 13 Feb 2020 05:19 PM PST

    It seems to me like the Paging Library just isn't built with this simple use case in mind. Say I have an app that searches IMDB for movie releases. Upon first load, it will fetch the first page of movies (perhaps 50 of the most recent movies) and correctly display them. Then say the user wants to search for the most popular movies of all time. First it will sort the original 50 movies by popularity, and only after these have been displayed will the BoundaryCallback try to grab more from the API. This is clearly a poor user experience.

    Or say my initial search is for movies from June 2019. Then I decide to search for movies from all of 2019. In this case, the Paging Library will show the June movies first (because that's what's in the offline cache), before the BoundaryCallback tries to fetch anything else.

    Is Paging Library just not meant to handle this?

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

    Just finished Advanced Coroutines with Kotlin Flow codelab and I have more questions than answers.

    Posted: 14 Feb 2020 09:01 AM PST

    Feature Graphic in PlayStore not shown!

    Posted: 14 Feb 2020 02:48 AM PST

    So yesterday I released an update of my app but it doesnt show the new feature image.

    To be honest the first feature image wasnt visbile either so do I need to activate something?

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

    An Application to Follow Your Contacts on Instagram

    Posted: 14 Feb 2020 08:44 AM PST

    I am a student and I am trying to learn about android.

    I had the idea of an app that when you tap a button it will automatically follow those who are saved in your contacts.

    Instagram automatically suggests your contacts in its "Discover People" tab.

    I checked the intents but it seems like they only have for sharing images or videos.

    Also, Instagram does not only suggest your contacts but it will add them a flair like: "in your contacts"

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

    Problem with my game engines compatibility with x86_64

    Posted: 14 Feb 2020 07:37 AM PST

    Hello, I've been struggling with this problem for half a moth now.

    I'm not an experienced android developer and the development of my first game is not going as well as I hoped it would.

    As you probably already know, google play now requires your APK to support both 32 and 64bit architectures. My game engine (cocos creator), however, does not support compilation for 64 bit android at all. You can only compile for arm64-v8a, armeabi-v7a and x86.

    When i build the project in the engine, I open an android studio project file inside the build file in AS. I added x86_64 to gradle.properties and build.gradle so AS knows to compile for 64bit.

    I then run "Build APK(s)" in AS and am left with "Android NDK: Check that C:/CocosCreator_2.2.2/resources/cocos2d-x/external/android/x86_64/libz.a exists or that its path is correct".

    I checked the file location and it's missing. In ".../external/android", there are 3 folders and 1 file - arm64-v8a, armeabi-v7a, x86 and Android.mk.

    My question is, how do I add the missing "x86_64" file? What is it even for?

    I don't know if it will help, but here is what the folders contain (they all contain the same files and folders):

    include, v8, libcrypto.a, libfreetype.a, libjpeg.a, libpng.a, libssl.a, libtiff.a, libuv.a, libwebp.a, libwebsockets.a, libz.a

    include: folders freetype, jpeg, openssl, png, tiff, uv, v8, webp, websockets, zlib

    v8 is probably some library on its own, but as I said earlier, I'm quite new to android so I have no clue what it's for.

    edit: grammar

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

    Detecting Memory Corruption Bugs With HWASan

    Posted: 14 Feb 2020 06:46 AM PST

    Somebody pushed the publish button too early?

    Posted: 13 Feb 2020 01:49 PM PST

    How do you organize large amounts of image files?

    Posted: 13 Feb 2020 03:59 PM PST

    Newbie here. I'm planning to make an app which will contain 50+ large image files. Do I have to put them all in the drawables folder? I've read that you can't put sub-folders in the drawables folder. Can I put my files somewhere else and how would I reference them from the activity.

    How do you organize the image files in your apps?

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

    How to reach web-server on android emulator from another device in LAN.

    Posted: 14 Feb 2020 01:27 AM PST

    I know about adb forward but I got another problem. I have started a web-server and now I want to access it using my desktop on the same network. I could not find anything regarding this issue. Can anyone help me ?

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

    Instant-appifying a large mature app

    Posted: 13 Feb 2020 01:50 PM PST

    Why Google Play Applies Violation Rules On "Some Apps"?

    Posted: 13 Feb 2020 11:14 PM PST

    My application was suspended(with no warning) due to trademark things. But there is lots of applications on Google play market which violate trademark rules. Those apps contain brand names in their app name, market title, market description etc.

    https://play.google.com/store/apps/details?id=com.popularapp.videodownloaderforinstagram

    https://play.google.com/store/apps/details?id=storysaverforinstagram.storydownloader.instastorysaver

    and more.., we can see too many examples on market. Why those apps aren't got rejected/suspended by google play? This is not fair.

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

    How can I get the x coordinate of a character in a string inside a TextView?

    Posted: 13 Feb 2020 03:11 PM PST

    Like the title says, I want to get the x coordinate of a particular character of a string inside a TextView. I know I can use View.getLocationInWindow() to get the TextView bounds, but in my case the text inside the TextView doesn't always take up the entire view. Is this possible?

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

    Is it necessary to manually link app with Admob?

    Posted: 13 Feb 2020 10:11 PM PST

    Is linking to admob is necessary/manually? I first time used admob in my game but admob isn't showing.

    Actually I m now using both unity and admob, though unity is priority, but at one point unity ad wasn't showing up then admob should show up. But it didn't. Although with test ads, it was showing. Is there something to do at console?

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

    Best Strategy for Variables Through the Lifecycle of the Application?

    Posted: 13 Feb 2020 08:59 PM PST

    Hello all,

    Disclaimer: I am a noob to Android Development.

    I want to keep a global collection that is consumed and manipulated through out each of my screens. What is the best way to do so? If none of these ways I have found are good, what is the best way?

    I have researched and thought of a couple of options, some of the downside are confusing to me.

    Here is the link I reference: https://stackoverflow.com/questions/1944656/android-global-variable

    Extending the Application

    I think is the best option, but to be sure I want to understand the fault of this option.

    This should not be correct answer as it can lead to unpredicted behavior and to NPE due to memory cleanup In the stack over flow answer.

    Make a Global singleton (Statics get nulled out when VM has low memory??)

    This is a good option too, but they get nulled out when VM has low memory.

    I'm not sure I understand this comment.

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

    "Social" betting app

    Posted: 13 Feb 2020 06:59 PM PST

    Hi,

    I'm making a social betting app of sorts that would facilitate making harmless bets amongst friends.

    It wouldn't facilitate the transfer of money, just aids in keeping track of bets and allowing people to discover and join in on existing bets.

    The app doesn't facilitate online gambling in the same way something like sportsbet or a lottery app does, although I'm not sure if it's a relevant distinction.

    I plan to use an alpha test track and invite the allowed users to be testers as a method of distribution.

    My question is, do you think I will run into trouble with the Play store rules given the nature of the application?

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

    No comments:

    Post a Comment