• Breaking News

    Sunday, November 8, 2020

    Android Dev - Is it possible to host my own notification server and *NOT* use FCM?

    Android Dev - Is it possible to host my own notification server and *NOT* use FCM?


    Is it possible to host my own notification server and *NOT* use FCM?

    Posted: 08 Nov 2020 02:14 AM PST

    Wondering if it is possible to create my own notification server and avoid having to use Firebase. Seems like the universe wants everyone to use Google, and folk happily obliges, but for sake of decentralization I would like to explore alternatives.

    Are there any self-hosted FOSS notification servers for Android that will allow me to send every type of notification that Firebase can?

    Or perhaps a spec so I can (try to) implement one myself.

    submitted by /u/0xDEADB0EF
    [link] [comments]

    Learn the shortcomings of windows floating over other apps on Android. It took me 7 years to go through all of it.

    Posted: 08 Nov 2020 02:53 AM PST

    does anybody know why do facebook messenger request the captive portal page for ?

    Posted: 07 Nov 2020 04:31 PM PST

    1 — 7 November Android Newsletter

    Posted: 08 Nov 2020 03:36 AM PST

    Stay up to date with Android development, in this week's edition:
    😍 View Binding Benefits
    🏗️ Build UI with Jetpack Compose
    🤐 Private library repository
    🤓 RecyclerView & Sealed Classes
    and much more!

    Read it here 👉 https://vladsonkin.com/android-newsletter-19/
    What's your favorite one?

    🔥Featuring @NixonTherRipper @ibrahimsn98 @SG5202 @theDroidLady @RimGazzeh @FMuntenescu and many other great authors!

    💚 Subscribe and receive new editions directly to your email. Weekly, no spam, unsub anytime.
    Here is an example: https://mailchi.mp/1790973b5a2e/android-newsletter-19

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

    Getting File MIME-Type using MimeMagic

    Posted: 08 Nov 2020 06:39 AM PST

    Unable to attach file to Gmail app from my app in Android 11

    Posted: 07 Nov 2020 10:46 PM PST

    Hello.

    I have a logs file that is attached to an email client app when a user wants to contact our support team from within the app.From android 11 it stopped working, so I added a FileProvider which seemed to work.However, since I upgrade the compile Sdk version to 30, it stopped working again.I read that there were some storage changes that were introduced in Android 11, but I couldn't figure out what is it exactly that I need to do know if I want to attach a simple internal (cache or external cache) file (not in shared storage) like a logs file.

    Activity :

    val logFile: File = File(globalContext.externalCacheDir, "MyLogFile.log") fun Activity.openMail( type: String = "text/plain" ): Boolean { val intent = Intent(Intent.ACTION_SENDTO) intent.putExtra(Intent.EXTRA_EMAIL, arrayOf("<some address...>")) intent.putExtra(Intent.EXTRA_SUBJECT, "Android Logs") intent.putExtra(Intent.EXTRA_TEXT, "some text") val uri = FileProvider.getUriForFile(this, "${BuildConfig.APPLICATION_ID}.fileprovider", logFile) intent.putExtra(Intent.EXTRA_STREAM, uri) intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION) intent.addFlags(Intent.FLAG_GRANT_WRITE_URI_PERMISSION) intent.type = type intent.data = Uri.parse("mailto:") if (intent.resolveActivity(packageManager) != null) { startActivity(Intent.createChooser(intent, "Send email via:")) return true } else { return false } } 

    Manifest :

    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> <provider android:name="androidx.core.content.FileProvider" android:authorities="${applicationId}.fileprovider" android:exported="false" android:grantUriPermissions="true"> <meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/provider_paths" /> </provider> 

    provider_paths :

    <?xml version="1.0" encoding="utf-8"?> <paths> <external-cache-path name="external_cache" path="."/> </paths> 
    submitted by /u/Limp_Card_193
    [link] [comments]

    Instagram Like Chat Themes Animation

    Posted: 08 Nov 2020 08:20 AM PST

    I tried to create Instagram like chat theme animation which changes color on scroll.

    Code can be found here: https://github.com/AshuTyagi16/Instagram-Chat-Theme

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

    Final Year Project Database help

    Posted: 08 Nov 2020 07:27 AM PST

    Hi guys, sorry if this isn't the right place to post this, if not I'll remove it. For my final year project , I have to develop an application. At this stage of development we're being asked to set up the development environment. My gut is to use Android studio to develop it but I'm not sure what database to link it to. I've been told either Firebase or MySQL, any advice?

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

    How to create a custom Bottom Navigation Bar in kotlin

    Posted: 08 Nov 2020 07:15 AM PST

    I want to create a custom bottom navigation bar in kotlin. I have scoured the internet and i am yet to see a good material about it. i Would love any materials that can help me.

    The custom navigation i have in mind is one who has bottom margin as well as right and left magin. It doesn't touch the edge or bottom of the screen and it also has corner radius.

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

    Git and GitHub step by step guide tutorial for beginners

    Posted: 08 Nov 2020 06:08 AM PST

    An introduction to Constraintlayout 2.0

    Posted: 08 Nov 2020 05:28 AM PST

    Android biometric authentication

    Posted: 08 Nov 2020 12:23 AM PST

    Hi, I work on an e-payment app and i want to lock app with a finger print or a pin, I look at github and found a lib i edited it to work with my code but its only uses pin and i cannot add a biometric to it i tried but not succeed. Does anyone know how to do it or know a working libraries have both ?

    The library work by making a parent activity and all activities on my app must inherit from it, is this the best way

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

    View layout shows up as expected in Design view, but emulator isn't using the full screen length (image inside)

    Posted: 07 Nov 2020 08:03 PM PST

    This is a screen grab of the emulator (left) beside the design view.

    https://imgur.com/7tiwZCY

    The design view fits the background over the entire screen, as intended. When I run the app, however, you can see the white rectangle at the bottom of the emulator screen where the background isn't being scaled. Is this a known issue with the emulator, or perhaps a different issue you're familiar with?

    I'd appreciate any insight you might have. The only thing I can find via google is an issue where the entire view (vertical and horizontal) is scaled down.

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

    S21 Ultra to get major camera updates

    Posted: 08 Nov 2020 12:33 AM PST

    Weird, is there any way to clear cache and storage once a user updates my app.

    Posted: 07 Nov 2020 08:29 PM PST

    Hey all

    I've made some major internal logic changes in v5 of my app that will most likely cause my app for a user who updates through the play store to crash. They will need to clear the cache and storage from within android settings for my app. Is there any way to have this done automatically when they update? Or whats the best way to go about doing this.

    Has anyone faced this problem before? Thanks

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

    No option for permanent removal of ViewHolder, would there be any drawbacks if implemented?

    Posted: 07 Nov 2020 07:57 PM PST

    I'm thinking this piece of code may bring me problems on more complex situations.

    @Override public void onViewDetachedFromWindow(@NonNull XVH<DataVisitor> holder) { //To avoid ViewInfoStore temp detachment if (holder.getAdapterPosition() == -1) { //item not found on list holder.setIsRecyclable(false); } } 

    Because it seems to me so obvious that this should have been done, but given the fact that this specific solution seems necessary for my menial task in particular (even though I believe it would be absolutely useful in all cases), I'm wondering if it would have any drawbacks on ... for example:... a situation of infinite scroll.

    I'm fairly new to android, so I am completely at lost on how an infinite scroll situation handles the submitList(), at first I thought some external library would handle the heavy lifting of caching the items and partially feeding the adapter by segments, but because of how exaggerated the adapter is at recycling its views, I'm wondering if its just as simple as delivering the entire lenght...

    In any case, it seems to me that if the user forcibly removes an item (as in removing it from the submitted list, by resubmitting) , it seems to me, that the most reasonable thing would be just to completely destroy it, because if any cache is performed why do it at a view level (the worst possible place of all places), if the removed item may not even be in the database where it came from!!

    The only other reason I see is if the adapter could remove items from its own "main" list by itself (which is the case I'd argue it'd do if it could manage lengthy lists), then this would definitely give me headaches.

    And that's the reason why it seems to me that the lack of an automatic permanent removal option, is done for a purpose,.... to avoid an unwanted situation??

    Is there any purpose at all?Would this give me problems in other more complex situations?

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

    why are mobile apps usually less feature-rich than their desktop counterparts

    Posted: 07 Nov 2020 12:54 PM PST

    By the way I'm not a software developer but I appreciate and respect the hard work and time it takes to develop such software, I just found it a interesting phenomenon

    So why is this the case? Can someone give me a detail explanation or something close to one. Is it because it impossible to develop/implement the desktop feature on to the mobile version (api differences,ect)

    Like how come the mobile version of Google Chrome didn't have chrome extensions support but arnaud42, the developer of Kiwi Browser was able to implement it (at least some form of it)

    How come Microsoft office mobile apps have less features than the Desktop versions

    I know it most likely because of how the market for these apps work (most consumers expect apps to be free but the developer has to make money somehow which causes less incentive to create more than a simplified bare minimum version)

    But lets say we live in a world where that didn't matter. Would it be possible for a mobile app to have the same features just as the desktop app or is there some limiting factors on the development side?

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

    Introducing Android Topics Publication

    Posted: 07 Nov 2020 03:44 PM PST

    USING APP BUNDLES CAUSES MY APP TO FREEZE WHILE AS APK WORKS JUST FINE

    Posted: 08 Nov 2020 01:31 AM PST

    Hello everyone. So, just like in the title, I am planning to upload my app on google playstore. So, I decided to go through internal testing before i can proceed to production. The problem is, when i upload an apk and my testers test it, the app functions just fine. However, Google recommends uploading as an app bundle but if i upload the app as an app bundle. On downloading it from playsore, the app freezes when it is opened. This is puzzling and i cant seem to figure out what the problem is. Some hints that may help; I have proguard enabled and using multidex too. Is the problem as a result of the way the app is packaged differently or.

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

    When my ViewBinding classes are not resolved, I just remove the imports and put them back to fix it.

    Posted: 07 Nov 2020 05:55 PM PST

    Hope it works for you too.

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

    Playstore newly published app not showing ?

    Posted: 07 Nov 2020 06:48 PM PST

    I noted my app only shows up on Playstore search if double quotes are inserted e.g: "Fun App". I know it's not at the bottom because, searching for my developer name or the app's exact name does not show anything. And the app I made is a really simple 'dumb entertainment' app and there is only 6 similar apps if you searched for it so it's pretty easy to spot if it showed up.

    Question is, why isn't my app showing on search without double quotes ? If the minimum requirement is 100 - 1000 downloads to show up on search, how are new developers suppose to get those downloads, when nobody can see the app to download it ? The confusing part is I see apps of other genres with 20 downloads still being listed on playstore but my app does not show up at all ? It's been 3 days since it went live and support gave no definite answer.

    It's not a device or geographic issue because like I said, it's on the playstore, available to all which I can clearly see in dev console, it just can't be found.

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

    Become An Android Developer – A Complete Roadmap

    Posted: 07 Nov 2020 08:51 PM PST

    There is no one single way to becoming a developer as everyone learns at their own pace.

    But, what if you had a general Guideline that you could follow that could show you the correct way of realizing your dream?

    That's all that we have attempted to do in our newest Article- Read Now!

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

    Passing SafetyNet to use Playstation apps

    Posted: 07 Nov 2020 06:29 PM PST

    i have an unrooted mi9se. i can't use ps apps on it and some people told me that it s about safetynet issue. i can take my phone to a technician but i want to do this on my own. How can i solve this problem?

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

    No comments:

    Post a Comment