• Breaking News

    Wednesday, January 1, 2020

    Android Dev - Can anyone identify this device?

    Android Dev - Can anyone identify this device?


    Can anyone identify this device?

    Posted: 01 Jan 2020 01:00 AM PST

    Can anyone identify this device?

    I've been getting this Crash report but can't identify what device this is.

    Any ideas?

    Thanks.

    https://preview.redd.it/20h8fxqgt4841.png?width=708&format=png&auto=webp&s=ab071c7aabf929fcc885394483904bb8e690a33d

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

    Question: is it according to the terms to make an app that uses Telegram network, but not for chatting?

    Posted: 01 Jan 2020 03:05 AM PST

    According to these links:

    - https://core.telegram.org/api/obtaining_api_id

    - https://core.telegram.org/api/terms

    "1.3. As a client developer, you must make sure that all the basic features of the main Telegram apps function correctly and in an expected way both in your app and when users of your app communicate with other Telegram users. It is forbidden to force users of other Telegram clients to download your app in order to view certain messages and content sent using your app."

    So does it mean that no matter what, an app that uses the API must be a chatting app, with all the features that Telegram offers for chatting?

    Or is it about the case that as an app, you have to implement it all only if your app is a chatting app?

    Is there any way to ask this to whoever made the terms?

    Are there any apps that use Telegram network, but not for chatting?

    submitted by /u/AD-LB
    [link] [comments]

    Let's discuss: Dagger vs Koin

    Posted: 31 Dec 2019 12:08 PM PST

    Hello everyone 👋

    I've been trying to dig into Koin lately and see if it's worth switching from Dagger to Koin. I've been using Dagger since almost... always. Usually, I work in large-scale apps where I have a multi-module architecture, and one of the modules is a core module, from where I expose the architectural dependencies to my other feature modules through SubComponents. By architectural dependencies, I mean UseCases/Interactors.

    I like this approach, it is comfortable. Usually, I have one developer who takes care of adding the new Interactors into the core module. For example, once we have a new API endpoint or something new that we want to add. Then I have some other developers, who own the feature modules, and they just use the Interactors and implement the UI changes.

    This approach is also useful for Unit Testing. I create the Dagger component in my Application class. I have all the third-party dependencies exposed on the Dagger modules, such as Crashlytics, Remote Config, etc. When we do Unit Testing we create a test Application class that overrides the function where I create the Dagger component and provides some mock implementations of the modules. That way, we don't have things like Crashlytics or RemoteConfig messing with the Unit Testing.

    Finally, I've worked on an App where we had to implement a "Preview Mode". When the user switched to this Preview Mode we were supposed to provide mock responses for all the API endpoints. This was really easy to implement just by looking at a flag value on the SharedPreferences and adding an Interceptor into our REST client. All this was done within the Dagger module.

    So, my question is, are all these things are doable with Koin? Is it really worth switching from Dagger to Koin?

    Please keep in mind that:

    - I have little to no knowledge about Koin, other than doing some brief research and looking at some Github repos.

    - I'm aware that there's a thin line between the two, and they aren't exactly the same. Dagger is used for dependency injection and Koin is a service locator framework. I'm not really sure what it means, I've seen some people argue that they are actually the same, some others say they are not.

    Thanks 😄

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

    Simple question about Intents

    Posted: 01 Jan 2020 06:52 AM PST

    Hi guys,

    I'm a freshman in Android Development and have no knowledge in Java. I need a bit of help understanding something - in the below code, I've created a simple button that when clicked redirects to a second activity (MainActivity2).

    What I am trying to understand is the following,

    1.) Why is the 'new' needed whenever to be called when creating an Intent?

    2.) All tutorials firstly instruct to create (declare) an intent and only then call startActivity(intent).

    For example:

    Intent i = new Intent(ActivityMain.this, ActivityMain2.class);
    startActivity(i);

    With a little help and reading I omitted this line, and initiated the activity by calling startActivity. I'd like to understand if there are any advantages / disadvantages to what I did. Here is the full code:

    public class MainActivity extends AppCompatActivity {

    Button go2secondScreen;
    u/Override
    protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    //initialize Button
    go2secondScreen = findViewById(R.id.go2secondScreen);
    // Set new OnclickListener for Button calling View
    go2secondScreen.setOnClickListener(new View.OnClickListener() {
    u/Override
    public void onClick(View v) {
    // Start activity calling a new intent
    startActivity(new Intent(MainActivity.this, MainActivity2.class));
    }
    });
    }
    }

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

    What are SDKs that are used for ride sharing apps?

    Posted: 01 Jan 2020 06:33 AM PST

    Well i use mapbox as a map and I'm trying to figure out how a user can track the vehicle they're going to use

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

    Edge-to-Edge: Android library for enabling edge-to-edge content and insetting widgets using simple Kotlin DSL

    Posted: 01 Jan 2020 06:25 AM PST

    Speech to Text in android

    Posted: 31 Dec 2019 11:05 PM PST

    So i have been trying to make an app that convert speech to text during the phone call and i have been facing problems with it and is looking for some advice.

    Everything is done on Service. The app waits until the phone state is RINGING and start convert speech to text when the state changes to OFFHOOK using BroadcastReceiver object and onReceive method to launch an IntentService where i have SpeechRecognizer Object inside onHandleIntent which i use to convert the speech to text. However, I get an error message that SpeechRecognizer must be run inside the application's main thread. At this point i am little bit lost on how to solve this problem and not sure if i am approaching from the right direction.

    If you were to build this kind of app, how would you make this?

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

    Distance Matrix Api

    Posted: 31 Dec 2019 07:22 PM PST

    Can any one help me to understand how to use distance matrix api? I tried reading documentation but i got confused.

    Or have a link to any video or website that will help to understand

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

    How to make a RecyclerView in Jetpack Compose?

    Posted: 31 Dec 2019 10:29 PM PST

    Will andriod dev become obsolete/automated?

    Posted: 31 Dec 2019 08:08 PM PST

    I keep hearing about web development becoming automsted/obsolete. I don't quite believe that's true in the long run honestly.

    But I don't know a ton about mobile development. I'm curious, what are the chances of andriod/IOS devs being out of a job because ai or machine learning automates it?

    If web dev got automated, would mobile be next? I'm not talking basic automation, I'm talking like replacing developers automation.

    Thanks all

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

    X-post: After Android 10 update, Solid Explorer can't access a directory : NeatBytes

    Posted: 31 Dec 2019 02:03 PM PST

    What are good recycler view selection libraries?

    Posted: 31 Dec 2019 12:48 PM PST

    I just posted this kind of awhile ago but the autocomplete on my phone messed up the title. I just implemented the androidx recyclerview-selection library but due to the, in my opinion, horrible documentation it took me awhile to get it down. I've seen recent YouTube videos that are outdated on the subject so maybe I'll make a video/write an article or something. Looking back, I'm sure there are libraries though to make things easier?

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

    Android 10 and face unlock - Catch 22?

    Posted: 31 Dec 2019 09:04 AM PST

    TL;DR: Pixel 4 owners might be in for further disappointment with lack of adoption of face unlocking by banking apps etc

    What's changed: with Android 10, Google is pushing developers to use the new biometric API to authenticate into apps. For phones that support both fingerprint and face unlock (eg. Samsung S8/S9/S10 ranges), the user is offered the choice of which method to use to authenticate into an app.

    What's the problem? Developers who use the new biometric API can't control which method (fingerprint or face unlock) the user picks. But face unlock on these devices is not considered secure to authenticate into sensitive apps.

    So what? Developers of sensitive apps (banking etc) aren't going to allow the possibility of less secure authentication. So they will stick with the now-deprecated FingerprintManager API which restricts authentication to fingerprints only.

    And? Users of the Pixel 4 (which does have more secure face recognition than the Samsung devices) will continue to miss out.

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

    Please help! Major system errors on Note 10+ (images included)

    Posted: 31 Dec 2019 01:31 PM PST

    Image 1

    Image 2

    Please help! I received my brand new Note 10+ yesterday from www.samsung.com and from the beginning I have been experiencing constant error messages whilst using the phone like seen in the images above and it keeps rebooting on it's own. I've put the phone in recovery mode and deleted the system cache as well as performing a complete factory reset and I'm continuing to experience the same problems. I don't know what else to do!

    Edit: it isn't just Gmail and DeX that I'm having issues with, the error messages being displayed are for every single app that's on the phone.

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

    No comments:

    Post a Comment