• Breaking News

    Friday, December 13, 2019

    Android Dev - Weekly "anything goes" thread!

    Android Dev - Weekly "anything goes" thread!


    Weekly "anything goes" thread!

    Posted: 13 Dec 2019 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]

    Can I use affiliate links to products in my app?

    Posted: 13 Dec 2019 05:18 AM PST

    I have a fitness app and I was wondering if I could display my own custom ads instead of using Admob to show fitness related gear on Amazon like "Runners", "Treadmills" etc. Clicking on these would use an affiliated link.

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

    For novice developers, short list of websites to promote your apps and the reasons you should make apps with original source code

    Posted: 12 Dec 2019 07:44 PM PST

    As you well know it's extremely tough to get your game or app noticed. Here are some forums outside of reddit that you can post your apps. Make sure to read the rules before posting so you do not get filtered as SPAM. When I have time from my busy schedule, I will put together a marketing guide.

    I suggest you practice marketing on your own and not depend on Googleplay for traffic. Once the Index issue is solved, another issue might take place, not that I want that but it seems to be obvious . Thats why I highly encourage you to develop your apps with original source code.

    I do not agree with everything Google does despite some developers that may think so. I honestly hope that Google makes a complete stop to thier plans of banning repeat source code. I actually am against it because it has been tested and proven that sending bots to report and ban repeat source code does not fully work. The reason being is because frameworks or libraries for example any app made with LibGdx would be flagged and banned because of repeat code. That would be a nightmare for all indie developers. So I am 100% against that idea I feel it should be done manually.

    https://www.xda-developers.com/

    https://androidforums.com/forums/android-apps-games.4/

    https://forums.androidcentral.com/

    http://www.droidforums.net/forums/

    http://forums.indiegamer.com/

    https://forums.tigsource.com/

    https://www.indiedb.com/forum

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

    Can't publish my app on the PlayStore because of an infinite loop

    Posted: 12 Dec 2019 03:05 PM PST

    Can't publish my app on the PlayStore because of an infinite loop

    EDIT: I fixed it! The problem wasn't the warning but something about whether the app was directed to children or not. I answered some questions and the problem got solved. Thanks to everyone who helped in the comments!

    The problem goes like this:

    My app got deleted when the policies where updated so that every app needs to support 64 bits and because I had some issues where I handled ads incorrectly. So to fix this, I decided to remove the ads and make it 64 bit compatible. When I tried to publish the new app, a warning popped up saying that it isn't compatible with every device it was compatible with before. I checked and out of the 12934 that were compatible before, there's 12933 that are compatible now. That's right, only one device isn't compatible. That one device won't let me publish my app. So I decided to do what the warning said and include the previous release in the new one (I still don't get that). And guess what? The old release isn't compatible with 64 bits! So I can't publish it that way either! So what do I do now? Any help is appreciated.

    https://preview.redd.it/bq681zkktb441.png?width=1275&format=png&auto=webp&s=d2eff13a3a9178a30892a3e207e0a3f07ed810ec

    https://preview.redd.it/hvbtjxkktb441.png?width=1274&format=png&auto=webp&s=e57c897111efa91dcf07d1cfcfa56e83cb121c43

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

    Admob earnings suddenly shoot up

    Posted: 13 Dec 2019 08:08 AM PST

    Today one of my app showed only 10 impressions of rewarded video ad and without any click I got $13. Any one ever had this kind of experience?

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

    Coordinators on Android: how to build flows quickly with reusable screens

    Posted: 13 Dec 2019 12:06 AM PST

    [New Grad EU] Goals to break into the industry

    Posted: 13 Dec 2019 08:11 AM PST

    TL:DR;

    What should i aim for to get a job as recent grad in android dev ?

    I live in a decent Tech hub in the EU ~150 android and ~160 ios open positions averaged between (LinkedIn/indeed).

    Background

    • Finished college recently and i wanted to go into android when i started doing mobile in my 2nd last semester
    • After seen the requirements and a dozen rejections i figured i should focus on something i can start after college so i can start working
    • With new years coming soon i wanted to give it another try
    • I have a decent portfolio of web apps, IoT and Embedded programming projects
    • I found not much is expected from new grads so i figured id just focus on leetcodeing and do android if it works and i get in great if not ill go into web or something while i work my way towards android or ios

    Questions

    What do i need to know to get in ?

    Do i need to know things like Dagger 2, RxJava,Retrofit ? Every job posting i see asks for those.

    Should i upload all relevant android projects to my GitHub or is that not important ?

    I've had one engineer look at my GitHub for my interview and we ended up connecting on LinkedIn after (i took up another offer that ended up being bad long story, hence why i dont work with him now)

    Project/s

    Ive made a few clone apps, some basic apps in college calculator, web scraper etc

    The notable ones i have on my cv are:

    Arduino robot, controlled via android app and Bluetooth(BLE)

    Speed calculator, you can measure the speed at which you and the device is traveling, this data is displayed and graphed on screen (i made this app was to learn to use threads since data is graphed live and you can pause/resume the app)

    i wanted to make a another app and publish it on the play store just to have something that would look like a production app, would that be a good idea or should i just make smaller apps and keep learning android and the SDK that way ?

    --General req--

    Database

    Login

    Find free UI kits/assets and credit them ofc

    --User App--

    Track package by drivers phone location

    Reschedule delivery + maybe have a limit/restriction for this feature e.g cant reschedule when delivery is expected in 2 hours etc

    See when delivery should arrive aprox. Use google maps api ? maybe ?

    --Driver App--

    scan package, QR code reader etc

    take a picture of parcel when delivered for confirmation + maybe use location stamp for this also to prove where it was taken ?

    this is then sent to notify the user, use a notification for this

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

    Where is the eval javalike code function in Android or how could you build one?

    Posted: 13 Dec 2019 07:32 AM PST

    Similar to in a jvm you can use javassist to compile new classes at runtime and they are equally efficient as if compiled before jvm started.

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

    Help with 'signatures are inconsistent'

    Posted: 13 Dec 2019 06:18 AM PST

    Hello, everyone,

    Back in the day I developed an app. I would connect my phone to the desktop
    and click 'Run' button to test it. I would not have any configurations
    for signing and keystore defined. When building the app for release I would
    use a keystore that I set up for this particular application.

    Now I have a new laptop and installed Android Studio (newer version than I used previously)
    and I want to re-fresh the app by building it from scratch but using the same package
    and keystore, so that when I push an update, users wouldn't lose the data that's currently stored on the phone.
    However, when I try to test that the data is still there - when I click 'Run' AS tells me signatures
    are inconsistent and tells me to uninstall the app first (which will result in data loss).

    So, anyone has any idea on how I could make this work? Does AS use some default keystore/signature
    when clicking 'Run' and now that I'm on a different computer/project - it uses another default signature
    that does not match what my old one was installing the app with?

    Any help would be very appreciated.
    Thank You!

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

    First freelance project - workflow advice

    Posted: 13 Dec 2019 06:04 AM PST

    So I have what would be my first freelance side project starting soon. I have never worked in a dev environment, so I could use some advice on what my workflow should look like. For those of you that have professional and/or freelance experience, what does your workflow/organizational process look like on a new project? Right now, I'm planning to use GitHub, Asana for tracking progress/tasks and Figma to sketch out the layout, which I will then send to the client for approval.

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

    Should you always default to using Constraint Layout?

    Posted: 12 Dec 2019 06:25 PM PST

    When is it right to use Constraint Layout and when are you better with just using another layout? I know that Constraint layout is best when there are a lot of nested views, but if the view hierarchy is flat are there any benefits? A lot of my coworkers just default to using constraint layout for everything without even giving it a second thought.

    submitted by /u/curious-lepoard-227
    [link] [comments]

    Where to create Data Repository on MVP?

    Posted: 13 Dec 2019 12:21 AM PST

    Hi, I'm developing an app using both the MVP and the Repository patterns. I'm using Realm as an offline-first database and to initialize Realm I need to set the app context. For this I've created the Repository constructor that takes context as a parameter. Then I can just call a method inside the repository that initializes Realm.

    The problem I'm facing is this: If I create the repository in the view (main activity), am I not using model logic in the view? Otherwise, if I create the repository in the presenter, the presenter is being aware of the context, then I'm using view logic in the presenter.

    How am I supposed to bypass this?

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

    Error forcing me to use deprecated coroutine call adapter in latest app compared to previous app

    Posted: 12 Dec 2019 11:51 PM PST

    The first application is working well with coroutines, didn't have to add the coroutine core dependency, obviously no need for the deprecated coroutine call adapter. However, for the application I just made, it wouldn't recognize deferred without introducing the coroutine core dependency. Furthermore, it's giving me this strange error when trying to run my network call:

    java.lang.IllegalArgumentException: Unable to create call adapter for kotlinx.coroutines.Deferred<retrofit2.Response<com.example.catquotes.model.CatLink>>

    The calls worked after I added the call adapter dependency and added it to the retrofit builder. Afaik, the call adapter is deprecated so it shouldn't ever be needed. It gave this error without it.

    Here's the src code for the project that I'm doing where the issue of the coroutine dependencies is occurring: https://github.com/giancarlogatti/CatQuotes/tree/master/app/src/main/java/com/example/catquotes

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

    Securing Jetpack Compose

    Posted: 12 Dec 2019 11:31 PM PST

    Emulator embedded view in Android Studio 4

    Posted: 12 Dec 2019 12:17 PM PST

    During the kotlinconf they showed the new Android Studio 4. Emulator seemed to be embedded in a view internal to Android Studio 4. Is this feature already present in current canary? It seems not to me

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

    What's going on with all this google play store hate?

    Posted: 12 Dec 2019 10:49 AM PST

    Hey everyone So I've taken an android class at my university and am hoping to understand what is going on with all this hate towards google play store (and apparently some accounts just being outright deleted?) can someone give me an article to read or some insight? I want to develop and publish some apps but this stuff has me kind of skeptical if I should even do it because it has a good chance of being cut.

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

    Android Auto media question (NOT about video on the headunit...not exactly anyway).

    Posted: 12 Dec 2019 01:26 PM PST

    Let me preface this by saying that I'm fully aware that AA doesn't allow video playback. Let me also say that, while I've been developing Android apps for nearly a decade, I've never written an Android Auto app before. I'm looking for a little advice before I waste my time starting a project something that may be impossible.

    I have a low-res Bluetooth (yes Bluetooth, not wifi) license plate camera that I mounted on my cars front plate to use as a parking cam a few years ago. It's paired to an app that I created which allows me to launch the app and immediately load the video feed. It works well, but it still requires picking up the phone and loading the app when I park, which can be distracting.

    I'd like to push the feed into a new Android Auto app. Again, I'm FULLY AWARE that AA blocks video, so I'd like to instead do a video -> image conversion and display the feed as a 3-5 fps image slideshow. No audio. No movement. Just a rapid rotation of photos. The low "frame rate" should be more than sufficient when parking a car.

    Because I'm not familiar with the mechanisms that Android Auto uses to block video, does anyone know whether an image slideshow would trip those mechanisms, or whether this type of app is even possible to write in that environment? It was a trivially easy app to develop for the phone, but I know that Google has gone to great lengths to keep video off the headunits.

    I'll be diving into the AA developer docs here shortly, but I thought the community might be able to give me a pointer or two before I get too deep. Am I wasting my time?

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

    My first attempt at using Fragments - I'm a little confused as to how I'm meant to scale the layouts so that they'll fit on various screen sizes.

    Posted: 12 Dec 2019 10:16 AM PST

    In the past I've always written simple apps whereby each activity is associated with a single layout. That is, the app I'm working on consists of 2 linear layouts - player 1 and 2, displaying various strings such as name and score, hi score etc... and in between those two linear layouts is a custom numerical keypad, built using a table layout, then populated with buttons. These 3 layouts are split equally, each taking up a third of the screen size vertically. I've been developing the app solely on a 10.1" tablet, the phone version will be far more condensed.

    Anyway, I now wish to make these 3 layouts their own Fragments. That seems sensible doesnt it? I will be reusing them elsewhere in the app and re-arranging them and scaling them to different sizes.

    So my plan is to first create a KeypadFragment class with a keypad_fragment xml layout. Where do I start with my design?! I have a totally blank canvas. How big do I make the keypad? Do I just drop in a Tablelayout and set it to match_parent and create a keypad which takes up the whole screen and then use some code elsewhere to squash it down to size, depending on what screen size the app is running? Or should I be setting it to a fixed, calculated size, and have to make multiple versions of the Fragment for each given screen size?

    I hope that makes sense. I have asked this question twice in r/learnprogramming and no-one has replied to me.

    Thank you.

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

    5 Essential Android Techniques for 2020

    Posted: 12 Dec 2019 11:32 PM PST

    Developing for mobile? Don't forget to do this! (Android/Google Play)

    Posted: 12 Dec 2019 09:24 PM PST

    Looking for design advice

    Posted: 12 Dec 2019 01:45 PM PST

    Hello everyone

    First of all, I'm not sure if this should be posted here but it's the best subreddit I could think of for my question.

    I recently published a drinking games app which contains currently 5 games. I'm looking for some design advice because I'm not that satisfied with the design myself. But since I'm not the best at front-end I'm not really sure how I could improve the design.

    It would be very helpful if you guys/girls could take a look at the design and tell me what you think could be improved. Someone is already creating new images for the Games list view in the app, so don't worry about the images there.

    Images of the app can be found here: https://imgur.com/a/GmntbmB

    If you would like to check the design on your own phone you can download it here: https://play.google.com/store/apps/details?id=me.parastyle.dripsy

    Thanks in advance!

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

    Only 75% fillrate on my banner mediation.

    Posted: 12 Dec 2019 12:11 PM PST

    Hey, I use the IronSource mediation network for my banner ads but only getting a 75% fillrate. I use IronSource, InMobi, Amazon, AppLovin. Thought about setting eCPM floors because I have a total eCPM of 0.06$ but this will decrease my fillrate. Can't use AdMob or Facebook because I'm banned on AdMob and failed the quality check on Facebook. Is a fillrate of 75% normal? Any other suggestions how I can make money with the banner ad space in my app?

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

    No comments:

    Post a Comment