• Breaking News

    Sunday, December 13, 2020

    Android Dev - google/android-emulator-m1-preview Android Emulator M1 Preview

    Android Dev - google/android-emulator-m1-preview Android Emulator M1 Preview


    google/android-emulator-m1-preview Android Emulator M1 Preview

    Posted: 13 Dec 2020 02:09 AM PST

    Hide and Keep your API key out of GitHub repository

    Posted: 13 Dec 2020 04:38 AM PST

    apkutil: a useful utility for android app security testing

    Posted: 13 Dec 2020 02:27 AM PST

    6 — 12 December Android Newsletter

    Posted: 13 Dec 2020 02:25 AM PST

    Stay up to date with Android development, in this week's edition:
    🚀 Write better tests with JUnit 5
    🎮 Build a game with Jetpack Compose
    🤖 Add machine learning to your app
    ⚡ Disable Jetifier to improve the build time
    and much more!

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

    🔥Featuring @elye_project @maxirosson @rishit_dagli @nonewsss @AshleyFigueira @Tunji_D 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/9dc9ed6d15bc/android-newsletter-24

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

    How To Write Better Tests in Android With JUnit 5

    Posted: 12 Dec 2020 10:09 AM PST

    How to speed up the AdMob ad's loading process

    Posted: 13 Dec 2020 04:58 AM PST

    my app was working fine it was going from activity1 to activity2 with no time. But after adding

    two ads in activity2 (banner ads and interstitial) it almost takes user 3 seconds of time

    to go from activity1 to activity2

    I tried this code

    new Handler().post(new Runnable() {

    u/Override

    public void run() {

    showAds();

    }

    });

    but its not working at all, then i tried this

    new Handler().postDelay(new Runnable() {

    u/Override

    public void run() {

    showAds();

    }

    },5000);

    and it did work fine but after delay time gets completes activity2 gets completely freeze for

    5000(5 seconds)

    what should I do now?

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

    Getting java.io.NotSerializableException and have no idea why. Any chance for some help?

    Posted: 13 Dec 2020 07:59 AM PST

    java.lang.RuntimeException: at android.os.Parcel.writeSerializable (Parcel.java:1730) at android.os.Parcel.writeValue (Parcel.java:1678) at android.os.Parcel.writeList (Parcel.java:979) at android.os.Parcel.writeValue (Parcel.java:1627) at android.os.Parcel.writeArrayMapInternal (Parcel.java:891) at android.os.BaseBundle.writeToParcelInner (BaseBundle.java:1579) at android.os.Bundle.writeToParcel (Bundle.java:1233) at android.os.Parcel.writeBundle (Parcel.java:931) at androidx.fragment.app.FragmentState.writeToParcel (FragmentState.java:125) at android.os.Parcel.writeTypedObject (Parcel.java:1532) at android.os.Parcel.writeTypedList (Parcel.java:1411) at android.os.Parcel.writeTypedList (Parcel.java:1396) at androidx.fragment.app.FragmentManagerState.writeToParcel (FragmentManagerState.java:58) at android.os.Parcel.writeParcelable (Parcel.java:1699) at android.os.Parcel.writeValue (Parcel.java:1605) at android.os.Parcel.writeArrayMapInternal (Parcel.java:891) at android.os.BaseBundle.writeToParcelInner (BaseBundle.java:1579) at android.os.Bundle.writeToParcel (Bundle.java:1233) at android.os.Parcel.writeBundle (Parcel.java:931) at androidx.fragment.app.FragmentState.writeToParcel (FragmentState.java:127) at android.os.Parcel.writeTypedObject (Parcel.java:1532) at android.os.Parcel.writeTypedList (Parcel.java:1411) at android.os.Parcel.writeTypedList (Parcel.java:1396) at androidx.fragment.app.FragmentManagerState.writeToParcel (FragmentManagerState.java:58) at android.os.Parcel.writeParcelable (Parcel.java:1699) at android.os.Parcel.writeValue (Parcel.java:1605) at android.os.Parcel.writeArrayMapInternal (Parcel.java:891) at android.os.BaseBundle.writeToParcelInner (BaseBundle.java:1579) at android.os.Bundle.writeToParcel (Bundle.java:1233) at android.os.Parcel.writeBundle (Parcel.java:931) at android.os.Parcel.writeValue (Parcel.java:1596) at android.os.Parcel.writeArrayMapInternal (Parcel.java:891) at android.os.BaseBundle.writeToParcelInner (BaseBundle.java:1579) at android.os.Bundle.writeToParcel (Bundle.java:1233) at android.os.Parcel.writeBundle (Parcel.java:931) at android.os.Parcel.writeValue (Parcel.java:1596) at android.os.Parcel.writeArrayMapInternal (Parcel.java:891) at android.os.BaseBundle.writeToParcelInner (BaseBundle.java:1579) at android.os.Bundle.writeToParcel (Bundle.java:1233) at android.app.IActivityManager$Stub$Proxy.activityStopped (IActivityManager.java:3872) at android.app.servertransaction.PendingTransactionActions$StopInfo.run (PendingTransactionActions.java:144) at android.os.Handler.handleCallback (Handler.java:873) at android.os.Handler.dispatchMessage (Handler.java:99) at android.os.Looper.loop (Looper.java:214) at android.app.ActivityThread.main (ActivityThread.java:7050) at java.lang.reflect.Method.invoke (Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:494) at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:965) Caused by: java.io.NotSerializableException: at java.io.ObjectOutputStream.writeObject0 (ObjectOutputStream.java:1240) at java.io.ObjectOutputStream.defaultWriteFields (ObjectOutputStream.java:1604) at java.io.ObjectOutputStream.writeSerialData (ObjectOutputStream.java:1565) at java.io.ObjectOutputStream.writeOrdinaryObject (ObjectOutputStream.java:1488) at java.io.ObjectOutputStream.writeObject0 (ObjectOutputStream.java:1234) at java.io.ObjectOutputStream.writeObject (ObjectOutputStream.java:354) at android.os.Parcel.writeSerializable (Parcel.java:1725) 

    That is the crash I am getting when I look at the android play store console crash reports. I have no idea what might be causing it, I tried to see if I can replicate it but could not manage get my app to crash. Here is the code that I think might be causing it(just cause thats the serialisable transfer that I added the version I started getting the crashes), but I could not find the problem in it. And I am getting a lot of crashes from it(sitting at around 1.068 crashes per 1000 uses)

    This is the code that goes makes something serialisable:

     var materialInformationBundle = bundleOf("information" to materialInfo) findNavController().navigate(R.id.action_MenuViewFragment_to_webViewPdf, materialInformationBundle) 

    And here is the class materialInfo I try to transfer:

    data class MaterialInformation(var materialName : String,var materialURL : String, var materialTopic: TriviaQuestion.Topic, var timeTag: Int, var version : Int, var index : Int? = null) : Serializable{ fun toMaterial() : Material{ return Material(materialURL, materialName, materialTopic, version, index) } } 

    The TriviaQuestion.Topic is an enum that looks like this:

    enum class Topic : Serializable { anatomy, cpr, routine, medicine, teamWork, anamnesis, trauma, mentalHealth, publicHealth, nbc, other; companion object class TopicConverters { @TypeConverter fun fromStringToTopic(topicString: String) : Topic { return Topic.valueOf(topicString) } @TypeConverter fun fromTopicToString(topic: Topic) : String { return topic.toString() } } } 

    I would really appriciate some help on this I am trying to find what is causing these crashes for a couple of weeks already and not being able to replicate it makes stuff even harder

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

    One or multiple navigation graphs

    Posted: 13 Dec 2020 03:35 AM PST

    If an app has let's say an onboarding screen, login, registration and home screen that doesn't require authentication and in parallel some screens and flows implemented via fragments which do require authentication, would one navigation graph suffice or would I be best served using a nested navigation graph?

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

    Reducing build times in multi-modular project.

    Posted: 12 Dec 2020 05:31 PM PST

    Recently in our company we finished modularization and saw great improvement in incremental builds. However, clean build as well as IDE performance started to degrade. So we come up a solution and would like to share with you guys. Here is the link to the medium post.

    https://susuthapa19961227.medium.com/super-charge-build-time-in-multi-module-project-with-gradles-dependency-resolution-96b7ddb865dc

    Hope you guys like it. Any suggestions are welcomed.

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

    Which way is better to improve as an Android dev?

    Posted: 12 Dec 2020 12:29 PM PST

    Hello fellas,

    I am an android dev who has 1,5 year exp in commercial companies, I didn't get proper knowledge from university or some courses but I learned myself and from internships I did. So while I was developing myself I feel I still have huge lack of knowledge in programming foundations. I keep having this feeling and it bothers me a lot. Therefore, I want to start filling this spots so I can move forward with confident. In this situation, I'd like to ask some questions to android devs who already passed this path that Im on. First of all, I know java and kotlin. I mean Im able to use them to complete my daily tasks at work and I can save the day. But I dont feel enough comfortable with them. So I want to make myself safe in one language so I could easily move forward. Would you suggest Java or Kotlin? At work we use both in project. And I believe it would be okay if I could learn one of them properly. My second question is how should I make progress to feel comfy about the language? How should I learn it? By book? By courses etc? What was your method to get better on these languges or android dveelopment?

    Thanks a lot for your time and help.

    submitted by /u/x-arybdis
    [link] [comments]

    Is there a reliable Gift Card API?

    Posted: 13 Dec 2020 12:10 AM PST

    I want to integrate functionality in my app that will send users a Gift Card code via email.

    For example, send them:

    Code: IUBEIW32893EFEE

    Site: Amazon.com

    Amount: $20

    via email. I also want the ability to choose to send gift cards from multiple vendors. Example: https://support.mistplay.com/hc/article_attachments/360058667014/20200225_162401.jpg

    Any idea if there is a reliable API for e-gift cards? I have seen Giftbit but it does not accept Australian credit cards (where I live).

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

    best practices for syncing data

    Posted: 13 Dec 2020 04:26 AM PST

    Hello friends.

    I am developing a simple image editing app with masks functionality. now this masks are provided by designer as a zip file. every time when app starts (Application.onCreate), it syncs with server update collection.

    Lately we have introduced limited edition collection, e.g. christmas holiday.

    now i'm not quite able to figure out how to do the sync: counting on user to kill the app to update the collection is wrong. updating collection intrusively may crash the app, as user may be using the collection, when command to delete was received.

    how this case should be handled, are there any best practices?

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

    What is the way to go in 2020?

    Posted: 12 Dec 2020 08:37 PM PST

    I developed some simple apps back in 2012-2014. Since then a lot has changed and it seems instead of Java nowadays I should use Kotlin or Dart/Flutter?

    Basically I want to develop a simple app with some stopwatch/counter (maybe also use a voice that does a countdown or tells you the current round) and statistics (basically more or less just simple line graphs I think). I am wondering what is the way to go? Can Dart/Flutter handle this?

    Basically I saw an app (aktibody) that has a similar look and feel what I want to create (although their purpose is quite different I want to have a similar style and graphs) and I am not sure how they did this. Anyone know if they are using Dart/Flutter or would a app like this would be possible with Dart/Flutter? Is this a good way or how would you create such an app in 2020? What Language and Framework.

    Probably Java and Eclipse isn't the way to go anymore xD

    PS: I target on android, but I would't mind if it is cross platform out of the box. It would be also nice if there are no licenses for commercial use, because maybe one day I put it in the app store and maybe get some money.

    I also thought for some seconds about C#/Unity (I am mainly C# dev) and if that would be possible, since I know e.g. I had installed a "zen timer" that was created in Unity, but about statistics I am not sure if that would be smart to do that app in Unity.

    submitted by /u/Plastic-Welcome-4775
    [link] [comments]

    Raising keywords rankings by increasing install volume

    Posted: 12 Dec 2020 08:35 PM PST

    My goal is to raise my keywords rankings (especially inb countries that are expensive to advertise in) by increasing downloads with as little money as possible in cheaper countries to advertise.

    I'm currently at 2¢ per install aiming towards the Arab world, I know the culture and what people like, so I'm getting really high CTRs and Acquisition

    You guys think this is a good strategy?

    submitted by /u/No-Establishment4313
    [link] [comments]

    Are you looking for a development partner/team member?

    Posted: 12 Dec 2020 04:22 PM PST

    Hey there!
    Self-taught Kotlin programmer here. My goal is to apply for a job in a few month and till then I want to continue getting more experience.

    Is anyone looking for some collaboration, someone who can assist them in their project, just wants to work together? I would like to join! :)

    Motivation: I realized I was way more motivated when working on a project together with other people. Furthermore working together with other people helps me (and others) in self development :)

    Hit me up! :)

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

    Certificate pinning with OkHttp

    Posted: 12 Dec 2020 09:03 AM PST

    Protecting Images in Assets

    Posted: 12 Dec 2020 11:33 PM PST

    Is there now a way to protect images used in an Android App? My apps are image based and because anyone with a PC can open up an .apk, I have not published any new apps to the Play Store. Plus there is a guy in India + others who actively steal my content. Which is why I only release new apps to iPhone.

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

    aktsk/aprox Android PROXy setting tool

    Posted: 12 Dec 2020 11:16 AM PST

    High quality TTS engine

    Posted: 12 Dec 2020 12:00 PM PST

    I am making a reading app and was wondering if there is a high quality less robotic TTS engine to use?

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

    No comments:

    Post a Comment