• Breaking News

    Sunday, August 16, 2020

    Android Dev - My personal helper library for easy Android development

    Android Dev - My personal helper library for easy Android development


    My personal helper library for easy Android development

    Posted: 16 Aug 2020 03:44 AM PDT

    Hey folks, I'm sharing my personal library that I use in every project of mine, it has things found working from StackOverflow to things I've written personally to take shortcuts, copied some from Github and modified them to work as intended just to make the Android development easier.

    GitHub link

    It lacks documentation at some places, but the methods are quite self explanatory, feel free to contribute or to use it in your projects, pull requests are welcomed as well as if something doesn't work feel free to open an issue or if you find your code add headers/credits that's yours and make a pull request.

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

    2020 August 16 - Weekly happenings in Android Dev Community - Featuring Articles from Chinese, Japanese and English Developers.

    Posted: 16 Aug 2020 08:17 AM PDT

    Contents

    • Articles
    • Podcasts
    • Open-source Projects
    • Discussions

    Read: https://github.com/androiddevnotes/android-dev-weekly/blob/master/notes/issue-3.md

    Open at Github. Thank you for Reading : )

    by androiddevnotes on GitHub

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

    9 - 15 August Android Newsletter

    Posted: 16 Aug 2020 03:45 AM PDT

    Stay up to date with Android development, in this week's edition:
    🤓 AndroidX and Jetifier
    💅 Best 25 resources of this summer
    💡 Github actions tips and tricks
    🚿 Kotlin Flow as a replacement for RxJava
    and much more!

    🌟 Featuring @iateyourmic @mmbialas @elye_project @su____ji @cortinico @Piwai @eskat0s

    💚 Enjoy and subscribe
    https://vladsonkin.com/android-newsletter-7/

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

    Camera2 recording start stop times

    Posted: 16 Aug 2020 08:12 AM PDT

    Hi guys! I was looking for suggestion regarding how to reduce the delay between 2 cameraRecordSessions. My use case involves continuous recording but in 1min chunks.

    I've used mediaRecorder for the video capture and I'm able to get the delay between record sessions to a few milliseconds... but I'm not able to make it look seamless.

    Is this even possible?

    thanks in advance!

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

    Unauthorized Use of Copyrighted Content policy - Google Play Store

    Posted: 15 Aug 2020 11:56 PM PDT

    Earlier this week I submitted an app on the Google Play Store for review. The app is about movies and you can search the database for movie titles, trailers, ratings, reviews, etc.

    I have given fair attributions to any open-source material that I have used in the app. However, the app was rejected based on non-compliance with the copyright content policy.

    The only thing that comes to mind is that I have used the IMDb icon for showing the IMDb ratings. It isn't event the official logo, just an icon made with sort of the same design. I have seen the IMDb icon used in several apps before without attribution.

    I have contacted the customer support but they haven't replied yet. Can anyone please help?

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

    Publishing a cheat app for a game on google play

    Posted: 16 Aug 2020 05:28 AM PDT

    It says here that it's not allowed to publish a "Game cheating apps that affect the gameplay of other apps."

    So... is publishing an app that provides a PUBLIC information about your opponent in a specific game allowed?

    • The app won't guarantee you a win, it's just gives a valuable information
    • The information I provide is public and anyone can search for it
    submitted by /u/NezarAli
    [link] [comments]

    Rewarded Video RPM crashed

    Posted: 16 Aug 2020 01:37 AM PDT

    I have a rewarded video ad in my game, as off the past few days, the impressions have gone way up but RPM has dropped off a cliff, so although I'm getting more impressions, I'm making less than I was before. Is anyone else having the same thing happen?

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

    Fullstack Spring/angular developer wanting to switch to android, I need tips

    Posted: 16 Aug 2020 01:27 AM PDT

    Hello, so I'm nit new to android, I've used it back in college and I gitta say it's the most fun I had, I love java and everything related to it, I haven't started learning kotlin but I'm aure I'll get the hang of it easily.

    At my current job I'm a full stack web developer and my current company only used react native and flutter for ther mobile projects and I'm afraid that most companies do as well, I really hate JavaScript/typescript so going the reactnative route is not for me, I want native android development, I know the difference between the two approaches from a quality and financial standpoint for companies, I really want to do this, because whenever I'm vored or I think of an idea it's always on android and i just take note of it and think if there's a way to do ot on the web and I ended up forgetting about it.

    Have anyone here switched from web to mobile and how lng did you wait to find a job and do you work just with java/kotlin or do you use js frameworks?

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

    A backstory, history and interesting details on Google Play Services for Android

    Posted: 15 Aug 2020 09:31 AM PDT

    A backstory, history and interesting details on Google Play Services for Android

    Introduced in 2012, Google play services is an API framework provided by Google on top of Android.

    https://preview.redd.it/1q8k8vlbhbh51.png?width=465&format=png&auto=webp&s=7287b10b5ebe28cd9a16f4b339315a4fda5a9920

    Internally called GMS Core, Play Services is primarily backed up by Google servers.

    Providing access to Google Drive, Google Cloud Messaging, Google Pay, Google Play Game Services as well as APKs for core background services such as GoogleOneTimeInitializer, SetupWizard, GooglePackageInstaller and many more of them, it is a way for Android Developers to get Native Android Development experience to talk to Google Backend servers and stuff that's run by Google.

    Prior to Play Services' existence, you would go directly to Google Servers and communicate with REST APIs and do JSON parsing yourself. A lot of effort and a lot of low-level mechanisms Android Developers would struggle with.

    One of the few things that Play Services made available is that you don't have to do JSON parsing yourself, you get a nice JAVA data structure to deal with.

    Another cool thing is adding Offline writes, so if you want to write something to the cloud you call API in play services and it stores in local device database for you and gets to cloud as soon as the network constraints are satisfied. If you are offline or have a bad network, play services will handle retries.

    Play Services is delivered through Google Play Store, so updates to plugins or libraries can happen on regular basis and the Android Team can update the implementation details of the code on devices that do not get System Image Updates. The OS itself is not updated but only the Play Services on the fly.

    https://preview.redd.it/9jyokpwchbh51.jpg?width=1080&format=pjpg&auto=webp&s=ffd96aab3d4bda667154e52bd3e0a05d4413c8c9

    What makes it to Google Play Services? 

    https://preview.redd.it/3cqsi0xehbh51.jpg?width=1080&format=pjpg&auto=webp&s=3f7302731287e74db416df0e945bd2e336661fe1

    The primary goal is to put things backed by Google Services. So something like Volley, RecyclerView libraries won't be added to Play Services as they are not specific to Google services.

    How does the communication work between an Android App and Play Services? 

    https://preview.redd.it/o22kiynghbh51.png?width=1920&format=png&auto=webp&s=c453be7c3eddc43b1850fb87097c5c6d4526ab65

    The Android app and services run in separate processes for security, stability, and memory management reasons, but they need to communicate and share data. This is where the Binder mechanism is used.

    The Play Services library primarily sets up the IPC link between your application running in your process and the play services application running in a separate process and then API calls are made that go through Binder across to the implementation running in Play Services process.

    https://preview.redd.it/6idl3kfjhbh51.png?width=816&format=png&auto=webp&s=50fe2e0f0ef628bdc955049e44e2827fd0c6dc5a

    Google Play Services APIs primarily are set up to be asynchronous.

    What is the MIN SDK Version for Play Services? 

    https://preview.redd.it/vxf0i5yhhbh51.png?width=3000&format=png&auto=webp&s=f368e8d9c071f3838a980f3758e0a11fbab2ff19

    In 2014, the Play Services had support up to Ginger Bread, Version 9. In 2020, the support seems to be up to Jelly Bean. Older Versions of Android are locked to the last Play Services version that they support.

    Exploring the case of Closed-source, OEMs, and silent updates. 

    Getting LG, Samsung, Xiaomi, and the other OEMs to update their devices to the latest version of Android is difficult. By the time the OEMs get the new version, port their skins over, ship a build to carriers, and the carriers finally push out the over-the-air update, users are restrained from experiencing the latest versions.

    If the device isn't popular enough, this process doesn't happen at all. Updating a phone is a massive project involving several companies.

    Since it's really hard to push out an Android update, Google's solution is to sidestep the process completely with Play Services.

    Play Services has lots of permissions. It's kind of a system-level process. Play Services constantly runs in the background.

    https://preview.redd.it/v10jd3gkhbh51.jpg?width=1080&format=pjpg&auto=webp&s=156c09bd7e53afec0571853cfdf76922faf3bf6f

    Play Services has its' own update mechanism that the user cannot control. The whole point of the Play Service update is to not let the end-user know about its' updates.

    Original equipment manufacturers are not allowed to modify the Play Services. It's not open source as it is part of the Google package.

    When you can update services without having to update a System Image, it is a win-win for end-user and Google and the OEMs.

    https://preview.redd.it/b27xrkglhbh51.png?width=1080&format=png&auto=webp&s=b052f7087ceed21390d1e52a8fb4bc962985882b

    Play Services is only available to smartphone OEMs through a license with Google, which OEMs need to apply for once they pass the Android Compatibility Test Suite and Google Test Suite on a per-device basis.

    Since the inclusion of GMS and GMS Core is behind a license, and practically all major apps have grown to be reliant on Play Services and its APIs for many of their core functions, Google retains complete control of the Android ecosystem despite Android being open-sourced as an OS.

    It is likely that, as an Android user, not in China, you cannot practically use Android without Google, given that you would lose out on Google Sign-in, Admob, Google Maps, nearly all Google Apps.

    One of the popular alternatives though not complete replacement to Play Services is the Micro G project. It is the re-implementation of Google's proprietary Android user space apps and libraries.

    https://preview.redd.it/8q33m3kmhbh51.png?width=1080&format=png&auto=webp&s=0b207718b499087660076c3dfb2a4ed3c3b16e35

    On an ending note, Google Mobile Services is a collection of Google applications and APIs that help support functionality across devices.

    These apps work together seamlessly to ensure your device provides a great user experience right out of the box and this also means Google has full control over each and every Android Phone despite the open-source.

    by androiddevnotes 

    at Twitter

    Open-source: 

    at GitHub

    YouTube Video by androiddevnotes: 

    https://www.youtube.com/watch?v=C2jeQVVZmAU

    Article for Medium Users by androiddevnotes: 

    https://medium.com/androiddevnotes/google-play-services-under-the-hood-android-3b781d325309

    References: 

    Android Developer:https://developers.google.com/android/guides/overview

    Arstechnica: https://arstechnica.com/gadgets/2013/09/balky-carriers-and-slow-oems-step-aside-google-is-defragging-android/

    Wikipedia: https://en.wikipedia.org/wiki/Google_Play_Services

    Binder: https://www.youtube.com/watch?v=Jgampt1DOak

    XDA: https://www.xda-developers.com/huawei-hms-core-android-alternative-google-play-services-gms/

    Android backstage podcast: http://androidbackstage.blogspot.com/2014/02/tor-norbye-and-chet-haase-are-joined-by.html

    Thank you for Reading : )

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

    How do I reset a value in Firebase Realtime Database at a specific time?

    Posted: 15 Aug 2020 08:35 PM PDT

    Let's say I have key/variable in my database where I want to reset its value to 0 everyday at 12:00 AM. How do I do this? I need to do this for my Android application.

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

    Android Vitals - Why did my process start?

    Posted: 15 Aug 2020 08:45 AM PDT

    Is it possible to have Language files in the OBB file and dont show up in the game/app?

    Posted: 15 Aug 2020 05:18 PM PDT

    First lf all, i am not understand coding, i just want to know how can that be happen. I do have a lot of different language folder in the OBB>data>language folder. There are lots of them,so i start the game then i go to the options after change language and there is only 5 of them and i need my language in the game to show up. But it wont. I searched the codes if there is maybe a code like: showing up only 5 Specific language but no.. I also did edit on english language (which is the default language in the game) to my language hoping that will work. No doesnt work at all.. When i started the game it is just redownloaded the resources. Anyone of you guys can help me with this if there is a solution?

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

    Setup a native GPS driver inside a B&N Nook touch

    Posted: 15 Aug 2020 08:15 AM PDT

    Setup a native GPS driver inside a B&N Nook touch

    https://preview.redd.it/dg8lcfqjn6h51.jpg?width=750&format=pjpg&auto=webp&s=6047c43c08adfd29c5e4f0fe8811176744eca946

    Hi guys, i'm here to asking for help.

    I have modded a B&N Nook touch into a E-ink GPS topographic's map (project link).

    It's working but my GPS solution use the UsbGps4Droid (app who translate the data from UART port to the android mock location). Little bit sketchy.

    So it's not really perfect and i would like to setup this :

    https://github.com/dipcore/gps-glonass-android-driver

    Actually i have followed the process and setup my build.prop and put the gps.default.so file in /system/lib/hw/ I think i'm done on this part but i don't know how to enable the GPS service on the OS because the option is not existing in the settings, also the adb shell command seem not work well.

    Any ideas ?

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

    Push notification to restart the app

    Posted: 15 Aug 2020 10:16 AM PDT

    I'm using a library for geolocation to be able to record the position of a car. This library uses geofence and other feature to wakeup the recorder when the car starts moving. Everything works fine and I'm able to record the positions of the cars even for weeks. However, after a while, the recording stops until I manually restart the app.

    I know that this is the Android framework that whatever you do can decide to kill your app.

    My question is, would the handling of a push notification wake up the app and put it in the state where it was before the framework killed it, or would the framework kill the app again after the handling of the notification terminates?

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

    Android Development close range data exchange.

    Posted: 15 Aug 2020 01:47 PM PDT

    So i have been looking into close range data exchange. Trying to exchange some strings and variables between close ranged devices.

    I have been looking into Google Nearby Connections But that doesnt really seem optimal since i need both devies to Look for devies and Advertise itself to other devies.

    And for it to be limited to a closer distance between phones like when two phones touch.

    How would you people do something like this?

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

    New to development. Don't know where to start.

    Posted: 15 Aug 2020 08:52 AM PDT

    Hello everyone.

    I have had an idea for an app. And I am completley green when it comes to app development, but I'm a keen "skills collector" so wouldn't mind learning how to do this. (the end product for me is just the bonus) where would I start?

    I am looking to create basically a "control" surface similar to the likes of game glass or touch portal, or any of the "game controllers" but for a specific game, with unique, specific graphics (animations would be a plus. All I would need (yeah I know it's probably not a simple endeavour) is to have custom graphics, trigger keyboard inputs. (analogue control would be a bonus) does anyone have any idea of where to start learning / app builder for someone so new? I appreciate your time. Thank you.

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

    Learn Java REST API in 10 minutes

    Posted: 15 Aug 2020 12:06 PM PDT

    Can I use my android as wired camera ? (i.e. as a slave UVC)

    Posted: 15 Aug 2020 10:20 AM PDT

    {HELP}
    Hey from what I found I can't use my andoid phone as a wired camera. Correct me if I'm wrong but the PTP connection tranfers images only, while the general work around is to use droidcam (closed source) or another app that streams over the Wifi. I don't want to stream over the wifi for the efficiency and the quality. I'm happy to stream over IP in the case of a ethernet over USB connection. but couldn't find an out of the box solution. Do you think there is a chance of success in that direction? do you have tutorials or reference readings I should start with ?

    I'm planning to use that phone only as a camera. It will be plugged at all times to a USB cable to my computer (linux). If I get it right, I'm trying to pair my android as UVC (USB Video device Class https://en.wikipedia.org/wiki/USB_video_device_class). the wikipedia article just above says that android as of 10 doesn't support the UVC's but I guess that's for slaves UVC when the phone is master. I want my phone to be a slave UVC. is there a chance to do that ?

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

    No comments:

    Post a Comment